x \cdot \frac{\frac{y}{z} \cdot t}{t}\begin{array}{l}
\mathbf{if}\;\frac{y}{z} \le -1.35613759911877656476275151503320492094 \cdot 10^{280}:\\
\;\;\;\;y \cdot \frac{x}{z}\\
\mathbf{elif}\;\frac{y}{z} \le -8.828782166850766038005620975563547450989 \cdot 10^{-175}:\\
\;\;\;\;\frac{y}{z} \cdot x\\
\mathbf{elif}\;\frac{y}{z} \le 6.939139322974091469623957424428358865557 \cdot 10^{-194}:\\
\;\;\;\;\frac{y \cdot x}{z}\\
\mathbf{elif}\;\frac{y}{z} \le 2.459953299034684076090573649758520228965 \cdot 10^{86}:\\
\;\;\;\;\frac{y}{z} \cdot x\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{x}{z}\\
\end{array}double f(double x, double y, double z, double t) {
double r466928 = x;
double r466929 = y;
double r466930 = z;
double r466931 = r466929 / r466930;
double r466932 = t;
double r466933 = r466931 * r466932;
double r466934 = r466933 / r466932;
double r466935 = r466928 * r466934;
return r466935;
}
double f(double x, double y, double z, double __attribute__((unused)) t) {
double r466936 = y;
double r466937 = z;
double r466938 = r466936 / r466937;
double r466939 = -1.3561375991187766e+280;
bool r466940 = r466938 <= r466939;
double r466941 = x;
double r466942 = r466941 / r466937;
double r466943 = r466936 * r466942;
double r466944 = -8.828782166850766e-175;
bool r466945 = r466938 <= r466944;
double r466946 = r466938 * r466941;
double r466947 = 6.939139322974091e-194;
bool r466948 = r466938 <= r466947;
double r466949 = r466936 * r466941;
double r466950 = r466949 / r466937;
double r466951 = 2.459953299034684e+86;
bool r466952 = r466938 <= r466951;
double r466953 = r466952 ? r466946 : r466943;
double r466954 = r466948 ? r466950 : r466953;
double r466955 = r466945 ? r466946 : r466954;
double r466956 = r466940 ? r466943 : r466955;
return r466956;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 15.2 |
|---|---|
| Target | 1.5 |
| Herbie | 1.0 |
if (/ y z) < -1.3561375991187766e+280 or 2.459953299034684e+86 < (/ y z) Initial program 34.5
Simplified20.9
rmApplied div-inv21.0
Applied associate-*l*3.9
Simplified3.8
if -1.3561375991187766e+280 < (/ y z) < -8.828782166850766e-175 or 6.939139322974091e-194 < (/ y z) < 2.459953299034684e+86Initial program 8.3
Simplified0.2
if -8.828782166850766e-175 < (/ y z) < 6.939139322974091e-194Initial program 17.1
Simplified9.7
rmApplied add-cube-cbrt10.0
Applied *-un-lft-identity10.0
Applied times-frac10.0
Applied associate-*l*2.7
rmApplied associate-*l/1.3
Applied frac-times1.3
Simplified1.3
Simplified0.8
Final simplification1.0
herbie shell --seed 2019326
(FPCore (x y z t)
:name "Graphics.Rendering.Chart.Backend.Diagrams:calcFontMetrics from Chart-diagrams-1.5.1, B"
:precision binary64
:herbie-target
(if (< (/ (* (/ y z) t) t) -1.20672205123045e+245) (/ y (/ z x)) (if (< (/ (* (/ y z) t) t) -5.907522236933906e-275) (* x (/ y z)) (if (< (/ (* (/ y z) t) t) 5.658954423153415e-65) (/ y (/ z x)) (if (< (/ (* (/ y z) t) t) 2.0087180502407133e+217) (* x (/ y z)) (/ (* y x) z)))))
(* x (/ (* (/ y z) t) t)))