#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 r19794 = x;
        float r19795 = y;
        float r19796 = r19794 + r19795;
        float r19797 = z;
        float r19798 = r19796 + r19797;
        float r19799 = r19795 + r19797;
        float r19800 = r19794 + r19799;
        float r19801 = r19798 - r19800;
        return r19801;
}

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


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

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

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 r19812, r19813, r19814, r19815, r19816, r19817, r19818, r19819;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(1936);
        mpfr_init(r19812);
        mpfr_init(r19813);
        mpfr_init(r19814);
        mpfr_init(r19815);
        mpfr_init(r19816);
        mpfr_init(r19817);
        mpfr_init(r19818);
        mpfr_init(r19819);
}

double f_im(double x, double y, double z) {
        mpfr_set_d(r19812, x, MPFR_RNDN);
        mpfr_set_d(r19813, y, MPFR_RNDN);
        mpfr_add(r19814, r19812, r19813, MPFR_RNDN);
        mpfr_set_d(r19815, z, MPFR_RNDN);
        mpfr_add(r19816, r19814, r19815, MPFR_RNDN);
        mpfr_add(r19817, r19813, r19815, MPFR_RNDN);
        mpfr_add(r19818, r19812, r19817, MPFR_RNDN);
        mpfr_sub(r19819, r19816, r19818, MPFR_RNDN);
        return mpfr_get_d(r19819, MPFR_RNDN);
}

static mpfr_t r19820;

void setup_mpfr_f_fm() {
        mpfr_set_default_prec(1936);
        mpfr_init_set_str(r19820, "0", 10, MPFR_RNDN);
}

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

static mpfr_t r19821;

void setup_mpfr_f_dm() {
        mpfr_set_default_prec(1936);
        mpfr_init_set_str(r19821, "0", 10, MPFR_RNDN);
}

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

