- Split input into 2 regimes
if z < -7549656209.83605 or 2.2657878359820341e-29 < z
Initial program 8.8
\[x \cdot \left(1 - \left(1 - y\right) \cdot z\right)\]
- Using strategy
rm Applied sub-neg8.8
\[\leadsto x \cdot \color{blue}{\left(1 + \left(-\left(1 - y\right) \cdot z\right)\right)}\]
Applied distribute-lft-in8.8
\[\leadsto \color{blue}{x \cdot 1 + x \cdot \left(-\left(1 - y\right) \cdot z\right)}\]
Simplified0.2
\[\leadsto x \cdot 1 + \color{blue}{\left(x \cdot z\right) \cdot \left(y - 1\right)}\]
if -7549656209.83605 < z < 2.2657878359820341e-29
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)}\]
Simplified2.7
\[\leadsto x \cdot 1 + \color{blue}{\left(x \cdot z\right) \cdot \left(y - 1\right)}\]
- Using strategy
rm Applied sub-neg2.7
\[\leadsto x \cdot 1 + \left(x \cdot z\right) \cdot \color{blue}{\left(y + \left(-1\right)\right)}\]
Applied distribute-lft-in2.7
\[\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}\;z \le -7549656209.83605 \lor \neg \left(z \le 2.2657878359820341 \cdot 10^{-29}\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}\]