#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 r15439 = c;
        float r15440 = cos(r15439);
        float r15441 = sqrt(r15439);
        float r15442 = r15440 + r15441;
        return r15442;
}

double f_id(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        double r15443 = c;
        double r15444 = cos(r15443);
        double r15445 = sqrt(r15443);
        double r15446 = r15444 + r15445;
        return r15446;
}


double f_of(float __attribute__((unused)) a, float __attribute__((unused)) b, float c) {
        float r15447 = c;
        float r15448 = cos(r15447);
        float r15449 = sqrt(r15447);
        float r15450 = r15448 + r15449;
        return r15450;
}

double f_od(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        double r15451 = c;
        double r15452 = cos(r15451);
        double r15453 = sqrt(r15451);
        double r15454 = r15452 + r15453;
        return r15454;
}

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 r15455, r15456, r15457, r15458;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(144);
        mpfr_init(r15455);
        mpfr_init(r15456);
        mpfr_init(r15457);
        mpfr_init(r15458);
}

double f_im(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        mpfr_set_d(r15455, c, MPFR_RNDN);
        mpfr_cos(r15456, r15455, MPFR_RNDN);
        mpfr_sqrt(r15457, r15455, MPFR_RNDN);
        mpfr_add(r15458, r15456, r15457, MPFR_RNDN);
        return mpfr_get_d(r15458, MPFR_RNDN);
}

static mpfr_t r15459, r15460, r15461, r15462;

void setup_mpfr_f_fm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15459);
        mpfr_init(r15460);
        mpfr_init(r15461);
        mpfr_init(r15462);
}

double f_fm(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        mpfr_set_d(r15459, c, MPFR_RNDN);
        mpfr_cos(r15460, r15459, MPFR_RNDN);
        mpfr_sqrt(r15461, r15459, MPFR_RNDN);
        mpfr_add(r15462, r15460, r15461, MPFR_RNDN);
        return mpfr_get_d(r15462, MPFR_RNDN);
}

static mpfr_t r15463, r15464, r15465, r15466;

void setup_mpfr_f_dm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15463);
        mpfr_init(r15464);
        mpfr_init(r15465);
        mpfr_init(r15466);
}

double f_dm(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        mpfr_set_d(r15463, c, MPFR_RNDN);
        mpfr_cos(r15464, r15463, MPFR_RNDN);
        mpfr_sqrt(r15465, r15463, MPFR_RNDN);
        mpfr_add(r15466, r15464, r15465, MPFR_RNDN);
        return mpfr_get_d(r15466, MPFR_RNDN);
}

