#include <tgmath.h>
#include <gmp.h>
#include <mpfr.h>
#include <stdio.h>
#include <stdbool.h>

char *name = "(pow (tan (log1p a)) (log (pow a (sinh a))))";

double f_if(float a, float __attribute__((unused)) b, float __attribute__((unused)) c) {
        float r14759 = a;
        float r14760 = log1p(r14759);
        float r14761 = tan(r14760);
        float r14762 = sinh(r14759);
        float r14763 = pow(r14759, r14762);
        float r14764 = log(r14763);
        float r14765 = pow(r14761, r14764);
        return r14765;
}

double f_id(double a, double __attribute__((unused)) b, double __attribute__((unused)) c) {
        double r14766 = a;
        double r14767 = log1p(r14766);
        double r14768 = tan(r14767);
        double r14769 = sinh(r14766);
        double r14770 = pow(r14766, r14769);
        double r14771 = log(r14770);
        double r14772 = pow(r14768, r14771);
        return r14772;
}


double f_of(float a, float __attribute__((unused)) b, float __attribute__((unused)) c) {
        float r14773 = a;
        float r14774 = log1p(r14773);
        float r14775 = tan(r14774);
        float r14776 = log(r14773);
        float r14777 = cbrt(r14776);
        float r14778 = sinh(r14773);
        float r14779 = cbrt(r14778);
        float r14780 = r14777 * r14779;
        float r14781 = r14780 * (r14780 * r14780);
        float r14782 = pow(r14775, r14781);
        return r14782;
}

double f_od(double a, double __attribute__((unused)) b, double __attribute__((unused)) c) {
        double r14783 = a;
        double r14784 = log1p(r14783);
        double r14785 = tan(r14784);
        double r14786 = log(r14783);
        double r14787 = cbrt(r14786);
        double r14788 = sinh(r14783);
        double r14789 = cbrt(r14788);
        double r14790 = r14787 * r14789;
        double r14791 = r14790 * (r14790 * r14790);
        double r14792 = pow(r14785, r14791);
        return r14792;
}

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 r14793, r14794, r14795, r14796, r14797, r14798, r14799;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(144);
        mpfr_init(r14793);
        mpfr_init(r14794);
        mpfr_init(r14795);
        mpfr_init(r14796);
        mpfr_init(r14797);
        mpfr_init(r14798);
        mpfr_init(r14799);
}

double f_im(double a, double __attribute__((unused)) b, double __attribute__((unused)) c) {
        mpfr_set_d(r14793, a, MPFR_RNDN);
        mpfr_log1p(r14794, r14793, MPFR_RNDN);
        mpfr_tan(r14795, r14794, MPFR_RNDN);
        mpfr_sinh(r14796, r14793, MPFR_RNDN);
        mpfr_pow(r14797, r14793, r14796, MPFR_RNDN);
        mpfr_log(r14798, r14797, MPFR_RNDN);
        mpfr_pow(r14799, r14795, r14798, MPFR_RNDN);
        return mpfr_get_d(r14799, MPFR_RNDN);
}

static mpfr_t r14800, r14801, r14802, r14803, r14804, r14805, r14806, r14807, r14808, r14809;

void setup_mpfr_f_fm() {
        mpfr_set_default_prec(144);
        mpfr_init(r14800);
        mpfr_init(r14801);
        mpfr_init(r14802);
        mpfr_init(r14803);
        mpfr_init(r14804);
        mpfr_init(r14805);
        mpfr_init(r14806);
        mpfr_init(r14807);
        mpfr_init(r14808);
        mpfr_init(r14809);
}

double f_fm(double a, double __attribute__((unused)) b, double __attribute__((unused)) c) {
        mpfr_set_d(r14800, a, MPFR_RNDN);
        mpfr_log1p(r14801, r14800, MPFR_RNDN);
        mpfr_tan(r14802, r14801, MPFR_RNDN);
        mpfr_log(r14803, r14800, MPFR_RNDN);
        mpfr_cbrt(r14804, r14803, MPFR_RNDN);
        mpfr_sinh(r14805, r14800, MPFR_RNDN);
        mpfr_cbrt(r14806, r14805, MPFR_RNDN);
        mpfr_mul(r14807, r14804, r14806, MPFR_RNDN);
        mpfr_mul(r14808, r14807, r14807, MPFR_RNDN); mpfr_mul(r14808, r14808, r14807, MPFR_RNDN);
        mpfr_pow(r14809, r14802, r14808, MPFR_RNDN);
        return mpfr_get_d(r14809, MPFR_RNDN);
}

static mpfr_t r14810, r14811, r14812, r14813, r14814, r14815, r14816, r14817, r14818, r14819;

void setup_mpfr_f_dm() {
        mpfr_set_default_prec(144);
        mpfr_init(r14810);
        mpfr_init(r14811);
        mpfr_init(r14812);
        mpfr_init(r14813);
        mpfr_init(r14814);
        mpfr_init(r14815);
        mpfr_init(r14816);
        mpfr_init(r14817);
        mpfr_init(r14818);
        mpfr_init(r14819);
}

double f_dm(double a, double __attribute__((unused)) b, double __attribute__((unused)) c) {
        mpfr_set_d(r14810, a, MPFR_RNDN);
        mpfr_log1p(r14811, r14810, MPFR_RNDN);
        mpfr_tan(r14812, r14811, MPFR_RNDN);
        mpfr_log(r14813, r14810, MPFR_RNDN);
        mpfr_cbrt(r14814, r14813, MPFR_RNDN);
        mpfr_sinh(r14815, r14810, MPFR_RNDN);
        mpfr_cbrt(r14816, r14815, MPFR_RNDN);
        mpfr_mul(r14817, r14814, r14816, MPFR_RNDN);
        mpfr_mul(r14818, r14817, r14817, MPFR_RNDN); mpfr_mul(r14818, r14818, r14817, MPFR_RNDN);
        mpfr_pow(r14819, r14812, r14818, MPFR_RNDN);
        return mpfr_get_d(r14819, MPFR_RNDN);
}

