#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 r14763 = a;
        float r14764 = log1p(r14763);
        float r14765 = tan(r14764);
        float r14766 = sinh(r14763);
        float r14767 = pow(r14763, r14766);
        float r14768 = log(r14767);
        float r14769 = pow(r14765, r14768);
        return r14769;
}

double f_id(double a, double __attribute__((unused)) b, double __attribute__((unused)) c) {
        double r14770 = a;
        double r14771 = log1p(r14770);
        double r14772 = tan(r14771);
        double r14773 = sinh(r14770);
        double r14774 = pow(r14770, r14773);
        double r14775 = log(r14774);
        double r14776 = pow(r14772, r14775);
        return r14776;
}


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

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

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 r14795, r14796, r14797, r14798, r14799, r14800, r14801;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(144);
        mpfr_init(r14795);
        mpfr_init(r14796);
        mpfr_init(r14797);
        mpfr_init(r14798);
        mpfr_init(r14799);
        mpfr_init(r14800);
        mpfr_init(r14801);
}

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

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

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

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

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

void setup_mpfr_f_dm() {
        mpfr_set_default_prec(144);
        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(r14811, a, MPFR_RNDN);
        mpfr_log1p(r14812, r14811, MPFR_RNDN);
        mpfr_tan(r14813, r14812, MPFR_RNDN);
        mpfr_sinh(r14814, r14811, MPFR_RNDN);
        mpfr_pow(r14815, r14811, r14814, MPFR_RNDN);
        mpfr_log(r14816, r14815, MPFR_RNDN);
        mpfr_cbrt(r14817, r14816, MPFR_RNDN);
        mpfr_mul(r14818, r14817, r14817, MPFR_RNDN); mpfr_mul(r14818, r14818, r14817, MPFR_RNDN);
        mpfr_pow(r14819, r14813, r14818, MPFR_RNDN);
        return mpfr_get_d(r14819, MPFR_RNDN);
}

