#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 r15226 = a;
        float r15227 = atan(r15226);
        float r15228 = sqrt(r15227);
        float r15229 = b;
        float r15230 = hypot(r15228, r15229);
        float r15231 = c;
        float r15232 = r15231 * r15226;
        float r15233 = r15230 - r15232;
        return r15233;
}

double f_id(double a, double b, double c, double __attribute__((unused)) d) {
        double r15234 = a;
        double r15235 = atan(r15234);
        double r15236 = sqrt(r15235);
        double r15237 = b;
        double r15238 = hypot(r15236, r15237);
        double r15239 = c;
        double r15240 = r15239 * r15234;
        double r15241 = r15238 - r15240;
        return r15241;
}


double f_of(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_od(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;
}

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 r15258, r15259, r15260, r15261, r15262, r15263, r15264, r15265;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(144);
        mpfr_init(r15258);
        mpfr_init(r15259);
        mpfr_init(r15260);
        mpfr_init(r15261);
        mpfr_init(r15262);
        mpfr_init(r15263);
        mpfr_init(r15264);
        mpfr_init(r15265);
}

double f_im(double a, double b, double c, double __attribute__((unused)) d) {
        mpfr_set_d(r15258, a, MPFR_RNDN);
        mpfr_atan(r15259, r15258, MPFR_RNDN);
        mpfr_sqrt(r15260, r15259, MPFR_RNDN);
        mpfr_set_d(r15261, b, MPFR_RNDN);
        mpfr_hypot(r15262, r15260, r15261, MPFR_RNDN);
        mpfr_set_d(r15263, c, MPFR_RNDN);
        mpfr_mul(r15264, r15263, r15258, MPFR_RNDN);
        mpfr_sub(r15265, r15262, r15264, MPFR_RNDN);
        return mpfr_get_d(r15265, MPFR_RNDN);
}

static mpfr_t r15266, r15267, r15268, r15269, r15270, r15271, r15272, r15273;

void setup_mpfr_f_fm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15266);
        mpfr_init(r15267);
        mpfr_init(r15268);
        mpfr_init(r15269);
        mpfr_init(r15270);
        mpfr_init(r15271);
        mpfr_init(r15272);
        mpfr_init(r15273);
}

double f_fm(double a, double b, double c, double __attribute__((unused)) d) {
        mpfr_set_d(r15266, a, MPFR_RNDN);
        mpfr_atan(r15267, r15266, MPFR_RNDN);
        mpfr_sqrt(r15268, r15267, MPFR_RNDN);
        mpfr_set_d(r15269, b, MPFR_RNDN);
        mpfr_hypot(r15270, r15268, r15269, MPFR_RNDN);
        mpfr_set_d(r15271, c, MPFR_RNDN);
        mpfr_mul(r15272, r15271, r15266, MPFR_RNDN);
        mpfr_sub(r15273, r15270, r15272, MPFR_RNDN);
        return mpfr_get_d(r15273, MPFR_RNDN);
}

static mpfr_t r15274, r15275, r15276, r15277, r15278, r15279, r15280, r15281;

void setup_mpfr_f_dm() {
        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_dm(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);
}

