#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 r14795 = a;
        float r14796 = log1p(r14795);
        float r14797 = tan(r14796);
        float r14798 = sinh(r14795);
        float r14799 = pow(r14795, r14798);
        float r14800 = log(r14799);
        float r14801 = pow(r14797, r14800);
        return r14801;
}

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


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

double f_od(double a, double __attribute__((unused)) b, double __attribute__((unused)) c) {
        double r14816 = a;
        double r14817 = log1p(r14816);
        double r14818 = tan(r14817);
        double r14819 = log(r14816);
        double r14820 = sinh(r14816);
        double r14821 = r14819 * r14820;
        double r14822 = pow(r14818, r14821);
        return r14822;
}

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 r14823, r14824, r14825, r14826, r14827, r14828, r14829;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(144);
        mpfr_init(r14823);
        mpfr_init(r14824);
        mpfr_init(r14825);
        mpfr_init(r14826);
        mpfr_init(r14827);
        mpfr_init(r14828);
        mpfr_init(r14829);
}

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

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

void setup_mpfr_f_fm() {
        mpfr_set_default_prec(144);
        mpfr_init(r14830);
        mpfr_init(r14831);
        mpfr_init(r14832);
        mpfr_init(r14833);
        mpfr_init(r14834);
        mpfr_init(r14835);
        mpfr_init(r14836);
}

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

static mpfr_t r14837, r14838, r14839, r14840, r14841, r14842, r14843;

void setup_mpfr_f_dm() {
        mpfr_set_default_prec(144);
        mpfr_init(r14837);
        mpfr_init(r14838);
        mpfr_init(r14839);
        mpfr_init(r14840);
        mpfr_init(r14841);
        mpfr_init(r14842);
        mpfr_init(r14843);
}

double f_dm(double a, double __attribute__((unused)) b, double __attribute__((unused)) c) {
        mpfr_set_d(r14837, a, MPFR_RNDN);
        mpfr_log1p(r14838, r14837, MPFR_RNDN);
        mpfr_tan(r14839, r14838, MPFR_RNDN);
        mpfr_log(r14840, r14837, MPFR_RNDN);
        mpfr_sinh(r14841, r14837, MPFR_RNDN);
        mpfr_mul(r14842, r14840, r14841, MPFR_RNDN);
        mpfr_pow(r14843, r14839, r14842, MPFR_RNDN);
        return mpfr_get_d(r14843, MPFR_RNDN);
}

