Graphics.Rasterific.CubicBezier:cachedBezierAt from Rasterific-0.6.1

Percentage Accurate: 92.3% → 96.3%
Time: 10.8s
Alternatives: 11
Speedup: 0.5×

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 11 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.3% 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: 96.3% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\left(t \cdot a + \left(x + y \cdot z\right)\right) + \left(z \cdot a\right) \cdot b \leq 4 \cdot 10^{+301}:\\ \;\;\;\;\left(x + a \cdot \left(t + z \cdot b\right)\right) + y \cdot z\\ \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
 (if (<= (+ (+ (* t a) (+ x (* y z))) (* (* z a) b)) 4e+301)
   (+ (+ x (* a (+ t (* z b)))) (* y z))
   (* a (+ t (* z (+ b (/ y a)))))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if ((((t * a) + (x + (y * z))) + ((z * a) * b)) <= 4e+301) {
		tmp = (x + (a * (t + (z * b)))) + (y * z);
	} 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) :: tmp
    if ((((t * a) + (x + (y * z))) + ((z * a) * b)) <= 4d+301) then
        tmp = (x + (a * (t + (z * b)))) + (y * z)
    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 tmp;
	if ((((t * a) + (x + (y * z))) + ((z * a) * b)) <= 4e+301) {
		tmp = (x + (a * (t + (z * b)))) + (y * z);
	} else {
		tmp = a * (t + (z * (b + (y / a))));
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if (((t * a) + (x + (y * z))) + ((z * a) * b)) <= 4e+301:
		tmp = (x + (a * (t + (z * b)))) + (y * z)
	else:
		tmp = a * (t + (z * (b + (y / a))))
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (Float64(Float64(Float64(t * a) + Float64(x + Float64(y * z))) + Float64(Float64(z * a) * b)) <= 4e+301)
		tmp = Float64(Float64(x + Float64(a * Float64(t + Float64(z * b)))) + Float64(y * z));
	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)
	tmp = 0.0;
	if ((((t * a) + (x + (y * z))) + ((z * a) * b)) <= 4e+301)
		tmp = (x + (a * (t + (z * b)))) + (y * z);
	else
		tmp = a * (t + (z * (b + (y / a))));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(N[(N[(t * a), $MachinePrecision] + N[(x + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(z * a), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], 4e+301], N[(N[(x + N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * z), $MachinePrecision]), $MachinePrecision], N[(a * N[(t + N[(z * N[(b + N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;\left(t \cdot a + \left(x + y \cdot z\right)\right) + \left(z \cdot a\right) \cdot b \leq 4 \cdot 10^{+301}:\\
\;\;\;\;\left(x + a \cdot \left(t + z \cdot b\right)\right) + y \cdot z\\

\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)) < 4.00000000000000021e301

    1. Initial program 97.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-*.f6498.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. Simplified98.1%

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

    if 4.00000000000000021e301 < (+.f64 (+.f64 (+.f64 x (*.f64 y z)) (*.f64 t a)) (*.f64 (*.f64 a z) b))

    1. Initial program 83.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-*.f6489.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. Simplified89.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-/.f6497.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. Simplified97.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-/.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.4%

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

Alternative 2: 39.6% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -4.4 \cdot 10^{+163}:\\ \;\;\;\;y \cdot z\\ \mathbf{elif}\;z \leq -1.4 \cdot 10^{-31}:\\ \;\;\;\;\left(z \cdot a\right) \cdot b\\ \mathbf{elif}\;z \leq -1.8 \cdot 10^{-254}:\\ \;\;\;\;x\\ \mathbf{elif}\;z \leq 6.7 \cdot 10^{-254}:\\ \;\;\;\;t \cdot a\\ \mathbf{elif}\;z \leq 3.9 \cdot 10^{-44}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;y \cdot z\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<= z -4.4e+163)
   (* y z)
   (if (<= z -1.4e-31)
     (* (* z a) b)
     (if (<= z -1.8e-254)
       x
       (if (<= z 6.7e-254) (* t a) (if (<= z 3.9e-44) x (* y z)))))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (z <= -4.4e+163) {
		tmp = y * z;
	} else if (z <= -1.4e-31) {
		tmp = (z * a) * b;
	} else if (z <= -1.8e-254) {
		tmp = x;
	} else if (z <= 6.7e-254) {
		tmp = t * a;
	} else if (z <= 3.9e-44) {
		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 (z <= (-4.4d+163)) then
        tmp = y * z
    else if (z <= (-1.4d-31)) then
        tmp = (z * a) * b
    else if (z <= (-1.8d-254)) then
        tmp = x
    else if (z <= 6.7d-254) then
        tmp = t * a
    else if (z <= 3.9d-44) 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 (z <= -4.4e+163) {
		tmp = y * z;
	} else if (z <= -1.4e-31) {
		tmp = (z * a) * b;
	} else if (z <= -1.8e-254) {
		tmp = x;
	} else if (z <= 6.7e-254) {
		tmp = t * a;
	} else if (z <= 3.9e-44) {
		tmp = x;
	} else {
		tmp = y * z;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if z <= -4.4e+163:
		tmp = y * z
	elif z <= -1.4e-31:
		tmp = (z * a) * b
	elif z <= -1.8e-254:
		tmp = x
	elif z <= 6.7e-254:
		tmp = t * a
	elif z <= 3.9e-44:
		tmp = x
	else:
		tmp = y * z
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (z <= -4.4e+163)
		tmp = Float64(y * z);
	elseif (z <= -1.4e-31)
		tmp = Float64(Float64(z * a) * b);
	elseif (z <= -1.8e-254)
		tmp = x;
	elseif (z <= 6.7e-254)
		tmp = Float64(t * a);
	elseif (z <= 3.9e-44)
		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 (z <= -4.4e+163)
		tmp = y * z;
	elseif (z <= -1.4e-31)
		tmp = (z * a) * b;
	elseif (z <= -1.8e-254)
		tmp = x;
	elseif (z <= 6.7e-254)
		tmp = t * a;
	elseif (z <= 3.9e-44)
		tmp = x;
	else
		tmp = y * z;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -4.4e+163], N[(y * z), $MachinePrecision], If[LessEqual[z, -1.4e-31], N[(N[(z * a), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[z, -1.8e-254], x, If[LessEqual[z, 6.7e-254], N[(t * a), $MachinePrecision], If[LessEqual[z, 3.9e-44], x, N[(y * z), $MachinePrecision]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.4 \cdot 10^{+163}:\\
\;\;\;\;y \cdot z\\

\mathbf{elif}\;z \leq -1.4 \cdot 10^{-31}:\\
\;\;\;\;\left(z \cdot a\right) \cdot b\\

\mathbf{elif}\;z \leq -1.8 \cdot 10^{-254}:\\
\;\;\;\;x\\

\mathbf{elif}\;z \leq 6.7 \cdot 10^{-254}:\\
\;\;\;\;t \cdot a\\

\mathbf{elif}\;z \leq 3.9 \cdot 10^{-44}:\\
\;\;\;\;x\\

\mathbf{else}:\\
\;\;\;\;y \cdot z\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if z < -4.39999999999999973e163 or 3.9000000000000002e-44 < z

    1. Initial program 92.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-*.f6492.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. Simplified92.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 inf

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

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

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

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

    if -4.39999999999999973e163 < z < -1.3999999999999999e-31

    1. Initial program 97.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-*.f6497.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. Simplified97.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 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.6%

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

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

    if -1.3999999999999999e-31 < z < -1.79999999999999992e-254 or 6.70000000000000009e-254 < z < 3.9000000000000002e-44

    1. Initial program 95.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-*.f6499.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. Simplified99.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. Simplified49.4%

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

      if -1.79999999999999992e-254 < z < 6.70000000000000009e-254

      1. Initial program 98.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-*.f6499.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. Simplified99.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 t around inf

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

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

        \[\leadsto \color{blue}{a \cdot t} \]
    7. Recombined 4 regimes into one program.
    8. Final simplification54.0%

      \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -4.4 \cdot 10^{+163}:\\ \;\;\;\;y \cdot z\\ \mathbf{elif}\;z \leq -1.4 \cdot 10^{-31}:\\ \;\;\;\;\left(z \cdot a\right) \cdot b\\ \mathbf{elif}\;z \leq -1.8 \cdot 10^{-254}:\\ \;\;\;\;x\\ \mathbf{elif}\;z \leq 6.7 \cdot 10^{-254}:\\ \;\;\;\;t \cdot a\\ \mathbf{elif}\;z \leq 3.9 \cdot 10^{-44}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;y \cdot z\\ \end{array} \]
    9. Add Preprocessing

    Alternative 3: 39.9% accurate, 0.7× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -8.5 \cdot 10^{-59}:\\ \;\;\;\;y \cdot z\\ \mathbf{elif}\;z \leq -2.4 \cdot 10^{-254}:\\ \;\;\;\;x\\ \mathbf{elif}\;z \leq 4.7 \cdot 10^{-258}:\\ \;\;\;\;t \cdot a\\ \mathbf{elif}\;z \leq 3 \cdot 10^{-46}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;y \cdot z\\ \end{array} \end{array} \]
    (FPCore (x y z t a b)
     :precision binary64
     (if (<= z -8.5e-59)
       (* y z)
       (if (<= z -2.4e-254)
         x
         (if (<= z 4.7e-258) (* t a) (if (<= z 3e-46) x (* y z))))))
    double code(double x, double y, double z, double t, double a, double b) {
    	double tmp;
    	if (z <= -8.5e-59) {
    		tmp = y * z;
    	} else if (z <= -2.4e-254) {
    		tmp = x;
    	} else if (z <= 4.7e-258) {
    		tmp = t * a;
    	} else if (z <= 3e-46) {
    		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 (z <= (-8.5d-59)) then
            tmp = y * z
        else if (z <= (-2.4d-254)) then
            tmp = x
        else if (z <= 4.7d-258) then
            tmp = t * a
        else if (z <= 3d-46) 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 (z <= -8.5e-59) {
    		tmp = y * z;
    	} else if (z <= -2.4e-254) {
    		tmp = x;
    	} else if (z <= 4.7e-258) {
    		tmp = t * a;
    	} else if (z <= 3e-46) {
    		tmp = x;
    	} else {
    		tmp = y * z;
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a, b):
    	tmp = 0
    	if z <= -8.5e-59:
    		tmp = y * z
    	elif z <= -2.4e-254:
    		tmp = x
    	elif z <= 4.7e-258:
    		tmp = t * a
    	elif z <= 3e-46:
    		tmp = x
    	else:
    		tmp = y * z
    	return tmp
    
    function code(x, y, z, t, a, b)
    	tmp = 0.0
    	if (z <= -8.5e-59)
    		tmp = Float64(y * z);
    	elseif (z <= -2.4e-254)
    		tmp = x;
    	elseif (z <= 4.7e-258)
    		tmp = Float64(t * a);
    	elseif (z <= 3e-46)
    		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 (z <= -8.5e-59)
    		tmp = y * z;
    	elseif (z <= -2.4e-254)
    		tmp = x;
    	elseif (z <= 4.7e-258)
    		tmp = t * a;
    	elseif (z <= 3e-46)
    		tmp = x;
    	else
    		tmp = y * z;
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -8.5e-59], N[(y * z), $MachinePrecision], If[LessEqual[z, -2.4e-254], x, If[LessEqual[z, 4.7e-258], N[(t * a), $MachinePrecision], If[LessEqual[z, 3e-46], x, N[(y * z), $MachinePrecision]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;z \leq -8.5 \cdot 10^{-59}:\\
    \;\;\;\;y \cdot z\\
    
    \mathbf{elif}\;z \leq -2.4 \cdot 10^{-254}:\\
    \;\;\;\;x\\
    
    \mathbf{elif}\;z \leq 4.7 \cdot 10^{-258}:\\
    \;\;\;\;t \cdot a\\
    
    \mathbf{elif}\;z \leq 3 \cdot 10^{-46}:\\
    \;\;\;\;x\\
    
    \mathbf{else}:\\
    \;\;\;\;y \cdot z\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if z < -8.49999999999999933e-59 or 2.99999999999999987e-46 < z

      1. Initial program 94.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-*.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 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.0%

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

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

      if -8.49999999999999933e-59 < z < -2.40000000000000002e-254 or 4.69999999999999963e-258 < z < 2.99999999999999987e-46

      1. Initial program 95.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-*.f6499.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. Simplified99.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. Simplified52.4%

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

        if -2.40000000000000002e-254 < z < 4.69999999999999963e-258

        1. Initial program 98.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-*.f6499.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. Simplified99.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 t around inf

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

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

          \[\leadsto \color{blue}{a \cdot t} \]
      7. Recombined 3 regimes into one program.
      8. Final simplification51.5%

        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -8.5 \cdot 10^{-59}:\\ \;\;\;\;y \cdot z\\ \mathbf{elif}\;z \leq -2.4 \cdot 10^{-254}:\\ \;\;\;\;x\\ \mathbf{elif}\;z \leq 4.7 \cdot 10^{-258}:\\ \;\;\;\;t \cdot a\\ \mathbf{elif}\;z \leq 3 \cdot 10^{-46}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;y \cdot z\\ \end{array} \]
      9. Add Preprocessing

      Alternative 4: 80.2% accurate, 0.7× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -2.4 \cdot 10^{+33}:\\ \;\;\;\;z \cdot \left(y + a \cdot b\right)\\ \mathbf{elif}\;z \leq 7.8 \cdot 10^{-44}:\\ \;\;\;\;x + a \cdot \left(t + z \cdot b\right)\\ \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
       (if (<= z -2.4e+33)
         (* z (+ y (* a b)))
         (if (<= z 7.8e-44)
           (+ x (* a (+ t (* z b))))
           (* a (+ t (* z (+ b (/ y a))))))))
      double code(double x, double y, double z, double t, double a, double b) {
      	double tmp;
      	if (z <= -2.4e+33) {
      		tmp = z * (y + (a * b));
      	} else if (z <= 7.8e-44) {
      		tmp = x + (a * (t + (z * b)));
      	} 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) :: tmp
          if (z <= (-2.4d+33)) then
              tmp = z * (y + (a * b))
          else if (z <= 7.8d-44) then
              tmp = x + (a * (t + (z * b)))
          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 tmp;
      	if (z <= -2.4e+33) {
      		tmp = z * (y + (a * b));
      	} else if (z <= 7.8e-44) {
      		tmp = x + (a * (t + (z * b)));
      	} else {
      		tmp = a * (t + (z * (b + (y / a))));
      	}
      	return tmp;
      }
      
      def code(x, y, z, t, a, b):
      	tmp = 0
      	if z <= -2.4e+33:
      		tmp = z * (y + (a * b))
      	elif z <= 7.8e-44:
      		tmp = x + (a * (t + (z * b)))
      	else:
      		tmp = a * (t + (z * (b + (y / a))))
      	return tmp
      
      function code(x, y, z, t, a, b)
      	tmp = 0.0
      	if (z <= -2.4e+33)
      		tmp = Float64(z * Float64(y + Float64(a * b)));
      	elseif (z <= 7.8e-44)
      		tmp = Float64(x + Float64(a * Float64(t + Float64(z * b))));
      	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)
      	tmp = 0.0;
      	if (z <= -2.4e+33)
      		tmp = z * (y + (a * b));
      	elseif (z <= 7.8e-44)
      		tmp = x + (a * (t + (z * b)));
      	else
      		tmp = a * (t + (z * (b + (y / a))));
      	end
      	tmp_2 = tmp;
      end
      
      code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -2.4e+33], N[(z * N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.8e-44], N[(x + N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(t + N[(z * N[(b + N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;z \leq -2.4 \cdot 10^{+33}:\\
      \;\;\;\;z \cdot \left(y + a \cdot b\right)\\
      
      \mathbf{elif}\;z \leq 7.8 \cdot 10^{-44}:\\
      \;\;\;\;x + a \cdot \left(t + z \cdot b\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;a \cdot \left(t + z \cdot \left(b + \frac{y}{a}\right)\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if z < -2.4e33

        1. Initial program 92.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-*.f6489.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. Simplified89.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 z around inf

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

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

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

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

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

        if -2.4e33 < z < 7.8000000000000004e-44

        1. Initial program 95.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-*.f6499.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. Simplified99.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.9%

            \[\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.9%

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

        if 7.8000000000000004e-44 < z

        1. Initial program 95.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-*.f6497.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. Simplified97.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 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-/.f6485.7%

            \[\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. Simplified85.7%

          \[\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-/.f6483.5%

            \[\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. Simplified83.5%

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

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

      Alternative 5: 55.8% accurate, 0.7× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -2.9 \cdot 10^{+160}:\\ \;\;\;\;y \cdot z\\ \mathbf{elif}\;z \leq -3.8 \cdot 10^{-30}:\\ \;\;\;\;\left(z \cdot a\right) \cdot b\\ \mathbf{elif}\;z \leq 8.2 \cdot 10^{-47}:\\ \;\;\;\;x + t \cdot a\\ \mathbf{else}:\\ \;\;\;\;y \cdot z\\ \end{array} \end{array} \]
      (FPCore (x y z t a b)
       :precision binary64
       (if (<= z -2.9e+160)
         (* y z)
         (if (<= z -3.8e-30)
           (* (* z a) b)
           (if (<= z 8.2e-47) (+ x (* t a)) (* y z)))))
      double code(double x, double y, double z, double t, double a, double b) {
      	double tmp;
      	if (z <= -2.9e+160) {
      		tmp = y * z;
      	} else if (z <= -3.8e-30) {
      		tmp = (z * a) * b;
      	} else if (z <= 8.2e-47) {
      		tmp = x + (t * a);
      	} 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 (z <= (-2.9d+160)) then
              tmp = y * z
          else if (z <= (-3.8d-30)) then
              tmp = (z * a) * b
          else if (z <= 8.2d-47) then
              tmp = x + (t * a)
          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 (z <= -2.9e+160) {
      		tmp = y * z;
      	} else if (z <= -3.8e-30) {
      		tmp = (z * a) * b;
      	} else if (z <= 8.2e-47) {
      		tmp = x + (t * a);
      	} else {
      		tmp = y * z;
      	}
      	return tmp;
      }
      
      def code(x, y, z, t, a, b):
      	tmp = 0
      	if z <= -2.9e+160:
      		tmp = y * z
      	elif z <= -3.8e-30:
      		tmp = (z * a) * b
      	elif z <= 8.2e-47:
      		tmp = x + (t * a)
      	else:
      		tmp = y * z
      	return tmp
      
      function code(x, y, z, t, a, b)
      	tmp = 0.0
      	if (z <= -2.9e+160)
      		tmp = Float64(y * z);
      	elseif (z <= -3.8e-30)
      		tmp = Float64(Float64(z * a) * b);
      	elseif (z <= 8.2e-47)
      		tmp = Float64(x + Float64(t * a));
      	else
      		tmp = Float64(y * z);
      	end
      	return tmp
      end
      
      function tmp_2 = code(x, y, z, t, a, b)
      	tmp = 0.0;
      	if (z <= -2.9e+160)
      		tmp = y * z;
      	elseif (z <= -3.8e-30)
      		tmp = (z * a) * b;
      	elseif (z <= 8.2e-47)
      		tmp = x + (t * a);
      	else
      		tmp = y * z;
      	end
      	tmp_2 = tmp;
      end
      
      code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -2.9e+160], N[(y * z), $MachinePrecision], If[LessEqual[z, -3.8e-30], N[(N[(z * a), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[z, 8.2e-47], N[(x + N[(t * a), $MachinePrecision]), $MachinePrecision], N[(y * z), $MachinePrecision]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;z \leq -2.9 \cdot 10^{+160}:\\
      \;\;\;\;y \cdot z\\
      
      \mathbf{elif}\;z \leq -3.8 \cdot 10^{-30}:\\
      \;\;\;\;\left(z \cdot a\right) \cdot b\\
      
      \mathbf{elif}\;z \leq 8.2 \cdot 10^{-47}:\\
      \;\;\;\;x + t \cdot a\\
      
      \mathbf{else}:\\
      \;\;\;\;y \cdot z\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if z < -2.8999999999999999e160 or 8.20000000000000003e-47 < z

        1. Initial program 92.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-*.f6492.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. Simplified92.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 inf

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

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

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

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

        if -2.8999999999999999e160 < z < -3.8000000000000003e-30

        1. Initial program 97.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-*.f6497.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. Simplified97.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 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.6%

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

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

        if -3.8000000000000003e-30 < z < 8.20000000000000003e-47

        1. Initial program 96.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-*.f6499.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. Simplified99.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 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-*.f6479.4%

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

          \[\leadsto \color{blue}{x + a \cdot t} \]
      3. Recombined 3 regimes into one program.
      4. Final simplification66.0%

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

      Alternative 6: 79.7% accurate, 0.8× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := z \cdot \left(y + a \cdot b\right)\\ \mathbf{if}\;z \leq -8.5 \cdot 10^{+33}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 5.2 \cdot 10^{-45}:\\ \;\;\;\;x + a \cdot \left(t + z \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
      (FPCore (x y z t a b)
       :precision binary64
       (let* ((t_1 (* z (+ y (* a b)))))
         (if (<= z -8.5e+33) t_1 (if (<= z 5.2e-45) (+ x (* a (+ t (* z b)))) t_1))))
      double code(double x, double y, double z, double t, double a, double b) {
      	double t_1 = z * (y + (a * b));
      	double tmp;
      	if (z <= -8.5e+33) {
      		tmp = t_1;
      	} else if (z <= 5.2e-45) {
      		tmp = x + (a * (t + (z * 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 = z * (y + (a * b))
          if (z <= (-8.5d+33)) then
              tmp = t_1
          else if (z <= 5.2d-45) then
              tmp = x + (a * (t + (z * 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 = z * (y + (a * b));
      	double tmp;
      	if (z <= -8.5e+33) {
      		tmp = t_1;
      	} else if (z <= 5.2e-45) {
      		tmp = x + (a * (t + (z * b)));
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      def code(x, y, z, t, a, b):
      	t_1 = z * (y + (a * b))
      	tmp = 0
      	if z <= -8.5e+33:
      		tmp = t_1
      	elif z <= 5.2e-45:
      		tmp = x + (a * (t + (z * b)))
      	else:
      		tmp = t_1
      	return tmp
      
      function code(x, y, z, t, a, b)
      	t_1 = Float64(z * Float64(y + Float64(a * b)))
      	tmp = 0.0
      	if (z <= -8.5e+33)
      		tmp = t_1;
      	elseif (z <= 5.2e-45)
      		tmp = Float64(x + Float64(a * Float64(t + Float64(z * b))));
      	else
      		tmp = t_1;
      	end
      	return tmp
      end
      
      function tmp_2 = code(x, y, z, t, a, b)
      	t_1 = z * (y + (a * b));
      	tmp = 0.0;
      	if (z <= -8.5e+33)
      		tmp = t_1;
      	elseif (z <= 5.2e-45)
      		tmp = x + (a * (t + (z * b)));
      	else
      		tmp = t_1;
      	end
      	tmp_2 = tmp;
      end
      
      code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -8.5e+33], t$95$1, If[LessEqual[z, 5.2e-45], N[(x + N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := z \cdot \left(y + a \cdot b\right)\\
      \mathbf{if}\;z \leq -8.5 \cdot 10^{+33}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;z \leq 5.2 \cdot 10^{-45}:\\
      \;\;\;\;x + a \cdot \left(t + z \cdot b\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if z < -8.4999999999999998e33 or 5.19999999999999973e-45 < z

        1. Initial program 94.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-*.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 z around inf

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

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

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

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

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

        if -8.4999999999999998e33 < z < 5.19999999999999973e-45

        1. Initial program 95.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-*.f6499.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. Simplified99.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.9%

            \[\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.9%

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

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

      Alternative 7: 73.6% accurate, 0.9× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := z \cdot \left(y + a \cdot b\right)\\ \mathbf{if}\;z \leq -3.3 \cdot 10^{-31}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 4.7 \cdot 10^{-45}:\\ \;\;\;\;x + t \cdot a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
      (FPCore (x y z t a b)
       :precision binary64
       (let* ((t_1 (* z (+ y (* a b)))))
         (if (<= z -3.3e-31) t_1 (if (<= z 4.7e-45) (+ x (* t a)) t_1))))
      double code(double x, double y, double z, double t, double a, double b) {
      	double t_1 = z * (y + (a * b));
      	double tmp;
      	if (z <= -3.3e-31) {
      		tmp = t_1;
      	} else if (z <= 4.7e-45) {
      		tmp = x + (t * a);
      	} 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 * (y + (a * b))
          if (z <= (-3.3d-31)) then
              tmp = t_1
          else if (z <= 4.7d-45) then
              tmp = x + (t * a)
          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 * (y + (a * b));
      	double tmp;
      	if (z <= -3.3e-31) {
      		tmp = t_1;
      	} else if (z <= 4.7e-45) {
      		tmp = x + (t * a);
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      def code(x, y, z, t, a, b):
      	t_1 = z * (y + (a * b))
      	tmp = 0
      	if z <= -3.3e-31:
      		tmp = t_1
      	elif z <= 4.7e-45:
      		tmp = x + (t * a)
      	else:
      		tmp = t_1
      	return tmp
      
      function code(x, y, z, t, a, b)
      	t_1 = Float64(z * Float64(y + Float64(a * b)))
      	tmp = 0.0
      	if (z <= -3.3e-31)
      		tmp = t_1;
      	elseif (z <= 4.7e-45)
      		tmp = Float64(x + Float64(t * a));
      	else
      		tmp = t_1;
      	end
      	return tmp
      end
      
      function tmp_2 = code(x, y, z, t, a, b)
      	t_1 = z * (y + (a * b));
      	tmp = 0.0;
      	if (z <= -3.3e-31)
      		tmp = t_1;
      	elseif (z <= 4.7e-45)
      		tmp = x + (t * a);
      	else
      		tmp = t_1;
      	end
      	tmp_2 = tmp;
      end
      
      code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.3e-31], t$95$1, If[LessEqual[z, 4.7e-45], N[(x + N[(t * a), $MachinePrecision]), $MachinePrecision], t$95$1]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := z \cdot \left(y + a \cdot b\right)\\
      \mathbf{if}\;z \leq -3.3 \cdot 10^{-31}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;z \leq 4.7 \cdot 10^{-45}:\\
      \;\;\;\;x + t \cdot a\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if z < -3.2999999999999999e-31 or 4.6999999999999998e-45 < z

        1. Initial program 94.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-*.f6493.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. Simplified93.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 inf

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

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

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

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

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

        if -3.2999999999999999e-31 < z < 4.6999999999999998e-45

        1. Initial program 96.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-*.f6499.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. Simplified99.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 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-*.f6479.4%

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

          \[\leadsto \color{blue}{x + a \cdot t} \]
      3. Recombined 2 regimes into one program.
      4. Final simplification79.9%

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

      Alternative 8: 74.1% accurate, 0.9× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \left(t + z \cdot b\right)\\ \mathbf{if}\;a \leq -0.0088:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 1.05 \cdot 10^{+82}:\\ \;\;\;\;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 -0.0088) t_1 (if (<= a 1.05e+82) (+ 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 <= -0.0088) {
      		tmp = t_1;
      	} else if (a <= 1.05e+82) {
      		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 <= (-0.0088d0)) then
              tmp = t_1
          else if (a <= 1.05d+82) 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 <= -0.0088) {
      		tmp = t_1;
      	} else if (a <= 1.05e+82) {
      		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 <= -0.0088:
      		tmp = t_1
      	elif a <= 1.05e+82:
      		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 <= -0.0088)
      		tmp = t_1;
      	elseif (a <= 1.05e+82)
      		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 <= -0.0088)
      		tmp = t_1;
      	elseif (a <= 1.05e+82)
      		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, -0.0088], t$95$1, If[LessEqual[a, 1.05e+82], 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 -0.0088:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;a \leq 1.05 \cdot 10^{+82}:\\
      \;\;\;\;x + y \cdot z\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if a < -0.00880000000000000053 or 1.05e82 < a

        1. Initial program 91.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-*.f6495.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. Simplified95.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 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-*.f6477.5%

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

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

        if -0.00880000000000000053 < a < 1.05e82

        1. Initial program 97.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-*.f6497.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. Simplified97.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 \mathsf{+.f64}\left(\mathsf{*.f64}\left(y, z\right), \color{blue}{x}\right) \]
        6. Step-by-step derivation
          1. Simplified76.6%

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

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

        Alternative 9: 65.6% accurate, 1.0× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := x + y \cdot z\\ \mathbf{if}\;y \leq -4.1 \cdot 10^{+26}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 1.35 \cdot 10^{+25}:\\ \;\;\;\;x + t \cdot a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
        (FPCore (x y z t a b)
         :precision binary64
         (let* ((t_1 (+ x (* y z))))
           (if (<= y -4.1e+26) t_1 (if (<= y 1.35e+25) (+ x (* t a)) t_1))))
        double code(double x, double y, double z, double t, double a, double b) {
        	double t_1 = x + (y * z);
        	double tmp;
        	if (y <= -4.1e+26) {
        		tmp = t_1;
        	} else if (y <= 1.35e+25) {
        		tmp = x + (t * a);
        	} 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 + (y * z)
            if (y <= (-4.1d+26)) then
                tmp = t_1
            else if (y <= 1.35d+25) then
                tmp = x + (t * a)
            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 + (y * z);
        	double tmp;
        	if (y <= -4.1e+26) {
        		tmp = t_1;
        	} else if (y <= 1.35e+25) {
        		tmp = x + (t * a);
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        def code(x, y, z, t, a, b):
        	t_1 = x + (y * z)
        	tmp = 0
        	if y <= -4.1e+26:
        		tmp = t_1
        	elif y <= 1.35e+25:
        		tmp = x + (t * a)
        	else:
        		tmp = t_1
        	return tmp
        
        function code(x, y, z, t, a, b)
        	t_1 = Float64(x + Float64(y * z))
        	tmp = 0.0
        	if (y <= -4.1e+26)
        		tmp = t_1;
        	elseif (y <= 1.35e+25)
        		tmp = Float64(x + Float64(t * a));
        	else
        		tmp = t_1;
        	end
        	return tmp
        end
        
        function tmp_2 = code(x, y, z, t, a, b)
        	t_1 = x + (y * z);
        	tmp = 0.0;
        	if (y <= -4.1e+26)
        		tmp = t_1;
        	elseif (y <= 1.35e+25)
        		tmp = x + (t * a);
        	else
        		tmp = t_1;
        	end
        	tmp_2 = tmp;
        end
        
        code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.1e+26], t$95$1, If[LessEqual[y, 1.35e+25], N[(x + N[(t * a), $MachinePrecision]), $MachinePrecision], t$95$1]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := x + y \cdot z\\
        \mathbf{if}\;y \leq -4.1 \cdot 10^{+26}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;y \leq 1.35 \cdot 10^{+25}:\\
        \;\;\;\;x + t \cdot a\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if y < -4.09999999999999983e26 or 1.35e25 < y

          1. Initial program 94.2%

            \[\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 x around inf

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

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

            if -4.09999999999999983e26 < y < 1.35e25

            1. Initial program 96.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-*.f6499.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. Simplified99.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 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-*.f6467.0%

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

              \[\leadsto \color{blue}{x + a \cdot t} \]
          7. Recombined 2 regimes into one program.
          8. Final simplification71.0%

            \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -4.1 \cdot 10^{+26}:\\ \;\;\;\;x + y \cdot z\\ \mathbf{elif}\;y \leq 1.35 \cdot 10^{+25}:\\ \;\;\;\;x + t \cdot a\\ \mathbf{else}:\\ \;\;\;\;x + y \cdot z\\ \end{array} \]
          9. Add Preprocessing

          Alternative 10: 39.2% accurate, 1.2× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -2.1 \cdot 10^{+96}:\\ \;\;\;\;x\\ \mathbf{elif}\;x \leq 2.8 \cdot 10^{-31}:\\ \;\;\;\;t \cdot a\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
          (FPCore (x y z t a b)
           :precision binary64
           (if (<= x -2.1e+96) x (if (<= x 2.8e-31) (* t a) x)))
          double code(double x, double y, double z, double t, double a, double b) {
          	double tmp;
          	if (x <= -2.1e+96) {
          		tmp = x;
          	} else if (x <= 2.8e-31) {
          		tmp = t * a;
          	} else {
          		tmp = x;
          	}
          	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 (x <= (-2.1d+96)) then
                  tmp = x
              else if (x <= 2.8d-31) then
                  tmp = t * a
              else
                  tmp = x
              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 (x <= -2.1e+96) {
          		tmp = x;
          	} else if (x <= 2.8e-31) {
          		tmp = t * a;
          	} else {
          		tmp = x;
          	}
          	return tmp;
          }
          
          def code(x, y, z, t, a, b):
          	tmp = 0
          	if x <= -2.1e+96:
          		tmp = x
          	elif x <= 2.8e-31:
          		tmp = t * a
          	else:
          		tmp = x
          	return tmp
          
          function code(x, y, z, t, a, b)
          	tmp = 0.0
          	if (x <= -2.1e+96)
          		tmp = x;
          	elseif (x <= 2.8e-31)
          		tmp = Float64(t * a);
          	else
          		tmp = x;
          	end
          	return tmp
          end
          
          function tmp_2 = code(x, y, z, t, a, b)
          	tmp = 0.0;
          	if (x <= -2.1e+96)
          		tmp = x;
          	elseif (x <= 2.8e-31)
          		tmp = t * a;
          	else
          		tmp = x;
          	end
          	tmp_2 = tmp;
          end
          
          code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -2.1e+96], x, If[LessEqual[x, 2.8e-31], N[(t * a), $MachinePrecision], x]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;x \leq -2.1 \cdot 10^{+96}:\\
          \;\;\;\;x\\
          
          \mathbf{elif}\;x \leq 2.8 \cdot 10^{-31}:\\
          \;\;\;\;t \cdot a\\
          
          \mathbf{else}:\\
          \;\;\;\;x\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if x < -2.1000000000000001e96 or 2.7999999999999999e-31 < x

            1. Initial program 96.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-*.f6496.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. Simplified96.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. Simplified45.6%

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

              if -2.1000000000000001e96 < x < 2.7999999999999999e-31

              1. Initial program 94.2%

                \[\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-*.f6496.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. Simplified96.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-*.f6435.2%

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

                \[\leadsto \color{blue}{a \cdot t} \]
            7. Recombined 2 regimes into one program.
            8. Final simplification39.7%

              \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -2.1 \cdot 10^{+96}:\\ \;\;\;\;x\\ \mathbf{elif}\;x \leq 2.8 \cdot 10^{-31}:\\ \;\;\;\;t \cdot a\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
            9. Add Preprocessing

            Alternative 11: 27.6% 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 95.2%

              \[\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-*.f6496.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. Simplified96.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 x around inf

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

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

              Developer Target 1: 97.3% 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 2024158 
              (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)))