- Split input into 2 regimes
if (* (- 1.0 y) z) < -inf.0 or 3.0966726447567027e+291 < (* (- 1.0 y) z)
Initial program 54.4
\[x \cdot \left(1 - \left(1 - y\right) \cdot z\right)\]
- Using strategy
rm Applied sub-neg54.4
\[\leadsto x \cdot \color{blue}{\left(1 + \left(-\left(1 - y\right) \cdot z\right)\right)}\]
Applied distribute-lft-in54.4
\[\leadsto \color{blue}{x \cdot 1 + x \cdot \left(-\left(1 - y\right) \cdot z\right)}\]
Simplified0.3
\[\leadsto x \cdot 1 + \color{blue}{\left(x \cdot z\right) \cdot \left(y - 1\right)}\]
if -inf.0 < (* (- 1.0 y) z) < 3.0966726447567027e+291
Initial program 0.1
\[x \cdot \left(1 - \left(1 - y\right) \cdot z\right)\]
- Using strategy
rm Applied sub-neg0.1
\[\leadsto x \cdot \color{blue}{\left(1 + \left(-\left(1 - y\right) \cdot z\right)\right)}\]
Applied distribute-lft-in0.1
\[\leadsto \color{blue}{x \cdot 1 + x \cdot \left(-\left(1 - y\right) \cdot z\right)}\]
Simplified1.5
\[\leadsto x \cdot 1 + \color{blue}{\left(x \cdot z\right) \cdot \left(y - 1\right)}\]
- Using strategy
rm Applied sub-neg1.5
\[\leadsto x \cdot 1 + \left(x \cdot z\right) \cdot \color{blue}{\left(y + \left(-1\right)\right)}\]
Applied distribute-lft-in1.5
\[\leadsto x \cdot 1 + \color{blue}{\left(\left(x \cdot z\right) \cdot y + \left(x \cdot z\right) \cdot \left(-1\right)\right)}\]
Simplified0.1
\[\leadsto x \cdot 1 + \left(\color{blue}{x \cdot \left(z \cdot y\right)} + \left(x \cdot z\right) \cdot \left(-1\right)\right)\]
- Recombined 2 regimes into one program.
Final simplification0.1
\[\leadsto \begin{array}{l}
\mathbf{if}\;\left(1 - y\right) \cdot z = -inf.0 \lor \neg \left(\left(1 - y\right) \cdot z \le 3.09667264475670267 \cdot 10^{291}\right):\\
\;\;\;\;x \cdot 1 + \left(x \cdot z\right) \cdot \left(y - 1\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 1 + \left(x \cdot \left(z \cdot y\right) + \left(x \cdot z\right) \cdot \left(-1\right)\right)\\
\end{array}\]