#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 r15333 = a;
        float r15334 = atan(r15333);
        float r15335 = sqrt(r15334);
        float r15336 = b;
        float r15337 = hypot(r15335, r15336);
        float r15338 = c;
        float r15339 = r15338 * r15333;
        float r15340 = r15337 - r15339;
        return r15340;
}

double f_id(double a, double b, double c, double __attribute__((unused)) d) {
        double r15341 = a;
        double r15342 = atan(r15341);
        double r15343 = sqrt(r15342);
        double r15344 = b;
        double r15345 = hypot(r15343, r15344);
        double r15346 = c;
        double r15347 = r15346 * r15341;
        double r15348 = r15345 - r15347;
        return r15348;
}


double f_of(float a, float b, float c, float __attribute__((unused)) d) {
        float r15349 = a;
        float r15350 = atan(r15349);
        float r15351 = sqrt(r15350);
        float r15352 = b;
        float r15353 = hypot(r15351, r15352);
        float r15354 = c;
        float r15355 = r15354 * r15349;
        float r15356 = r15353 - r15355;
        return r15356;
}

double f_od(double a, double b, double c, double __attribute__((unused)) d) {
        double r15357 = a;
        double r15358 = atan(r15357);
        double r15359 = sqrt(r15358);
        double r15360 = b;
        double r15361 = hypot(r15359, r15360);
        double r15362 = c;
        double r15363 = r15362 * r15357;
        double r15364 = r15361 - r15363;
        return r15364;
}

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 r15365, r15366, r15367, r15368, r15369, r15370, r15371, r15372;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(144);
        mpfr_init(r15365);
        mpfr_init(r15366);
        mpfr_init(r15367);
        mpfr_init(r15368);
        mpfr_init(r15369);
        mpfr_init(r15370);
        mpfr_init(r15371);
        mpfr_init(r15372);
}

double f_im(double a, double b, double c, double __attribute__((unused)) d) {
        mpfr_set_d(r15365, a, MPFR_RNDN);
        mpfr_atan(r15366, r15365, MPFR_RNDN);
        mpfr_sqrt(r15367, r15366, MPFR_RNDN);
        mpfr_set_d(r15368, b, MPFR_RNDN);
        mpfr_hypot(r15369, r15367, r15368, MPFR_RNDN);
        mpfr_set_d(r15370, c, MPFR_RNDN);
        mpfr_mul(r15371, r15370, r15365, MPFR_RNDN);
        mpfr_sub(r15372, r15369, r15371, MPFR_RNDN);
        return mpfr_get_d(r15372, MPFR_RNDN);
}

static mpfr_t r15373, r15374, r15375, r15376, r15377, r15378, r15379, r15380;

void setup_mpfr_f_fm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15373);
        mpfr_init(r15374);
        mpfr_init(r15375);
        mpfr_init(r15376);
        mpfr_init(r15377);
        mpfr_init(r15378);
        mpfr_init(r15379);
        mpfr_init(r15380);
}

double f_fm(double a, double b, double c, double __attribute__((unused)) d) {
        mpfr_set_d(r15373, a, MPFR_RNDN);
        mpfr_atan(r15374, r15373, MPFR_RNDN);
        mpfr_sqrt(r15375, r15374, MPFR_RNDN);
        mpfr_set_d(r15376, b, MPFR_RNDN);
        mpfr_hypot(r15377, r15375, r15376, MPFR_RNDN);
        mpfr_set_d(r15378, c, MPFR_RNDN);
        mpfr_mul(r15379, r15378, r15373, MPFR_RNDN);
        mpfr_sub(r15380, r15377, r15379, MPFR_RNDN);
        return mpfr_get_d(r15380, MPFR_RNDN);
}

static mpfr_t r15381, r15382, r15383, r15384, r15385, r15386, r15387, r15388;

void setup_mpfr_f_dm() {
        mpfr_set_default_prec(144);
        mpfr_init(r15381);
        mpfr_init(r15382);
        mpfr_init(r15383);
        mpfr_init(r15384);
        mpfr_init(r15385);
        mpfr_init(r15386);
        mpfr_init(r15387);
        mpfr_init(r15388);
}

double f_dm(double a, double b, double c, double __attribute__((unused)) d) {
        mpfr_set_d(r15381, a, MPFR_RNDN);
        mpfr_atan(r15382, r15381, MPFR_RNDN);
        mpfr_sqrt(r15383, r15382, MPFR_RNDN);
        mpfr_set_d(r15384, b, MPFR_RNDN);
        mpfr_hypot(r15385, r15383, r15384, MPFR_RNDN);
        mpfr_set_d(r15386, c, MPFR_RNDN);
        mpfr_mul(r15387, r15386, r15381, MPFR_RNDN);
        mpfr_sub(r15388, r15385, r15387, MPFR_RNDN);
        return mpfr_get_d(r15388, MPFR_RNDN);
}

