#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 r15574 = c;
        float r15575 = cos(r15574);
        float r15576 = sqrt(r15574);
        float r15577 = r15575 + r15576;
        return r15577;
}

double f_id(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        double r15578 = c;
        double r15579 = cos(r15578);
        double r15580 = sqrt(r15578);
        double r15581 = r15579 + r15580;
        return r15581;
}


double f_of(float __attribute__((unused)) a, float __attribute__((unused)) b, float c) {
        float r15582 = c;
        float r15583 = cos(r15582);
        float r15584 = sqrt(r15582);
        float r15585 = r15583 + r15584;
        return r15585;
}

double f_od(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        double r15586 = c;
        double r15587 = cos(r15586);
        double r15588 = sqrt(r15586);
        double r15589 = r15587 + r15588;
        return r15589;
}

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 r15590, r15591, r15592, r15593;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(144);
        mpfr_init(r15590);
        mpfr_init(r15591);
        mpfr_init(r15592);
        mpfr_init(r15593);
}

double f_im(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        mpfr_set_d(r15590, c, MPFR_RNDN);
        mpfr_cos(r15591, r15590, MPFR_RNDN);
        mpfr_sqrt(r15592, r15590, MPFR_RNDN);
        mpfr_add(r15593, r15591, r15592, MPFR_RNDN);
        return mpfr_get_d(r15593, MPFR_RNDN);
}

static mpfr_t r15594, r15595, r15596, r15597;

void setup_mpfr_f_fm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15594);
        mpfr_init(r15595);
        mpfr_init(r15596);
        mpfr_init(r15597);
}

double f_fm(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        mpfr_set_d(r15594, c, MPFR_RNDN);
        mpfr_cos(r15595, r15594, MPFR_RNDN);
        mpfr_sqrt(r15596, r15594, MPFR_RNDN);
        mpfr_add(r15597, r15595, r15596, MPFR_RNDN);
        return mpfr_get_d(r15597, MPFR_RNDN);
}

static mpfr_t r15598, r15599, r15600, r15601;

void setup_mpfr_f_dm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15598);
        mpfr_init(r15599);
        mpfr_init(r15600);
        mpfr_init(r15601);
}

double f_dm(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        mpfr_set_d(r15598, c, MPFR_RNDN);
        mpfr_cos(r15599, r15598, MPFR_RNDN);
        mpfr_sqrt(r15600, r15598, MPFR_RNDN);
        mpfr_add(r15601, r15599, r15600, MPFR_RNDN);
        return mpfr_get_d(r15601, MPFR_RNDN);
}

