#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 r14787 = a;
        float r14788 = log1p(r14787);
        float r14789 = tan(r14788);
        float r14790 = sinh(r14787);
        float r14791 = pow(r14787, r14790);
        float r14792 = log(r14791);
        float r14793 = pow(r14789, r14792);
        return r14793;
}

double f_id(double a, double __attribute__((unused)) b, double __attribute__((unused)) c) {
        double r14794 = a;
        double r14795 = log1p(r14794);
        double r14796 = tan(r14795);
        double r14797 = sinh(r14794);
        double r14798 = pow(r14794, r14797);
        double r14799 = log(r14798);
        double r14800 = pow(r14796, r14799);
        return r14800;
}


double f_of(float a, float __attribute__((unused)) b, float __attribute__((unused)) c) {
        float r14801 = a;
        float r14802 = log1p(r14801);
        float r14803 = tan(r14802);
        float r14804 = log(r14801);
        float r14805 = sinh(r14801);
        float r14806 = r14804 * r14805;
        float r14807 = pow(r14803, r14806);
        return r14807;
}

double f_od(double a, double __attribute__((unused)) b, double __attribute__((unused)) c) {
        double r14808 = a;
        double r14809 = log1p(r14808);
        double r14810 = tan(r14809);
        double r14811 = log(r14808);
        double r14812 = sinh(r14808);
        double r14813 = r14811 * r14812;
        double r14814 = pow(r14810, r14813);
        return r14814;
}

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 r14815, r14816, r14817, r14818, r14819, r14820, r14821;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(144);
        mpfr_init(r14815);
        mpfr_init(r14816);
        mpfr_init(r14817);
        mpfr_init(r14818);
        mpfr_init(r14819);
        mpfr_init(r14820);
        mpfr_init(r14821);
}

double f_im(double a, double __attribute__((unused)) b, double __attribute__((unused)) c) {
        mpfr_set_d(r14815, a, MPFR_RNDN);
        mpfr_log1p(r14816, r14815, MPFR_RNDN);
        mpfr_tan(r14817, r14816, MPFR_RNDN);
        mpfr_sinh(r14818, r14815, MPFR_RNDN);
        mpfr_pow(r14819, r14815, r14818, MPFR_RNDN);
        mpfr_log(r14820, r14819, MPFR_RNDN);
        mpfr_pow(r14821, r14817, r14820, MPFR_RNDN);
        return mpfr_get_d(r14821, MPFR_RNDN);
}

static mpfr_t r14822, r14823, r14824, r14825, r14826, r14827, r14828;

void setup_mpfr_f_fm() {
        mpfr_set_default_prec(144);
        mpfr_init(r14822);
        mpfr_init(r14823);
        mpfr_init(r14824);
        mpfr_init(r14825);
        mpfr_init(r14826);
        mpfr_init(r14827);
        mpfr_init(r14828);
}

double f_fm(double a, double __attribute__((unused)) b, double __attribute__((unused)) c) {
        mpfr_set_d(r14822, a, MPFR_RNDN);
        mpfr_log1p(r14823, r14822, MPFR_RNDN);
        mpfr_tan(r14824, r14823, MPFR_RNDN);
        mpfr_log(r14825, r14822, MPFR_RNDN);
        mpfr_sinh(r14826, r14822, MPFR_RNDN);
        mpfr_mul(r14827, r14825, r14826, MPFR_RNDN);
        mpfr_pow(r14828, r14824, r14827, MPFR_RNDN);
        return mpfr_get_d(r14828, MPFR_RNDN);
}

static mpfr_t r14829, r14830, r14831, r14832, r14833, r14834, r14835;

void setup_mpfr_f_dm() {
        mpfr_set_default_prec(144);
        mpfr_init(r14829);
        mpfr_init(r14830);
        mpfr_init(r14831);
        mpfr_init(r14832);
        mpfr_init(r14833);
        mpfr_init(r14834);
        mpfr_init(r14835);
}

double f_dm(double a, double __attribute__((unused)) b, double __attribute__((unused)) c) {
        mpfr_set_d(r14829, a, MPFR_RNDN);
        mpfr_log1p(r14830, r14829, MPFR_RNDN);
        mpfr_tan(r14831, r14830, MPFR_RNDN);
        mpfr_log(r14832, r14829, MPFR_RNDN);
        mpfr_sinh(r14833, r14829, MPFR_RNDN);
        mpfr_mul(r14834, r14832, r14833, MPFR_RNDN);
        mpfr_pow(r14835, r14831, r14834, MPFR_RNDN);
        return mpfr_get_d(r14835, MPFR_RNDN);
}

