#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 r19787 = x;
        float r19788 = y;
        float r19789 = r19787 + r19788;
        float r19790 = z;
        float r19791 = r19789 + r19790;
        float r19792 = r19788 + r19790;
        float r19793 = r19787 + r19792;
        float r19794 = r19791 - r19793;
        return r19794;
}

double f_id(double x, double y, double z) {
        double r19795 = x;
        double r19796 = y;
        double r19797 = r19795 + r19796;
        double r19798 = z;
        double r19799 = r19797 + r19798;
        double r19800 = r19796 + r19798;
        double r19801 = r19795 + r19800;
        double r19802 = r19799 - r19801;
        return r19802;
}


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

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

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 r19805, r19806, r19807, r19808, r19809, r19810, r19811, r19812;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(1936);
        mpfr_init(r19805);
        mpfr_init(r19806);
        mpfr_init(r19807);
        mpfr_init(r19808);
        mpfr_init(r19809);
        mpfr_init(r19810);
        mpfr_init(r19811);
        mpfr_init(r19812);
}

double f_im(double x, double y, double z) {
        mpfr_set_d(r19805, x, MPFR_RNDN);
        mpfr_set_d(r19806, y, MPFR_RNDN);
        mpfr_add(r19807, r19805, r19806, MPFR_RNDN);
        mpfr_set_d(r19808, z, MPFR_RNDN);
        mpfr_add(r19809, r19807, r19808, MPFR_RNDN);
        mpfr_add(r19810, r19806, r19808, MPFR_RNDN);
        mpfr_add(r19811, r19805, r19810, MPFR_RNDN);
        mpfr_sub(r19812, r19809, r19811, MPFR_RNDN);
        return mpfr_get_d(r19812, MPFR_RNDN);
}

static mpfr_t r19813;

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

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

static mpfr_t r19814;

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

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

