#include <tgmath.h>
#include <gmp.h>
#include <mpfr.h>
#include <stdio.h>
#include <stdbool.h>

char *name = "(- (hypot (sqrt (atan a)) b) (* c a))";

double f_if(float a, float b, float c, float __attribute__((unused)) d) {
        float r15359 = a;
        float r15360 = atan(r15359);
        float r15361 = sqrt(r15360);
        float r15362 = b;
        float r15363 = hypot(r15361, r15362);
        float r15364 = c;
        float r15365 = r15364 * r15359;
        float r15366 = r15363 - r15365;
        return r15366;
}

double f_id(double a, double b, double c, double __attribute__((unused)) d) {
        double r15367 = a;
        double r15368 = atan(r15367);
        double r15369 = sqrt(r15368);
        double r15370 = b;
        double r15371 = hypot(r15369, r15370);
        double r15372 = c;
        double r15373 = r15372 * r15367;
        double r15374 = r15371 - r15373;
        return r15374;
}


double f_of(float a, float b, float c, float __attribute__((unused)) d) {
        float r15375 = a;
        float r15376 = atan(r15375);
        float r15377 = sqrt(r15376);
        float r15378 = b;
        float r15379 = hypot(r15377, r15378);
        float r15380 = c;
        float r15381 = r15380 * r15375;
        float r15382 = r15379 - r15381;
        return r15382;
}

double f_od(double a, double b, double c, double __attribute__((unused)) d) {
        double r15383 = a;
        double r15384 = atan(r15383);
        double r15385 = sqrt(r15384);
        double r15386 = b;
        double r15387 = hypot(r15385, r15386);
        double r15388 = c;
        double r15389 = r15388 * r15383;
        double r15390 = r15387 - r15389;
        return r15390;
}

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 r15391, r15392, r15393, r15394, r15395, r15396, r15397, r15398;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(144);
        mpfr_init(r15391);
        mpfr_init(r15392);
        mpfr_init(r15393);
        mpfr_init(r15394);
        mpfr_init(r15395);
        mpfr_init(r15396);
        mpfr_init(r15397);
        mpfr_init(r15398);
}

double f_im(double a, double b, double c, double __attribute__((unused)) d) {
        mpfr_set_d(r15391, a, MPFR_RNDN);
        mpfr_atan(r15392, r15391, MPFR_RNDN);
        mpfr_sqrt(r15393, r15392, MPFR_RNDN);
        mpfr_set_d(r15394, b, MPFR_RNDN);
        mpfr_hypot(r15395, r15393, r15394, MPFR_RNDN);
        mpfr_set_d(r15396, c, MPFR_RNDN);
        mpfr_mul(r15397, r15396, r15391, MPFR_RNDN);
        mpfr_sub(r15398, r15395, r15397, MPFR_RNDN);
        return mpfr_get_d(r15398, MPFR_RNDN);
}

static mpfr_t r15399, r15400, r15401, r15402, r15403, r15404, r15405, r15406;

void setup_mpfr_f_fm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15399);
        mpfr_init(r15400);
        mpfr_init(r15401);
        mpfr_init(r15402);
        mpfr_init(r15403);
        mpfr_init(r15404);
        mpfr_init(r15405);
        mpfr_init(r15406);
}

double f_fm(double a, double b, double c, double __attribute__((unused)) d) {
        mpfr_set_d(r15399, a, MPFR_RNDN);
        mpfr_atan(r15400, r15399, MPFR_RNDN);
        mpfr_sqrt(r15401, r15400, MPFR_RNDN);
        mpfr_set_d(r15402, b, MPFR_RNDN);
        mpfr_hypot(r15403, r15401, r15402, MPFR_RNDN);
        mpfr_set_d(r15404, c, MPFR_RNDN);
        mpfr_mul(r15405, r15404, r15399, MPFR_RNDN);
        mpfr_sub(r15406, r15403, r15405, MPFR_RNDN);
        return mpfr_get_d(r15406, MPFR_RNDN);
}

static mpfr_t r15407, r15408, r15409, r15410, r15411, r15412, r15413, r15414;

void setup_mpfr_f_dm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15407);
        mpfr_init(r15408);
        mpfr_init(r15409);
        mpfr_init(r15410);
        mpfr_init(r15411);
        mpfr_init(r15412);
        mpfr_init(r15413);
        mpfr_init(r15414);
}

double f_dm(double a, double b, double c, double __attribute__((unused)) d) {
        mpfr_set_d(r15407, a, MPFR_RNDN);
        mpfr_atan(r15408, r15407, MPFR_RNDN);
        mpfr_sqrt(r15409, r15408, MPFR_RNDN);
        mpfr_set_d(r15410, b, MPFR_RNDN);
        mpfr_hypot(r15411, r15409, r15410, MPFR_RNDN);
        mpfr_set_d(r15412, c, MPFR_RNDN);
        mpfr_mul(r15413, r15412, r15407, MPFR_RNDN);
        mpfr_sub(r15414, r15411, r15413, MPFR_RNDN);
        return mpfr_get_d(r15414, MPFR_RNDN);
}

