\left(x \cdot y - z \cdot y\right) \cdot t
\begin{array}{l}
\mathbf{if}\;x \cdot y - z \cdot y \le -4.28824894235068545 \cdot 10^{303} \lor \neg \left(x \cdot y - z \cdot y \le -4.7564680486971018 \cdot 10^{-95} \lor \neg \left(x \cdot y - z \cdot y \le 6.6450334734924226 \cdot 10^{-297}\right) \land x \cdot y - z \cdot y \le 6.61588088234635616 \cdot 10^{208}\right):\\
\;\;\;\;y \cdot \left(\left(x - z\right) \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y - z \cdot y\right) \cdot t\\
\end{array}double f(double x, double y, double z, double t) {
double r564732 = x;
double r564733 = y;
double r564734 = r564732 * r564733;
double r564735 = z;
double r564736 = r564735 * r564733;
double r564737 = r564734 - r564736;
double r564738 = t;
double r564739 = r564737 * r564738;
return r564739;
}
double f(double x, double y, double z, double t) {
double r564740 = x;
double r564741 = y;
double r564742 = r564740 * r564741;
double r564743 = z;
double r564744 = r564743 * r564741;
double r564745 = r564742 - r564744;
double r564746 = -4.2882489423506854e+303;
bool r564747 = r564745 <= r564746;
double r564748 = -4.756468048697102e-95;
bool r564749 = r564745 <= r564748;
double r564750 = 6.645033473492423e-297;
bool r564751 = r564745 <= r564750;
double r564752 = !r564751;
double r564753 = 6.615880882346356e+208;
bool r564754 = r564745 <= r564753;
bool r564755 = r564752 && r564754;
bool r564756 = r564749 || r564755;
double r564757 = !r564756;
bool r564758 = r564747 || r564757;
double r564759 = r564740 - r564743;
double r564760 = t;
double r564761 = r564759 * r564760;
double r564762 = r564741 * r564761;
double r564763 = r564745 * r564760;
double r564764 = r564758 ? r564762 : r564763;
return r564764;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 7.1 |
|---|---|
| Target | 3.1 |
| Herbie | 0.7 |
if (- (* x y) (* z y)) < -4.2882489423506854e+303 or -4.756468048697102e-95 < (- (* x y) (* z y)) < 6.645033473492423e-297 or 6.615880882346356e+208 < (- (* x y) (* z y)) Initial program 22.6
rmApplied distribute-rgt-out--22.6
Applied associate-*l*1.7
if -4.2882489423506854e+303 < (- (* x y) (* z y)) < -4.756468048697102e-95 or 6.645033473492423e-297 < (- (* x y) (* z y)) < 6.615880882346356e+208Initial program 0.3
Final simplification0.7
herbie shell --seed 2020047
(FPCore (x y z t)
:name "Linear.Projection:inverseInfinitePerspective from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< t -9.231879582886777e-80) (* (* y t) (- x z)) (if (< t 2.543067051564877e+83) (* y (* t (- x z))) (* (* y (- x z)) t)))
(* (- (* x y) (* z y)) t))