#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 r15640 = c;
        float r15641 = cos(r15640);
        float r15642 = sqrt(r15640);
        float r15643 = r15641 + r15642;
        return r15643;
}

double f_id(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;
}


double f_of(float __attribute__((unused)) a, float __attribute__((unused)) b, float c) {
        float r15648 = c;
        float r15649 = cos(r15648);
        float r15650 = sqrt(r15648);
        float r15651 = r15649 + r15650;
        return r15651;
}

double f_od(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        double r15652 = c;
        double r15653 = cos(r15652);
        double r15654 = sqrt(r15652);
        double r15655 = r15653 + r15654;
        return r15655;
}

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 r15656, r15657, r15658, r15659;

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

double f_im(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);
}

static mpfr_t r15660, r15661, r15662, r15663;

void setup_mpfr_f_fm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15660);
        mpfr_init(r15661);
        mpfr_init(r15662);
        mpfr_init(r15663);
}

double f_fm(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        mpfr_set_d(r15660, c, MPFR_RNDN);
        mpfr_cos(r15661, r15660, MPFR_RNDN);
        mpfr_sqrt(r15662, r15660, MPFR_RNDN);
        mpfr_add(r15663, r15661, r15662, MPFR_RNDN);
        return mpfr_get_d(r15663, MPFR_RNDN);
}

static mpfr_t r15664, r15665, r15666, r15667;

void setup_mpfr_f_dm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15664);
        mpfr_init(r15665);
        mpfr_init(r15666);
        mpfr_init(r15667);
}

double f_dm(double __attribute__((unused)) a, double __attribute__((unused)) b, double c) {
        mpfr_set_d(r15664, c, MPFR_RNDN);
        mpfr_cos(r15665, r15664, MPFR_RNDN);
        mpfr_sqrt(r15666, r15664, MPFR_RNDN);
        mpfr_add(r15667, r15665, r15666, MPFR_RNDN);
        return mpfr_get_d(r15667, MPFR_RNDN);
}

