#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 r14807 = a;
        float r14808 = log1p(r14807);
        float r14809 = tan(r14808);
        float r14810 = sinh(r14807);
        float r14811 = pow(r14807, r14810);
        float r14812 = log(r14811);
        float r14813 = pow(r14809, r14812);
        return r14813;
}

double f_id(double a, double __attribute__((unused)) b, double __attribute__((unused)) c) {
        double r14814 = a;
        double r14815 = log1p(r14814);
        double r14816 = tan(r14815);
        double r14817 = sinh(r14814);
        double r14818 = pow(r14814, r14817);
        double r14819 = log(r14818);
        double r14820 = pow(r14816, r14819);
        return r14820;
}


double f_of(float a, float __attribute__((unused)) b, float __attribute__((unused)) c) {
        float r14821 = a;
        float r14822 = log1p(r14821);
        float r14823 = tan(r14822);
        float r14824 = log(r14821);
        float r14825 = sinh(r14821);
        float r14826 = r14824 * r14825;
        float r14827 = pow(r14823, r14826);
        return r14827;
}

double f_od(double a, double __attribute__((unused)) b, double __attribute__((unused)) c) {
        double r14828 = a;
        double r14829 = log1p(r14828);
        double r14830 = tan(r14829);
        double r14831 = log(r14828);
        double r14832 = sinh(r14828);
        double r14833 = r14831 * r14832;
        double r14834 = pow(r14830, r14833);
        return r14834;
}

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 r14835, r14836, r14837, r14838, r14839, r14840, r14841;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(144);
        mpfr_init(r14835);
        mpfr_init(r14836);
        mpfr_init(r14837);
        mpfr_init(r14838);
        mpfr_init(r14839);
        mpfr_init(r14840);
        mpfr_init(r14841);
}

double f_im(double a, double __attribute__((unused)) b, double __attribute__((unused)) c) {
        mpfr_set_d(r14835, a, MPFR_RNDN);
        mpfr_log1p(r14836, r14835, MPFR_RNDN);
        mpfr_tan(r14837, r14836, MPFR_RNDN);
        mpfr_sinh(r14838, r14835, MPFR_RNDN);
        mpfr_pow(r14839, r14835, r14838, MPFR_RNDN);
        mpfr_log(r14840, r14839, MPFR_RNDN);
        mpfr_pow(r14841, r14837, r14840, MPFR_RNDN);
        return mpfr_get_d(r14841, MPFR_RNDN);
}

static mpfr_t r14842, r14843, r14844, r14845, r14846, r14847, r14848;

void setup_mpfr_f_fm() {
        mpfr_set_default_prec(144);
        mpfr_init(r14842);
        mpfr_init(r14843);
        mpfr_init(r14844);
        mpfr_init(r14845);
        mpfr_init(r14846);
        mpfr_init(r14847);
        mpfr_init(r14848);
}

double f_fm(double a, double __attribute__((unused)) b, double __attribute__((unused)) c) {
        mpfr_set_d(r14842, a, MPFR_RNDN);
        mpfr_log1p(r14843, r14842, MPFR_RNDN);
        mpfr_tan(r14844, r14843, MPFR_RNDN);
        mpfr_log(r14845, r14842, MPFR_RNDN);
        mpfr_sinh(r14846, r14842, MPFR_RNDN);
        mpfr_mul(r14847, r14845, r14846, MPFR_RNDN);
        mpfr_pow(r14848, r14844, r14847, MPFR_RNDN);
        return mpfr_get_d(r14848, MPFR_RNDN);
}

static mpfr_t r14849, r14850, r14851, r14852, r14853, r14854, r14855;

void setup_mpfr_f_dm() {
        mpfr_set_default_prec(144);
        mpfr_init(r14849);
        mpfr_init(r14850);
        mpfr_init(r14851);
        mpfr_init(r14852);
        mpfr_init(r14853);
        mpfr_init(r14854);
        mpfr_init(r14855);
}

double f_dm(double a, double __attribute__((unused)) b, double __attribute__((unused)) c) {
        mpfr_set_d(r14849, a, MPFR_RNDN);
        mpfr_log1p(r14850, r14849, MPFR_RNDN);
        mpfr_tan(r14851, r14850, MPFR_RNDN);
        mpfr_log(r14852, r14849, MPFR_RNDN);
        mpfr_sinh(r14853, r14849, MPFR_RNDN);
        mpfr_mul(r14854, r14852, r14853, MPFR_RNDN);
        mpfr_pow(r14855, r14851, r14854, MPFR_RNDN);
        return mpfr_get_d(r14855, MPFR_RNDN);
}

