#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 = log(r14769);
        float r14773 = sinh(r14769);
        float r14774 = r14772 * r14773;
        float r14775 = pow(r14771, r14774);
        return r14775;
}

double f_od(double a, double __attribute__((unused)) b, double __attribute__((unused)) c) {
        double r14776 = a;
        double r14777 = log1p(r14776);
        double r14778 = tan(r14777);
        double r14779 = log(r14776);
        double r14780 = sinh(r14776);
        double r14781 = r14779 * r14780;
        double r14782 = pow(r14778, r14781);
        return r14782;
}

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 r14783, r14784, r14785, r14786, r14787, r14788, r14789;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(144);
        mpfr_init(r14783);
        mpfr_init(r14784);
        mpfr_init(r14785);
        mpfr_init(r14786);
        mpfr_init(r14787);
        mpfr_init(r14788);
        mpfr_init(r14789);
}

double f_im(double a, double __attribute__((unused)) b, double __attribute__((unused)) c) {
        mpfr_set_d(r14783, a, MPFR_RNDN);
        mpfr_log1p(r14784, r14783, MPFR_RNDN);
        mpfr_tan(r14785, r14784, MPFR_RNDN);
        mpfr_sinh(r14786, r14783, MPFR_RNDN);
        mpfr_pow(r14787, r14783, r14786, MPFR_RNDN);
        mpfr_log(r14788, r14787, MPFR_RNDN);
        mpfr_pow(r14789, r14785, r14788, MPFR_RNDN);
        return mpfr_get_d(r14789, MPFR_RNDN);
}

static mpfr_t r14790, r14791, r14792, r14793, r14794, r14795, r14796;

void setup_mpfr_f_fm() {
        mpfr_set_default_prec(144);
        mpfr_init(r14790);
        mpfr_init(r14791);
        mpfr_init(r14792);
        mpfr_init(r14793);
        mpfr_init(r14794);
        mpfr_init(r14795);
        mpfr_init(r14796);
}

double f_fm(double a, double __attribute__((unused)) b, double __attribute__((unused)) c) {
        mpfr_set_d(r14790, a, MPFR_RNDN);
        mpfr_log1p(r14791, r14790, MPFR_RNDN);
        mpfr_tan(r14792, r14791, MPFR_RNDN);
        mpfr_log(r14793, r14790, MPFR_RNDN);
        mpfr_sinh(r14794, r14790, MPFR_RNDN);
        mpfr_mul(r14795, r14793, r14794, MPFR_RNDN);
        mpfr_pow(r14796, r14792, r14795, MPFR_RNDN);
        return mpfr_get_d(r14796, MPFR_RNDN);
}

static mpfr_t r14797, r14798, r14799, r14800, r14801, r14802, r14803;

void setup_mpfr_f_dm() {
        mpfr_set_default_prec(144);
        mpfr_init(r14797);
        mpfr_init(r14798);
        mpfr_init(r14799);
        mpfr_init(r14800);
        mpfr_init(r14801);
        mpfr_init(r14802);
        mpfr_init(r14803);
}

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

