#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 r19802 = x;
        float r19803 = y;
        float r19804 = r19802 + r19803;
        float r19805 = z;
        float r19806 = r19804 + r19805;
        float r19807 = r19803 + r19805;
        float r19808 = r19802 + r19807;
        float r19809 = r19806 - r19808;
        return r19809;
}

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


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

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

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

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

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

static mpfr_t r19828;

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

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

static mpfr_t r19829;

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

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

