#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 r15326 = a;
        float r15327 = atan(r15326);
        float r15328 = sqrt(r15327);
        float r15329 = b;
        float r15330 = hypot(r15328, r15329);
        float r15331 = c;
        float r15332 = r15331 * r15326;
        float r15333 = r15330 - r15332;
        return r15333;
}

double f_id(double a, double b, double c, double __attribute__((unused)) d) {
        double r15334 = a;
        double r15335 = atan(r15334);
        double r15336 = sqrt(r15335);
        double r15337 = b;
        double r15338 = hypot(r15336, r15337);
        double r15339 = c;
        double r15340 = r15339 * r15334;
        double r15341 = r15338 - r15340;
        return r15341;
}


double f_of(float a, float b, float c, float __attribute__((unused)) d) {
        float r15342 = a;
        float r15343 = atan(r15342);
        float r15344 = sqrt(r15343);
        float r15345 = sqrt(r15344);
        float r15346 = r15345 * r15345;
        float r15347 = b;
        float r15348 = hypot(r15346, r15347);
        float r15349 = c;
        float r15350 = r15349 * r15342;
        float r15351 = r15348 - r15350;
        return r15351;
}

double f_od(double a, double b, double c, double __attribute__((unused)) d) {
        double r15352 = a;
        double r15353 = atan(r15352);
        double r15354 = sqrt(r15353);
        double r15355 = sqrt(r15354);
        double r15356 = r15355 * r15355;
        double r15357 = b;
        double r15358 = hypot(r15356, r15357);
        double r15359 = c;
        double r15360 = r15359 * r15352;
        double r15361 = r15358 - r15360;
        return r15361;
}

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 r15362, r15363, r15364, r15365, r15366, r15367, r15368, r15369;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(144);
        mpfr_init(r15362);
        mpfr_init(r15363);
        mpfr_init(r15364);
        mpfr_init(r15365);
        mpfr_init(r15366);
        mpfr_init(r15367);
        mpfr_init(r15368);
        mpfr_init(r15369);
}

double f_im(double a, double b, double c, double __attribute__((unused)) d) {
        mpfr_set_d(r15362, a, MPFR_RNDN);
        mpfr_atan(r15363, r15362, MPFR_RNDN);
        mpfr_sqrt(r15364, r15363, MPFR_RNDN);
        mpfr_set_d(r15365, b, MPFR_RNDN);
        mpfr_hypot(r15366, r15364, r15365, MPFR_RNDN);
        mpfr_set_d(r15367, c, MPFR_RNDN);
        mpfr_mul(r15368, r15367, r15362, MPFR_RNDN);
        mpfr_sub(r15369, r15366, r15368, MPFR_RNDN);
        return mpfr_get_d(r15369, MPFR_RNDN);
}

static mpfr_t r15370, r15371, r15372, r15373, r15374, r15375, r15376, r15377, r15378, r15379;

void setup_mpfr_f_fm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15370);
        mpfr_init(r15371);
        mpfr_init(r15372);
        mpfr_init(r15373);
        mpfr_init(r15374);
        mpfr_init(r15375);
        mpfr_init(r15376);
        mpfr_init(r15377);
        mpfr_init(r15378);
        mpfr_init(r15379);
}

double f_fm(double a, double b, double c, double __attribute__((unused)) d) {
        mpfr_set_d(r15370, a, MPFR_RNDN);
        mpfr_atan(r15371, r15370, MPFR_RNDN);
        mpfr_sqrt(r15372, r15371, MPFR_RNDN);
        mpfr_sqrt(r15373, r15372, MPFR_RNDN);
        mpfr_sqr(r15374, r15373, MPFR_RNDN);
        mpfr_set_d(r15375, b, MPFR_RNDN);
        mpfr_hypot(r15376, r15374, r15375, MPFR_RNDN);
        mpfr_set_d(r15377, c, MPFR_RNDN);
        mpfr_mul(r15378, r15377, r15370, MPFR_RNDN);
        mpfr_sub(r15379, r15376, r15378, MPFR_RNDN);
        return mpfr_get_d(r15379, MPFR_RNDN);
}

static mpfr_t r15380, r15381, r15382, r15383, r15384, r15385, r15386, r15387, r15388, r15389;

void setup_mpfr_f_dm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15380);
        mpfr_init(r15381);
        mpfr_init(r15382);
        mpfr_init(r15383);
        mpfr_init(r15384);
        mpfr_init(r15385);
        mpfr_init(r15386);
        mpfr_init(r15387);
        mpfr_init(r15388);
        mpfr_init(r15389);
}

double f_dm(double a, double b, double c, double __attribute__((unused)) d) {
        mpfr_set_d(r15380, a, MPFR_RNDN);
        mpfr_atan(r15381, r15380, MPFR_RNDN);
        mpfr_sqrt(r15382, r15381, MPFR_RNDN);
        mpfr_sqrt(r15383, r15382, MPFR_RNDN);
        mpfr_sqr(r15384, r15383, MPFR_RNDN);
        mpfr_set_d(r15385, b, MPFR_RNDN);
        mpfr_hypot(r15386, r15384, r15385, MPFR_RNDN);
        mpfr_set_d(r15387, c, MPFR_RNDN);
        mpfr_mul(r15388, r15387, r15380, MPFR_RNDN);
        mpfr_sub(r15389, r15386, r15388, MPFR_RNDN);
        return mpfr_get_d(r15389, MPFR_RNDN);
}

