#include <tgmath.h>
#include <gmp.h>
#include <mpfr.h>
#include <stdio.h>
#include <stdbool.h>

char *name = "Commute and associate";

double f_if(float x, float y, float z) {
        float r19803 = x;
        float r19804 = y;
        float r19805 = r19803 + r19804;
        float r19806 = z;
        float r19807 = r19805 + r19806;
        float r19808 = r19804 + r19806;
        float r19809 = r19803 + r19808;
        float r19810 = r19807 - r19809;
        return r19810;
}

double f_id(double x, double y, double z) {
        double r19811 = x;
        double r19812 = y;
        double r19813 = r19811 + r19812;
        double r19814 = z;
        double r19815 = r19813 + r19814;
        double r19816 = r19812 + r19814;
        double r19817 = r19811 + r19816;
        double r19818 = r19815 - r19817;
        return r19818;
}


double f_of(float __attribute__((unused)) x, float __attribute__((unused)) y, float __attribute__((unused)) z) {
        float r19819 = 0;
        return r19819;
}

double f_od(double __attribute__((unused)) x, double __attribute__((unused)) y, double __attribute__((unused)) z) {
        double r19820 = 0;
        return r19820;
}

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 r19821, r19822, r19823, r19824, r19825, r19826, r19827, r19828;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(2448);
        mpfr_init(r19821);
        mpfr_init(r19822);
        mpfr_init(r19823);
        mpfr_init(r19824);
        mpfr_init(r19825);
        mpfr_init(r19826);
        mpfr_init(r19827);
        mpfr_init(r19828);
}

double f_im(double x, double y, double z) {
        mpfr_set_d(r19821, x, MPFR_RNDN);
        mpfr_set_d(r19822, y, MPFR_RNDN);
        mpfr_add(r19823, r19821, r19822, MPFR_RNDN);
        mpfr_set_d(r19824, z, MPFR_RNDN);
        mpfr_add(r19825, r19823, r19824, MPFR_RNDN);
        mpfr_add(r19826, r19822, r19824, MPFR_RNDN);
        mpfr_add(r19827, r19821, r19826, MPFR_RNDN);
        mpfr_sub(r19828, r19825, r19827, MPFR_RNDN);
        return mpfr_get_d(r19828, MPFR_RNDN);
}

static mpfr_t r19829;

void setup_mpfr_f_fm() {
        mpfr_set_default_prec(2448);
        mpfr_init_set_str(r19829, "0", 10, MPFR_RNDN);
}

double f_fm(double __attribute__((unused)) x, double __attribute__((unused)) y, double __attribute__((unused)) z) {
        ;
        return mpfr_get_d(r19829, MPFR_RNDN);
}

static mpfr_t r19830;

void setup_mpfr_f_dm() {
        mpfr_set_default_prec(2448);
        mpfr_init_set_str(r19830, "0", 10, MPFR_RNDN);
}

double f_dm(double __attribute__((unused)) x, double __attribute__((unused)) y, double __attribute__((unused)) z) {
        ;
        return mpfr_get_d(r19830, MPFR_RNDN);
}

