#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 r15606 = c;
        float r15607 = cos(r15606);
        float r15608 = sqrt(r15606);
        float r15609 = r15607 + r15608;
        return r15609;
}

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


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

double f_od(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        double r15618 = c;
        double r15619 = cos(r15618);
        double r15620 = sqrt(r15618);
        double r15621 = r15619 + r15620;
        return r15621;
}

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 r15622, r15623, r15624, r15625;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(144);
        mpfr_init(r15622);
        mpfr_init(r15623);
        mpfr_init(r15624);
        mpfr_init(r15625);
}

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

static mpfr_t r15626, r15627, r15628, r15629;

void setup_mpfr_f_fm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15626);
        mpfr_init(r15627);
        mpfr_init(r15628);
        mpfr_init(r15629);
}

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

static mpfr_t r15630, r15631, r15632, r15633;

void setup_mpfr_f_dm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15630);
        mpfr_init(r15631);
        mpfr_init(r15632);
        mpfr_init(r15633);
}

double f_dm(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        mpfr_set_d(r15630, c, MPFR_RNDN);
        mpfr_cos(r15631, r15630, MPFR_RNDN);
        mpfr_sqrt(r15632, r15630, MPFR_RNDN);
        mpfr_add(r15633, r15631, r15632, MPFR_RNDN);
        return mpfr_get_d(r15633, MPFR_RNDN);
}

