#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 r19597 = x;
        float r19598 = y;
        float r19599 = r19597 + r19598;
        float r19600 = z;
        float r19601 = r19599 + r19600;
        float r19602 = r19598 + r19600;
        float r19603 = r19597 + r19602;
        float r19604 = r19601 - r19603;
        return r19604;
}

double f_id(double x, double y, double z) {
        double r19605 = x;
        double r19606 = y;
        double r19607 = r19605 + r19606;
        double r19608 = z;
        double r19609 = r19607 + r19608;
        double r19610 = r19606 + r19608;
        double r19611 = r19605 + r19610;
        double r19612 = r19609 - r19611;
        return r19612;
}


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

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

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 r19615, r19616, r19617, r19618, r19619, r19620, r19621, r19622;

void setup_mpfr_f_im() {
        mpfr_set_default_prec(2192);
        mpfr_init(r19615);
        mpfr_init(r19616);
        mpfr_init(r19617);
        mpfr_init(r19618);
        mpfr_init(r19619);
        mpfr_init(r19620);
        mpfr_init(r19621);
        mpfr_init(r19622);
}

double f_im(double x, double y, double z) {
        mpfr_set_d(r19615, x, MPFR_RNDN);
        mpfr_set_d(r19616, y, MPFR_RNDN);
        mpfr_add(r19617, r19615, r19616, MPFR_RNDN);
        mpfr_set_d(r19618, z, MPFR_RNDN);
        mpfr_add(r19619, r19617, r19618, MPFR_RNDN);
        mpfr_add(r19620, r19616, r19618, MPFR_RNDN);
        mpfr_add(r19621, r19615, r19620, MPFR_RNDN);
        mpfr_sub(r19622, r19619, r19621, MPFR_RNDN);
        return mpfr_get_d(r19622, MPFR_RNDN);
}

static mpfr_t r19623;

void setup_mpfr_f_fm() {
        mpfr_set_default_prec(2192);
        mpfr_init_set_str(r19623, "0", 10, MPFR_RNDN);
}

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

static mpfr_t r19624;

void setup_mpfr_f_dm() {
        mpfr_set_default_prec(2192);
        mpfr_init_set_str(r19624, "0", 10, MPFR_RNDN);
}

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

