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

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


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

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

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 r15274, r15275, r15276, r15277, r15278, r15279, r15280, r15281;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(144);
        mpfr_init(r15274);
        mpfr_init(r15275);
        mpfr_init(r15276);
        mpfr_init(r15277);
        mpfr_init(r15278);
        mpfr_init(r15279);
        mpfr_init(r15280);
        mpfr_init(r15281);
}

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

static mpfr_t r15282, r15283, r15284, r15285, r15286, r15287, r15288, r15289;

void setup_mpfr_f_fm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15282);
        mpfr_init(r15283);
        mpfr_init(r15284);
        mpfr_init(r15285);
        mpfr_init(r15286);
        mpfr_init(r15287);
        mpfr_init(r15288);
        mpfr_init(r15289);
}

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

static mpfr_t r15290, r15291, r15292, r15293, r15294, r15295, r15296, r15297;

void setup_mpfr_f_dm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15290);
        mpfr_init(r15291);
        mpfr_init(r15292);
        mpfr_init(r15293);
        mpfr_init(r15294);
        mpfr_init(r15295);
        mpfr_init(r15296);
        mpfr_init(r15297);
}

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

