#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 r14751 = a;
        float r14752 = log1p(r14751);
        float r14753 = tan(r14752);
        float r14754 = sinh(r14751);
        float r14755 = pow(r14751, r14754);
        float r14756 = log(r14755);
        float r14757 = pow(r14753, r14756);
        return r14757;
}

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


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

double f_od(double a, double __attribute__((unused)) b, double __attribute__((unused)) c) {
        double r14772 = a;
        double r14773 = log1p(r14772);
        double r14774 = tan(r14773);
        double r14775 = log(r14772);
        double r14776 = sinh(r14772);
        double r14777 = r14775 * r14776;
        double r14778 = pow(r14774, r14777);
        return r14778;
}

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 r14779, r14780, r14781, r14782, r14783, r14784, r14785;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(144);
        mpfr_init(r14779);
        mpfr_init(r14780);
        mpfr_init(r14781);
        mpfr_init(r14782);
        mpfr_init(r14783);
        mpfr_init(r14784);
        mpfr_init(r14785);
}

double f_im(double a, double __attribute__((unused)) b, double __attribute__((unused)) c) {
        mpfr_set_d(r14779, a, MPFR_RNDN);
        mpfr_log1p(r14780, r14779, MPFR_RNDN);
        mpfr_tan(r14781, r14780, MPFR_RNDN);
        mpfr_sinh(r14782, r14779, MPFR_RNDN);
        mpfr_pow(r14783, r14779, r14782, MPFR_RNDN);
        mpfr_log(r14784, r14783, MPFR_RNDN);
        mpfr_pow(r14785, r14781, r14784, MPFR_RNDN);
        return mpfr_get_d(r14785, MPFR_RNDN);
}

static mpfr_t r14786, r14787, r14788, r14789, r14790, r14791, r14792;

void setup_mpfr_f_fm() {
        mpfr_set_default_prec(144);
        mpfr_init(r14786);
        mpfr_init(r14787);
        mpfr_init(r14788);
        mpfr_init(r14789);
        mpfr_init(r14790);
        mpfr_init(r14791);
        mpfr_init(r14792);
}

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

static mpfr_t r14793, r14794, r14795, r14796, r14797, r14798, r14799;

void setup_mpfr_f_dm() {
        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_dm(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_log(r14796, r14793, MPFR_RNDN);
        mpfr_sinh(r14797, r14793, MPFR_RNDN);
        mpfr_mul(r14798, r14796, r14797, MPFR_RNDN);
        mpfr_pow(r14799, r14795, r14798, MPFR_RNDN);
        return mpfr_get_d(r14799, MPFR_RNDN);
}

