#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 r15289 = a;
        float r15290 = atan(r15289);
        float r15291 = sqrt(r15290);
        float r15292 = b;
        float r15293 = hypot(r15291, r15292);
        float r15294 = c;
        float r15295 = r15294 * r15289;
        float r15296 = r15293 - r15295;
        return r15296;
}

double f_id(double a, double b, double c, double __attribute__((unused)) d) {
        double r15297 = a;
        double r15298 = atan(r15297);
        double r15299 = sqrt(r15298);
        double r15300 = b;
        double r15301 = hypot(r15299, r15300);
        double r15302 = c;
        double r15303 = r15302 * r15297;
        double r15304 = r15301 - r15303;
        return r15304;
}


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

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

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 r15325, r15326, r15327, r15328, r15329, r15330, r15331, r15332;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(144);
        mpfr_init(r15325);
        mpfr_init(r15326);
        mpfr_init(r15327);
        mpfr_init(r15328);
        mpfr_init(r15329);
        mpfr_init(r15330);
        mpfr_init(r15331);
        mpfr_init(r15332);
}

double f_im(double a, double b, double c, double __attribute__((unused)) d) {
        mpfr_set_d(r15325, a, MPFR_RNDN);
        mpfr_atan(r15326, r15325, MPFR_RNDN);
        mpfr_sqrt(r15327, r15326, MPFR_RNDN);
        mpfr_set_d(r15328, b, MPFR_RNDN);
        mpfr_hypot(r15329, r15327, r15328, MPFR_RNDN);
        mpfr_set_d(r15330, c, MPFR_RNDN);
        mpfr_mul(r15331, r15330, r15325, MPFR_RNDN);
        mpfr_sub(r15332, r15329, r15331, MPFR_RNDN);
        return mpfr_get_d(r15332, MPFR_RNDN);
}

static mpfr_t r15333, r15334, r15335, r15336, r15337, r15338, r15339, r15340, r15341, r15342;

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

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

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

void setup_mpfr_f_dm() {
        mpfr_set_default_prec(144);
        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);
        mpfr_init(r15352);
}

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

