#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 r15676 = c;
        float r15677 = cos(r15676);
        float r15678 = sqrt(r15676);
        float r15679 = r15677 + r15678;
        return r15679;
}

double f_id(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        double r15680 = c;
        double r15681 = cos(r15680);
        double r15682 = sqrt(r15680);
        double r15683 = r15681 + r15682;
        return r15683;
}


double f_of(float __attribute__((unused)) a, float __attribute__((unused)) b, float c) {
        float r15684 = c;
        float r15685 = cos(r15684);
        float r15686 = sqrt(r15684);
        float r15687 = r15685 + r15686;
        return r15687;
}

double f_od(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        double r15688 = c;
        double r15689 = cos(r15688);
        double r15690 = sqrt(r15688);
        double r15691 = r15689 + r15690;
        return r15691;
}

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 r15692, r15693, r15694, r15695;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(144);
        mpfr_init(r15692);
        mpfr_init(r15693);
        mpfr_init(r15694);
        mpfr_init(r15695);
}

double f_im(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        mpfr_set_d(r15692, c, MPFR_RNDN);
        mpfr_cos(r15693, r15692, MPFR_RNDN);
        mpfr_sqrt(r15694, r15692, MPFR_RNDN);
        mpfr_add(r15695, r15693, r15694, MPFR_RNDN);
        return mpfr_get_d(r15695, MPFR_RNDN);
}

static mpfr_t r15696, r15697, r15698, r15699;

void setup_mpfr_f_fm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15696);
        mpfr_init(r15697);
        mpfr_init(r15698);
        mpfr_init(r15699);
}

double f_fm(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        mpfr_set_d(r15696, c, MPFR_RNDN);
        mpfr_cos(r15697, r15696, MPFR_RNDN);
        mpfr_sqrt(r15698, r15696, MPFR_RNDN);
        mpfr_add(r15699, r15697, r15698, MPFR_RNDN);
        return mpfr_get_d(r15699, MPFR_RNDN);
}

static mpfr_t r15700, r15701, r15702, r15703;

void setup_mpfr_f_dm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15700);
        mpfr_init(r15701);
        mpfr_init(r15702);
        mpfr_init(r15703);
}

double f_dm(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        mpfr_set_d(r15700, c, MPFR_RNDN);
        mpfr_cos(r15701, r15700, MPFR_RNDN);
        mpfr_sqrt(r15702, r15700, MPFR_RNDN);
        mpfr_add(r15703, r15701, r15702, MPFR_RNDN);
        return mpfr_get_d(r15703, MPFR_RNDN);
}

