\left(x \cdot y - z \cdot y\right) \cdot t
\begin{array}{l}
\mathbf{if}\;x \cdot y - z \cdot y = -\infty \lor \neg \left(x \cdot y - z \cdot y \le 6.578528209375565 \cdot 10^{244}\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 code(double x, double y, double z, double t) {
return (((x * y) - (z * y)) * t);
}
double code(double x, double y, double z, double t) {
double temp;
if (((((x * y) - (z * y)) <= -inf.0) || !(((x * y) - (z * y)) <= 6.578528209375565e+244))) {
temp = (y * ((x - z) * t));
} else {
temp = (((x * y) - (z * y)) * t);
}
return temp;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 6.9 |
|---|---|
| Target | 3.1 |
| Herbie | 1.3 |
if (- (* x y) (* z y)) < -inf.0 or 6.578528209375565e+244 < (- (* x y) (* z y)) Initial program 46.9
rmApplied distribute-rgt-out--46.9
Applied associate-*l*0.4
if -inf.0 < (- (* x y) (* z y)) < 6.578528209375565e+244Initial program 1.4
Final simplification1.3
herbie shell --seed 2020058
(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))