#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 r15298 = a;
        float r15299 = atan(r15298);
        float r15300 = sqrt(r15299);
        float r15301 = b;
        float r15302 = hypot(r15300, r15301);
        float r15303 = c;
        float r15304 = r15303 * r15298;
        float r15305 = r15302 - r15304;
        return r15305;
}

double f_id(double a, double b, double c, double __attribute__((unused)) d) {
        double r15306 = a;
        double r15307 = atan(r15306);
        double r15308 = sqrt(r15307);
        double r15309 = b;
        double r15310 = hypot(r15308, r15309);
        double r15311 = c;
        double r15312 = r15311 * r15306;
        double r15313 = r15310 - r15312;
        return r15313;
}


double f_of(float a, float b, float c, float __attribute__((unused)) d) {
        float r15314 = a;
        float r15315 = atan(r15314);
        float r15316 = sqrt(r15315);
        float r15317 = sqrt(r15316);
        float r15318 = r15317 * r15317;
        float r15319 = b;
        float r15320 = hypot(r15318, r15319);
        float r15321 = c;
        float r15322 = r15321 * r15314;
        float r15323 = r15320 - r15322;
        return r15323;
}

double f_od(double a, double b, double c, double __attribute__((unused)) d) {
        double r15324 = a;
        double r15325 = atan(r15324);
        double r15326 = sqrt(r15325);
        double r15327 = sqrt(r15326);
        double r15328 = r15327 * r15327;
        double r15329 = b;
        double r15330 = hypot(r15328, r15329);
        double r15331 = c;
        double r15332 = r15331 * r15324;
        double r15333 = r15330 - r15332;
        return r15333;
}

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 r15334, r15335, r15336, r15337, r15338, r15339, r15340, r15341;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(144);
        mpfr_init(r15334);
        mpfr_init(r15335);
        mpfr_init(r15336);
        mpfr_init(r15337);
        mpfr_init(r15338);
        mpfr_init(r15339);
        mpfr_init(r15340);
        mpfr_init(r15341);
}

double f_im(double a, double b, double c, double __attribute__((unused)) d) {
        mpfr_set_d(r15334, a, MPFR_RNDN);
        mpfr_atan(r15335, r15334, MPFR_RNDN);
        mpfr_sqrt(r15336, r15335, MPFR_RNDN);
        mpfr_set_d(r15337, b, MPFR_RNDN);
        mpfr_hypot(r15338, r15336, r15337, MPFR_RNDN);
        mpfr_set_d(r15339, c, MPFR_RNDN);
        mpfr_mul(r15340, r15339, r15334, MPFR_RNDN);
        mpfr_sub(r15341, r15338, r15340, MPFR_RNDN);
        return mpfr_get_d(r15341, MPFR_RNDN);
}

static mpfr_t r15342, r15343, r15344, r15345, r15346, r15347, r15348, r15349, r15350, r15351;

void setup_mpfr_f_fm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15342);
        mpfr_init(r15343);
        mpfr_init(r15344);
        mpfr_init(r15345);
        mpfr_init(r15346);
        mpfr_init(r15347);
        mpfr_init(r15348);
        mpfr_init(r15349);
        mpfr_init(r15350);
        mpfr_init(r15351);
}

double f_fm(double a, double b, double c, double __attribute__((unused)) d) {
        mpfr_set_d(r15342, a, MPFR_RNDN);
        mpfr_atan(r15343, r15342, MPFR_RNDN);
        mpfr_sqrt(r15344, r15343, MPFR_RNDN);
        mpfr_sqrt(r15345, r15344, MPFR_RNDN);
        mpfr_sqr(r15346, r15345, MPFR_RNDN);
        mpfr_set_d(r15347, b, MPFR_RNDN);
        mpfr_hypot(r15348, r15346, r15347, MPFR_RNDN);
        mpfr_set_d(r15349, c, MPFR_RNDN);
        mpfr_mul(r15350, r15349, r15342, MPFR_RNDN);
        mpfr_sub(r15351, r15348, r15350, MPFR_RNDN);
        return mpfr_get_d(r15351, MPFR_RNDN);
}

static mpfr_t r15352, r15353, r15354, r15355, r15356, r15357, r15358, r15359, r15360, r15361;

void setup_mpfr_f_dm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15352);
        mpfr_init(r15353);
        mpfr_init(r15354);
        mpfr_init(r15355);
        mpfr_init(r15356);
        mpfr_init(r15357);
        mpfr_init(r15358);
        mpfr_init(r15359);
        mpfr_init(r15360);
        mpfr_init(r15361);
}

double f_dm(double a, double b, double c, double __attribute__((unused)) d) {
        mpfr_set_d(r15352, a, MPFR_RNDN);
        mpfr_atan(r15353, r15352, MPFR_RNDN);
        mpfr_sqrt(r15354, r15353, MPFR_RNDN);
        mpfr_sqrt(r15355, r15354, MPFR_RNDN);
        mpfr_sqr(r15356, r15355, MPFR_RNDN);
        mpfr_set_d(r15357, b, MPFR_RNDN);
        mpfr_hypot(r15358, r15356, r15357, MPFR_RNDN);
        mpfr_set_d(r15359, c, MPFR_RNDN);
        mpfr_mul(r15360, r15359, r15352, MPFR_RNDN);
        mpfr_sub(r15361, r15358, r15360, MPFR_RNDN);
        return mpfr_get_d(r15361, MPFR_RNDN);
}

