#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 r19602 = x;
        float r19603 = y;
        float r19604 = r19602 + r19603;
        float r19605 = z;
        float r19606 = r19604 + r19605;
        float r19607 = r19603 + r19605;
        float r19608 = r19602 + r19607;
        float r19609 = r19606 - r19608;
        return r19609;
}

double f_id(double x, double y, double z) {
        double r19610 = x;
        double r19611 = y;
        double r19612 = r19610 + r19611;
        double r19613 = z;
        double r19614 = r19612 + r19613;
        double r19615 = r19611 + r19613;
        double r19616 = r19610 + r19615;
        double r19617 = r19614 - r19616;
        return r19617;
}


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

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

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 r19620, r19621, r19622, r19623, r19624, r19625, r19626, r19627;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(1936);
        mpfr_init(r19620);
        mpfr_init(r19621);
        mpfr_init(r19622);
        mpfr_init(r19623);
        mpfr_init(r19624);
        mpfr_init(r19625);
        mpfr_init(r19626);
        mpfr_init(r19627);
}

double f_im(double x, double y, double z) {
        mpfr_set_d(r19620, x, MPFR_RNDN);
        mpfr_set_d(r19621, y, MPFR_RNDN);
        mpfr_add(r19622, r19620, r19621, MPFR_RNDN);
        mpfr_set_d(r19623, z, MPFR_RNDN);
        mpfr_add(r19624, r19622, r19623, MPFR_RNDN);
        mpfr_add(r19625, r19621, r19623, MPFR_RNDN);
        mpfr_add(r19626, r19620, r19625, MPFR_RNDN);
        mpfr_sub(r19627, r19624, r19626, MPFR_RNDN);
        return mpfr_get_d(r19627, MPFR_RNDN);
}

static mpfr_t r19628;

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

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

static mpfr_t r19629;

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

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

