#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 r14755 = a;
        float r14756 = log1p(r14755);
        float r14757 = tan(r14756);
        float r14758 = sinh(r14755);
        float r14759 = pow(r14755, r14758);
        float r14760 = log(r14759);
        float r14761 = pow(r14757, r14760);
        return r14761;
}

double f_id(double a, double __attribute__((unused)) b, double __attribute__((unused)) c) {
        double r14762 = a;
        double r14763 = log1p(r14762);
        double r14764 = tan(r14763);
        double r14765 = sinh(r14762);
        double r14766 = pow(r14762, r14765);
        double r14767 = log(r14766);
        double r14768 = pow(r14764, r14767);
        return r14768;
}


double f_of(float a, float __attribute__((unused)) b, float __attribute__((unused)) c) {
        float r14769 = a;
        float r14770 = log1p(r14769);
        float r14771 = tan(r14770);
        float r14772 = sinh(r14769);
        float r14773 = pow(r14769, r14772);
        float r14774 = log(r14773);
        float r14775 = cbrt(r14774);
        float r14776 = r14775 * (r14775 * r14775);
        float r14777 = pow(r14771, r14776);
        return r14777;
}

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

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 r14787, r14788, r14789, r14790, r14791, r14792, r14793;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(144);
        mpfr_init(r14787);
        mpfr_init(r14788);
        mpfr_init(r14789);
        mpfr_init(r14790);
        mpfr_init(r14791);
        mpfr_init(r14792);
        mpfr_init(r14793);
}

double f_im(double a, double __attribute__((unused)) b, double __attribute__((unused)) c) {
        mpfr_set_d(r14787, a, MPFR_RNDN);
        mpfr_log1p(r14788, r14787, MPFR_RNDN);
        mpfr_tan(r14789, r14788, MPFR_RNDN);
        mpfr_sinh(r14790, r14787, MPFR_RNDN);
        mpfr_pow(r14791, r14787, r14790, MPFR_RNDN);
        mpfr_log(r14792, r14791, MPFR_RNDN);
        mpfr_pow(r14793, r14789, r14792, MPFR_RNDN);
        return mpfr_get_d(r14793, MPFR_RNDN);
}

static mpfr_t r14794, r14795, r14796, r14797, r14798, r14799, r14800, r14801, r14802;

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

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

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

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

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

