#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 r15632 = c;
        float r15633 = cos(r15632);
        float r15634 = sqrt(r15632);
        float r15635 = r15633 + r15634;
        return r15635;
}

double f_id(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        double r15636 = c;
        double r15637 = cos(r15636);
        double r15638 = sqrt(r15636);
        double r15639 = r15637 + r15638;
        return r15639;
}


double f_of(float __attribute__((unused)) a, float __attribute__((unused)) b, float c) {
        float r15640 = c;
        float r15641 = cos(r15640);
        float r15642 = sqrt(r15640);
        float r15643 = r15641 + r15642;
        return r15643;
}

double f_od(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        double r15644 = c;
        double r15645 = cos(r15644);
        double r15646 = sqrt(r15644);
        double r15647 = r15645 + r15646;
        return r15647;
}

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 r15648, r15649, r15650, r15651;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(144);
        mpfr_init(r15648);
        mpfr_init(r15649);
        mpfr_init(r15650);
        mpfr_init(r15651);
}

double f_im(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        mpfr_set_d(r15648, c, MPFR_RNDN);
        mpfr_cos(r15649, r15648, MPFR_RNDN);
        mpfr_sqrt(r15650, r15648, MPFR_RNDN);
        mpfr_add(r15651, r15649, r15650, MPFR_RNDN);
        return mpfr_get_d(r15651, MPFR_RNDN);
}

static mpfr_t r15652, r15653, r15654, r15655;

void setup_mpfr_f_fm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15652);
        mpfr_init(r15653);
        mpfr_init(r15654);
        mpfr_init(r15655);
}

double f_fm(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        mpfr_set_d(r15652, c, MPFR_RNDN);
        mpfr_cos(r15653, r15652, MPFR_RNDN);
        mpfr_sqrt(r15654, r15652, MPFR_RNDN);
        mpfr_add(r15655, r15653, r15654, MPFR_RNDN);
        return mpfr_get_d(r15655, MPFR_RNDN);
}

static mpfr_t r15656, r15657, r15658, r15659;

void setup_mpfr_f_dm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15656);
        mpfr_init(r15657);
        mpfr_init(r15658);
        mpfr_init(r15659);
}

double f_dm(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        mpfr_set_d(r15656, c, MPFR_RNDN);
        mpfr_cos(r15657, r15656, MPFR_RNDN);
        mpfr_sqrt(r15658, r15656, MPFR_RNDN);
        mpfr_add(r15659, r15657, r15658, MPFR_RNDN);
        return mpfr_get_d(r15659, MPFR_RNDN);
}

