if (-.f64 (*.f64 x y) (*.f64 z y)) < -inf.0 or -9.99999999999999982e-200 < (-.f64 (*.f64 x y) (*.f64 z y)) < 0.0 or 1.99999999999999995e195 < (-.f64 (*.f64 x y) (*.f64 z y))
(*.f64 (-.f64 x z) (*.f64 y t)): 0 points increase in error, 0 points decrease in error
(*.f64 (Rewrite<= unsub-neg_binary64 (+.f64 x (neg.f64 z))) (*.f64 y t)): 0 points increase in error, 0 points decrease in error
(*.f64 (+.f64 x (Rewrite<= mul-1-neg_binary64 (*.f64 -1 z))) (*.f64 y t)): 0 points increase in error, 0 points decrease in error
(*.f64 (Rewrite<= +-commutative_binary64 (+.f64 (*.f64 -1 z) x)) (*.f64 y t)): 0 points increase in error, 0 points decrease in error
(Rewrite<= *-commutative_binary64 (*.f64 (*.f64 y t) (+.f64 (*.f64 -1 z) x))): 0 points increase in error, 0 points decrease in error
(Rewrite=> distribute-lft-in_binary64 (+.f64 (*.f64 (*.f64 y t) (*.f64 -1 z)) (*.f64 (*.f64 y t) x))): 1 points increase in error, 2 points decrease in error
(+.f64 (*.f64 (*.f64 y t) (*.f64 -1 z)) (Rewrite<= associate-*r*_binary64 (*.f64 y (*.f64 t x)))): 34 points increase in error, 26 points decrease in error
(+.f64 (Rewrite=> associate-*l*_binary64 (*.f64 y (*.f64 t (*.f64 -1 z)))) (*.f64 y (*.f64 t x))): 32 points increase in error, 34 points decrease in error
(+.f64 (*.f64 y (*.f64 t (Rewrite=> mul-1-neg_binary64 (neg.f64 z)))) (*.f64 y (*.f64 t x))): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 y (Rewrite=> distribute-rgt-neg-out_binary64 (neg.f64 (*.f64 t z)))) (*.f64 y (*.f64 t x))): 0 points increase in error, 0 points decrease in error
(+.f64 (*.f64 y (Rewrite<= mul-1-neg_binary64 (*.f64 -1 (*.f64 t z)))) (*.f64 y (*.f64 t x))): 0 points increase in error, 0 points decrease in error
(Rewrite<= distribute-lft-in_binary64 (*.f64 y (+.f64 (*.f64 -1 (*.f64 t z)) (*.f64 t x)))): 1 points increase in error, 3 points decrease in error
if -inf.0 < (-.f64 (*.f64 x y) (*.f64 z y)) < -9.99999999999999982e-200 or 0.0 < (-.f64 (*.f64 x y) (*.f64 z y)) < 1.99999999999999995e195
Initial program 0.3
\[\left(x \cdot y - z \cdot y\right) \cdot t
\]
Applied egg-rr0.3
\[\leadsto \color{blue}{\left(\left(x - z\right) \cdot y\right)} \cdot t
\]
Recombined 2 regimes into one program.
Final simplification0.5
\[\leadsto \begin{array}{l}
\mathbf{if}\;x \cdot y - y \cdot z \leq -\infty:\\
\;\;\;\;\left(x - z\right) \cdot \left(y \cdot t\right)\\
\mathbf{elif}\;x \cdot y - y \cdot z \leq -1 \cdot 10^{-199}:\\
\;\;\;\;t \cdot \left(y \cdot \left(x - z\right)\right)\\
\mathbf{elif}\;x \cdot y - y \cdot z \leq 0:\\
\;\;\;\;\left(x - z\right) \cdot \left(y \cdot t\right)\\
\mathbf{elif}\;x \cdot y - y \cdot z \leq 2 \cdot 10^{+195}:\\
\;\;\;\;t \cdot \left(y \cdot \left(x - z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x - z\right) \cdot \left(y \cdot t\right)\\
\end{array}
\]
herbie shell --seed 2022317
(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))