#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 r15507 = c;
        float r15508 = cos(r15507);
        float r15509 = sqrt(r15507);
        float r15510 = r15508 + r15509;
        return r15510;
}

double f_id(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        double r15511 = c;
        double r15512 = cos(r15511);
        double r15513 = sqrt(r15511);
        double r15514 = r15512 + r15513;
        return r15514;
}


double f_of(float __attribute__((unused)) a, float __attribute__((unused)) b, float c) {
        float r15515 = c;
        float r15516 = cos(r15515);
        float r15517 = sqrt(r15515);
        float r15518 = r15516 + r15517;
        return r15518;
}

double f_od(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        double r15519 = c;
        double r15520 = cos(r15519);
        double r15521 = sqrt(r15519);
        double r15522 = r15520 + r15521;
        return r15522;
}

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 r15523, r15524, r15525, r15526;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(144);
        mpfr_init(r15523);
        mpfr_init(r15524);
        mpfr_init(r15525);
        mpfr_init(r15526);
}

double f_im(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        mpfr_set_d(r15523, c, MPFR_RNDN);
        mpfr_cos(r15524, r15523, MPFR_RNDN);
        mpfr_sqrt(r15525, r15523, MPFR_RNDN);
        mpfr_add(r15526, r15524, r15525, MPFR_RNDN);
        return mpfr_get_d(r15526, MPFR_RNDN);
}

static mpfr_t r15527, r15528, r15529, r15530;

void setup_mpfr_f_fm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15527);
        mpfr_init(r15528);
        mpfr_init(r15529);
        mpfr_init(r15530);
}

double f_fm(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        mpfr_set_d(r15527, c, MPFR_RNDN);
        mpfr_cos(r15528, r15527, MPFR_RNDN);
        mpfr_sqrt(r15529, r15527, MPFR_RNDN);
        mpfr_add(r15530, r15528, r15529, MPFR_RNDN);
        return mpfr_get_d(r15530, MPFR_RNDN);
}

static mpfr_t r15531, r15532, r15533, r15534;

void setup_mpfr_f_dm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15531);
        mpfr_init(r15532);
        mpfr_init(r15533);
        mpfr_init(r15534);
}

double f_dm(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        mpfr_set_d(r15531, c, MPFR_RNDN);
        mpfr_cos(r15532, r15531, MPFR_RNDN);
        mpfr_sqrt(r15533, r15531, MPFR_RNDN);
        mpfr_add(r15534, r15532, r15533, MPFR_RNDN);
        return mpfr_get_d(r15534, MPFR_RNDN);
}

