#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 r15723 = c;
        float r15724 = cos(r15723);
        float r15725 = sqrt(r15723);
        float r15726 = r15724 + r15725;
        return r15726;
}

double f_id(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        double r15727 = c;
        double r15728 = cos(r15727);
        double r15729 = sqrt(r15727);
        double r15730 = r15728 + r15729;
        return r15730;
}


double f_of(float __attribute__((unused)) a, float __attribute__((unused)) b, float c) {
        float r15731 = c;
        float r15732 = cos(r15731);
        float r15733 = sqrt(r15731);
        float r15734 = r15732 + r15733;
        return r15734;
}

double f_od(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        double r15735 = c;
        double r15736 = cos(r15735);
        double r15737 = sqrt(r15735);
        double r15738 = r15736 + r15737;
        return r15738;
}

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 r15739, r15740, r15741, r15742;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(144);
        mpfr_init(r15739);
        mpfr_init(r15740);
        mpfr_init(r15741);
        mpfr_init(r15742);
}

double f_im(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        mpfr_set_d(r15739, c, MPFR_RNDN);
        mpfr_cos(r15740, r15739, MPFR_RNDN);
        mpfr_sqrt(r15741, r15739, MPFR_RNDN);
        mpfr_add(r15742, r15740, r15741, MPFR_RNDN);
        return mpfr_get_d(r15742, MPFR_RNDN);
}

static mpfr_t r15743, r15744, r15745, r15746;

void setup_mpfr_f_fm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15743);
        mpfr_init(r15744);
        mpfr_init(r15745);
        mpfr_init(r15746);
}

double f_fm(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        mpfr_set_d(r15743, c, MPFR_RNDN);
        mpfr_cos(r15744, r15743, MPFR_RNDN);
        mpfr_sqrt(r15745, r15743, MPFR_RNDN);
        mpfr_add(r15746, r15744, r15745, MPFR_RNDN);
        return mpfr_get_d(r15746, MPFR_RNDN);
}

static mpfr_t r15747, r15748, r15749, r15750;

void setup_mpfr_f_dm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15747);
        mpfr_init(r15748);
        mpfr_init(r15749);
        mpfr_init(r15750);
}

double f_dm(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        mpfr_set_d(r15747, c, MPFR_RNDN);
        mpfr_cos(r15748, r15747, MPFR_RNDN);
        mpfr_sqrt(r15749, r15747, MPFR_RNDN);
        mpfr_add(r15750, r15748, r15749, MPFR_RNDN);
        return mpfr_get_d(r15750, MPFR_RNDN);
}

