#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 r15245 = a;
        float r15246 = atan(r15245);
        float r15247 = sqrt(r15246);
        float r15248 = b;
        float r15249 = hypot(r15247, r15248);
        float r15250 = c;
        float r15251 = r15250 * r15245;
        float r15252 = r15249 - r15251;
        return r15252;
}

double f_id(double a, double b, double c, double __attribute__((unused)) d) {
        double r15253 = a;
        double r15254 = atan(r15253);
        double r15255 = sqrt(r15254);
        double r15256 = b;
        double r15257 = hypot(r15255, r15256);
        double r15258 = c;
        double r15259 = r15258 * r15253;
        double r15260 = r15257 - r15259;
        return r15260;
}


double f_of(float a, float b, float c, float __attribute__((unused)) d) {
        float r15261 = a;
        float r15262 = atan(r15261);
        float r15263 = sqrt(r15262);
        float r15264 = b;
        float r15265 = hypot(r15263, r15264);
        float r15266 = c;
        float r15267 = r15266 * r15261;
        float r15268 = r15265 - r15267;
        return r15268;
}

double f_od(double a, double b, double c, double __attribute__((unused)) d) {
        double r15269 = a;
        double r15270 = atan(r15269);
        double r15271 = sqrt(r15270);
        double r15272 = b;
        double r15273 = hypot(r15271, r15272);
        double r15274 = c;
        double r15275 = r15274 * r15269;
        double r15276 = r15273 - r15275;
        return r15276;
}

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 r15277, r15278, r15279, r15280, r15281, r15282, r15283, r15284;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(144);
        mpfr_init(r15277);
        mpfr_init(r15278);
        mpfr_init(r15279);
        mpfr_init(r15280);
        mpfr_init(r15281);
        mpfr_init(r15282);
        mpfr_init(r15283);
        mpfr_init(r15284);
}

double f_im(double a, double b, double c, double __attribute__((unused)) d) {
        mpfr_set_d(r15277, a, MPFR_RNDN);
        mpfr_atan(r15278, r15277, MPFR_RNDN);
        mpfr_sqrt(r15279, r15278, MPFR_RNDN);
        mpfr_set_d(r15280, b, MPFR_RNDN);
        mpfr_hypot(r15281, r15279, r15280, MPFR_RNDN);
        mpfr_set_d(r15282, c, MPFR_RNDN);
        mpfr_mul(r15283, r15282, r15277, MPFR_RNDN);
        mpfr_sub(r15284, r15281, r15283, MPFR_RNDN);
        return mpfr_get_d(r15284, MPFR_RNDN);
}

static mpfr_t r15285, r15286, r15287, r15288, r15289, r15290, r15291, r15292;

void setup_mpfr_f_fm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15285);
        mpfr_init(r15286);
        mpfr_init(r15287);
        mpfr_init(r15288);
        mpfr_init(r15289);
        mpfr_init(r15290);
        mpfr_init(r15291);
        mpfr_init(r15292);
}

double f_fm(double a, double b, double c, double __attribute__((unused)) d) {
        mpfr_set_d(r15285, a, MPFR_RNDN);
        mpfr_atan(r15286, r15285, MPFR_RNDN);
        mpfr_sqrt(r15287, r15286, MPFR_RNDN);
        mpfr_set_d(r15288, b, MPFR_RNDN);
        mpfr_hypot(r15289, r15287, r15288, MPFR_RNDN);
        mpfr_set_d(r15290, c, MPFR_RNDN);
        mpfr_mul(r15291, r15290, r15285, MPFR_RNDN);
        mpfr_sub(r15292, r15289, r15291, MPFR_RNDN);
        return mpfr_get_d(r15292, MPFR_RNDN);
}

static mpfr_t r15293, r15294, r15295, r15296, r15297, r15298, r15299, r15300;

void setup_mpfr_f_dm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15293);
        mpfr_init(r15294);
        mpfr_init(r15295);
        mpfr_init(r15296);
        mpfr_init(r15297);
        mpfr_init(r15298);
        mpfr_init(r15299);
        mpfr_init(r15300);
}

double f_dm(double a, double b, double c, double __attribute__((unused)) d) {
        mpfr_set_d(r15293, a, MPFR_RNDN);
        mpfr_atan(r15294, r15293, MPFR_RNDN);
        mpfr_sqrt(r15295, r15294, MPFR_RNDN);
        mpfr_set_d(r15296, b, MPFR_RNDN);
        mpfr_hypot(r15297, r15295, r15296, MPFR_RNDN);
        mpfr_set_d(r15298, c, MPFR_RNDN);
        mpfr_mul(r15299, r15298, r15293, MPFR_RNDN);
        mpfr_sub(r15300, r15297, r15299, MPFR_RNDN);
        return mpfr_get_d(r15300, MPFR_RNDN);
}

