Graphics.Rasterific.CubicBezier:cachedBezierAt from Rasterific-0.6.1

Percentage Accurate: 92.8% → 94.0%
Time: 11.7s
Alternatives: 14
Speedup: 0.7×

Specification

?
\[\begin{array}{l} \\ \left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (+ (+ (+ x (* y z)) (* t a)) (* (* a z) b)))
double code(double x, double y, double z, double t, double a, double b) {
	return ((x + (y * z)) + (t * a)) + ((a * z) * b);
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    code = ((x + (y * z)) + (t * a)) + ((a * z) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	return ((x + (y * z)) + (t * a)) + ((a * z) * b);
}
def code(x, y, z, t, a, b):
	return ((x + (y * z)) + (t * a)) + ((a * z) * b)
function code(x, y, z, t, a, b)
	return Float64(Float64(Float64(x + Float64(y * z)) + Float64(t * a)) + Float64(Float64(a * z) * b))
end
function tmp = code(x, y, z, t, a, b)
	tmp = ((x + (y * z)) + (t * a)) + ((a * z) * b);
end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x + N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(N[(a * z), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b
\end{array}

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 14 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 92.8% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (+ (+ (+ x (* y z)) (* t a)) (* (* a z) b)))
double code(double x, double y, double z, double t, double a, double b) {
	return ((x + (y * z)) + (t * a)) + ((a * z) * b);
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    code = ((x + (y * z)) + (t * a)) + ((a * z) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	return ((x + (y * z)) + (t * a)) + ((a * z) * b);
}
def code(x, y, z, t, a, b):
	return ((x + (y * z)) + (t * a)) + ((a * z) * b)
function code(x, y, z, t, a, b)
	return Float64(Float64(Float64(x + Float64(y * z)) + Float64(t * a)) + Float64(Float64(a * z) * b))
end
function tmp = code(x, y, z, t, a, b)
	tmp = ((x + (y * z)) + (t * a)) + ((a * z) * b);
end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x + N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(N[(a * z), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b
\end{array}

Alternative 1: 94.0% accurate, 0.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \left(z \cdot \left(b + \frac{y}{a}\right) + \left(t + \frac{x}{a}\right)\right)\\ \mathbf{if}\;a \leq -1.22 \cdot 10^{-118}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 1.62 \cdot 10^{-12}:\\ \;\;\;\;x + z \cdot \left(y + a \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (* a (+ (* z (+ b (/ y a))) (+ t (/ x a))))))
   (if (<= a -1.22e-118)
     t_1
     (if (<= a 1.62e-12) (+ x (* z (+ y (* a b)))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = a * ((z * (b + (y / a))) + (t + (x / a)));
	double tmp;
	if (a <= -1.22e-118) {
		tmp = t_1;
	} else if (a <= 1.62e-12) {
		tmp = x + (z * (y + (a * b)));
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: t_1
    real(8) :: tmp
    t_1 = a * ((z * (b + (y / a))) + (t + (x / a)))
    if (a <= (-1.22d-118)) then
        tmp = t_1
    else if (a <= 1.62d-12) then
        tmp = x + (z * (y + (a * b)))
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = a * ((z * (b + (y / a))) + (t + (x / a)));
	double tmp;
	if (a <= -1.22e-118) {
		tmp = t_1;
	} else if (a <= 1.62e-12) {
		tmp = x + (z * (y + (a * b)));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = a * ((z * (b + (y / a))) + (t + (x / a)))
	tmp = 0
	if a <= -1.22e-118:
		tmp = t_1
	elif a <= 1.62e-12:
		tmp = x + (z * (y + (a * b)))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(a * Float64(Float64(z * Float64(b + Float64(y / a))) + Float64(t + Float64(x / a))))
	tmp = 0.0
	if (a <= -1.22e-118)
		tmp = t_1;
	elseif (a <= 1.62e-12)
		tmp = Float64(x + Float64(z * Float64(y + Float64(a * b))));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = a * ((z * (b + (y / a))) + (t + (x / a)));
	tmp = 0.0;
	if (a <= -1.22e-118)
		tmp = t_1;
	elseif (a <= 1.62e-12)
		tmp = x + (z * (y + (a * b)));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(N[(z * N[(b + N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t + N[(x / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.22e-118], t$95$1, If[LessEqual[a, 1.62e-12], N[(x + N[(z * N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := a \cdot \left(z \cdot \left(b + \frac{y}{a}\right) + \left(t + \frac{x}{a}\right)\right)\\
\mathbf{if}\;a \leq -1.22 \cdot 10^{-118}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;a \leq 1.62 \cdot 10^{-12}:\\
\;\;\;\;x + z \cdot \left(y + a \cdot b\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -1.2200000000000001e-118 or 1.62e-12 < a

    1. Initial program 84.4%

      \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
    2. Step-by-step derivation
      1. associate-+l+N/A

        \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
      2. +-commutativeN/A

        \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
      3. associate-+l+N/A

        \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
      4. +-lowering-+.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
      5. *-lowering-*.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
      6. +-lowering-+.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
      7. *-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
      8. associate-*l*N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
      9. distribute-lft-outN/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
      10. *-lowering-*.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
      11. +-lowering-+.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
      12. *-lowering-*.f6494.3%

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
    3. Simplified94.3%

      \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in a around inf

      \[\leadsto \color{blue}{a \cdot \left(t + \left(b \cdot z + \left(\frac{x}{a} + \frac{y \cdot z}{a}\right)\right)\right)} \]
    6. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \mathsf{*.f64}\left(a, \color{blue}{\left(t + \left(b \cdot z + \left(\frac{x}{a} + \frac{y \cdot z}{a}\right)\right)\right)}\right) \]
      2. associate-+r+N/A

        \[\leadsto \mathsf{*.f64}\left(a, \left(t + \left(\left(b \cdot z + \frac{x}{a}\right) + \color{blue}{\frac{y \cdot z}{a}}\right)\right)\right) \]
      3. +-commutativeN/A

        \[\leadsto \mathsf{*.f64}\left(a, \left(t + \left(\left(\frac{x}{a} + b \cdot z\right) + \frac{\color{blue}{y \cdot z}}{a}\right)\right)\right) \]
      4. associate-+l+N/A

        \[\leadsto \mathsf{*.f64}\left(a, \left(t + \left(\frac{x}{a} + \color{blue}{\left(b \cdot z + \frac{y \cdot z}{a}\right)}\right)\right)\right) \]
      5. associate-+r+N/A

        \[\leadsto \mathsf{*.f64}\left(a, \left(\left(t + \frac{x}{a}\right) + \color{blue}{\left(b \cdot z + \frac{y \cdot z}{a}\right)}\right)\right) \]
      6. +-lowering-+.f64N/A

        \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\left(t + \frac{x}{a}\right), \color{blue}{\left(b \cdot z + \frac{y \cdot z}{a}\right)}\right)\right) \]
      7. +-lowering-+.f64N/A

        \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\mathsf{+.f64}\left(t, \left(\frac{x}{a}\right)\right), \left(\color{blue}{b \cdot z} + \frac{y \cdot z}{a}\right)\right)\right) \]
      8. /-lowering-/.f64N/A

        \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\mathsf{+.f64}\left(t, \mathsf{/.f64}\left(x, a\right)\right), \left(b \cdot \color{blue}{z} + \frac{y \cdot z}{a}\right)\right)\right) \]
      9. *-commutativeN/A

        \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\mathsf{+.f64}\left(t, \mathsf{/.f64}\left(x, a\right)\right), \left(z \cdot b + \frac{\color{blue}{y \cdot z}}{a}\right)\right)\right) \]
      10. *-commutativeN/A

        \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\mathsf{+.f64}\left(t, \mathsf{/.f64}\left(x, a\right)\right), \left(z \cdot b + \frac{z \cdot y}{a}\right)\right)\right) \]
      11. associate-/l*N/A

        \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\mathsf{+.f64}\left(t, \mathsf{/.f64}\left(x, a\right)\right), \left(z \cdot b + z \cdot \color{blue}{\frac{y}{a}}\right)\right)\right) \]
      12. distribute-lft-outN/A

        \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\mathsf{+.f64}\left(t, \mathsf{/.f64}\left(x, a\right)\right), \left(z \cdot \color{blue}{\left(b + \frac{y}{a}\right)}\right)\right)\right) \]
      13. *-lowering-*.f64N/A

        \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\mathsf{+.f64}\left(t, \mathsf{/.f64}\left(x, a\right)\right), \mathsf{*.f64}\left(z, \color{blue}{\left(b + \frac{y}{a}\right)}\right)\right)\right) \]
      14. +-lowering-+.f64N/A

        \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\mathsf{+.f64}\left(t, \mathsf{/.f64}\left(x, a\right)\right), \mathsf{*.f64}\left(z, \mathsf{+.f64}\left(b, \color{blue}{\left(\frac{y}{a}\right)}\right)\right)\right)\right) \]
      15. /-lowering-/.f6499.9%

        \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\mathsf{+.f64}\left(t, \mathsf{/.f64}\left(x, a\right)\right), \mathsf{*.f64}\left(z, \mathsf{+.f64}\left(b, \mathsf{/.f64}\left(y, \color{blue}{a}\right)\right)\right)\right)\right) \]
    7. Simplified99.9%

      \[\leadsto \color{blue}{a \cdot \left(\left(t + \frac{x}{a}\right) + z \cdot \left(b + \frac{y}{a}\right)\right)} \]

    if -1.2200000000000001e-118 < a < 1.62e-12

    1. Initial program 97.0%

      \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
    2. Step-by-step derivation
      1. associate-+l+N/A

        \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
      2. +-commutativeN/A

        \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
      3. associate-+l+N/A

        \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
      4. +-lowering-+.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
      5. *-lowering-*.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
      6. +-lowering-+.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
      7. *-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
      8. associate-*l*N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
      9. distribute-lft-outN/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
      10. *-lowering-*.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
      11. +-lowering-+.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
      12. *-lowering-*.f6492.0%

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
    3. Simplified92.0%

      \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in t around 0

      \[\leadsto \color{blue}{x + \left(a \cdot \left(b \cdot z\right) + y \cdot z\right)} \]
    6. Step-by-step derivation
      1. +-lowering-+.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(a \cdot \left(b \cdot z\right) + y \cdot z\right)}\right) \]
      2. +-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot z + \color{blue}{a \cdot \left(b \cdot z\right)}\right)\right) \]
      3. associate-*r*N/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot z + \left(a \cdot b\right) \cdot \color{blue}{z}\right)\right) \]
      4. distribute-rgt-inN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(z \cdot \color{blue}{\left(y + a \cdot b\right)}\right)\right) \]
      5. *-lowering-*.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(z, \color{blue}{\left(y + a \cdot b\right)}\right)\right) \]
      6. +-lowering-+.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(z, \mathsf{+.f64}\left(y, \color{blue}{\left(a \cdot b\right)}\right)\right)\right) \]
      7. *-lowering-*.f6496.1%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(z, \mathsf{+.f64}\left(y, \mathsf{*.f64}\left(a, \color{blue}{b}\right)\right)\right)\right) \]
    7. Simplified96.1%

      \[\leadsto \color{blue}{x + z \cdot \left(y + a \cdot b\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification98.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.22 \cdot 10^{-118}:\\ \;\;\;\;a \cdot \left(z \cdot \left(b + \frac{y}{a}\right) + \left(t + \frac{x}{a}\right)\right)\\ \mathbf{elif}\;a \leq 1.62 \cdot 10^{-12}:\\ \;\;\;\;x + z \cdot \left(y + a \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(z \cdot \left(b + \frac{y}{a}\right) + \left(t + \frac{x}{a}\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 98.4% accurate, 0.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(z \cdot a\right) \cdot b\\ \mathbf{if}\;t\_1 \leq 2 \cdot 10^{+304}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(t + z \cdot \left(b + \frac{y}{a}\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (+ (+ (+ x (* y z)) (* t a)) (* (* z a) b))))
   (if (<= t_1 2e+304) t_1 (* a (+ t (* z (+ b (/ y a))))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = ((x + (y * z)) + (t * a)) + ((z * a) * b);
	double tmp;
	if (t_1 <= 2e+304) {
		tmp = t_1;
	} else {
		tmp = a * (t + (z * (b + (y / a))));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: t_1
    real(8) :: tmp
    t_1 = ((x + (y * z)) + (t * a)) + ((z * a) * b)
    if (t_1 <= 2d+304) then
        tmp = t_1
    else
        tmp = a * (t + (z * (b + (y / a))))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = ((x + (y * z)) + (t * a)) + ((z * a) * b);
	double tmp;
	if (t_1 <= 2e+304) {
		tmp = t_1;
	} else {
		tmp = a * (t + (z * (b + (y / a))));
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = ((x + (y * z)) + (t * a)) + ((z * a) * b)
	tmp = 0
	if t_1 <= 2e+304:
		tmp = t_1
	else:
		tmp = a * (t + (z * (b + (y / a))))
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(Float64(x + Float64(y * z)) + Float64(t * a)) + Float64(Float64(z * a) * b))
	tmp = 0.0
	if (t_1 <= 2e+304)
		tmp = t_1;
	else
		tmp = Float64(a * Float64(t + Float64(z * Float64(b + Float64(y / a)))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = ((x + (y * z)) + (t * a)) + ((z * a) * b);
	tmp = 0.0;
	if (t_1 <= 2e+304)
		tmp = t_1;
	else
		tmp = a * (t + (z * (b + (y / a))));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(x + N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(N[(z * a), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, 2e+304], t$95$1, N[(a * N[(t + N[(z * N[(b + N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(z \cdot a\right) \cdot b\\
\mathbf{if}\;t\_1 \leq 2 \cdot 10^{+304}:\\
\;\;\;\;t\_1\\

\mathbf{else}:\\
\;\;\;\;a \cdot \left(t + z \cdot \left(b + \frac{y}{a}\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (+.f64 (+.f64 (+.f64 x (*.f64 y z)) (*.f64 t a)) (*.f64 (*.f64 a z) b)) < 1.9999999999999999e304

    1. Initial program 98.0%

      \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
    2. Add Preprocessing

    if 1.9999999999999999e304 < (+.f64 (+.f64 (+.f64 x (*.f64 y z)) (*.f64 t a)) (*.f64 (*.f64 a z) b))

    1. Initial program 58.0%

      \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
    2. Step-by-step derivation
      1. associate-+l+N/A

        \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
      2. +-commutativeN/A

        \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
      3. associate-+l+N/A

        \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
      4. +-lowering-+.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
      5. *-lowering-*.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
      6. +-lowering-+.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
      7. *-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
      8. associate-*l*N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
      9. distribute-lft-outN/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
      10. *-lowering-*.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
      11. +-lowering-+.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
      12. *-lowering-*.f6478.9%

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
    3. Simplified78.9%

      \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in a around inf

      \[\leadsto \color{blue}{a \cdot \left(t + \left(b \cdot z + \left(\frac{x}{a} + \frac{y \cdot z}{a}\right)\right)\right)} \]
    6. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \mathsf{*.f64}\left(a, \color{blue}{\left(t + \left(b \cdot z + \left(\frac{x}{a} + \frac{y \cdot z}{a}\right)\right)\right)}\right) \]
      2. associate-+r+N/A

        \[\leadsto \mathsf{*.f64}\left(a, \left(t + \left(\left(b \cdot z + \frac{x}{a}\right) + \color{blue}{\frac{y \cdot z}{a}}\right)\right)\right) \]
      3. +-commutativeN/A

        \[\leadsto \mathsf{*.f64}\left(a, \left(t + \left(\left(\frac{x}{a} + b \cdot z\right) + \frac{\color{blue}{y \cdot z}}{a}\right)\right)\right) \]
      4. associate-+l+N/A

        \[\leadsto \mathsf{*.f64}\left(a, \left(t + \left(\frac{x}{a} + \color{blue}{\left(b \cdot z + \frac{y \cdot z}{a}\right)}\right)\right)\right) \]
      5. associate-+r+N/A

        \[\leadsto \mathsf{*.f64}\left(a, \left(\left(t + \frac{x}{a}\right) + \color{blue}{\left(b \cdot z + \frac{y \cdot z}{a}\right)}\right)\right) \]
      6. +-lowering-+.f64N/A

        \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\left(t + \frac{x}{a}\right), \color{blue}{\left(b \cdot z + \frac{y \cdot z}{a}\right)}\right)\right) \]
      7. +-lowering-+.f64N/A

        \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\mathsf{+.f64}\left(t, \left(\frac{x}{a}\right)\right), \left(\color{blue}{b \cdot z} + \frac{y \cdot z}{a}\right)\right)\right) \]
      8. /-lowering-/.f64N/A

        \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\mathsf{+.f64}\left(t, \mathsf{/.f64}\left(x, a\right)\right), \left(b \cdot \color{blue}{z} + \frac{y \cdot z}{a}\right)\right)\right) \]
      9. *-commutativeN/A

        \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\mathsf{+.f64}\left(t, \mathsf{/.f64}\left(x, a\right)\right), \left(z \cdot b + \frac{\color{blue}{y \cdot z}}{a}\right)\right)\right) \]
      10. *-commutativeN/A

        \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\mathsf{+.f64}\left(t, \mathsf{/.f64}\left(x, a\right)\right), \left(z \cdot b + \frac{z \cdot y}{a}\right)\right)\right) \]
      11. associate-/l*N/A

        \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\mathsf{+.f64}\left(t, \mathsf{/.f64}\left(x, a\right)\right), \left(z \cdot b + z \cdot \color{blue}{\frac{y}{a}}\right)\right)\right) \]
      12. distribute-lft-outN/A

        \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\mathsf{+.f64}\left(t, \mathsf{/.f64}\left(x, a\right)\right), \left(z \cdot \color{blue}{\left(b + \frac{y}{a}\right)}\right)\right)\right) \]
      13. *-lowering-*.f64N/A

        \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\mathsf{+.f64}\left(t, \mathsf{/.f64}\left(x, a\right)\right), \mathsf{*.f64}\left(z, \color{blue}{\left(b + \frac{y}{a}\right)}\right)\right)\right) \]
      14. +-lowering-+.f64N/A

        \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\mathsf{+.f64}\left(t, \mathsf{/.f64}\left(x, a\right)\right), \mathsf{*.f64}\left(z, \mathsf{+.f64}\left(b, \color{blue}{\left(\frac{y}{a}\right)}\right)\right)\right)\right) \]
      15. /-lowering-/.f6496.5%

        \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\mathsf{+.f64}\left(t, \mathsf{/.f64}\left(x, a\right)\right), \mathsf{*.f64}\left(z, \mathsf{+.f64}\left(b, \mathsf{/.f64}\left(y, \color{blue}{a}\right)\right)\right)\right)\right) \]
    7. Simplified96.5%

      \[\leadsto \color{blue}{a \cdot \left(\left(t + \frac{x}{a}\right) + z \cdot \left(b + \frac{y}{a}\right)\right)} \]
    8. Taylor expanded in x around 0

      \[\leadsto \color{blue}{a \cdot \left(t + z \cdot \left(b + \frac{y}{a}\right)\right)} \]
    9. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot \left(b + \frac{y}{a}\right)\right)}\right) \]
      2. +-lowering-+.f64N/A

        \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot \left(b + \frac{y}{a}\right)\right)}\right)\right) \]
      3. *-lowering-*.f64N/A

        \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{\left(b + \frac{y}{a}\right)}\right)\right)\right) \]
      4. +-lowering-+.f64N/A

        \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \mathsf{+.f64}\left(b, \color{blue}{\left(\frac{y}{a}\right)}\right)\right)\right)\right) \]
      5. /-lowering-/.f64100.0%

        \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \mathsf{+.f64}\left(b, \mathsf{/.f64}\left(y, \color{blue}{a}\right)\right)\right)\right)\right) \]
    10. Simplified100.0%

      \[\leadsto \color{blue}{a \cdot \left(t + z \cdot \left(b + \frac{y}{a}\right)\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification98.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(z \cdot a\right) \cdot b \leq 2 \cdot 10^{+304}:\\ \;\;\;\;\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(z \cdot a\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(t + z \cdot \left(b + \frac{y}{a}\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 38.0% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -8.4 \cdot 10^{+105}:\\ \;\;\;\;\left(z \cdot a\right) \cdot b\\ \mathbf{elif}\;b \leq -2.7 \cdot 10^{-40}:\\ \;\;\;\;t \cdot a\\ \mathbf{elif}\;b \leq -1.8 \cdot 10^{-77}:\\ \;\;\;\;y \cdot z\\ \mathbf{elif}\;b \leq -4 \cdot 10^{-269}:\\ \;\;\;\;x\\ \mathbf{elif}\;b \leq 9.5 \cdot 10^{+49}:\\ \;\;\;\;y \cdot z\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(z \cdot b\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<= b -8.4e+105)
   (* (* z a) b)
   (if (<= b -2.7e-40)
     (* t a)
     (if (<= b -1.8e-77)
       (* y z)
       (if (<= b -4e-269) x (if (<= b 9.5e+49) (* y z) (* a (* z b))))))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (b <= -8.4e+105) {
		tmp = (z * a) * b;
	} else if (b <= -2.7e-40) {
		tmp = t * a;
	} else if (b <= -1.8e-77) {
		tmp = y * z;
	} else if (b <= -4e-269) {
		tmp = x;
	} else if (b <= 9.5e+49) {
		tmp = y * z;
	} else {
		tmp = a * (z * b);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: tmp
    if (b <= (-8.4d+105)) then
        tmp = (z * a) * b
    else if (b <= (-2.7d-40)) then
        tmp = t * a
    else if (b <= (-1.8d-77)) then
        tmp = y * z
    else if (b <= (-4d-269)) then
        tmp = x
    else if (b <= 9.5d+49) then
        tmp = y * z
    else
        tmp = a * (z * b)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (b <= -8.4e+105) {
		tmp = (z * a) * b;
	} else if (b <= -2.7e-40) {
		tmp = t * a;
	} else if (b <= -1.8e-77) {
		tmp = y * z;
	} else if (b <= -4e-269) {
		tmp = x;
	} else if (b <= 9.5e+49) {
		tmp = y * z;
	} else {
		tmp = a * (z * b);
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if b <= -8.4e+105:
		tmp = (z * a) * b
	elif b <= -2.7e-40:
		tmp = t * a
	elif b <= -1.8e-77:
		tmp = y * z
	elif b <= -4e-269:
		tmp = x
	elif b <= 9.5e+49:
		tmp = y * z
	else:
		tmp = a * (z * b)
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (b <= -8.4e+105)
		tmp = Float64(Float64(z * a) * b);
	elseif (b <= -2.7e-40)
		tmp = Float64(t * a);
	elseif (b <= -1.8e-77)
		tmp = Float64(y * z);
	elseif (b <= -4e-269)
		tmp = x;
	elseif (b <= 9.5e+49)
		tmp = Float64(y * z);
	else
		tmp = Float64(a * Float64(z * b));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	tmp = 0.0;
	if (b <= -8.4e+105)
		tmp = (z * a) * b;
	elseif (b <= -2.7e-40)
		tmp = t * a;
	elseif (b <= -1.8e-77)
		tmp = y * z;
	elseif (b <= -4e-269)
		tmp = x;
	elseif (b <= 9.5e+49)
		tmp = y * z;
	else
		tmp = a * (z * b);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -8.4e+105], N[(N[(z * a), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[b, -2.7e-40], N[(t * a), $MachinePrecision], If[LessEqual[b, -1.8e-77], N[(y * z), $MachinePrecision], If[LessEqual[b, -4e-269], x, If[LessEqual[b, 9.5e+49], N[(y * z), $MachinePrecision], N[(a * N[(z * b), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;b \leq -8.4 \cdot 10^{+105}:\\
\;\;\;\;\left(z \cdot a\right) \cdot b\\

\mathbf{elif}\;b \leq -2.7 \cdot 10^{-40}:\\
\;\;\;\;t \cdot a\\

\mathbf{elif}\;b \leq -1.8 \cdot 10^{-77}:\\
\;\;\;\;y \cdot z\\

\mathbf{elif}\;b \leq -4 \cdot 10^{-269}:\\
\;\;\;\;x\\

\mathbf{elif}\;b \leq 9.5 \cdot 10^{+49}:\\
\;\;\;\;y \cdot z\\

\mathbf{else}:\\
\;\;\;\;a \cdot \left(z \cdot b\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if b < -8.4000000000000004e105

    1. Initial program 76.6%

      \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
    2. Step-by-step derivation
      1. associate-+l+N/A

        \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
      2. +-commutativeN/A

        \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
      3. associate-+l+N/A

        \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
      4. +-lowering-+.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
      5. *-lowering-*.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
      6. +-lowering-+.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
      7. *-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
      8. associate-*l*N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
      9. distribute-lft-outN/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
      10. *-lowering-*.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
      11. +-lowering-+.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
      12. *-lowering-*.f6479.2%

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
    3. Simplified79.2%

      \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in b around inf

      \[\leadsto \color{blue}{a \cdot \left(b \cdot z\right)} \]
    6. Step-by-step derivation
      1. associate-*r*N/A

        \[\leadsto \left(a \cdot b\right) \cdot \color{blue}{z} \]
      2. *-commutativeN/A

        \[\leadsto \left(b \cdot a\right) \cdot z \]
      3. associate-*r*N/A

        \[\leadsto b \cdot \color{blue}{\left(a \cdot z\right)} \]
      4. *-lowering-*.f64N/A

        \[\leadsto \mathsf{*.f64}\left(b, \color{blue}{\left(a \cdot z\right)}\right) \]
      5. *-lowering-*.f6457.1%

        \[\leadsto \mathsf{*.f64}\left(b, \mathsf{*.f64}\left(a, \color{blue}{z}\right)\right) \]
    7. Simplified57.1%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot z\right)} \]

    if -8.4000000000000004e105 < b < -2.7e-40

    1. Initial program 97.1%

      \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
    2. Step-by-step derivation
      1. associate-+l+N/A

        \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
      2. +-commutativeN/A

        \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
      3. associate-+l+N/A

        \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
      4. +-lowering-+.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
      5. *-lowering-*.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
      6. +-lowering-+.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
      7. *-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
      8. associate-*l*N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
      9. distribute-lft-outN/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
      10. *-lowering-*.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
      11. +-lowering-+.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
      12. *-lowering-*.f6494.4%

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
    3. Simplified94.4%

      \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in t around inf

      \[\leadsto \color{blue}{a \cdot t} \]
    6. Step-by-step derivation
      1. *-lowering-*.f6450.3%

        \[\leadsto \mathsf{*.f64}\left(a, \color{blue}{t}\right) \]
    7. Simplified50.3%

      \[\leadsto \color{blue}{a \cdot t} \]

    if -2.7e-40 < b < -1.8e-77 or -3.9999999999999998e-269 < b < 9.49999999999999969e49

    1. Initial program 93.3%

      \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
    2. Step-by-step derivation
      1. associate-+l+N/A

        \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
      2. +-commutativeN/A

        \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
      3. associate-+l+N/A

        \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
      4. +-lowering-+.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
      5. *-lowering-*.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
      6. +-lowering-+.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
      7. *-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
      8. associate-*l*N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
      9. distribute-lft-outN/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
      10. *-lowering-*.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
      11. +-lowering-+.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
      12. *-lowering-*.f6498.8%

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
    3. Simplified98.8%

      \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around inf

      \[\leadsto \color{blue}{y \cdot z} \]
    6. Step-by-step derivation
      1. *-commutativeN/A

        \[\leadsto z \cdot \color{blue}{y} \]
      2. *-lowering-*.f6449.8%

        \[\leadsto \mathsf{*.f64}\left(z, \color{blue}{y}\right) \]
    7. Simplified49.8%

      \[\leadsto \color{blue}{z \cdot y} \]

    if -1.8e-77 < b < -3.9999999999999998e-269

    1. Initial program 91.1%

      \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
    2. Step-by-step derivation
      1. associate-+l+N/A

        \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
      2. +-commutativeN/A

        \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
      3. associate-+l+N/A

        \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
      4. +-lowering-+.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
      5. *-lowering-*.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
      6. +-lowering-+.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
      7. *-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
      8. associate-*l*N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
      9. distribute-lft-outN/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
      10. *-lowering-*.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
      11. +-lowering-+.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
      12. *-lowering-*.f64100.0%

        \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
    3. Simplified100.0%

      \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in x around inf

      \[\leadsto \color{blue}{x} \]
    6. Step-by-step derivation
      1. Simplified56.2%

        \[\leadsto \color{blue}{x} \]

      if 9.49999999999999969e49 < b

      1. Initial program 85.9%

        \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
      2. Step-by-step derivation
        1. associate-+l+N/A

          \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
        2. +-commutativeN/A

          \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
        3. associate-+l+N/A

          \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
        4. +-lowering-+.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
        5. *-lowering-*.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
        6. +-lowering-+.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
        7. *-commutativeN/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
        8. associate-*l*N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
        9. distribute-lft-outN/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
        10. *-lowering-*.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
        11. +-lowering-+.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
        12. *-lowering-*.f6491.3%

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
      3. Simplified91.3%

        \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
      4. Add Preprocessing
      5. Taylor expanded in b around inf

        \[\leadsto \color{blue}{a \cdot \left(b \cdot z\right)} \]
      6. Step-by-step derivation
        1. associate-*r*N/A

          \[\leadsto \left(a \cdot b\right) \cdot \color{blue}{z} \]
        2. *-commutativeN/A

          \[\leadsto \left(b \cdot a\right) \cdot z \]
        3. associate-*r*N/A

          \[\leadsto b \cdot \color{blue}{\left(a \cdot z\right)} \]
        4. *-lowering-*.f64N/A

          \[\leadsto \mathsf{*.f64}\left(b, \color{blue}{\left(a \cdot z\right)}\right) \]
        5. *-lowering-*.f6447.4%

          \[\leadsto \mathsf{*.f64}\left(b, \mathsf{*.f64}\left(a, \color{blue}{z}\right)\right) \]
      7. Simplified47.4%

        \[\leadsto \color{blue}{b \cdot \left(a \cdot z\right)} \]
      8. Step-by-step derivation
        1. *-commutativeN/A

          \[\leadsto b \cdot \left(z \cdot \color{blue}{a}\right) \]
        2. associate-*r*N/A

          \[\leadsto \left(b \cdot z\right) \cdot \color{blue}{a} \]
        3. *-lowering-*.f64N/A

          \[\leadsto \mathsf{*.f64}\left(\left(b \cdot z\right), \color{blue}{a}\right) \]
        4. *-commutativeN/A

          \[\leadsto \mathsf{*.f64}\left(\left(z \cdot b\right), a\right) \]
        5. *-lowering-*.f6447.8%

          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(z, b\right), a\right) \]
      9. Applied egg-rr47.8%

        \[\leadsto \color{blue}{\left(z \cdot b\right) \cdot a} \]
    7. Recombined 5 regimes into one program.
    8. Final simplification51.5%

      \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -8.4 \cdot 10^{+105}:\\ \;\;\;\;\left(z \cdot a\right) \cdot b\\ \mathbf{elif}\;b \leq -2.7 \cdot 10^{-40}:\\ \;\;\;\;t \cdot a\\ \mathbf{elif}\;b \leq -1.8 \cdot 10^{-77}:\\ \;\;\;\;y \cdot z\\ \mathbf{elif}\;b \leq -4 \cdot 10^{-269}:\\ \;\;\;\;x\\ \mathbf{elif}\;b \leq 9.5 \cdot 10^{+49}:\\ \;\;\;\;y \cdot z\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(z \cdot b\right)\\ \end{array} \]
    9. Add Preprocessing

    Alternative 4: 38.6% accurate, 0.5× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(z \cdot a\right) \cdot b\\ \mathbf{if}\;b \leq -7.2 \cdot 10^{+103}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq -3.2 \cdot 10^{-41}:\\ \;\;\;\;t \cdot a\\ \mathbf{elif}\;b \leq -3.4 \cdot 10^{-77}:\\ \;\;\;\;y \cdot z\\ \mathbf{elif}\;b \leq -1.4 \cdot 10^{-269}:\\ \;\;\;\;x\\ \mathbf{elif}\;b \leq 1.85 \cdot 10^{+50}:\\ \;\;\;\;y \cdot z\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
    (FPCore (x y z t a b)
     :precision binary64
     (let* ((t_1 (* (* z a) b)))
       (if (<= b -7.2e+103)
         t_1
         (if (<= b -3.2e-41)
           (* t a)
           (if (<= b -3.4e-77)
             (* y z)
             (if (<= b -1.4e-269) x (if (<= b 1.85e+50) (* y z) t_1)))))))
    double code(double x, double y, double z, double t, double a, double b) {
    	double t_1 = (z * a) * b;
    	double tmp;
    	if (b <= -7.2e+103) {
    		tmp = t_1;
    	} else if (b <= -3.2e-41) {
    		tmp = t * a;
    	} else if (b <= -3.4e-77) {
    		tmp = y * z;
    	} else if (b <= -1.4e-269) {
    		tmp = x;
    	} else if (b <= 1.85e+50) {
    		tmp = y * z;
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    real(8) function code(x, y, z, t, a, b)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        real(8), intent (in) :: z
        real(8), intent (in) :: t
        real(8), intent (in) :: a
        real(8), intent (in) :: b
        real(8) :: t_1
        real(8) :: tmp
        t_1 = (z * a) * b
        if (b <= (-7.2d+103)) then
            tmp = t_1
        else if (b <= (-3.2d-41)) then
            tmp = t * a
        else if (b <= (-3.4d-77)) then
            tmp = y * z
        else if (b <= (-1.4d-269)) then
            tmp = x
        else if (b <= 1.85d+50) then
            tmp = y * z
        else
            tmp = t_1
        end if
        code = tmp
    end function
    
    public static double code(double x, double y, double z, double t, double a, double b) {
    	double t_1 = (z * a) * b;
    	double tmp;
    	if (b <= -7.2e+103) {
    		tmp = t_1;
    	} else if (b <= -3.2e-41) {
    		tmp = t * a;
    	} else if (b <= -3.4e-77) {
    		tmp = y * z;
    	} else if (b <= -1.4e-269) {
    		tmp = x;
    	} else if (b <= 1.85e+50) {
    		tmp = y * z;
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a, b):
    	t_1 = (z * a) * b
    	tmp = 0
    	if b <= -7.2e+103:
    		tmp = t_1
    	elif b <= -3.2e-41:
    		tmp = t * a
    	elif b <= -3.4e-77:
    		tmp = y * z
    	elif b <= -1.4e-269:
    		tmp = x
    	elif b <= 1.85e+50:
    		tmp = y * z
    	else:
    		tmp = t_1
    	return tmp
    
    function code(x, y, z, t, a, b)
    	t_1 = Float64(Float64(z * a) * b)
    	tmp = 0.0
    	if (b <= -7.2e+103)
    		tmp = t_1;
    	elseif (b <= -3.2e-41)
    		tmp = Float64(t * a);
    	elseif (b <= -3.4e-77)
    		tmp = Float64(y * z);
    	elseif (b <= -1.4e-269)
    		tmp = x;
    	elseif (b <= 1.85e+50)
    		tmp = Float64(y * z);
    	else
    		tmp = t_1;
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t, a, b)
    	t_1 = (z * a) * b;
    	tmp = 0.0;
    	if (b <= -7.2e+103)
    		tmp = t_1;
    	elseif (b <= -3.2e-41)
    		tmp = t * a;
    	elseif (b <= -3.4e-77)
    		tmp = y * z;
    	elseif (b <= -1.4e-269)
    		tmp = x;
    	elseif (b <= 1.85e+50)
    		tmp = y * z;
    	else
    		tmp = t_1;
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z * a), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[b, -7.2e+103], t$95$1, If[LessEqual[b, -3.2e-41], N[(t * a), $MachinePrecision], If[LessEqual[b, -3.4e-77], N[(y * z), $MachinePrecision], If[LessEqual[b, -1.4e-269], x, If[LessEqual[b, 1.85e+50], N[(y * z), $MachinePrecision], t$95$1]]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \left(z \cdot a\right) \cdot b\\
    \mathbf{if}\;b \leq -7.2 \cdot 10^{+103}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;b \leq -3.2 \cdot 10^{-41}:\\
    \;\;\;\;t \cdot a\\
    
    \mathbf{elif}\;b \leq -3.4 \cdot 10^{-77}:\\
    \;\;\;\;y \cdot z\\
    
    \mathbf{elif}\;b \leq -1.4 \cdot 10^{-269}:\\
    \;\;\;\;x\\
    
    \mathbf{elif}\;b \leq 1.85 \cdot 10^{+50}:\\
    \;\;\;\;y \cdot z\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 4 regimes
    2. if b < -7.20000000000000033e103 or 1.85e50 < b

      1. Initial program 81.9%

        \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
      2. Step-by-step derivation
        1. associate-+l+N/A

          \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
        2. +-commutativeN/A

          \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
        3. associate-+l+N/A

          \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
        4. +-lowering-+.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
        5. *-lowering-*.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
        6. +-lowering-+.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
        7. *-commutativeN/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
        8. associate-*l*N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
        9. distribute-lft-outN/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
        10. *-lowering-*.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
        11. +-lowering-+.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
        12. *-lowering-*.f6486.0%

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
      3. Simplified86.0%

        \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
      4. Add Preprocessing
      5. Taylor expanded in b around inf

        \[\leadsto \color{blue}{a \cdot \left(b \cdot z\right)} \]
      6. Step-by-step derivation
        1. associate-*r*N/A

          \[\leadsto \left(a \cdot b\right) \cdot \color{blue}{z} \]
        2. *-commutativeN/A

          \[\leadsto \left(b \cdot a\right) \cdot z \]
        3. associate-*r*N/A

          \[\leadsto b \cdot \color{blue}{\left(a \cdot z\right)} \]
        4. *-lowering-*.f64N/A

          \[\leadsto \mathsf{*.f64}\left(b, \color{blue}{\left(a \cdot z\right)}\right) \]
        5. *-lowering-*.f6451.6%

          \[\leadsto \mathsf{*.f64}\left(b, \mathsf{*.f64}\left(a, \color{blue}{z}\right)\right) \]
      7. Simplified51.6%

        \[\leadsto \color{blue}{b \cdot \left(a \cdot z\right)} \]

      if -7.20000000000000033e103 < b < -3.20000000000000012e-41

      1. Initial program 97.1%

        \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
      2. Step-by-step derivation
        1. associate-+l+N/A

          \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
        2. +-commutativeN/A

          \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
        3. associate-+l+N/A

          \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
        4. +-lowering-+.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
        5. *-lowering-*.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
        6. +-lowering-+.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
        7. *-commutativeN/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
        8. associate-*l*N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
        9. distribute-lft-outN/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
        10. *-lowering-*.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
        11. +-lowering-+.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
        12. *-lowering-*.f6494.4%

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
      3. Simplified94.4%

        \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
      4. Add Preprocessing
      5. Taylor expanded in t around inf

        \[\leadsto \color{blue}{a \cdot t} \]
      6. Step-by-step derivation
        1. *-lowering-*.f6450.3%

          \[\leadsto \mathsf{*.f64}\left(a, \color{blue}{t}\right) \]
      7. Simplified50.3%

        \[\leadsto \color{blue}{a \cdot t} \]

      if -3.20000000000000012e-41 < b < -3.39999999999999983e-77 or -1.39999999999999997e-269 < b < 1.85e50

      1. Initial program 93.3%

        \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
      2. Step-by-step derivation
        1. associate-+l+N/A

          \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
        2. +-commutativeN/A

          \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
        3. associate-+l+N/A

          \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
        4. +-lowering-+.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
        5. *-lowering-*.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
        6. +-lowering-+.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
        7. *-commutativeN/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
        8. associate-*l*N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
        9. distribute-lft-outN/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
        10. *-lowering-*.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
        11. +-lowering-+.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
        12. *-lowering-*.f6498.8%

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
      3. Simplified98.8%

        \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
      4. Add Preprocessing
      5. Taylor expanded in y around inf

        \[\leadsto \color{blue}{y \cdot z} \]
      6. Step-by-step derivation
        1. *-commutativeN/A

          \[\leadsto z \cdot \color{blue}{y} \]
        2. *-lowering-*.f6449.8%

          \[\leadsto \mathsf{*.f64}\left(z, \color{blue}{y}\right) \]
      7. Simplified49.8%

        \[\leadsto \color{blue}{z \cdot y} \]

      if -3.39999999999999983e-77 < b < -1.39999999999999997e-269

      1. Initial program 91.1%

        \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
      2. Step-by-step derivation
        1. associate-+l+N/A

          \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
        2. +-commutativeN/A

          \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
        3. associate-+l+N/A

          \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
        4. +-lowering-+.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
        5. *-lowering-*.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
        6. +-lowering-+.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
        7. *-commutativeN/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
        8. associate-*l*N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
        9. distribute-lft-outN/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
        10. *-lowering-*.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
        11. +-lowering-+.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
        12. *-lowering-*.f64100.0%

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
      3. Simplified100.0%

        \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
      4. Add Preprocessing
      5. Taylor expanded in x around inf

        \[\leadsto \color{blue}{x} \]
      6. Step-by-step derivation
        1. Simplified56.2%

          \[\leadsto \color{blue}{x} \]
      7. Recombined 4 regimes into one program.
      8. Final simplification51.4%

        \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -7.2 \cdot 10^{+103}:\\ \;\;\;\;\left(z \cdot a\right) \cdot b\\ \mathbf{elif}\;b \leq -3.2 \cdot 10^{-41}:\\ \;\;\;\;t \cdot a\\ \mathbf{elif}\;b \leq -3.4 \cdot 10^{-77}:\\ \;\;\;\;y \cdot z\\ \mathbf{elif}\;b \leq -1.4 \cdot 10^{-269}:\\ \;\;\;\;x\\ \mathbf{elif}\;b \leq 1.85 \cdot 10^{+50}:\\ \;\;\;\;y \cdot z\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot a\right) \cdot b\\ \end{array} \]
      9. Add Preprocessing

      Alternative 5: 95.3% accurate, 0.7× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := x + z \cdot \left(y + a \cdot b\right)\\ \mathbf{if}\;z \leq -7.5 \cdot 10^{+247}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 10^{+44}:\\ \;\;\;\;\left(x + a \cdot \left(t + z \cdot b\right)\right) + y \cdot z\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
      (FPCore (x y z t a b)
       :precision binary64
       (let* ((t_1 (+ x (* z (+ y (* a b))))))
         (if (<= z -7.5e+247)
           t_1
           (if (<= z 1e+44) (+ (+ x (* a (+ t (* z b)))) (* y z)) t_1))))
      double code(double x, double y, double z, double t, double a, double b) {
      	double t_1 = x + (z * (y + (a * b)));
      	double tmp;
      	if (z <= -7.5e+247) {
      		tmp = t_1;
      	} else if (z <= 1e+44) {
      		tmp = (x + (a * (t + (z * b)))) + (y * z);
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      real(8) function code(x, y, z, t, a, b)
          real(8), intent (in) :: x
          real(8), intent (in) :: y
          real(8), intent (in) :: z
          real(8), intent (in) :: t
          real(8), intent (in) :: a
          real(8), intent (in) :: b
          real(8) :: t_1
          real(8) :: tmp
          t_1 = x + (z * (y + (a * b)))
          if (z <= (-7.5d+247)) then
              tmp = t_1
          else if (z <= 1d+44) then
              tmp = (x + (a * (t + (z * b)))) + (y * z)
          else
              tmp = t_1
          end if
          code = tmp
      end function
      
      public static double code(double x, double y, double z, double t, double a, double b) {
      	double t_1 = x + (z * (y + (a * b)));
      	double tmp;
      	if (z <= -7.5e+247) {
      		tmp = t_1;
      	} else if (z <= 1e+44) {
      		tmp = (x + (a * (t + (z * b)))) + (y * z);
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      def code(x, y, z, t, a, b):
      	t_1 = x + (z * (y + (a * b)))
      	tmp = 0
      	if z <= -7.5e+247:
      		tmp = t_1
      	elif z <= 1e+44:
      		tmp = (x + (a * (t + (z * b)))) + (y * z)
      	else:
      		tmp = t_1
      	return tmp
      
      function code(x, y, z, t, a, b)
      	t_1 = Float64(x + Float64(z * Float64(y + Float64(a * b))))
      	tmp = 0.0
      	if (z <= -7.5e+247)
      		tmp = t_1;
      	elseif (z <= 1e+44)
      		tmp = Float64(Float64(x + Float64(a * Float64(t + Float64(z * b)))) + Float64(y * z));
      	else
      		tmp = t_1;
      	end
      	return tmp
      end
      
      function tmp_2 = code(x, y, z, t, a, b)
      	t_1 = x + (z * (y + (a * b)));
      	tmp = 0.0;
      	if (z <= -7.5e+247)
      		tmp = t_1;
      	elseif (z <= 1e+44)
      		tmp = (x + (a * (t + (z * b)))) + (y * z);
      	else
      		tmp = t_1;
      	end
      	tmp_2 = tmp;
      end
      
      code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(z * N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.5e+247], t$95$1, If[LessEqual[z, 1e+44], N[(N[(x + N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := x + z \cdot \left(y + a \cdot b\right)\\
      \mathbf{if}\;z \leq -7.5 \cdot 10^{+247}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;z \leq 10^{+44}:\\
      \;\;\;\;\left(x + a \cdot \left(t + z \cdot b\right)\right) + y \cdot z\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if z < -7.499999999999999e247 or 1.0000000000000001e44 < z

        1. Initial program 72.8%

          \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
        2. Step-by-step derivation
          1. associate-+l+N/A

            \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
          2. +-commutativeN/A

            \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
          3. associate-+l+N/A

            \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
          4. +-lowering-+.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
          5. *-lowering-*.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
          6. +-lowering-+.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
          7. *-commutativeN/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
          8. associate-*l*N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
          9. distribute-lft-outN/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
          10. *-lowering-*.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
          11. +-lowering-+.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
          12. *-lowering-*.f6481.0%

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
        3. Simplified81.0%

          \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
        4. Add Preprocessing
        5. Taylor expanded in t around 0

          \[\leadsto \color{blue}{x + \left(a \cdot \left(b \cdot z\right) + y \cdot z\right)} \]
        6. Step-by-step derivation
          1. +-lowering-+.f64N/A

            \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(a \cdot \left(b \cdot z\right) + y \cdot z\right)}\right) \]
          2. +-commutativeN/A

            \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot z + \color{blue}{a \cdot \left(b \cdot z\right)}\right)\right) \]
          3. associate-*r*N/A

            \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot z + \left(a \cdot b\right) \cdot \color{blue}{z}\right)\right) \]
          4. distribute-rgt-inN/A

            \[\leadsto \mathsf{+.f64}\left(x, \left(z \cdot \color{blue}{\left(y + a \cdot b\right)}\right)\right) \]
          5. *-lowering-*.f64N/A

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(z, \color{blue}{\left(y + a \cdot b\right)}\right)\right) \]
          6. +-lowering-+.f64N/A

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(z, \mathsf{+.f64}\left(y, \color{blue}{\left(a \cdot b\right)}\right)\right)\right) \]
          7. *-lowering-*.f6497.0%

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(z, \mathsf{+.f64}\left(y, \mathsf{*.f64}\left(a, \color{blue}{b}\right)\right)\right)\right) \]
        7. Simplified97.0%

          \[\leadsto \color{blue}{x + z \cdot \left(y + a \cdot b\right)} \]

        if -7.499999999999999e247 < z < 1.0000000000000001e44

        1. Initial program 95.7%

          \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
        2. Step-by-step derivation
          1. associate-+l+N/A

            \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
          2. +-commutativeN/A

            \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
          3. associate-+l+N/A

            \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
          4. +-lowering-+.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
          5. *-lowering-*.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
          6. +-lowering-+.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
          7. *-commutativeN/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
          8. associate-*l*N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
          9. distribute-lft-outN/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
          10. *-lowering-*.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
          11. +-lowering-+.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
          12. *-lowering-*.f6498.4%

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
        3. Simplified98.4%

          \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
        4. Add Preprocessing
      3. Recombined 2 regimes into one program.
      4. Final simplification98.0%

        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -7.5 \cdot 10^{+247}:\\ \;\;\;\;x + z \cdot \left(y + a \cdot b\right)\\ \mathbf{elif}\;z \leq 10^{+44}:\\ \;\;\;\;\left(x + a \cdot \left(t + z \cdot b\right)\right) + y \cdot z\\ \mathbf{else}:\\ \;\;\;\;x + z \cdot \left(y + a \cdot b\right)\\ \end{array} \]
      5. Add Preprocessing

      Alternative 6: 85.9% accurate, 0.7× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \left(t + z \cdot \left(b + \frac{y}{a}\right)\right)\\ \mathbf{if}\;a \leq -2.7 \cdot 10^{+69}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 9.8 \cdot 10^{+58}:\\ \;\;\;\;x + z \cdot \left(y + a \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
      (FPCore (x y z t a b)
       :precision binary64
       (let* ((t_1 (* a (+ t (* z (+ b (/ y a)))))))
         (if (<= a -2.7e+69) t_1 (if (<= a 9.8e+58) (+ x (* z (+ y (* a b)))) t_1))))
      double code(double x, double y, double z, double t, double a, double b) {
      	double t_1 = a * (t + (z * (b + (y / a))));
      	double tmp;
      	if (a <= -2.7e+69) {
      		tmp = t_1;
      	} else if (a <= 9.8e+58) {
      		tmp = x + (z * (y + (a * b)));
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      real(8) function code(x, y, z, t, a, b)
          real(8), intent (in) :: x
          real(8), intent (in) :: y
          real(8), intent (in) :: z
          real(8), intent (in) :: t
          real(8), intent (in) :: a
          real(8), intent (in) :: b
          real(8) :: t_1
          real(8) :: tmp
          t_1 = a * (t + (z * (b + (y / a))))
          if (a <= (-2.7d+69)) then
              tmp = t_1
          else if (a <= 9.8d+58) then
              tmp = x + (z * (y + (a * b)))
          else
              tmp = t_1
          end if
          code = tmp
      end function
      
      public static double code(double x, double y, double z, double t, double a, double b) {
      	double t_1 = a * (t + (z * (b + (y / a))));
      	double tmp;
      	if (a <= -2.7e+69) {
      		tmp = t_1;
      	} else if (a <= 9.8e+58) {
      		tmp = x + (z * (y + (a * b)));
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      def code(x, y, z, t, a, b):
      	t_1 = a * (t + (z * (b + (y / a))))
      	tmp = 0
      	if a <= -2.7e+69:
      		tmp = t_1
      	elif a <= 9.8e+58:
      		tmp = x + (z * (y + (a * b)))
      	else:
      		tmp = t_1
      	return tmp
      
      function code(x, y, z, t, a, b)
      	t_1 = Float64(a * Float64(t + Float64(z * Float64(b + Float64(y / a)))))
      	tmp = 0.0
      	if (a <= -2.7e+69)
      		tmp = t_1;
      	elseif (a <= 9.8e+58)
      		tmp = Float64(x + Float64(z * Float64(y + Float64(a * b))));
      	else
      		tmp = t_1;
      	end
      	return tmp
      end
      
      function tmp_2 = code(x, y, z, t, a, b)
      	t_1 = a * (t + (z * (b + (y / a))));
      	tmp = 0.0;
      	if (a <= -2.7e+69)
      		tmp = t_1;
      	elseif (a <= 9.8e+58)
      		tmp = x + (z * (y + (a * b)));
      	else
      		tmp = t_1;
      	end
      	tmp_2 = tmp;
      end
      
      code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(t + N[(z * N[(b + N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.7e+69], t$95$1, If[LessEqual[a, 9.8e+58], N[(x + N[(z * N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := a \cdot \left(t + z \cdot \left(b + \frac{y}{a}\right)\right)\\
      \mathbf{if}\;a \leq -2.7 \cdot 10^{+69}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;a \leq 9.8 \cdot 10^{+58}:\\
      \;\;\;\;x + z \cdot \left(y + a \cdot b\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if a < -2.6999999999999998e69 or 9.80000000000000037e58 < a

        1. Initial program 78.4%

          \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
        2. Step-by-step derivation
          1. associate-+l+N/A

            \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
          2. +-commutativeN/A

            \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
          3. associate-+l+N/A

            \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
          4. +-lowering-+.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
          5. *-lowering-*.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
          6. +-lowering-+.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
          7. *-commutativeN/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
          8. associate-*l*N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
          9. distribute-lft-outN/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
          10. *-lowering-*.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
          11. +-lowering-+.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
          12. *-lowering-*.f6492.4%

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
        3. Simplified92.4%

          \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
        4. Add Preprocessing
        5. Taylor expanded in a around inf

          \[\leadsto \color{blue}{a \cdot \left(t + \left(b \cdot z + \left(\frac{x}{a} + \frac{y \cdot z}{a}\right)\right)\right)} \]
        6. Step-by-step derivation
          1. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(a, \color{blue}{\left(t + \left(b \cdot z + \left(\frac{x}{a} + \frac{y \cdot z}{a}\right)\right)\right)}\right) \]
          2. associate-+r+N/A

            \[\leadsto \mathsf{*.f64}\left(a, \left(t + \left(\left(b \cdot z + \frac{x}{a}\right) + \color{blue}{\frac{y \cdot z}{a}}\right)\right)\right) \]
          3. +-commutativeN/A

            \[\leadsto \mathsf{*.f64}\left(a, \left(t + \left(\left(\frac{x}{a} + b \cdot z\right) + \frac{\color{blue}{y \cdot z}}{a}\right)\right)\right) \]
          4. associate-+l+N/A

            \[\leadsto \mathsf{*.f64}\left(a, \left(t + \left(\frac{x}{a} + \color{blue}{\left(b \cdot z + \frac{y \cdot z}{a}\right)}\right)\right)\right) \]
          5. associate-+r+N/A

            \[\leadsto \mathsf{*.f64}\left(a, \left(\left(t + \frac{x}{a}\right) + \color{blue}{\left(b \cdot z + \frac{y \cdot z}{a}\right)}\right)\right) \]
          6. +-lowering-+.f64N/A

            \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\left(t + \frac{x}{a}\right), \color{blue}{\left(b \cdot z + \frac{y \cdot z}{a}\right)}\right)\right) \]
          7. +-lowering-+.f64N/A

            \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\mathsf{+.f64}\left(t, \left(\frac{x}{a}\right)\right), \left(\color{blue}{b \cdot z} + \frac{y \cdot z}{a}\right)\right)\right) \]
          8. /-lowering-/.f64N/A

            \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\mathsf{+.f64}\left(t, \mathsf{/.f64}\left(x, a\right)\right), \left(b \cdot \color{blue}{z} + \frac{y \cdot z}{a}\right)\right)\right) \]
          9. *-commutativeN/A

            \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\mathsf{+.f64}\left(t, \mathsf{/.f64}\left(x, a\right)\right), \left(z \cdot b + \frac{\color{blue}{y \cdot z}}{a}\right)\right)\right) \]
          10. *-commutativeN/A

            \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\mathsf{+.f64}\left(t, \mathsf{/.f64}\left(x, a\right)\right), \left(z \cdot b + \frac{z \cdot y}{a}\right)\right)\right) \]
          11. associate-/l*N/A

            \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\mathsf{+.f64}\left(t, \mathsf{/.f64}\left(x, a\right)\right), \left(z \cdot b + z \cdot \color{blue}{\frac{y}{a}}\right)\right)\right) \]
          12. distribute-lft-outN/A

            \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\mathsf{+.f64}\left(t, \mathsf{/.f64}\left(x, a\right)\right), \left(z \cdot \color{blue}{\left(b + \frac{y}{a}\right)}\right)\right)\right) \]
          13. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\mathsf{+.f64}\left(t, \mathsf{/.f64}\left(x, a\right)\right), \mathsf{*.f64}\left(z, \color{blue}{\left(b + \frac{y}{a}\right)}\right)\right)\right) \]
          14. +-lowering-+.f64N/A

            \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\mathsf{+.f64}\left(t, \mathsf{/.f64}\left(x, a\right)\right), \mathsf{*.f64}\left(z, \mathsf{+.f64}\left(b, \color{blue}{\left(\frac{y}{a}\right)}\right)\right)\right)\right) \]
          15. /-lowering-/.f6499.9%

            \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\mathsf{+.f64}\left(t, \mathsf{/.f64}\left(x, a\right)\right), \mathsf{*.f64}\left(z, \mathsf{+.f64}\left(b, \mathsf{/.f64}\left(y, \color{blue}{a}\right)\right)\right)\right)\right) \]
        7. Simplified99.9%

          \[\leadsto \color{blue}{a \cdot \left(\left(t + \frac{x}{a}\right) + z \cdot \left(b + \frac{y}{a}\right)\right)} \]
        8. Taylor expanded in x around 0

          \[\leadsto \color{blue}{a \cdot \left(t + z \cdot \left(b + \frac{y}{a}\right)\right)} \]
        9. Step-by-step derivation
          1. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot \left(b + \frac{y}{a}\right)\right)}\right) \]
          2. +-lowering-+.f64N/A

            \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot \left(b + \frac{y}{a}\right)\right)}\right)\right) \]
          3. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{\left(b + \frac{y}{a}\right)}\right)\right)\right) \]
          4. +-lowering-+.f64N/A

            \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \mathsf{+.f64}\left(b, \color{blue}{\left(\frac{y}{a}\right)}\right)\right)\right)\right) \]
          5. /-lowering-/.f6494.2%

            \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \mathsf{+.f64}\left(b, \mathsf{/.f64}\left(y, \color{blue}{a}\right)\right)\right)\right)\right) \]
        10. Simplified94.2%

          \[\leadsto \color{blue}{a \cdot \left(t + z \cdot \left(b + \frac{y}{a}\right)\right)} \]

        if -2.6999999999999998e69 < a < 9.80000000000000037e58

        1. Initial program 96.7%

          \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
        2. Step-by-step derivation
          1. associate-+l+N/A

            \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
          2. +-commutativeN/A

            \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
          3. associate-+l+N/A

            \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
          4. +-lowering-+.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
          5. *-lowering-*.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
          6. +-lowering-+.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
          7. *-commutativeN/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
          8. associate-*l*N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
          9. distribute-lft-outN/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
          10. *-lowering-*.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
          11. +-lowering-+.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
          12. *-lowering-*.f6494.2%

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
        3. Simplified94.2%

          \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
        4. Add Preprocessing
        5. Taylor expanded in t around 0

          \[\leadsto \color{blue}{x + \left(a \cdot \left(b \cdot z\right) + y \cdot z\right)} \]
        6. Step-by-step derivation
          1. +-lowering-+.f64N/A

            \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(a \cdot \left(b \cdot z\right) + y \cdot z\right)}\right) \]
          2. +-commutativeN/A

            \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot z + \color{blue}{a \cdot \left(b \cdot z\right)}\right)\right) \]
          3. associate-*r*N/A

            \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot z + \left(a \cdot b\right) \cdot \color{blue}{z}\right)\right) \]
          4. distribute-rgt-inN/A

            \[\leadsto \mathsf{+.f64}\left(x, \left(z \cdot \color{blue}{\left(y + a \cdot b\right)}\right)\right) \]
          5. *-lowering-*.f64N/A

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(z, \color{blue}{\left(y + a \cdot b\right)}\right)\right) \]
          6. +-lowering-+.f64N/A

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(z, \mathsf{+.f64}\left(y, \color{blue}{\left(a \cdot b\right)}\right)\right)\right) \]
          7. *-lowering-*.f6491.9%

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(z, \mathsf{+.f64}\left(y, \mathsf{*.f64}\left(a, \color{blue}{b}\right)\right)\right)\right) \]
        7. Simplified91.9%

          \[\leadsto \color{blue}{x + z \cdot \left(y + a \cdot b\right)} \]
      3. Recombined 2 regimes into one program.
      4. Add Preprocessing

      Alternative 7: 63.5% accurate, 0.7× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := x + t \cdot a\\ \mathbf{if}\;a \leq -7.1 \cdot 10^{+99}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 8 \cdot 10^{+41}:\\ \;\;\;\;x + y \cdot z\\ \mathbf{elif}\;a \leq 1.15 \cdot 10^{+196}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot a\right) \cdot b\\ \end{array} \end{array} \]
      (FPCore (x y z t a b)
       :precision binary64
       (let* ((t_1 (+ x (* t a))))
         (if (<= a -7.1e+99)
           t_1
           (if (<= a 8e+41) (+ x (* y z)) (if (<= a 1.15e+196) t_1 (* (* z a) b))))))
      double code(double x, double y, double z, double t, double a, double b) {
      	double t_1 = x + (t * a);
      	double tmp;
      	if (a <= -7.1e+99) {
      		tmp = t_1;
      	} else if (a <= 8e+41) {
      		tmp = x + (y * z);
      	} else if (a <= 1.15e+196) {
      		tmp = t_1;
      	} else {
      		tmp = (z * a) * b;
      	}
      	return tmp;
      }
      
      real(8) function code(x, y, z, t, a, b)
          real(8), intent (in) :: x
          real(8), intent (in) :: y
          real(8), intent (in) :: z
          real(8), intent (in) :: t
          real(8), intent (in) :: a
          real(8), intent (in) :: b
          real(8) :: t_1
          real(8) :: tmp
          t_1 = x + (t * a)
          if (a <= (-7.1d+99)) then
              tmp = t_1
          else if (a <= 8d+41) then
              tmp = x + (y * z)
          else if (a <= 1.15d+196) then
              tmp = t_1
          else
              tmp = (z * a) * b
          end if
          code = tmp
      end function
      
      public static double code(double x, double y, double z, double t, double a, double b) {
      	double t_1 = x + (t * a);
      	double tmp;
      	if (a <= -7.1e+99) {
      		tmp = t_1;
      	} else if (a <= 8e+41) {
      		tmp = x + (y * z);
      	} else if (a <= 1.15e+196) {
      		tmp = t_1;
      	} else {
      		tmp = (z * a) * b;
      	}
      	return tmp;
      }
      
      def code(x, y, z, t, a, b):
      	t_1 = x + (t * a)
      	tmp = 0
      	if a <= -7.1e+99:
      		tmp = t_1
      	elif a <= 8e+41:
      		tmp = x + (y * z)
      	elif a <= 1.15e+196:
      		tmp = t_1
      	else:
      		tmp = (z * a) * b
      	return tmp
      
      function code(x, y, z, t, a, b)
      	t_1 = Float64(x + Float64(t * a))
      	tmp = 0.0
      	if (a <= -7.1e+99)
      		tmp = t_1;
      	elseif (a <= 8e+41)
      		tmp = Float64(x + Float64(y * z));
      	elseif (a <= 1.15e+196)
      		tmp = t_1;
      	else
      		tmp = Float64(Float64(z * a) * b);
      	end
      	return tmp
      end
      
      function tmp_2 = code(x, y, z, t, a, b)
      	t_1 = x + (t * a);
      	tmp = 0.0;
      	if (a <= -7.1e+99)
      		tmp = t_1;
      	elseif (a <= 8e+41)
      		tmp = x + (y * z);
      	elseif (a <= 1.15e+196)
      		tmp = t_1;
      	else
      		tmp = (z * a) * b;
      	end
      	tmp_2 = tmp;
      end
      
      code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(t * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.1e+99], t$95$1, If[LessEqual[a, 8e+41], N[(x + N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.15e+196], t$95$1, N[(N[(z * a), $MachinePrecision] * b), $MachinePrecision]]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := x + t \cdot a\\
      \mathbf{if}\;a \leq -7.1 \cdot 10^{+99}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;a \leq 8 \cdot 10^{+41}:\\
      \;\;\;\;x + y \cdot z\\
      
      \mathbf{elif}\;a \leq 1.15 \cdot 10^{+196}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{else}:\\
      \;\;\;\;\left(z \cdot a\right) \cdot b\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if a < -7.09999999999999994e99 or 8.00000000000000005e41 < a < 1.1499999999999999e196

        1. Initial program 80.5%

          \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
        2. Step-by-step derivation
          1. associate-+l+N/A

            \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
          2. +-commutativeN/A

            \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
          3. associate-+l+N/A

            \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
          4. +-lowering-+.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
          5. *-lowering-*.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
          6. +-lowering-+.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
          7. *-commutativeN/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
          8. associate-*l*N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
          9. distribute-lft-outN/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
          10. *-lowering-*.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
          11. +-lowering-+.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
          12. *-lowering-*.f6495.7%

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
        3. Simplified95.7%

          \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
        4. Add Preprocessing
        5. Taylor expanded in z around 0

          \[\leadsto \color{blue}{x + a \cdot t} \]
        6. Step-by-step derivation
          1. +-lowering-+.f64N/A

            \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(a \cdot t\right)}\right) \]
          2. *-lowering-*.f6458.8%

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{t}\right)\right) \]
        7. Simplified58.8%

          \[\leadsto \color{blue}{x + a \cdot t} \]

        if -7.09999999999999994e99 < a < 8.00000000000000005e41

        1. Initial program 95.5%

          \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
        2. Step-by-step derivation
          1. associate-+l+N/A

            \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
          2. +-commutativeN/A

            \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
          3. associate-+l+N/A

            \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
          4. +-lowering-+.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
          5. *-lowering-*.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
          6. +-lowering-+.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
          7. *-commutativeN/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
          8. associate-*l*N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
          9. distribute-lft-outN/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
          10. *-lowering-*.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
          11. +-lowering-+.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
          12. *-lowering-*.f6493.0%

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
        3. Simplified93.0%

          \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
        4. Add Preprocessing
        5. Taylor expanded in x around inf

          \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \color{blue}{x}\right) \]
        6. Step-by-step derivation
          1. Simplified76.7%

            \[\leadsto y \cdot z + \color{blue}{x} \]

          if 1.1499999999999999e196 < a

          1. Initial program 77.3%

            \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
          2. Step-by-step derivation
            1. associate-+l+N/A

              \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
            2. +-commutativeN/A

              \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
            3. associate-+l+N/A

              \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
            4. +-lowering-+.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
            5. *-lowering-*.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
            6. +-lowering-+.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
            7. *-commutativeN/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
            8. associate-*l*N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
            9. distribute-lft-outN/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
            10. *-lowering-*.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
            11. +-lowering-+.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
            12. *-lowering-*.f6490.2%

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
          3. Simplified90.2%

            \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
          4. Add Preprocessing
          5. Taylor expanded in b around inf

            \[\leadsto \color{blue}{a \cdot \left(b \cdot z\right)} \]
          6. Step-by-step derivation
            1. associate-*r*N/A

              \[\leadsto \left(a \cdot b\right) \cdot \color{blue}{z} \]
            2. *-commutativeN/A

              \[\leadsto \left(b \cdot a\right) \cdot z \]
            3. associate-*r*N/A

              \[\leadsto b \cdot \color{blue}{\left(a \cdot z\right)} \]
            4. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(b, \color{blue}{\left(a \cdot z\right)}\right) \]
            5. *-lowering-*.f6462.2%

              \[\leadsto \mathsf{*.f64}\left(b, \mathsf{*.f64}\left(a, \color{blue}{z}\right)\right) \]
          7. Simplified62.2%

            \[\leadsto \color{blue}{b \cdot \left(a \cdot z\right)} \]
        7. Recombined 3 regimes into one program.
        8. Final simplification70.0%

          \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -7.1 \cdot 10^{+99}:\\ \;\;\;\;x + t \cdot a\\ \mathbf{elif}\;a \leq 8 \cdot 10^{+41}:\\ \;\;\;\;x + y \cdot z\\ \mathbf{elif}\;a \leq 1.15 \cdot 10^{+196}:\\ \;\;\;\;x + t \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot a\right) \cdot b\\ \end{array} \]
        9. Add Preprocessing

        Alternative 8: 87.3% accurate, 0.8× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := x + a \cdot \left(t + z \cdot b\right)\\ \mathbf{if}\;a \leq -300000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 3.4 \cdot 10^{+41}:\\ \;\;\;\;x + z \cdot \left(y + a \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
        (FPCore (x y z t a b)
         :precision binary64
         (let* ((t_1 (+ x (* a (+ t (* z b))))))
           (if (<= a -300000000.0)
             t_1
             (if (<= a 3.4e+41) (+ x (* z (+ y (* a b)))) t_1))))
        double code(double x, double y, double z, double t, double a, double b) {
        	double t_1 = x + (a * (t + (z * b)));
        	double tmp;
        	if (a <= -300000000.0) {
        		tmp = t_1;
        	} else if (a <= 3.4e+41) {
        		tmp = x + (z * (y + (a * b)));
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        real(8) function code(x, y, z, t, a, b)
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            real(8), intent (in) :: z
            real(8), intent (in) :: t
            real(8), intent (in) :: a
            real(8), intent (in) :: b
            real(8) :: t_1
            real(8) :: tmp
            t_1 = x + (a * (t + (z * b)))
            if (a <= (-300000000.0d0)) then
                tmp = t_1
            else if (a <= 3.4d+41) then
                tmp = x + (z * (y + (a * b)))
            else
                tmp = t_1
            end if
            code = tmp
        end function
        
        public static double code(double x, double y, double z, double t, double a, double b) {
        	double t_1 = x + (a * (t + (z * b)));
        	double tmp;
        	if (a <= -300000000.0) {
        		tmp = t_1;
        	} else if (a <= 3.4e+41) {
        		tmp = x + (z * (y + (a * b)));
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        def code(x, y, z, t, a, b):
        	t_1 = x + (a * (t + (z * b)))
        	tmp = 0
        	if a <= -300000000.0:
        		tmp = t_1
        	elif a <= 3.4e+41:
        		tmp = x + (z * (y + (a * b)))
        	else:
        		tmp = t_1
        	return tmp
        
        function code(x, y, z, t, a, b)
        	t_1 = Float64(x + Float64(a * Float64(t + Float64(z * b))))
        	tmp = 0.0
        	if (a <= -300000000.0)
        		tmp = t_1;
        	elseif (a <= 3.4e+41)
        		tmp = Float64(x + Float64(z * Float64(y + Float64(a * b))));
        	else
        		tmp = t_1;
        	end
        	return tmp
        end
        
        function tmp_2 = code(x, y, z, t, a, b)
        	t_1 = x + (a * (t + (z * b)));
        	tmp = 0.0;
        	if (a <= -300000000.0)
        		tmp = t_1;
        	elseif (a <= 3.4e+41)
        		tmp = x + (z * (y + (a * b)));
        	else
        		tmp = t_1;
        	end
        	tmp_2 = tmp;
        end
        
        code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -300000000.0], t$95$1, If[LessEqual[a, 3.4e+41], N[(x + N[(z * N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := x + a \cdot \left(t + z \cdot b\right)\\
        \mathbf{if}\;a \leq -300000000:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;a \leq 3.4 \cdot 10^{+41}:\\
        \;\;\;\;x + z \cdot \left(y + a \cdot b\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if a < -3e8 or 3.39999999999999998e41 < a

          1. Initial program 80.4%

            \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
          2. Step-by-step derivation
            1. associate-+l+N/A

              \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
            2. +-commutativeN/A

              \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
            3. associate-+l+N/A

              \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
            4. +-lowering-+.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
            5. *-lowering-*.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
            6. +-lowering-+.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
            7. *-commutativeN/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
            8. associate-*l*N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
            9. distribute-lft-outN/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
            10. *-lowering-*.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
            11. +-lowering-+.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
            12. *-lowering-*.f6492.8%

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
          3. Simplified92.8%

            \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
          4. Add Preprocessing
          5. Taylor expanded in y around 0

            \[\leadsto \color{blue}{x + a \cdot \left(t + b \cdot z\right)} \]
          6. Step-by-step derivation
            1. +-lowering-+.f64N/A

              \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(a \cdot \left(t + b \cdot z\right)\right)}\right) \]
            2. *-lowering-*.f64N/A

              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + b \cdot z\right)}\right)\right) \]
            3. +-lowering-+.f64N/A

              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(b \cdot z\right)}\right)\right)\right) \]
            4. *-lowering-*.f6488.1%

              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(b, \color{blue}{z}\right)\right)\right)\right) \]
          7. Simplified88.1%

            \[\leadsto \color{blue}{x + a \cdot \left(t + b \cdot z\right)} \]

          if -3e8 < a < 3.39999999999999998e41

          1. Initial program 97.7%

            \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
          2. Step-by-step derivation
            1. associate-+l+N/A

              \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
            2. +-commutativeN/A

              \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
            3. associate-+l+N/A

              \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
            4. +-lowering-+.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
            5. *-lowering-*.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
            6. +-lowering-+.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
            7. *-commutativeN/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
            8. associate-*l*N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
            9. distribute-lft-outN/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
            10. *-lowering-*.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
            11. +-lowering-+.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
            12. *-lowering-*.f6494.0%

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
          3. Simplified94.0%

            \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
          4. Add Preprocessing
          5. Taylor expanded in t around 0

            \[\leadsto \color{blue}{x + \left(a \cdot \left(b \cdot z\right) + y \cdot z\right)} \]
          6. Step-by-step derivation
            1. +-lowering-+.f64N/A

              \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(a \cdot \left(b \cdot z\right) + y \cdot z\right)}\right) \]
            2. +-commutativeN/A

              \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot z + \color{blue}{a \cdot \left(b \cdot z\right)}\right)\right) \]
            3. associate-*r*N/A

              \[\leadsto \mathsf{+.f64}\left(x, \left(y \cdot z + \left(a \cdot b\right) \cdot \color{blue}{z}\right)\right) \]
            4. distribute-rgt-inN/A

              \[\leadsto \mathsf{+.f64}\left(x, \left(z \cdot \color{blue}{\left(y + a \cdot b\right)}\right)\right) \]
            5. *-lowering-*.f64N/A

              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(z, \color{blue}{\left(y + a \cdot b\right)}\right)\right) \]
            6. +-lowering-+.f64N/A

              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(z, \mathsf{+.f64}\left(y, \color{blue}{\left(a \cdot b\right)}\right)\right)\right) \]
            7. *-lowering-*.f6494.2%

              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(z, \mathsf{+.f64}\left(y, \mathsf{*.f64}\left(a, \color{blue}{b}\right)\right)\right)\right) \]
          7. Simplified94.2%

            \[\leadsto \color{blue}{x + z \cdot \left(y + a \cdot b\right)} \]
        3. Recombined 2 regimes into one program.
        4. Final simplification91.2%

          \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -300000000:\\ \;\;\;\;x + a \cdot \left(t + z \cdot b\right)\\ \mathbf{elif}\;a \leq 3.4 \cdot 10^{+41}:\\ \;\;\;\;x + z \cdot \left(y + a \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;x + a \cdot \left(t + z \cdot b\right)\\ \end{array} \]
        5. Add Preprocessing

        Alternative 9: 80.3% accurate, 0.8× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := x + a \cdot \left(t + z \cdot b\right)\\ \mathbf{if}\;a \leq -4 \cdot 10^{-12}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 3.3 \cdot 10^{+41}:\\ \;\;\;\;x + y \cdot z\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
        (FPCore (x y z t a b)
         :precision binary64
         (let* ((t_1 (+ x (* a (+ t (* z b))))))
           (if (<= a -4e-12) t_1 (if (<= a 3.3e+41) (+ x (* y z)) t_1))))
        double code(double x, double y, double z, double t, double a, double b) {
        	double t_1 = x + (a * (t + (z * b)));
        	double tmp;
        	if (a <= -4e-12) {
        		tmp = t_1;
        	} else if (a <= 3.3e+41) {
        		tmp = x + (y * z);
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        real(8) function code(x, y, z, t, a, b)
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            real(8), intent (in) :: z
            real(8), intent (in) :: t
            real(8), intent (in) :: a
            real(8), intent (in) :: b
            real(8) :: t_1
            real(8) :: tmp
            t_1 = x + (a * (t + (z * b)))
            if (a <= (-4d-12)) then
                tmp = t_1
            else if (a <= 3.3d+41) then
                tmp = x + (y * z)
            else
                tmp = t_1
            end if
            code = tmp
        end function
        
        public static double code(double x, double y, double z, double t, double a, double b) {
        	double t_1 = x + (a * (t + (z * b)));
        	double tmp;
        	if (a <= -4e-12) {
        		tmp = t_1;
        	} else if (a <= 3.3e+41) {
        		tmp = x + (y * z);
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        def code(x, y, z, t, a, b):
        	t_1 = x + (a * (t + (z * b)))
        	tmp = 0
        	if a <= -4e-12:
        		tmp = t_1
        	elif a <= 3.3e+41:
        		tmp = x + (y * z)
        	else:
        		tmp = t_1
        	return tmp
        
        function code(x, y, z, t, a, b)
        	t_1 = Float64(x + Float64(a * Float64(t + Float64(z * b))))
        	tmp = 0.0
        	if (a <= -4e-12)
        		tmp = t_1;
        	elseif (a <= 3.3e+41)
        		tmp = Float64(x + Float64(y * z));
        	else
        		tmp = t_1;
        	end
        	return tmp
        end
        
        function tmp_2 = code(x, y, z, t, a, b)
        	t_1 = x + (a * (t + (z * b)));
        	tmp = 0.0;
        	if (a <= -4e-12)
        		tmp = t_1;
        	elseif (a <= 3.3e+41)
        		tmp = x + (y * z);
        	else
        		tmp = t_1;
        	end
        	tmp_2 = tmp;
        end
        
        code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4e-12], t$95$1, If[LessEqual[a, 3.3e+41], N[(x + N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := x + a \cdot \left(t + z \cdot b\right)\\
        \mathbf{if}\;a \leq -4 \cdot 10^{-12}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;a \leq 3.3 \cdot 10^{+41}:\\
        \;\;\;\;x + y \cdot z\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if a < -3.99999999999999992e-12 or 3.3e41 < a

          1. Initial program 81.0%

            \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
          2. Step-by-step derivation
            1. associate-+l+N/A

              \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
            2. +-commutativeN/A

              \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
            3. associate-+l+N/A

              \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
            4. +-lowering-+.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
            5. *-lowering-*.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
            6. +-lowering-+.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
            7. *-commutativeN/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
            8. associate-*l*N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
            9. distribute-lft-outN/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
            10. *-lowering-*.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
            11. +-lowering-+.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
            12. *-lowering-*.f6493.1%

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
          3. Simplified93.1%

            \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
          4. Add Preprocessing
          5. Taylor expanded in y around 0

            \[\leadsto \color{blue}{x + a \cdot \left(t + b \cdot z\right)} \]
          6. Step-by-step derivation
            1. +-lowering-+.f64N/A

              \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(a \cdot \left(t + b \cdot z\right)\right)}\right) \]
            2. *-lowering-*.f64N/A

              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + b \cdot z\right)}\right)\right) \]
            3. +-lowering-+.f64N/A

              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(b \cdot z\right)}\right)\right)\right) \]
            4. *-lowering-*.f6487.8%

              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(b, \color{blue}{z}\right)\right)\right)\right) \]
          7. Simplified87.8%

            \[\leadsto \color{blue}{x + a \cdot \left(t + b \cdot z\right)} \]

          if -3.99999999999999992e-12 < a < 3.3e41

          1. Initial program 97.7%

            \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
          2. Step-by-step derivation
            1. associate-+l+N/A

              \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
            2. +-commutativeN/A

              \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
            3. associate-+l+N/A

              \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
            4. +-lowering-+.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
            5. *-lowering-*.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
            6. +-lowering-+.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
            7. *-commutativeN/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
            8. associate-*l*N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
            9. distribute-lft-outN/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
            10. *-lowering-*.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
            11. +-lowering-+.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
            12. *-lowering-*.f6493.8%

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
          3. Simplified93.8%

            \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
          4. Add Preprocessing
          5. Taylor expanded in x around inf

            \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \color{blue}{x}\right) \]
          6. Step-by-step derivation
            1. Simplified83.7%

              \[\leadsto y \cdot z + \color{blue}{x} \]
          7. Recombined 2 regimes into one program.
          8. Final simplification85.8%

            \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -4 \cdot 10^{-12}:\\ \;\;\;\;x + a \cdot \left(t + z \cdot b\right)\\ \mathbf{elif}\;a \leq 3.3 \cdot 10^{+41}:\\ \;\;\;\;x + y \cdot z\\ \mathbf{else}:\\ \;\;\;\;x + a \cdot \left(t + z \cdot b\right)\\ \end{array} \]
          9. Add Preprocessing

          Alternative 10: 73.9% accurate, 0.9× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \left(t + z \cdot b\right)\\ \mathbf{if}\;a \leq -12000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 4.2 \cdot 10^{+41}:\\ \;\;\;\;x + y \cdot z\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
          (FPCore (x y z t a b)
           :precision binary64
           (let* ((t_1 (* a (+ t (* z b)))))
             (if (<= a -12000000.0) t_1 (if (<= a 4.2e+41) (+ x (* y z)) t_1))))
          double code(double x, double y, double z, double t, double a, double b) {
          	double t_1 = a * (t + (z * b));
          	double tmp;
          	if (a <= -12000000.0) {
          		tmp = t_1;
          	} else if (a <= 4.2e+41) {
          		tmp = x + (y * z);
          	} else {
          		tmp = t_1;
          	}
          	return tmp;
          }
          
          real(8) function code(x, y, z, t, a, b)
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              real(8), intent (in) :: z
              real(8), intent (in) :: t
              real(8), intent (in) :: a
              real(8), intent (in) :: b
              real(8) :: t_1
              real(8) :: tmp
              t_1 = a * (t + (z * b))
              if (a <= (-12000000.0d0)) then
                  tmp = t_1
              else if (a <= 4.2d+41) then
                  tmp = x + (y * z)
              else
                  tmp = t_1
              end if
              code = tmp
          end function
          
          public static double code(double x, double y, double z, double t, double a, double b) {
          	double t_1 = a * (t + (z * b));
          	double tmp;
          	if (a <= -12000000.0) {
          		tmp = t_1;
          	} else if (a <= 4.2e+41) {
          		tmp = x + (y * z);
          	} else {
          		tmp = t_1;
          	}
          	return tmp;
          }
          
          def code(x, y, z, t, a, b):
          	t_1 = a * (t + (z * b))
          	tmp = 0
          	if a <= -12000000.0:
          		tmp = t_1
          	elif a <= 4.2e+41:
          		tmp = x + (y * z)
          	else:
          		tmp = t_1
          	return tmp
          
          function code(x, y, z, t, a, b)
          	t_1 = Float64(a * Float64(t + Float64(z * b)))
          	tmp = 0.0
          	if (a <= -12000000.0)
          		tmp = t_1;
          	elseif (a <= 4.2e+41)
          		tmp = Float64(x + Float64(y * z));
          	else
          		tmp = t_1;
          	end
          	return tmp
          end
          
          function tmp_2 = code(x, y, z, t, a, b)
          	t_1 = a * (t + (z * b));
          	tmp = 0.0;
          	if (a <= -12000000.0)
          		tmp = t_1;
          	elseif (a <= 4.2e+41)
          		tmp = x + (y * z);
          	else
          		tmp = t_1;
          	end
          	tmp_2 = tmp;
          end
          
          code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -12000000.0], t$95$1, If[LessEqual[a, 4.2e+41], N[(x + N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := a \cdot \left(t + z \cdot b\right)\\
          \mathbf{if}\;a \leq -12000000:\\
          \;\;\;\;t\_1\\
          
          \mathbf{elif}\;a \leq 4.2 \cdot 10^{+41}:\\
          \;\;\;\;x + y \cdot z\\
          
          \mathbf{else}:\\
          \;\;\;\;t\_1\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if a < -1.2e7 or 4.1999999999999999e41 < a

            1. Initial program 80.5%

              \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
            2. Step-by-step derivation
              1. associate-+l+N/A

                \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
              2. +-commutativeN/A

                \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
              3. associate-+l+N/A

                \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
              4. +-lowering-+.f64N/A

                \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
              5. *-lowering-*.f64N/A

                \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
              6. +-lowering-+.f64N/A

                \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
              7. *-commutativeN/A

                \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
              8. associate-*l*N/A

                \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
              9. distribute-lft-outN/A

                \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
              10. *-lowering-*.f64N/A

                \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
              11. +-lowering-+.f64N/A

                \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
              12. *-lowering-*.f6492.9%

                \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
            3. Simplified92.9%

              \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
            4. Add Preprocessing
            5. Taylor expanded in a around inf

              \[\leadsto \color{blue}{a \cdot \left(t + b \cdot z\right)} \]
            6. Step-by-step derivation
              1. *-lowering-*.f64N/A

                \[\leadsto \mathsf{*.f64}\left(a, \color{blue}{\left(t + b \cdot z\right)}\right) \]
              2. +-lowering-+.f64N/A

                \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(b \cdot z\right)}\right)\right) \]
              3. *-lowering-*.f6479.0%

                \[\leadsto \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(b, \color{blue}{z}\right)\right)\right) \]
            7. Simplified79.0%

              \[\leadsto \color{blue}{a \cdot \left(t + b \cdot z\right)} \]

            if -1.2e7 < a < 4.1999999999999999e41

            1. Initial program 97.7%

              \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
            2. Step-by-step derivation
              1. associate-+l+N/A

                \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
              2. +-commutativeN/A

                \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
              3. associate-+l+N/A

                \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
              4. +-lowering-+.f64N/A

                \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
              5. *-lowering-*.f64N/A

                \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
              6. +-lowering-+.f64N/A

                \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
              7. *-commutativeN/A

                \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
              8. associate-*l*N/A

                \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
              9. distribute-lft-outN/A

                \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
              10. *-lowering-*.f64N/A

                \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
              11. +-lowering-+.f64N/A

                \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
              12. *-lowering-*.f6494.0%

                \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
            3. Simplified94.0%

              \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
            4. Add Preprocessing
            5. Taylor expanded in x around inf

              \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \color{blue}{x}\right) \]
            6. Step-by-step derivation
              1. Simplified83.4%

                \[\leadsto y \cdot z + \color{blue}{x} \]
            7. Recombined 2 regimes into one program.
            8. Final simplification81.2%

              \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -12000000:\\ \;\;\;\;a \cdot \left(t + z \cdot b\right)\\ \mathbf{elif}\;a \leq 4.2 \cdot 10^{+41}:\\ \;\;\;\;x + y \cdot z\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(t + z \cdot b\right)\\ \end{array} \]
            9. Add Preprocessing

            Alternative 11: 58.1% accurate, 1.0× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -3 \cdot 10^{-33}:\\ \;\;\;\;y \cdot z\\ \mathbf{elif}\;z \leq 1.05 \cdot 10^{+127}:\\ \;\;\;\;x + t \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot a\right) \cdot b\\ \end{array} \end{array} \]
            (FPCore (x y z t a b)
             :precision binary64
             (if (<= z -3e-33) (* y z) (if (<= z 1.05e+127) (+ x (* t a)) (* (* z a) b))))
            double code(double x, double y, double z, double t, double a, double b) {
            	double tmp;
            	if (z <= -3e-33) {
            		tmp = y * z;
            	} else if (z <= 1.05e+127) {
            		tmp = x + (t * a);
            	} else {
            		tmp = (z * a) * b;
            	}
            	return tmp;
            }
            
            real(8) function code(x, y, z, t, a, b)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                real(8), intent (in) :: z
                real(8), intent (in) :: t
                real(8), intent (in) :: a
                real(8), intent (in) :: b
                real(8) :: tmp
                if (z <= (-3d-33)) then
                    tmp = y * z
                else if (z <= 1.05d+127) then
                    tmp = x + (t * a)
                else
                    tmp = (z * a) * b
                end if
                code = tmp
            end function
            
            public static double code(double x, double y, double z, double t, double a, double b) {
            	double tmp;
            	if (z <= -3e-33) {
            		tmp = y * z;
            	} else if (z <= 1.05e+127) {
            		tmp = x + (t * a);
            	} else {
            		tmp = (z * a) * b;
            	}
            	return tmp;
            }
            
            def code(x, y, z, t, a, b):
            	tmp = 0
            	if z <= -3e-33:
            		tmp = y * z
            	elif z <= 1.05e+127:
            		tmp = x + (t * a)
            	else:
            		tmp = (z * a) * b
            	return tmp
            
            function code(x, y, z, t, a, b)
            	tmp = 0.0
            	if (z <= -3e-33)
            		tmp = Float64(y * z);
            	elseif (z <= 1.05e+127)
            		tmp = Float64(x + Float64(t * a));
            	else
            		tmp = Float64(Float64(z * a) * b);
            	end
            	return tmp
            end
            
            function tmp_2 = code(x, y, z, t, a, b)
            	tmp = 0.0;
            	if (z <= -3e-33)
            		tmp = y * z;
            	elseif (z <= 1.05e+127)
            		tmp = x + (t * a);
            	else
            		tmp = (z * a) * b;
            	end
            	tmp_2 = tmp;
            end
            
            code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -3e-33], N[(y * z), $MachinePrecision], If[LessEqual[z, 1.05e+127], N[(x + N[(t * a), $MachinePrecision]), $MachinePrecision], N[(N[(z * a), $MachinePrecision] * b), $MachinePrecision]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;z \leq -3 \cdot 10^{-33}:\\
            \;\;\;\;y \cdot z\\
            
            \mathbf{elif}\;z \leq 1.05 \cdot 10^{+127}:\\
            \;\;\;\;x + t \cdot a\\
            
            \mathbf{else}:\\
            \;\;\;\;\left(z \cdot a\right) \cdot b\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if z < -3.0000000000000002e-33

              1. Initial program 91.8%

                \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
              2. Step-by-step derivation
                1. associate-+l+N/A

                  \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
                2. +-commutativeN/A

                  \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
                3. associate-+l+N/A

                  \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
                4. +-lowering-+.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
                5. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
                6. +-lowering-+.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
                7. *-commutativeN/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
                8. associate-*l*N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
                9. distribute-lft-outN/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
                10. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
                11. +-lowering-+.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
                12. *-lowering-*.f6488.7%

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
              3. Simplified88.7%

                \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
              4. Add Preprocessing
              5. Taylor expanded in y around inf

                \[\leadsto \color{blue}{y \cdot z} \]
              6. Step-by-step derivation
                1. *-commutativeN/A

                  \[\leadsto z \cdot \color{blue}{y} \]
                2. *-lowering-*.f6455.5%

                  \[\leadsto \mathsf{*.f64}\left(z, \color{blue}{y}\right) \]
              7. Simplified55.5%

                \[\leadsto \color{blue}{z \cdot y} \]

              if -3.0000000000000002e-33 < z < 1.04999999999999996e127

              1. Initial program 93.4%

                \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
              2. Step-by-step derivation
                1. associate-+l+N/A

                  \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
                2. +-commutativeN/A

                  \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
                3. associate-+l+N/A

                  \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
                4. +-lowering-+.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
                5. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
                6. +-lowering-+.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
                7. *-commutativeN/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
                8. associate-*l*N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
                9. distribute-lft-outN/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
                10. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
                11. +-lowering-+.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
                12. *-lowering-*.f6498.7%

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
              3. Simplified98.7%

                \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
              4. Add Preprocessing
              5. Taylor expanded in z around 0

                \[\leadsto \color{blue}{x + a \cdot t} \]
              6. Step-by-step derivation
                1. +-lowering-+.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(a \cdot t\right)}\right) \]
                2. *-lowering-*.f6466.9%

                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{t}\right)\right) \]
              7. Simplified66.9%

                \[\leadsto \color{blue}{x + a \cdot t} \]

              if 1.04999999999999996e127 < z

              1. Initial program 70.7%

                \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
              2. Step-by-step derivation
                1. associate-+l+N/A

                  \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
                2. +-commutativeN/A

                  \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
                3. associate-+l+N/A

                  \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
                4. +-lowering-+.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
                5. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
                6. +-lowering-+.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
                7. *-commutativeN/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
                8. associate-*l*N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
                9. distribute-lft-outN/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
                10. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
                11. +-lowering-+.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
                12. *-lowering-*.f6482.0%

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
              3. Simplified82.0%

                \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
              4. Add Preprocessing
              5. Taylor expanded in b around inf

                \[\leadsto \color{blue}{a \cdot \left(b \cdot z\right)} \]
              6. Step-by-step derivation
                1. associate-*r*N/A

                  \[\leadsto \left(a \cdot b\right) \cdot \color{blue}{z} \]
                2. *-commutativeN/A

                  \[\leadsto \left(b \cdot a\right) \cdot z \]
                3. associate-*r*N/A

                  \[\leadsto b \cdot \color{blue}{\left(a \cdot z\right)} \]
                4. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{*.f64}\left(b, \color{blue}{\left(a \cdot z\right)}\right) \]
                5. *-lowering-*.f6458.9%

                  \[\leadsto \mathsf{*.f64}\left(b, \mathsf{*.f64}\left(a, \color{blue}{z}\right)\right) \]
              7. Simplified58.9%

                \[\leadsto \color{blue}{b \cdot \left(a \cdot z\right)} \]
            3. Recombined 3 regimes into one program.
            4. Final simplification62.8%

              \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3 \cdot 10^{-33}:\\ \;\;\;\;y \cdot z\\ \mathbf{elif}\;z \leq 1.05 \cdot 10^{+127}:\\ \;\;\;\;x + t \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot a\right) \cdot b\\ \end{array} \]
            5. Add Preprocessing

            Alternative 12: 39.5% accurate, 1.2× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -2 \cdot 10^{+128}:\\ \;\;\;\;y \cdot z\\ \mathbf{elif}\;y \leq 2.95 \cdot 10^{+16}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;y \cdot z\\ \end{array} \end{array} \]
            (FPCore (x y z t a b)
             :precision binary64
             (if (<= y -2e+128) (* y z) (if (<= y 2.95e+16) x (* y z))))
            double code(double x, double y, double z, double t, double a, double b) {
            	double tmp;
            	if (y <= -2e+128) {
            		tmp = y * z;
            	} else if (y <= 2.95e+16) {
            		tmp = x;
            	} else {
            		tmp = y * z;
            	}
            	return tmp;
            }
            
            real(8) function code(x, y, z, t, a, b)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                real(8), intent (in) :: z
                real(8), intent (in) :: t
                real(8), intent (in) :: a
                real(8), intent (in) :: b
                real(8) :: tmp
                if (y <= (-2d+128)) then
                    tmp = y * z
                else if (y <= 2.95d+16) then
                    tmp = x
                else
                    tmp = y * z
                end if
                code = tmp
            end function
            
            public static double code(double x, double y, double z, double t, double a, double b) {
            	double tmp;
            	if (y <= -2e+128) {
            		tmp = y * z;
            	} else if (y <= 2.95e+16) {
            		tmp = x;
            	} else {
            		tmp = y * z;
            	}
            	return tmp;
            }
            
            def code(x, y, z, t, a, b):
            	tmp = 0
            	if y <= -2e+128:
            		tmp = y * z
            	elif y <= 2.95e+16:
            		tmp = x
            	else:
            		tmp = y * z
            	return tmp
            
            function code(x, y, z, t, a, b)
            	tmp = 0.0
            	if (y <= -2e+128)
            		tmp = Float64(y * z);
            	elseif (y <= 2.95e+16)
            		tmp = x;
            	else
            		tmp = Float64(y * z);
            	end
            	return tmp
            end
            
            function tmp_2 = code(x, y, z, t, a, b)
            	tmp = 0.0;
            	if (y <= -2e+128)
            		tmp = y * z;
            	elseif (y <= 2.95e+16)
            		tmp = x;
            	else
            		tmp = y * z;
            	end
            	tmp_2 = tmp;
            end
            
            code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -2e+128], N[(y * z), $MachinePrecision], If[LessEqual[y, 2.95e+16], x, N[(y * z), $MachinePrecision]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;y \leq -2 \cdot 10^{+128}:\\
            \;\;\;\;y \cdot z\\
            
            \mathbf{elif}\;y \leq 2.95 \cdot 10^{+16}:\\
            \;\;\;\;x\\
            
            \mathbf{else}:\\
            \;\;\;\;y \cdot z\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if y < -2.0000000000000002e128 or 2.95e16 < y

              1. Initial program 86.6%

                \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
              2. Step-by-step derivation
                1. associate-+l+N/A

                  \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
                2. +-commutativeN/A

                  \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
                3. associate-+l+N/A

                  \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
                4. +-lowering-+.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
                5. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
                6. +-lowering-+.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
                7. *-commutativeN/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
                8. associate-*l*N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
                9. distribute-lft-outN/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
                10. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
                11. +-lowering-+.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
                12. *-lowering-*.f6492.8%

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
              3. Simplified92.8%

                \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
              4. Add Preprocessing
              5. Taylor expanded in y around inf

                \[\leadsto \color{blue}{y \cdot z} \]
              6. Step-by-step derivation
                1. *-commutativeN/A

                  \[\leadsto z \cdot \color{blue}{y} \]
                2. *-lowering-*.f6452.8%

                  \[\leadsto \mathsf{*.f64}\left(z, \color{blue}{y}\right) \]
              7. Simplified52.8%

                \[\leadsto \color{blue}{z \cdot y} \]

              if -2.0000000000000002e128 < y < 2.95e16

              1. Initial program 91.1%

                \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
              2. Step-by-step derivation
                1. associate-+l+N/A

                  \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
                2. +-commutativeN/A

                  \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
                3. associate-+l+N/A

                  \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
                4. +-lowering-+.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
                5. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
                6. +-lowering-+.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
                7. *-commutativeN/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
                8. associate-*l*N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
                9. distribute-lft-outN/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
                10. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
                11. +-lowering-+.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
                12. *-lowering-*.f6493.9%

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
              3. Simplified93.9%

                \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
              4. Add Preprocessing
              5. Taylor expanded in x around inf

                \[\leadsto \color{blue}{x} \]
              6. Step-by-step derivation
                1. Simplified37.2%

                  \[\leadsto \color{blue}{x} \]
              7. Recombined 2 regimes into one program.
              8. Final simplification44.1%

                \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2 \cdot 10^{+128}:\\ \;\;\;\;y \cdot z\\ \mathbf{elif}\;y \leq 2.95 \cdot 10^{+16}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;y \cdot z\\ \end{array} \]
              9. Add Preprocessing

              Alternative 13: 38.9% accurate, 1.2× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -5.7 \cdot 10^{+87}:\\ \;\;\;\;t \cdot a\\ \mathbf{elif}\;a \leq 5.1 \cdot 10^{+37}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;t \cdot a\\ \end{array} \end{array} \]
              (FPCore (x y z t a b)
               :precision binary64
               (if (<= a -5.7e+87) (* t a) (if (<= a 5.1e+37) x (* t a))))
              double code(double x, double y, double z, double t, double a, double b) {
              	double tmp;
              	if (a <= -5.7e+87) {
              		tmp = t * a;
              	} else if (a <= 5.1e+37) {
              		tmp = x;
              	} else {
              		tmp = t * a;
              	}
              	return tmp;
              }
              
              real(8) function code(x, y, z, t, a, b)
                  real(8), intent (in) :: x
                  real(8), intent (in) :: y
                  real(8), intent (in) :: z
                  real(8), intent (in) :: t
                  real(8), intent (in) :: a
                  real(8), intent (in) :: b
                  real(8) :: tmp
                  if (a <= (-5.7d+87)) then
                      tmp = t * a
                  else if (a <= 5.1d+37) then
                      tmp = x
                  else
                      tmp = t * a
                  end if
                  code = tmp
              end function
              
              public static double code(double x, double y, double z, double t, double a, double b) {
              	double tmp;
              	if (a <= -5.7e+87) {
              		tmp = t * a;
              	} else if (a <= 5.1e+37) {
              		tmp = x;
              	} else {
              		tmp = t * a;
              	}
              	return tmp;
              }
              
              def code(x, y, z, t, a, b):
              	tmp = 0
              	if a <= -5.7e+87:
              		tmp = t * a
              	elif a <= 5.1e+37:
              		tmp = x
              	else:
              		tmp = t * a
              	return tmp
              
              function code(x, y, z, t, a, b)
              	tmp = 0.0
              	if (a <= -5.7e+87)
              		tmp = Float64(t * a);
              	elseif (a <= 5.1e+37)
              		tmp = x;
              	else
              		tmp = Float64(t * a);
              	end
              	return tmp
              end
              
              function tmp_2 = code(x, y, z, t, a, b)
              	tmp = 0.0;
              	if (a <= -5.7e+87)
              		tmp = t * a;
              	elseif (a <= 5.1e+37)
              		tmp = x;
              	else
              		tmp = t * a;
              	end
              	tmp_2 = tmp;
              end
              
              code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -5.7e+87], N[(t * a), $MachinePrecision], If[LessEqual[a, 5.1e+37], x, N[(t * a), $MachinePrecision]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              \mathbf{if}\;a \leq -5.7 \cdot 10^{+87}:\\
              \;\;\;\;t \cdot a\\
              
              \mathbf{elif}\;a \leq 5.1 \cdot 10^{+37}:\\
              \;\;\;\;x\\
              
              \mathbf{else}:\\
              \;\;\;\;t \cdot a\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 2 regimes
              2. if a < -5.70000000000000039e87 or 5.10000000000000032e37 < a

                1. Initial program 78.8%

                  \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
                2. Step-by-step derivation
                  1. associate-+l+N/A

                    \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
                  2. +-commutativeN/A

                    \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
                  3. associate-+l+N/A

                    \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
                  4. +-lowering-+.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
                  5. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
                  6. +-lowering-+.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
                  7. *-commutativeN/A

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
                  8. associate-*l*N/A

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
                  9. distribute-lft-outN/A

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
                  10. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
                  11. +-lowering-+.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
                  12. *-lowering-*.f6492.5%

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
                3. Simplified92.5%

                  \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
                4. Add Preprocessing
                5. Taylor expanded in t around inf

                  \[\leadsto \color{blue}{a \cdot t} \]
                6. Step-by-step derivation
                  1. *-lowering-*.f6444.8%

                    \[\leadsto \mathsf{*.f64}\left(a, \color{blue}{t}\right) \]
                7. Simplified44.8%

                  \[\leadsto \color{blue}{a \cdot t} \]

                if -5.70000000000000039e87 < a < 5.10000000000000032e37

                1. Initial program 96.7%

                  \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
                2. Step-by-step derivation
                  1. associate-+l+N/A

                    \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
                  2. +-commutativeN/A

                    \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
                  3. associate-+l+N/A

                    \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
                  4. +-lowering-+.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
                  5. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
                  6. +-lowering-+.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
                  7. *-commutativeN/A

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
                  8. associate-*l*N/A

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
                  9. distribute-lft-outN/A

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
                  10. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
                  11. +-lowering-+.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
                  12. *-lowering-*.f6494.1%

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
                3. Simplified94.1%

                  \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
                4. Add Preprocessing
                5. Taylor expanded in x around inf

                  \[\leadsto \color{blue}{x} \]
                6. Step-by-step derivation
                  1. Simplified40.6%

                    \[\leadsto \color{blue}{x} \]
                7. Recombined 2 regimes into one program.
                8. Final simplification42.4%

                  \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -5.7 \cdot 10^{+87}:\\ \;\;\;\;t \cdot a\\ \mathbf{elif}\;a \leq 5.1 \cdot 10^{+37}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;t \cdot a\\ \end{array} \]
                9. Add Preprocessing

                Alternative 14: 26.8% accurate, 15.0× speedup?

                \[\begin{array}{l} \\ x \end{array} \]
                (FPCore (x y z t a b) :precision binary64 x)
                double code(double x, double y, double z, double t, double a, double b) {
                	return x;
                }
                
                real(8) function code(x, y, z, t, a, b)
                    real(8), intent (in) :: x
                    real(8), intent (in) :: y
                    real(8), intent (in) :: z
                    real(8), intent (in) :: t
                    real(8), intent (in) :: a
                    real(8), intent (in) :: b
                    code = x
                end function
                
                public static double code(double x, double y, double z, double t, double a, double b) {
                	return x;
                }
                
                def code(x, y, z, t, a, b):
                	return x
                
                function code(x, y, z, t, a, b)
                	return x
                end
                
                function tmp = code(x, y, z, t, a, b)
                	tmp = x;
                end
                
                code[x_, y_, z_, t_, a_, b_] := x
                
                \begin{array}{l}
                
                \\
                x
                \end{array}
                
                Derivation
                1. Initial program 89.1%

                  \[\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b \]
                2. Step-by-step derivation
                  1. associate-+l+N/A

                    \[\leadsto \left(x + y \cdot z\right) + \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)} \]
                  2. +-commutativeN/A

                    \[\leadsto \left(y \cdot z + x\right) + \left(\color{blue}{t \cdot a} + \left(a \cdot z\right) \cdot b\right) \]
                  3. associate-+l+N/A

                    \[\leadsto y \cdot z + \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)} \]
                  4. +-lowering-+.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(\left(y \cdot z\right), \color{blue}{\left(x + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)}\right) \]
                  5. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \left(\color{blue}{x} + \left(t \cdot a + \left(a \cdot z\right) \cdot b\right)\right)\right) \]
                  6. +-lowering-+.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \color{blue}{\left(t \cdot a + \left(a \cdot z\right) \cdot b\right)}\right)\right) \]
                  7. *-commutativeN/A

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + \color{blue}{\left(a \cdot z\right)} \cdot b\right)\right)\right) \]
                  8. associate-*l*N/A

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot t + a \cdot \color{blue}{\left(z \cdot b\right)}\right)\right)\right) \]
                  9. distribute-lft-outN/A

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \left(a \cdot \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
                  10. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \color{blue}{\left(t + z \cdot b\right)}\right)\right)\right) \]
                  11. +-lowering-+.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \color{blue}{\left(z \cdot b\right)}\right)\right)\right)\right) \]
                  12. *-lowering-*.f6493.4%

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(t, \mathsf{*.f64}\left(z, \color{blue}{b}\right)\right)\right)\right)\right) \]
                3. Simplified93.4%

                  \[\leadsto \color{blue}{y \cdot z + \left(x + a \cdot \left(t + z \cdot b\right)\right)} \]
                4. Add Preprocessing
                5. Taylor expanded in x around inf

                  \[\leadsto \color{blue}{x} \]
                6. Step-by-step derivation
                  1. Simplified26.9%

                    \[\leadsto \color{blue}{x} \]
                  2. Add Preprocessing

                  Developer Target 1: 97.5% accurate, 0.7× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := z \cdot \left(b \cdot a + y\right) + \left(x + t \cdot a\right)\\ \mathbf{if}\;z < -11820553527347888000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z < 4.7589743188364287 \cdot 10^{-122}:\\ \;\;\;\;\left(b \cdot z + t\right) \cdot a + \left(z \cdot y + x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                  (FPCore (x y z t a b)
                   :precision binary64
                   (let* ((t_1 (+ (* z (+ (* b a) y)) (+ x (* t a)))))
                     (if (< z -11820553527347888000.0)
                       t_1
                       (if (< z 4.7589743188364287e-122)
                         (+ (* (+ (* b z) t) a) (+ (* z y) x))
                         t_1))))
                  double code(double x, double y, double z, double t, double a, double b) {
                  	double t_1 = (z * ((b * a) + y)) + (x + (t * a));
                  	double tmp;
                  	if (z < -11820553527347888000.0) {
                  		tmp = t_1;
                  	} else if (z < 4.7589743188364287e-122) {
                  		tmp = (((b * z) + t) * a) + ((z * y) + x);
                  	} else {
                  		tmp = t_1;
                  	}
                  	return tmp;
                  }
                  
                  real(8) function code(x, y, z, t, a, b)
                      real(8), intent (in) :: x
                      real(8), intent (in) :: y
                      real(8), intent (in) :: z
                      real(8), intent (in) :: t
                      real(8), intent (in) :: a
                      real(8), intent (in) :: b
                      real(8) :: t_1
                      real(8) :: tmp
                      t_1 = (z * ((b * a) + y)) + (x + (t * a))
                      if (z < (-11820553527347888000.0d0)) then
                          tmp = t_1
                      else if (z < 4.7589743188364287d-122) then
                          tmp = (((b * z) + t) * a) + ((z * y) + x)
                      else
                          tmp = t_1
                      end if
                      code = tmp
                  end function
                  
                  public static double code(double x, double y, double z, double t, double a, double b) {
                  	double t_1 = (z * ((b * a) + y)) + (x + (t * a));
                  	double tmp;
                  	if (z < -11820553527347888000.0) {
                  		tmp = t_1;
                  	} else if (z < 4.7589743188364287e-122) {
                  		tmp = (((b * z) + t) * a) + ((z * y) + x);
                  	} else {
                  		tmp = t_1;
                  	}
                  	return tmp;
                  }
                  
                  def code(x, y, z, t, a, b):
                  	t_1 = (z * ((b * a) + y)) + (x + (t * a))
                  	tmp = 0
                  	if z < -11820553527347888000.0:
                  		tmp = t_1
                  	elif z < 4.7589743188364287e-122:
                  		tmp = (((b * z) + t) * a) + ((z * y) + x)
                  	else:
                  		tmp = t_1
                  	return tmp
                  
                  function code(x, y, z, t, a, b)
                  	t_1 = Float64(Float64(z * Float64(Float64(b * a) + y)) + Float64(x + Float64(t * a)))
                  	tmp = 0.0
                  	if (z < -11820553527347888000.0)
                  		tmp = t_1;
                  	elseif (z < 4.7589743188364287e-122)
                  		tmp = Float64(Float64(Float64(Float64(b * z) + t) * a) + Float64(Float64(z * y) + x));
                  	else
                  		tmp = t_1;
                  	end
                  	return tmp
                  end
                  
                  function tmp_2 = code(x, y, z, t, a, b)
                  	t_1 = (z * ((b * a) + y)) + (x + (t * a));
                  	tmp = 0.0;
                  	if (z < -11820553527347888000.0)
                  		tmp = t_1;
                  	elseif (z < 4.7589743188364287e-122)
                  		tmp = (((b * z) + t) * a) + ((z * y) + x);
                  	else
                  		tmp = t_1;
                  	end
                  	tmp_2 = tmp;
                  end
                  
                  code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z * N[(N[(b * a), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + N[(x + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -11820553527347888000.0], t$95$1, If[Less[z, 4.7589743188364287e-122], N[(N[(N[(N[(b * z), $MachinePrecision] + t), $MachinePrecision] * a), $MachinePrecision] + N[(N[(z * y), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_1 := z \cdot \left(b \cdot a + y\right) + \left(x + t \cdot a\right)\\
                  \mathbf{if}\;z < -11820553527347888000:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{elif}\;z < 4.7589743188364287 \cdot 10^{-122}:\\
                  \;\;\;\;\left(b \cdot z + t\right) \cdot a + \left(z \cdot y + x\right)\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;t\_1\\
                  
                  
                  \end{array}
                  \end{array}
                  

                  Reproduce

                  ?
                  herbie shell --seed 2024161 
                  (FPCore (x y z t a b)
                    :name "Graphics.Rasterific.CubicBezier:cachedBezierAt from Rasterific-0.6.1"
                    :precision binary64
                  
                    :alt
                    (! :herbie-platform default (if (< z -11820553527347888000) (+ (* z (+ (* b a) y)) (+ x (* t a))) (if (< z 47589743188364287/1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (* (+ (* b z) t) a) (+ (* z y) x)) (+ (* z (+ (* b a) y)) (+ x (* t a))))))
                  
                    (+ (+ (+ x (* y z)) (* t a)) (* (* a z) b)))