#include <tgmath.h>
#include <gmp.h>
#include <mpfr.h>
#include <stdio.h>
#include <stdbool.h>

char *name = "(+ (cos c) (sqrt c))";

double f_if(float __attribute__((unused)) a, float __attribute__((unused)) b, float c) {
        float r15603 = c;
        float r15604 = cos(r15603);
        float r15605 = sqrt(r15603);
        float r15606 = r15604 + r15605;
        return r15606;
}

double f_id(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        double r15607 = c;
        double r15608 = cos(r15607);
        double r15609 = sqrt(r15607);
        double r15610 = r15608 + r15609;
        return r15610;
}


double f_of(float __attribute__((unused)) a, float __attribute__((unused)) b, float c) {
        float r15611 = c;
        float r15612 = cos(r15611);
        float r15613 = sqrt(r15611);
        float r15614 = r15612 + r15613;
        return r15614;
}

double f_od(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        double r15615 = c;
        double r15616 = cos(r15615);
        double r15617 = sqrt(r15615);
        double r15618 = r15616 + r15617;
        return r15618;
}

void mpfr_fmod2(mpfr_t r, mpfr_t n, mpfr_t d, mpfr_rnd_t rmd) {
        mpfr_fmod(r, n, d, rmd);
        if (mpfr_cmp_ui(r, 0) < 0) mpfr_add(r, r, d, rmd);
}


static mpfr_t r15619, r15620, r15621, r15622;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(144);
        mpfr_init(r15619);
        mpfr_init(r15620);
        mpfr_init(r15621);
        mpfr_init(r15622);
}

double f_im(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        mpfr_set_d(r15619, c, MPFR_RNDN);
        mpfr_cos(r15620, r15619, MPFR_RNDN);
        mpfr_sqrt(r15621, r15619, MPFR_RNDN);
        mpfr_add(r15622, r15620, r15621, MPFR_RNDN);
        return mpfr_get_d(r15622, MPFR_RNDN);
}

static mpfr_t r15623, r15624, r15625, r15626;

void setup_mpfr_f_fm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15623);
        mpfr_init(r15624);
        mpfr_init(r15625);
        mpfr_init(r15626);
}

double f_fm(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        mpfr_set_d(r15623, c, MPFR_RNDN);
        mpfr_cos(r15624, r15623, MPFR_RNDN);
        mpfr_sqrt(r15625, r15623, MPFR_RNDN);
        mpfr_add(r15626, r15624, r15625, MPFR_RNDN);
        return mpfr_get_d(r15626, MPFR_RNDN);
}

static mpfr_t r15627, r15628, r15629, r15630;

void setup_mpfr_f_dm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15627);
        mpfr_init(r15628);
        mpfr_init(r15629);
        mpfr_init(r15630);
}

double f_dm(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        mpfr_set_d(r15627, c, MPFR_RNDN);
        mpfr_cos(r15628, r15627, MPFR_RNDN);
        mpfr_sqrt(r15629, r15627, MPFR_RNDN);
        mpfr_add(r15630, r15628, r15629, MPFR_RNDN);
        return mpfr_get_d(r15630, MPFR_RNDN);
}

