Statistics.Distribution.Beta:$centropy from math-functions-0.1.5.2

Percentage Accurate: 95.1% → 97.6%
Time: 6.0s
Alternatives: 29
Speedup: 1.0×

Specification

?
\[\begin{array}{l} \\ \left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (+ (- (- x (* (- y 1.0) z)) (* (- t 1.0) a)) (* (- (+ y t) 2.0) b)))
double code(double x, double y, double z, double t, double a, double b) {
	return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
    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 - 1.0d0) * z)) - ((t - 1.0d0) * a)) + (((y + t) - 2.0d0) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
}
def code(x, y, z, t, a, b):
	return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b)
function code(x, y, z, t, a, b)
	return Float64(Float64(Float64(x - Float64(Float64(y - 1.0) * z)) - Float64(Float64(t - 1.0) * a)) + Float64(Float64(Float64(y + t) - 2.0) * b))
end
function tmp = code(x, y, z, t, a, b)
	tmp = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x - N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

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 29 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: 95.1% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (+ (- (- x (* (- y 1.0) z)) (* (- t 1.0) a)) (* (- (+ y t) 2.0) b)))
double code(double x, double y, double z, double t, double a, double b) {
	return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
    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 - 1.0d0) * z)) - ((t - 1.0d0) * a)) + (((y + t) - 2.0d0) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
}
def code(x, y, z, t, a, b):
	return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b)
function code(x, y, z, t, a, b)
	return Float64(Float64(Float64(x - Float64(Float64(y - 1.0) * z)) - Float64(Float64(t - 1.0) * a)) + Float64(Float64(Float64(y + t) - 2.0) * b))
end
function tmp = code(x, y, z, t, a, b)
	tmp = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x - N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Alternative 1: 97.6% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right) \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (fma (- (+ t y) 2.0) b (- x (fma (- t 1.0) a (* (- y 1.0) z)))))
double code(double x, double y, double z, double t, double a, double b) {
	return fma(((t + y) - 2.0), b, (x - fma((t - 1.0), a, ((y - 1.0) * z))));
}
function code(x, y, z, t, a, b)
	return fma(Float64(Float64(t + y) - 2.0), b, Float64(x - fma(Float64(t - 1.0), a, Float64(Float64(y - 1.0) * z))))
end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision] * b + N[(x - N[(N[(t - 1.0), $MachinePrecision] * a + N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\mathsf{fma}\left(\left(t + y\right) - 2, b, x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right)
\end{array}
Derivation
  1. Initial program 95.1%

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\mathsf{fma}\left(\left(y + t\right) - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right)} \]
    13. lift--.f64N/A

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

      \[\leadsto \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) \]
    15. lower-+.f64N/A

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

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

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

      \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \left(z \cdot \left(y - 1\right) + \color{blue}{a \cdot \left(t - 1\right)}\right)\right) \]
  3. Applied rewrites97.6%

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

Alternative 2: 88.5% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(1 - t, a, \left(\left(y + t\right) - 2\right) \cdot b\right) + x\\ t_2 := \left(y - 1\right) \cdot z\\ \mathbf{if}\;t \leq -5.2 \cdot 10^{+128}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -1.46 \cdot 10^{-9}:\\ \;\;\;\;\mathsf{fma}\left(y, b, x - \mathsf{fma}\left(t - 1, a, t\_2\right)\right)\\ \mathbf{elif}\;t \leq 7.2 \cdot 10^{-7}:\\ \;\;\;\;\left(\mathsf{fma}\left(y - 2, b, x\right) - \left(-a\right)\right) - t\_2\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (+ (fma (- 1.0 t) a (* (- (+ y t) 2.0) b)) x))
        (t_2 (* (- y 1.0) z)))
   (if (<= t -5.2e+128)
     t_1
     (if (<= t -1.46e-9)
       (fma y b (- x (fma (- t 1.0) a t_2)))
       (if (<= t 7.2e-7) (- (- (fma (- y 2.0) b x) (- a)) t_2) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = fma((1.0 - t), a, (((y + t) - 2.0) * b)) + x;
	double t_2 = (y - 1.0) * z;
	double tmp;
	if (t <= -5.2e+128) {
		tmp = t_1;
	} else if (t <= -1.46e-9) {
		tmp = fma(y, b, (x - fma((t - 1.0), a, t_2)));
	} else if (t <= 7.2e-7) {
		tmp = (fma((y - 2.0), b, x) - -a) - t_2;
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = Float64(fma(Float64(1.0 - t), a, Float64(Float64(Float64(y + t) - 2.0) * b)) + x)
	t_2 = Float64(Float64(y - 1.0) * z)
	tmp = 0.0
	if (t <= -5.2e+128)
		tmp = t_1;
	elseif (t <= -1.46e-9)
		tmp = fma(y, b, Float64(x - fma(Float64(t - 1.0), a, t_2)));
	elseif (t <= 7.2e-7)
		tmp = Float64(Float64(fma(Float64(y - 2.0), b, x) - Float64(-a)) - t_2);
	else
		tmp = t_1;
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(1.0 - t), $MachinePrecision] * a + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[t, -5.2e+128], t$95$1, If[LessEqual[t, -1.46e-9], N[(y * b + N[(x - N[(N[(t - 1.0), $MachinePrecision] * a + t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.2e-7], N[(N[(N[(N[(y - 2.0), $MachinePrecision] * b + x), $MachinePrecision] - (-a)), $MachinePrecision] - t$95$2), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(1 - t, a, \left(\left(y + t\right) - 2\right) \cdot b\right) + x\\
t_2 := \left(y - 1\right) \cdot z\\
\mathbf{if}\;t \leq -5.2 \cdot 10^{+128}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq -1.46 \cdot 10^{-9}:\\
\;\;\;\;\mathsf{fma}\left(y, b, x - \mathsf{fma}\left(t - 1, a, t\_2\right)\right)\\

\mathbf{elif}\;t \leq 7.2 \cdot 10^{-7}:\\
\;\;\;\;\left(\mathsf{fma}\left(y - 2, b, x\right) - \left(-a\right)\right) - t\_2\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -5.2e128 or 7.19999999999999989e-7 < t

    1. Initial program 91.1%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Taylor expanded in z around 0

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

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

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

        \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
      4. +-commutativeN/A

        \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
      5. lower-fma.f64N/A

        \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
      6. lift--.f64N/A

        \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
      7. +-commutativeN/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
      8. lower-+.f64N/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
      9. *-commutativeN/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
      10. lift--.f64N/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
      11. lift-*.f6476.9

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
    4. Applied rewrites76.9%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
    5. Taylor expanded in a around 0

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

        \[\leadsto \left(a \cdot \left(1 - t\right) + b \cdot \left(\left(t + y\right) - 2\right)\right) + x \]
      2. lower-+.f64N/A

        \[\leadsto \left(a \cdot \left(1 - t\right) + b \cdot \left(\left(t + y\right) - 2\right)\right) + x \]
      3. *-commutativeN/A

        \[\leadsto \left(\left(1 - t\right) \cdot a + b \cdot \left(\left(t + y\right) - 2\right)\right) + x \]
      4. lower-fma.f64N/A

        \[\leadsto \mathsf{fma}\left(1 - t, a, b \cdot \left(\left(t + y\right) - 2\right)\right) + x \]
      5. lower--.f64N/A

        \[\leadsto \mathsf{fma}\left(1 - t, a, b \cdot \left(\left(t + y\right) - 2\right)\right) + x \]
      6. +-commutativeN/A

        \[\leadsto \mathsf{fma}\left(1 - t, a, b \cdot \left(\left(y + t\right) - 2\right)\right) + x \]
      7. *-commutativeN/A

        \[\leadsto \mathsf{fma}\left(1 - t, a, \left(\left(y + t\right) - 2\right) \cdot b\right) + x \]
      8. lift--.f64N/A

        \[\leadsto \mathsf{fma}\left(1 - t, a, \left(\left(y + t\right) - 2\right) \cdot b\right) + x \]
      9. lift-+.f64N/A

        \[\leadsto \mathsf{fma}\left(1 - t, a, \left(\left(y + t\right) - 2\right) \cdot b\right) + x \]
      10. lift-*.f6479.6

        \[\leadsto \mathsf{fma}\left(1 - t, a, \left(\left(y + t\right) - 2\right) \cdot b\right) + x \]
    7. Applied rewrites79.6%

      \[\leadsto \mathsf{fma}\left(1 - t, a, \left(\left(y + t\right) - 2\right) \cdot b\right) + \color{blue}{x} \]

    if -5.2e128 < t < -1.4599999999999999e-9

    1. Initial program 97.3%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(\left(y + t\right) - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right)} \]
      13. lift--.f64N/A

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) \]
      15. lower-+.f64N/A

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

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

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

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \left(z \cdot \left(y - 1\right) + \color{blue}{a \cdot \left(t - 1\right)}\right)\right) \]
    3. Applied rewrites98.5%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right)} \]
    4. Taylor expanded in y around inf

      \[\leadsto \mathsf{fma}\left(\color{blue}{y}, b, x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right) \]
    5. Step-by-step derivation
      1. +-commutative81.1

        \[\leadsto \mathsf{fma}\left(y, b, x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right) \]
    6. Applied rewrites81.1%

      \[\leadsto \mathsf{fma}\left(\color{blue}{y}, b, x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right) \]

    if -1.4599999999999999e-9 < t < 7.19999999999999989e-7

    1. Initial program 98.0%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(\left(y + t\right) - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right)} \]
      13. lift--.f64N/A

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) \]
      15. lower-+.f64N/A

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

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

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

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \left(z \cdot \left(y - 1\right) + \color{blue}{a \cdot \left(t - 1\right)}\right)\right) \]
    3. Applied rewrites98.9%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right)} \]
    4. Step-by-step derivation
      1. lift-fma.f64N/A

        \[\leadsto \color{blue}{\left(\left(t + y\right) - 2\right) \cdot b + \left(x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right)} \]
      2. lift-+.f64N/A

        \[\leadsto \left(\color{blue}{\left(t + y\right)} - 2\right) \cdot b + \left(x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right) \]
      3. lift--.f64N/A

        \[\leadsto \color{blue}{\left(\left(t + y\right) - 2\right)} \cdot b + \left(x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right) \]
      4. lift--.f64N/A

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)\right) - z \cdot \left(y - 1\right)} \]
    5. Applied rewrites98.0%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\left(y + t\right) - 2, b, x - \left(t - 1\right) \cdot a\right) - \left(y - 1\right) \cdot z} \]
    6. Taylor expanded in t around 0

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

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

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

        \[\leadsto \left(\left(\left(y - 2\right) \cdot b + x\right) - -1 \cdot a\right) - \left(y - 1\right) \cdot z \]
      4. lower-fma.f64N/A

        \[\leadsto \left(\mathsf{fma}\left(y - 2, b, x\right) - \color{blue}{-1} \cdot a\right) - \left(y - 1\right) \cdot z \]
      5. lift--.f64N/A

        \[\leadsto \left(\mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a\right) - \left(y - 1\right) \cdot z \]
      6. mul-1-negN/A

        \[\leadsto \left(\mathsf{fma}\left(y - 2, b, x\right) - \left(\mathsf{neg}\left(a\right)\right)\right) - \left(y - 1\right) \cdot z \]
      7. lift-neg.f6497.8

        \[\leadsto \left(\mathsf{fma}\left(y - 2, b, x\right) - \left(-a\right)\right) - \left(y - 1\right) \cdot z \]
    8. Applied rewrites97.8%

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

Alternative 3: 87.2% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(1 - t, a, \left(\left(y + t\right) - 2\right) \cdot b\right) + x\\ \mathbf{if}\;t \leq -7 \cdot 10^{+85}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 7.2 \cdot 10^{-7}:\\ \;\;\;\;\left(\mathsf{fma}\left(y - 2, b, x\right) - \left(-a\right)\right) - \left(y - 1\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (+ (fma (- 1.0 t) a (* (- (+ y t) 2.0) b)) x)))
   (if (<= t -7e+85)
     t_1
     (if (<= t 7.2e-7)
       (- (- (fma (- y 2.0) b x) (- a)) (* (- y 1.0) z))
       t_1))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = fma((1.0 - t), a, (((y + t) - 2.0) * b)) + x;
	double tmp;
	if (t <= -7e+85) {
		tmp = t_1;
	} else if (t <= 7.2e-7) {
		tmp = (fma((y - 2.0), b, x) - -a) - ((y - 1.0) * z);
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = Float64(fma(Float64(1.0 - t), a, Float64(Float64(Float64(y + t) - 2.0) * b)) + x)
	tmp = 0.0
	if (t <= -7e+85)
		tmp = t_1;
	elseif (t <= 7.2e-7)
		tmp = Float64(Float64(fma(Float64(y - 2.0), b, x) - Float64(-a)) - Float64(Float64(y - 1.0) * z));
	else
		tmp = t_1;
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(1.0 - t), $MachinePrecision] * a + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[t, -7e+85], t$95$1, If[LessEqual[t, 7.2e-7], N[(N[(N[(N[(y - 2.0), $MachinePrecision] * b + x), $MachinePrecision] - (-a)), $MachinePrecision] - N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(1 - t, a, \left(\left(y + t\right) - 2\right) \cdot b\right) + x\\
\mathbf{if}\;t \leq -7 \cdot 10^{+85}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 7.2 \cdot 10^{-7}:\\
\;\;\;\;\left(\mathsf{fma}\left(y - 2, b, x\right) - \left(-a\right)\right) - \left(y - 1\right) \cdot z\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -7.0000000000000001e85 or 7.19999999999999989e-7 < t

    1. Initial program 91.5%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Taylor expanded in z around 0

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

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

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

        \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
      4. +-commutativeN/A

        \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
      5. lower-fma.f64N/A

        \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
      6. lift--.f64N/A

        \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
      7. +-commutativeN/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
      8. lower-+.f64N/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
      9. *-commutativeN/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
      10. lift--.f64N/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
      11. lift-*.f6477.0

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
    4. Applied rewrites77.0%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
    5. Taylor expanded in a around 0

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

        \[\leadsto \left(a \cdot \left(1 - t\right) + b \cdot \left(\left(t + y\right) - 2\right)\right) + x \]
      2. lower-+.f64N/A

        \[\leadsto \left(a \cdot \left(1 - t\right) + b \cdot \left(\left(t + y\right) - 2\right)\right) + x \]
      3. *-commutativeN/A

        \[\leadsto \left(\left(1 - t\right) \cdot a + b \cdot \left(\left(t + y\right) - 2\right)\right) + x \]
      4. lower-fma.f64N/A

        \[\leadsto \mathsf{fma}\left(1 - t, a, b \cdot \left(\left(t + y\right) - 2\right)\right) + x \]
      5. lower--.f64N/A

        \[\leadsto \mathsf{fma}\left(1 - t, a, b \cdot \left(\left(t + y\right) - 2\right)\right) + x \]
      6. +-commutativeN/A

        \[\leadsto \mathsf{fma}\left(1 - t, a, b \cdot \left(\left(y + t\right) - 2\right)\right) + x \]
      7. *-commutativeN/A

        \[\leadsto \mathsf{fma}\left(1 - t, a, \left(\left(y + t\right) - 2\right) \cdot b\right) + x \]
      8. lift--.f64N/A

        \[\leadsto \mathsf{fma}\left(1 - t, a, \left(\left(y + t\right) - 2\right) \cdot b\right) + x \]
      9. lift-+.f64N/A

        \[\leadsto \mathsf{fma}\left(1 - t, a, \left(\left(y + t\right) - 2\right) \cdot b\right) + x \]
      10. lift-*.f6479.6

        \[\leadsto \mathsf{fma}\left(1 - t, a, \left(\left(y + t\right) - 2\right) \cdot b\right) + x \]
    7. Applied rewrites79.6%

      \[\leadsto \mathsf{fma}\left(1 - t, a, \left(\left(y + t\right) - 2\right) \cdot b\right) + \color{blue}{x} \]

    if -7.0000000000000001e85 < t < 7.19999999999999989e-7

    1. Initial program 98.0%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(\left(y + t\right) - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right)} \]
      13. lift--.f64N/A

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) \]
      15. lower-+.f64N/A

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

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

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

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \left(z \cdot \left(y - 1\right) + \color{blue}{a \cdot \left(t - 1\right)}\right)\right) \]
    3. Applied rewrites99.0%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right)} \]
    4. Step-by-step derivation
      1. lift-fma.f64N/A

        \[\leadsto \color{blue}{\left(\left(t + y\right) - 2\right) \cdot b + \left(x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right)} \]
      2. lift-+.f64N/A

        \[\leadsto \left(\color{blue}{\left(t + y\right)} - 2\right) \cdot b + \left(x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right) \]
      3. lift--.f64N/A

        \[\leadsto \color{blue}{\left(\left(t + y\right) - 2\right)} \cdot b + \left(x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right) \]
      4. lift--.f64N/A

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)\right) - z \cdot \left(y - 1\right)} \]
    5. Applied rewrites98.0%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\left(y + t\right) - 2, b, x - \left(t - 1\right) \cdot a\right) - \left(y - 1\right) \cdot z} \]
    6. Taylor expanded in t around 0

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

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

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

        \[\leadsto \left(\left(\left(y - 2\right) \cdot b + x\right) - -1 \cdot a\right) - \left(y - 1\right) \cdot z \]
      4. lower-fma.f64N/A

        \[\leadsto \left(\mathsf{fma}\left(y - 2, b, x\right) - \color{blue}{-1} \cdot a\right) - \left(y - 1\right) \cdot z \]
      5. lift--.f64N/A

        \[\leadsto \left(\mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a\right) - \left(y - 1\right) \cdot z \]
      6. mul-1-negN/A

        \[\leadsto \left(\mathsf{fma}\left(y - 2, b, x\right) - \left(\mathsf{neg}\left(a\right)\right)\right) - \left(y - 1\right) \cdot z \]
      7. lift-neg.f6493.1

        \[\leadsto \left(\mathsf{fma}\left(y - 2, b, x\right) - \left(-a\right)\right) - \left(y - 1\right) \cdot z \]
    8. Applied rewrites93.1%

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

Alternative 4: 87.2% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(1 - t, a, \left(\left(y + t\right) - 2\right) \cdot b\right) + x\\ \mathbf{if}\;t \leq -7 \cdot 10^{+85}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 7.2 \cdot 10^{-7}:\\ \;\;\;\;\mathsf{fma}\left(y - 2, b, x\right) - \mathsf{fma}\left(y - 1, z, -a\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (+ (fma (- 1.0 t) a (* (- (+ y t) 2.0) b)) x)))
   (if (<= t -7e+85)
     t_1
     (if (<= t 7.2e-7) (- (fma (- y 2.0) b x) (fma (- y 1.0) z (- a))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = fma((1.0 - t), a, (((y + t) - 2.0) * b)) + x;
	double tmp;
	if (t <= -7e+85) {
		tmp = t_1;
	} else if (t <= 7.2e-7) {
		tmp = fma((y - 2.0), b, x) - fma((y - 1.0), z, -a);
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = Float64(fma(Float64(1.0 - t), a, Float64(Float64(Float64(y + t) - 2.0) * b)) + x)
	tmp = 0.0
	if (t <= -7e+85)
		tmp = t_1;
	elseif (t <= 7.2e-7)
		tmp = Float64(fma(Float64(y - 2.0), b, x) - fma(Float64(y - 1.0), z, Float64(-a)));
	else
		tmp = t_1;
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(1.0 - t), $MachinePrecision] * a + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[t, -7e+85], t$95$1, If[LessEqual[t, 7.2e-7], N[(N[(N[(y - 2.0), $MachinePrecision] * b + x), $MachinePrecision] - N[(N[(y - 1.0), $MachinePrecision] * z + (-a)), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(1 - t, a, \left(\left(y + t\right) - 2\right) \cdot b\right) + x\\
\mathbf{if}\;t \leq -7 \cdot 10^{+85}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 7.2 \cdot 10^{-7}:\\
\;\;\;\;\mathsf{fma}\left(y - 2, b, x\right) - \mathsf{fma}\left(y - 1, z, -a\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -7.0000000000000001e85 or 7.19999999999999989e-7 < t

    1. Initial program 91.5%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Taylor expanded in z around 0

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

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

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

        \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
      4. +-commutativeN/A

        \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
      5. lower-fma.f64N/A

        \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
      6. lift--.f64N/A

        \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
      7. +-commutativeN/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
      8. lower-+.f64N/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
      9. *-commutativeN/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
      10. lift--.f64N/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
      11. lift-*.f6477.0

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
    4. Applied rewrites77.0%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
    5. Taylor expanded in a around 0

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

        \[\leadsto \left(a \cdot \left(1 - t\right) + b \cdot \left(\left(t + y\right) - 2\right)\right) + x \]
      2. lower-+.f64N/A

        \[\leadsto \left(a \cdot \left(1 - t\right) + b \cdot \left(\left(t + y\right) - 2\right)\right) + x \]
      3. *-commutativeN/A

        \[\leadsto \left(\left(1 - t\right) \cdot a + b \cdot \left(\left(t + y\right) - 2\right)\right) + x \]
      4. lower-fma.f64N/A

        \[\leadsto \mathsf{fma}\left(1 - t, a, b \cdot \left(\left(t + y\right) - 2\right)\right) + x \]
      5. lower--.f64N/A

        \[\leadsto \mathsf{fma}\left(1 - t, a, b \cdot \left(\left(t + y\right) - 2\right)\right) + x \]
      6. +-commutativeN/A

        \[\leadsto \mathsf{fma}\left(1 - t, a, b \cdot \left(\left(y + t\right) - 2\right)\right) + x \]
      7. *-commutativeN/A

        \[\leadsto \mathsf{fma}\left(1 - t, a, \left(\left(y + t\right) - 2\right) \cdot b\right) + x \]
      8. lift--.f64N/A

        \[\leadsto \mathsf{fma}\left(1 - t, a, \left(\left(y + t\right) - 2\right) \cdot b\right) + x \]
      9. lift-+.f64N/A

        \[\leadsto \mathsf{fma}\left(1 - t, a, \left(\left(y + t\right) - 2\right) \cdot b\right) + x \]
      10. lift-*.f6479.6

        \[\leadsto \mathsf{fma}\left(1 - t, a, \left(\left(y + t\right) - 2\right) \cdot b\right) + x \]
    7. Applied rewrites79.6%

      \[\leadsto \mathsf{fma}\left(1 - t, a, \left(\left(y + t\right) - 2\right) \cdot b\right) + \color{blue}{x} \]

    if -7.0000000000000001e85 < t < 7.19999999999999989e-7

    1. Initial program 98.0%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Taylor expanded in t around 0

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

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

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

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

        \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(\color{blue}{-1 \cdot a} + z \cdot \left(y - 1\right)\right) \]
      5. lower--.f64N/A

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

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

        \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(\left(y - 1\right) \cdot z + \color{blue}{-1} \cdot a\right) \]
      8. lower-fma.f64N/A

        \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \mathsf{fma}\left(y - 1, \color{blue}{z}, -1 \cdot a\right) \]
      9. lift--.f64N/A

        \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \mathsf{fma}\left(y - 1, z, -1 \cdot a\right) \]
      10. mul-1-negN/A

        \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \mathsf{fma}\left(y - 1, z, \mathsf{neg}\left(a\right)\right) \]
      11. lower-neg.f6493.1

        \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \mathsf{fma}\left(y - 1, z, -a\right) \]
    4. Applied rewrites93.1%

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

Alternative 5: 86.9% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\\ \mathbf{if}\;z \leq -2.2 \cdot 10^{+51}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 4.8 \cdot 10^{+86}:\\ \;\;\;\;\mathsf{fma}\left(1 - t, a, \left(\left(y + t\right) - 2\right) \cdot b\right) + x\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (- x (fma (- t 1.0) a (* (- y 1.0) z)))))
   (if (<= z -2.2e+51)
     t_1
     (if (<= z 4.8e+86) (+ (fma (- 1.0 t) a (* (- (+ y t) 2.0) b)) x) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = x - fma((t - 1.0), a, ((y - 1.0) * z));
	double tmp;
	if (z <= -2.2e+51) {
		tmp = t_1;
	} else if (z <= 4.8e+86) {
		tmp = fma((1.0 - t), a, (((y + t) - 2.0) * b)) + x;
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = Float64(x - fma(Float64(t - 1.0), a, Float64(Float64(y - 1.0) * z)))
	tmp = 0.0
	if (z <= -2.2e+51)
		tmp = t_1;
	elseif (z <= 4.8e+86)
		tmp = Float64(fma(Float64(1.0 - t), a, Float64(Float64(Float64(y + t) - 2.0) * b)) + x);
	else
		tmp = t_1;
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x - N[(N[(t - 1.0), $MachinePrecision] * a + N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.2e+51], t$95$1, If[LessEqual[z, 4.8e+86], N[(N[(N[(1.0 - t), $MachinePrecision] * a + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\\
\mathbf{if}\;z \leq -2.2 \cdot 10^{+51}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq 4.8 \cdot 10^{+86}:\\
\;\;\;\;\mathsf{fma}\left(1 - t, a, \left(\left(y + t\right) - 2\right) \cdot b\right) + x\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -2.19999999999999992e51 or 4.8000000000000001e86 < z

    1. Initial program 91.8%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Taylor expanded in b around 0

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

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

        \[\leadsto x - \left(\left(t - 1\right) \cdot a + \color{blue}{z} \cdot \left(y - 1\right)\right) \]
      3. lower-fma.f64N/A

        \[\leadsto x - \mathsf{fma}\left(t - 1, \color{blue}{a}, z \cdot \left(y - 1\right)\right) \]
      4. lift--.f64N/A

        \[\leadsto x - \mathsf{fma}\left(t - 1, a, z \cdot \left(y - 1\right)\right) \]
      5. *-commutativeN/A

        \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
      6. lift--.f64N/A

        \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
      7. lift-*.f6480.9

        \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
    4. Applied rewrites80.9%

      \[\leadsto \color{blue}{x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)} \]

    if -2.19999999999999992e51 < z < 4.8000000000000001e86

    1. Initial program 97.2%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Taylor expanded in z around 0

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

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

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

        \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
      4. +-commutativeN/A

        \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
      5. lower-fma.f64N/A

        \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
      6. lift--.f64N/A

        \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
      7. +-commutativeN/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
      8. lower-+.f64N/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
      9. *-commutativeN/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
      10. lift--.f64N/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
      11. lift-*.f6489.7

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
    4. Applied rewrites89.7%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
    5. Taylor expanded in a around 0

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

        \[\leadsto \left(a \cdot \left(1 - t\right) + b \cdot \left(\left(t + y\right) - 2\right)\right) + x \]
      2. lower-+.f64N/A

        \[\leadsto \left(a \cdot \left(1 - t\right) + b \cdot \left(\left(t + y\right) - 2\right)\right) + x \]
      3. *-commutativeN/A

        \[\leadsto \left(\left(1 - t\right) \cdot a + b \cdot \left(\left(t + y\right) - 2\right)\right) + x \]
      4. lower-fma.f64N/A

        \[\leadsto \mathsf{fma}\left(1 - t, a, b \cdot \left(\left(t + y\right) - 2\right)\right) + x \]
      5. lower--.f64N/A

        \[\leadsto \mathsf{fma}\left(1 - t, a, b \cdot \left(\left(t + y\right) - 2\right)\right) + x \]
      6. +-commutativeN/A

        \[\leadsto \mathsf{fma}\left(1 - t, a, b \cdot \left(\left(y + t\right) - 2\right)\right) + x \]
      7. *-commutativeN/A

        \[\leadsto \mathsf{fma}\left(1 - t, a, \left(\left(y + t\right) - 2\right) \cdot b\right) + x \]
      8. lift--.f64N/A

        \[\leadsto \mathsf{fma}\left(1 - t, a, \left(\left(y + t\right) - 2\right) \cdot b\right) + x \]
      9. lift-+.f64N/A

        \[\leadsto \mathsf{fma}\left(1 - t, a, \left(\left(y + t\right) - 2\right) \cdot b\right) + x \]
      10. lift-*.f6490.8

        \[\leadsto \mathsf{fma}\left(1 - t, a, \left(\left(y + t\right) - 2\right) \cdot b\right) + x \]
    7. Applied rewrites90.8%

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

Alternative 6: 86.3% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\\ \mathbf{if}\;z \leq -2.2 \cdot 10^{+51}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 4.8 \cdot 10^{+86}:\\ \;\;\;\;\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (- x (fma (- t 1.0) a (* (- y 1.0) z)))))
   (if (<= z -2.2e+51)
     t_1
     (if (<= z 4.8e+86) (- (fma (- (+ t y) 2.0) b x) (* (- t 1.0) a)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = x - fma((t - 1.0), a, ((y - 1.0) * z));
	double tmp;
	if (z <= -2.2e+51) {
		tmp = t_1;
	} else if (z <= 4.8e+86) {
		tmp = fma(((t + y) - 2.0), b, x) - ((t - 1.0) * a);
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = Float64(x - fma(Float64(t - 1.0), a, Float64(Float64(y - 1.0) * z)))
	tmp = 0.0
	if (z <= -2.2e+51)
		tmp = t_1;
	elseif (z <= 4.8e+86)
		tmp = Float64(fma(Float64(Float64(t + y) - 2.0), b, x) - Float64(Float64(t - 1.0) * a));
	else
		tmp = t_1;
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x - N[(N[(t - 1.0), $MachinePrecision] * a + N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.2e+51], t$95$1, If[LessEqual[z, 4.8e+86], N[(N[(N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision] * b + x), $MachinePrecision] - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\\
\mathbf{if}\;z \leq -2.2 \cdot 10^{+51}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq 4.8 \cdot 10^{+86}:\\
\;\;\;\;\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -2.19999999999999992e51 or 4.8000000000000001e86 < z

    1. Initial program 91.8%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Taylor expanded in b around 0

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

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

        \[\leadsto x - \left(\left(t - 1\right) \cdot a + \color{blue}{z} \cdot \left(y - 1\right)\right) \]
      3. lower-fma.f64N/A

        \[\leadsto x - \mathsf{fma}\left(t - 1, \color{blue}{a}, z \cdot \left(y - 1\right)\right) \]
      4. lift--.f64N/A

        \[\leadsto x - \mathsf{fma}\left(t - 1, a, z \cdot \left(y - 1\right)\right) \]
      5. *-commutativeN/A

        \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
      6. lift--.f64N/A

        \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
      7. lift-*.f6480.9

        \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
    4. Applied rewrites80.9%

      \[\leadsto \color{blue}{x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)} \]

    if -2.19999999999999992e51 < z < 4.8000000000000001e86

    1. Initial program 97.2%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Taylor expanded in z around 0

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

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

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

        \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
      4. +-commutativeN/A

        \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
      5. lower-fma.f64N/A

        \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
      6. lift--.f64N/A

        \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
      7. +-commutativeN/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
      8. lower-+.f64N/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
      9. *-commutativeN/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
      10. lift--.f64N/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
      11. lift-*.f6489.7

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
    4. Applied rewrites89.7%

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

Alternative 7: 84.4% accurate, 1.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\left(t + y\right) - 2, b, \left(1 - y\right) \cdot z\right)\\ \mathbf{if}\;b \leq -2 \cdot 10^{+78}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 6.4 \cdot 10^{+83}:\\ \;\;\;\;x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (fma (- (+ t y) 2.0) b (* (- 1.0 y) z))))
   (if (<= b -2e+78)
     t_1
     (if (<= b 6.4e+83) (- x (fma (- t 1.0) a (* (- y 1.0) z))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = fma(((t + y) - 2.0), b, ((1.0 - y) * z));
	double tmp;
	if (b <= -2e+78) {
		tmp = t_1;
	} else if (b <= 6.4e+83) {
		tmp = x - fma((t - 1.0), a, ((y - 1.0) * z));
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = fma(Float64(Float64(t + y) - 2.0), b, Float64(Float64(1.0 - y) * z))
	tmp = 0.0
	if (b <= -2e+78)
		tmp = t_1;
	elseif (b <= 6.4e+83)
		tmp = Float64(x - fma(Float64(t - 1.0), a, Float64(Float64(y - 1.0) * z)));
	else
		tmp = t_1;
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision] * b + N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2e+78], t$95$1, If[LessEqual[b, 6.4e+83], N[(x - N[(N[(t - 1.0), $MachinePrecision] * a + N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\left(t + y\right) - 2, b, \left(1 - y\right) \cdot z\right)\\
\mathbf{if}\;b \leq -2 \cdot 10^{+78}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;b \leq 6.4 \cdot 10^{+83}:\\
\;\;\;\;x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < -2.00000000000000002e78 or 6.3999999999999998e83 < b

    1. Initial program 89.6%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(\left(y + t\right) - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right)} \]
      13. lift--.f64N/A

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) \]
      15. lower-+.f64N/A

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

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

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

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \left(z \cdot \left(y - 1\right) + \color{blue}{a \cdot \left(t - 1\right)}\right)\right) \]
    3. Applied rewrites94.4%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right)} \]
    4. Taylor expanded in z around inf

      \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \color{blue}{z \cdot \left(1 - y\right)}\right) \]
    5. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, z \cdot \left(1 - y\right)\right) \]
      2. associate--l-N/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \color{blue}{z} \cdot \left(1 - y\right)\right) \]
      3. *-commutativeN/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \left(1 - y\right) \cdot \color{blue}{z}\right) \]
      4. lower-*.f64N/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \left(1 - y\right) \cdot \color{blue}{z}\right) \]
      5. lower--.f6480.9

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \left(1 - y\right) \cdot z\right) \]
    6. Applied rewrites80.9%

      \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \color{blue}{\left(1 - y\right) \cdot z}\right) \]

    if -2.00000000000000002e78 < b < 6.3999999999999998e83

    1. Initial program 98.3%

      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
    2. Taylor expanded in b around 0

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

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

        \[\leadsto x - \left(\left(t - 1\right) \cdot a + \color{blue}{z} \cdot \left(y - 1\right)\right) \]
      3. lower-fma.f64N/A

        \[\leadsto x - \mathsf{fma}\left(t - 1, \color{blue}{a}, z \cdot \left(y - 1\right)\right) \]
      4. lift--.f64N/A

        \[\leadsto x - \mathsf{fma}\left(t - 1, a, z \cdot \left(y - 1\right)\right) \]
      5. *-commutativeN/A

        \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
      6. lift--.f64N/A

        \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
      7. lift-*.f6486.5

        \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
    4. Applied rewrites86.5%

      \[\leadsto \color{blue}{x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 8: 83.3% accurate, 1.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(t + y\right) - 2\\ \mathbf{if}\;b \leq -3.9 \cdot 10^{+88}:\\ \;\;\;\;\mathsf{fma}\left(t\_1, b, z\right)\\ \mathbf{elif}\;b \leq 2.4 \cdot 10^{+85}:\\ \;\;\;\;x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(t\_1, b, \left(-y\right) \cdot z\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (- (+ t y) 2.0)))
   (if (<= b -3.9e+88)
     (fma t_1 b z)
     (if (<= b 2.4e+85)
       (- x (fma (- t 1.0) a (* (- y 1.0) z)))
       (fma t_1 b (* (- y) z))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (t + y) - 2.0;
	double tmp;
	if (b <= -3.9e+88) {
		tmp = fma(t_1, b, z);
	} else if (b <= 2.4e+85) {
		tmp = x - fma((t - 1.0), a, ((y - 1.0) * z));
	} else {
		tmp = fma(t_1, b, (-y * z));
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(t + y) - 2.0)
	tmp = 0.0
	if (b <= -3.9e+88)
		tmp = fma(t_1, b, z);
	elseif (b <= 2.4e+85)
		tmp = Float64(x - fma(Float64(t - 1.0), a, Float64(Float64(y - 1.0) * z)));
	else
		tmp = fma(t_1, b, Float64(Float64(-y) * z));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision]}, If[LessEqual[b, -3.9e+88], N[(t$95$1 * b + z), $MachinePrecision], If[LessEqual[b, 2.4e+85], N[(x - N[(N[(t - 1.0), $MachinePrecision] * a + N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 * b + N[((-y) * z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \left(t + y\right) - 2\\
\mathbf{if}\;b \leq -3.9 \cdot 10^{+88}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, b, z\right)\\

\mathbf{elif}\;b \leq 2.4 \cdot 10^{+85}:\\
\;\;\;\;x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\\

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, b, \left(-y\right) \cdot z\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -3.9000000000000001e88

    1. Initial program 89.8%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(\left(y + t\right) - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right)} \]
      13. lift--.f64N/A

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) \]
      15. lower-+.f64N/A

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

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

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

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \left(z \cdot \left(y - 1\right) + \color{blue}{a \cdot \left(t - 1\right)}\right)\right) \]
    3. Applied rewrites94.9%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right)} \]
    4. Taylor expanded in z around inf

      \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \color{blue}{z \cdot \left(1 - y\right)}\right) \]
    5. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, z \cdot \left(1 - y\right)\right) \]
      2. associate--l-N/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \color{blue}{z} \cdot \left(1 - y\right)\right) \]
      3. *-commutativeN/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \left(1 - y\right) \cdot \color{blue}{z}\right) \]
      4. lower-*.f64N/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \left(1 - y\right) \cdot \color{blue}{z}\right) \]
      5. lower--.f6481.6

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \left(1 - y\right) \cdot z\right) \]
    6. Applied rewrites81.6%

      \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \color{blue}{\left(1 - y\right) \cdot z}\right) \]
    7. Taylor expanded in y around 0

      \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, z\right) \]
    8. Step-by-step derivation
      1. Applied rewrites79.2%

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, z\right) \]

      if -3.9000000000000001e88 < b < 2.39999999999999997e85

      1. Initial program 98.3%

        \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
      2. Taylor expanded in b around 0

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

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

          \[\leadsto x - \left(\left(t - 1\right) \cdot a + \color{blue}{z} \cdot \left(y - 1\right)\right) \]
        3. lower-fma.f64N/A

          \[\leadsto x - \mathsf{fma}\left(t - 1, \color{blue}{a}, z \cdot \left(y - 1\right)\right) \]
        4. lift--.f64N/A

          \[\leadsto x - \mathsf{fma}\left(t - 1, a, z \cdot \left(y - 1\right)\right) \]
        5. *-commutativeN/A

          \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
        6. lift--.f64N/A

          \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
        7. lift-*.f6486.1

          \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
      4. Applied rewrites86.1%

        \[\leadsto \color{blue}{x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)} \]

      if 2.39999999999999997e85 < b

      1. Initial program 89.2%

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \color{blue}{\mathsf{fma}\left(\left(y + t\right) - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right)} \]
        13. lift--.f64N/A

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

          \[\leadsto \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) \]
        15. lower-+.f64N/A

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

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

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

          \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \left(z \cdot \left(y - 1\right) + \color{blue}{a \cdot \left(t - 1\right)}\right)\right) \]
      3. Applied rewrites93.7%

        \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right)} \]
      4. Taylor expanded in y around inf

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \color{blue}{-1 \cdot \left(y \cdot z\right)}\right) \]
      5. Step-by-step derivation
        1. +-commutativeN/A

          \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, -1 \cdot \left(y \cdot z\right)\right) \]
        2. associate--l-N/A

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

          \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \left(-1 \cdot y\right) \cdot \color{blue}{z}\right) \]
        4. mul-1-negN/A

          \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \left(\mathsf{neg}\left(y\right)\right) \cdot z\right) \]
        5. lower-*.f64N/A

          \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \left(\mathsf{neg}\left(y\right)\right) \cdot \color{blue}{z}\right) \]
        6. lower-neg.f6477.3

          \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \left(-y\right) \cdot z\right) \]
      6. Applied rewrites77.3%

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \color{blue}{\left(-y\right) \cdot z}\right) \]
    9. Recombined 3 regimes into one program.
    10. Add Preprocessing

    Alternative 9: 69.3% accurate, 1.1× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(t + y\right) - 2\\ \mathbf{if}\;b \leq -2.2 \cdot 10^{+23}:\\ \;\;\;\;\mathsf{fma}\left(t\_1, b, z\right)\\ \mathbf{elif}\;b \leq 3.6 \cdot 10^{-108}:\\ \;\;\;\;\left(1 - t\right) \cdot a - \left(y - 1\right) \cdot z\\ \mathbf{elif}\;b \leq 2.6 \cdot 10^{+62}:\\ \;\;\;\;x - \left(t - 1\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(t\_1, b, \left(-y\right) \cdot z\right)\\ \end{array} \end{array} \]
    (FPCore (x y z t a b)
     :precision binary64
     (let* ((t_1 (- (+ t y) 2.0)))
       (if (<= b -2.2e+23)
         (fma t_1 b z)
         (if (<= b 3.6e-108)
           (- (* (- 1.0 t) a) (* (- y 1.0) z))
           (if (<= b 2.6e+62) (- x (* (- t 1.0) a)) (fma t_1 b (* (- y) z)))))))
    double code(double x, double y, double z, double t, double a, double b) {
    	double t_1 = (t + y) - 2.0;
    	double tmp;
    	if (b <= -2.2e+23) {
    		tmp = fma(t_1, b, z);
    	} else if (b <= 3.6e-108) {
    		tmp = ((1.0 - t) * a) - ((y - 1.0) * z);
    	} else if (b <= 2.6e+62) {
    		tmp = x - ((t - 1.0) * a);
    	} else {
    		tmp = fma(t_1, b, (-y * z));
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a, b)
    	t_1 = Float64(Float64(t + y) - 2.0)
    	tmp = 0.0
    	if (b <= -2.2e+23)
    		tmp = fma(t_1, b, z);
    	elseif (b <= 3.6e-108)
    		tmp = Float64(Float64(Float64(1.0 - t) * a) - Float64(Float64(y - 1.0) * z));
    	elseif (b <= 2.6e+62)
    		tmp = Float64(x - Float64(Float64(t - 1.0) * a));
    	else
    		tmp = fma(t_1, b, Float64(Float64(-y) * z));
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision]}, If[LessEqual[b, -2.2e+23], N[(t$95$1 * b + z), $MachinePrecision], If[LessEqual[b, 3.6e-108], N[(N[(N[(1.0 - t), $MachinePrecision] * a), $MachinePrecision] - N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.6e+62], N[(x - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], N[(t$95$1 * b + N[((-y) * z), $MachinePrecision]), $MachinePrecision]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \left(t + y\right) - 2\\
    \mathbf{if}\;b \leq -2.2 \cdot 10^{+23}:\\
    \;\;\;\;\mathsf{fma}\left(t\_1, b, z\right)\\
    
    \mathbf{elif}\;b \leq 3.6 \cdot 10^{-108}:\\
    \;\;\;\;\left(1 - t\right) \cdot a - \left(y - 1\right) \cdot z\\
    
    \mathbf{elif}\;b \leq 2.6 \cdot 10^{+62}:\\
    \;\;\;\;x - \left(t - 1\right) \cdot a\\
    
    \mathbf{else}:\\
    \;\;\;\;\mathsf{fma}\left(t\_1, b, \left(-y\right) \cdot z\right)\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 4 regimes
    2. if b < -2.20000000000000008e23

      1. Initial program 90.5%

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \color{blue}{\mathsf{fma}\left(\left(y + t\right) - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right)} \]
        13. lift--.f64N/A

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

          \[\leadsto \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) \]
        15. lower-+.f64N/A

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

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

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

          \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \left(z \cdot \left(y - 1\right) + \color{blue}{a \cdot \left(t - 1\right)}\right)\right) \]
      3. Applied rewrites95.9%

        \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right)} \]
      4. Taylor expanded in z around inf

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \color{blue}{z \cdot \left(1 - y\right)}\right) \]
      5. Step-by-step derivation
        1. +-commutativeN/A

          \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, z \cdot \left(1 - y\right)\right) \]
        2. associate--l-N/A

          \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \color{blue}{z} \cdot \left(1 - y\right)\right) \]
        3. *-commutativeN/A

          \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \left(1 - y\right) \cdot \color{blue}{z}\right) \]
        4. lower-*.f64N/A

          \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \left(1 - y\right) \cdot \color{blue}{z}\right) \]
        5. lower--.f6476.8

          \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \left(1 - y\right) \cdot z\right) \]
      6. Applied rewrites76.8%

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \color{blue}{\left(1 - y\right) \cdot z}\right) \]
      7. Taylor expanded in y around 0

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, z\right) \]
      8. Step-by-step derivation
        1. Applied rewrites71.6%

          \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, z\right) \]

        if -2.20000000000000008e23 < b < 3.6000000000000001e-108

        1. Initial program 99.2%

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \color{blue}{\mathsf{fma}\left(\left(y + t\right) - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right)} \]
          13. lift--.f64N/A

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

            \[\leadsto \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) \]
          15. lower-+.f64N/A

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

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

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

            \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \left(z \cdot \left(y - 1\right) + \color{blue}{a \cdot \left(t - 1\right)}\right)\right) \]
        3. Applied rewrites99.6%

          \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right)} \]
        4. Step-by-step derivation
          1. lift-fma.f64N/A

            \[\leadsto \color{blue}{\left(\left(t + y\right) - 2\right) \cdot b + \left(x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right)} \]
          2. lift-+.f64N/A

            \[\leadsto \left(\color{blue}{\left(t + y\right)} - 2\right) \cdot b + \left(x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right) \]
          3. lift--.f64N/A

            \[\leadsto \color{blue}{\left(\left(t + y\right) - 2\right)} \cdot b + \left(x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right) \]
          4. lift--.f64N/A

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \color{blue}{\left(\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)\right) - z \cdot \left(y - 1\right)} \]
        5. Applied rewrites99.2%

          \[\leadsto \color{blue}{\mathsf{fma}\left(\left(y + t\right) - 2, b, x - \left(t - 1\right) \cdot a\right) - \left(y - 1\right) \cdot z} \]
        6. Taylor expanded in a around inf

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

            \[\leadsto \left(1 - t\right) \cdot \color{blue}{a} - \left(y - 1\right) \cdot z \]
          2. lower-*.f64N/A

            \[\leadsto \left(1 - t\right) \cdot \color{blue}{a} - \left(y - 1\right) \cdot z \]
          3. lower--.f6471.7

            \[\leadsto \left(1 - t\right) \cdot a - \left(y - 1\right) \cdot z \]
        8. Applied rewrites71.7%

          \[\leadsto \color{blue}{\left(1 - t\right) \cdot a} - \left(y - 1\right) \cdot z \]

        if 3.6000000000000001e-108 < b < 2.59999999999999984e62

        1. Initial program 98.2%

          \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
        2. Taylor expanded in z around 0

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

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

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

            \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
          4. +-commutativeN/A

            \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
          5. lower-fma.f64N/A

            \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
          6. lift--.f64N/A

            \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
          7. +-commutativeN/A

            \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
          8. lower-+.f64N/A

            \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
          9. *-commutativeN/A

            \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
          10. lift--.f64N/A

            \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
          11. lift-*.f6469.6

            \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
        4. Applied rewrites69.6%

          \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
        5. Taylor expanded in x around inf

          \[\leadsto x - \color{blue}{\left(t - 1\right)} \cdot a \]
        6. Step-by-step derivation
          1. Applied rewrites47.5%

            \[\leadsto x - \color{blue}{\left(t - 1\right)} \cdot a \]

          if 2.59999999999999984e62 < b

          1. Initial program 89.6%

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \color{blue}{\mathsf{fma}\left(\left(y + t\right) - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right)} \]
            13. lift--.f64N/A

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

              \[\leadsto \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) \]
            15. lower-+.f64N/A

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

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

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

              \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \left(z \cdot \left(y - 1\right) + \color{blue}{a \cdot \left(t - 1\right)}\right)\right) \]
          3. Applied rewrites94.1%

            \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right)} \]
          4. Taylor expanded in y around inf

            \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \color{blue}{-1 \cdot \left(y \cdot z\right)}\right) \]
          5. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, -1 \cdot \left(y \cdot z\right)\right) \]
            2. associate--l-N/A

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

              \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \left(-1 \cdot y\right) \cdot \color{blue}{z}\right) \]
            4. mul-1-negN/A

              \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \left(\mathsf{neg}\left(y\right)\right) \cdot z\right) \]
            5. lower-*.f64N/A

              \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \left(\mathsf{neg}\left(y\right)\right) \cdot \color{blue}{z}\right) \]
            6. lower-neg.f6475.8

              \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \left(-y\right) \cdot z\right) \]
          6. Applied rewrites75.8%

            \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \color{blue}{\left(-y\right) \cdot z}\right) \]
        7. Recombined 4 regimes into one program.
        8. Add Preprocessing

        Alternative 10: 69.1% accurate, 1.3× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\left(t + y\right) - 2, b, z\right)\\ \mathbf{if}\;b \leq -2.2 \cdot 10^{+23}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 3.6 \cdot 10^{-108}:\\ \;\;\;\;\left(1 - t\right) \cdot a - \left(y - 1\right) \cdot z\\ \mathbf{elif}\;b \leq 6.6 \cdot 10^{+75}:\\ \;\;\;\;x - \left(t - 1\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
        (FPCore (x y z t a b)
         :precision binary64
         (let* ((t_1 (fma (- (+ t y) 2.0) b z)))
           (if (<= b -2.2e+23)
             t_1
             (if (<= b 3.6e-108)
               (- (* (- 1.0 t) a) (* (- y 1.0) z))
               (if (<= b 6.6e+75) (- x (* (- t 1.0) a)) t_1)))))
        double code(double x, double y, double z, double t, double a, double b) {
        	double t_1 = fma(((t + y) - 2.0), b, z);
        	double tmp;
        	if (b <= -2.2e+23) {
        		tmp = t_1;
        	} else if (b <= 3.6e-108) {
        		tmp = ((1.0 - t) * a) - ((y - 1.0) * z);
        	} else if (b <= 6.6e+75) {
        		tmp = x - ((t - 1.0) * a);
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        function code(x, y, z, t, a, b)
        	t_1 = fma(Float64(Float64(t + y) - 2.0), b, z)
        	tmp = 0.0
        	if (b <= -2.2e+23)
        		tmp = t_1;
        	elseif (b <= 3.6e-108)
        		tmp = Float64(Float64(Float64(1.0 - t) * a) - Float64(Float64(y - 1.0) * z));
        	elseif (b <= 6.6e+75)
        		tmp = Float64(x - Float64(Float64(t - 1.0) * a));
        	else
        		tmp = t_1;
        	end
        	return tmp
        end
        
        code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision] * b + z), $MachinePrecision]}, If[LessEqual[b, -2.2e+23], t$95$1, If[LessEqual[b, 3.6e-108], N[(N[(N[(1.0 - t), $MachinePrecision] * a), $MachinePrecision] - N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.6e+75], N[(x - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := \mathsf{fma}\left(\left(t + y\right) - 2, b, z\right)\\
        \mathbf{if}\;b \leq -2.2 \cdot 10^{+23}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;b \leq 3.6 \cdot 10^{-108}:\\
        \;\;\;\;\left(1 - t\right) \cdot a - \left(y - 1\right) \cdot z\\
        
        \mathbf{elif}\;b \leq 6.6 \cdot 10^{+75}:\\
        \;\;\;\;x - \left(t - 1\right) \cdot a\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if b < -2.20000000000000008e23 or 6.59999999999999996e75 < b

          1. Initial program 90.0%

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \color{blue}{\mathsf{fma}\left(\left(y + t\right) - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right)} \]
            13. lift--.f64N/A

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

              \[\leadsto \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) \]
            15. lower-+.f64N/A

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

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

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

              \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \left(z \cdot \left(y - 1\right) + \color{blue}{a \cdot \left(t - 1\right)}\right)\right) \]
          3. Applied rewrites95.0%

            \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right)} \]
          4. Taylor expanded in z around inf

            \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \color{blue}{z \cdot \left(1 - y\right)}\right) \]
          5. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, z \cdot \left(1 - y\right)\right) \]
            2. associate--l-N/A

              \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \color{blue}{z} \cdot \left(1 - y\right)\right) \]
            3. *-commutativeN/A

              \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \left(1 - y\right) \cdot \color{blue}{z}\right) \]
            4. lower-*.f64N/A

              \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \left(1 - y\right) \cdot \color{blue}{z}\right) \]
            5. lower--.f6478.6

              \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \left(1 - y\right) \cdot z\right) \]
          6. Applied rewrites78.6%

            \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \color{blue}{\left(1 - y\right) \cdot z}\right) \]
          7. Taylor expanded in y around 0

            \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, z\right) \]
          8. Step-by-step derivation
            1. Applied rewrites74.8%

              \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, z\right) \]

            if -2.20000000000000008e23 < b < 3.6000000000000001e-108

            1. Initial program 99.2%

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \color{blue}{\mathsf{fma}\left(\left(y + t\right) - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right)} \]
              13. lift--.f64N/A

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

                \[\leadsto \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) \]
              15. lower-+.f64N/A

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

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

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

                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \left(z \cdot \left(y - 1\right) + \color{blue}{a \cdot \left(t - 1\right)}\right)\right) \]
            3. Applied rewrites99.6%

              \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right)} \]
            4. Step-by-step derivation
              1. lift-fma.f64N/A

                \[\leadsto \color{blue}{\left(\left(t + y\right) - 2\right) \cdot b + \left(x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right)} \]
              2. lift-+.f64N/A

                \[\leadsto \left(\color{blue}{\left(t + y\right)} - 2\right) \cdot b + \left(x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right) \]
              3. lift--.f64N/A

                \[\leadsto \color{blue}{\left(\left(t + y\right) - 2\right)} \cdot b + \left(x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right) \]
              4. lift--.f64N/A

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \color{blue}{\left(\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)\right) - z \cdot \left(y - 1\right)} \]
            5. Applied rewrites99.2%

              \[\leadsto \color{blue}{\mathsf{fma}\left(\left(y + t\right) - 2, b, x - \left(t - 1\right) \cdot a\right) - \left(y - 1\right) \cdot z} \]
            6. Taylor expanded in a around inf

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

                \[\leadsto \left(1 - t\right) \cdot \color{blue}{a} - \left(y - 1\right) \cdot z \]
              2. lower-*.f64N/A

                \[\leadsto \left(1 - t\right) \cdot \color{blue}{a} - \left(y - 1\right) \cdot z \]
              3. lower--.f6471.7

                \[\leadsto \left(1 - t\right) \cdot a - \left(y - 1\right) \cdot z \]
            8. Applied rewrites71.7%

              \[\leadsto \color{blue}{\left(1 - t\right) \cdot a} - \left(y - 1\right) \cdot z \]

            if 3.6000000000000001e-108 < b < 6.59999999999999996e75

            1. Initial program 98.1%

              \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
            2. Taylor expanded in z around 0

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

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

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

                \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
              4. +-commutativeN/A

                \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
              5. lower-fma.f64N/A

                \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
              6. lift--.f64N/A

                \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
              7. +-commutativeN/A

                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
              8. lower-+.f64N/A

                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
              9. *-commutativeN/A

                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
              10. lift--.f64N/A

                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
              11. lift-*.f6469.9

                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
            4. Applied rewrites69.9%

              \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
            5. Taylor expanded in x around inf

              \[\leadsto x - \color{blue}{\left(t - 1\right)} \cdot a \]
            6. Step-by-step derivation
              1. Applied rewrites46.8%

                \[\leadsto x - \color{blue}{\left(t - 1\right)} \cdot a \]
            7. Recombined 3 regimes into one program.
            8. Add Preprocessing

            Alternative 11: 64.4% accurate, 1.3× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right)\\ \mathbf{if}\;b \leq -130000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq -4.1 \cdot 10^{-302}:\\ \;\;\;\;x - \left(y - 1\right) \cdot z\\ \mathbf{elif}\;b \leq 2.1 \cdot 10^{+75}:\\ \;\;\;\;x - \left(t - 1\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
            (FPCore (x y z t a b)
             :precision binary64
             (let* ((t_1 (fma (- (+ t y) 2.0) b x)))
               (if (<= b -130000000.0)
                 t_1
                 (if (<= b -4.1e-302)
                   (- x (* (- y 1.0) z))
                   (if (<= b 2.1e+75) (- x (* (- t 1.0) a)) t_1)))))
            double code(double x, double y, double z, double t, double a, double b) {
            	double t_1 = fma(((t + y) - 2.0), b, x);
            	double tmp;
            	if (b <= -130000000.0) {
            		tmp = t_1;
            	} else if (b <= -4.1e-302) {
            		tmp = x - ((y - 1.0) * z);
            	} else if (b <= 2.1e+75) {
            		tmp = x - ((t - 1.0) * a);
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a, b)
            	t_1 = fma(Float64(Float64(t + y) - 2.0), b, x)
            	tmp = 0.0
            	if (b <= -130000000.0)
            		tmp = t_1;
            	elseif (b <= -4.1e-302)
            		tmp = Float64(x - Float64(Float64(y - 1.0) * z));
            	elseif (b <= 2.1e+75)
            		tmp = Float64(x - Float64(Float64(t - 1.0) * a));
            	else
            		tmp = t_1;
            	end
            	return tmp
            end
            
            code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision] * b + x), $MachinePrecision]}, If[LessEqual[b, -130000000.0], t$95$1, If[LessEqual[b, -4.1e-302], N[(x - N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.1e+75], N[(x - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right)\\
            \mathbf{if}\;b \leq -130000000:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;b \leq -4.1 \cdot 10^{-302}:\\
            \;\;\;\;x - \left(y - 1\right) \cdot z\\
            
            \mathbf{elif}\;b \leq 2.1 \cdot 10^{+75}:\\
            \;\;\;\;x - \left(t - 1\right) \cdot a\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_1\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if b < -1.3e8 or 2.09999999999999999e75 < b

              1. Initial program 90.2%

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \color{blue}{\mathsf{fma}\left(\left(y + t\right) - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right)} \]
                13. lift--.f64N/A

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

                  \[\leadsto \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) \]
                15. lower-+.f64N/A

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

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

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

                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \left(z \cdot \left(y - 1\right) + \color{blue}{a \cdot \left(t - 1\right)}\right)\right) \]
              3. Applied rewrites95.1%

                \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right)} \]
              4. Taylor expanded in x around inf

                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \color{blue}{x}\right) \]
              5. Step-by-step derivation
                1. +-commutative75.6

                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) \]
                2. associate--l-75.6

                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) \]
              6. Applied rewrites75.6%

                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \color{blue}{x}\right) \]

              if -1.3e8 < b < -4.0999999999999998e-302

              1. Initial program 99.1%

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \color{blue}{\mathsf{fma}\left(\left(y + t\right) - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right)} \]
                13. lift--.f64N/A

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

                  \[\leadsto \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) \]
                15. lower-+.f64N/A

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

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

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

                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \left(z \cdot \left(y - 1\right) + \color{blue}{a \cdot \left(t - 1\right)}\right)\right) \]
              3. Applied rewrites99.5%

                \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right)} \]
              4. Step-by-step derivation
                1. lift-fma.f64N/A

                  \[\leadsto \color{blue}{\left(\left(t + y\right) - 2\right) \cdot b + \left(x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right)} \]
                2. lift-+.f64N/A

                  \[\leadsto \left(\color{blue}{\left(t + y\right)} - 2\right) \cdot b + \left(x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right) \]
                3. lift--.f64N/A

                  \[\leadsto \color{blue}{\left(\left(t + y\right) - 2\right)} \cdot b + \left(x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right) \]
                4. lift--.f64N/A

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \color{blue}{\left(\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)\right) - z \cdot \left(y - 1\right)} \]
              5. Applied rewrites99.1%

                \[\leadsto \color{blue}{\mathsf{fma}\left(\left(y + t\right) - 2, b, x - \left(t - 1\right) \cdot a\right) - \left(y - 1\right) \cdot z} \]
              6. Taylor expanded in x around inf

                \[\leadsto \color{blue}{x} - \left(y - 1\right) \cdot z \]
              7. Step-by-step derivation
                1. Applied rewrites58.2%

                  \[\leadsto \color{blue}{x} - \left(y - 1\right) \cdot z \]

                if -4.0999999999999998e-302 < b < 2.09999999999999999e75

                1. Initial program 98.8%

                  \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                2. Taylor expanded in z around 0

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

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

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

                    \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                  4. +-commutativeN/A

                    \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                  5. lower-fma.f64N/A

                    \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
                  6. lift--.f64N/A

                    \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                  7. +-commutativeN/A

                    \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                  8. lower-+.f64N/A

                    \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                  9. *-commutativeN/A

                    \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                  10. lift--.f64N/A

                    \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
                  11. lift-*.f6466.3

                    \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                4. Applied rewrites66.3%

                  \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
                5. Taylor expanded in x around inf

                  \[\leadsto x - \color{blue}{\left(t - 1\right)} \cdot a \]
                6. Step-by-step derivation
                  1. Applied rewrites53.8%

                    \[\leadsto x - \color{blue}{\left(t - 1\right)} \cdot a \]
                7. Recombined 3 regimes into one program.
                8. Add Preprocessing

                Alternative 12: 62.1% accurate, 1.5× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\left(t + y\right) - 2, b, z\right)\\ \mathbf{if}\;b \leq -4.3 \cdot 10^{-75}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 6.6 \cdot 10^{+75}:\\ \;\;\;\;x - \left(t - 1\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                (FPCore (x y z t a b)
                 :precision binary64
                 (let* ((t_1 (fma (- (+ t y) 2.0) b z)))
                   (if (<= b -4.3e-75) t_1 (if (<= b 6.6e+75) (- x (* (- t 1.0) a)) t_1))))
                double code(double x, double y, double z, double t, double a, double b) {
                	double t_1 = fma(((t + y) - 2.0), b, z);
                	double tmp;
                	if (b <= -4.3e-75) {
                		tmp = t_1;
                	} else if (b <= 6.6e+75) {
                		tmp = x - ((t - 1.0) * a);
                	} else {
                		tmp = t_1;
                	}
                	return tmp;
                }
                
                function code(x, y, z, t, a, b)
                	t_1 = fma(Float64(Float64(t + y) - 2.0), b, z)
                	tmp = 0.0
                	if (b <= -4.3e-75)
                		tmp = t_1;
                	elseif (b <= 6.6e+75)
                		tmp = Float64(x - Float64(Float64(t - 1.0) * a));
                	else
                		tmp = t_1;
                	end
                	return tmp
                end
                
                code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision] * b + z), $MachinePrecision]}, If[LessEqual[b, -4.3e-75], t$95$1, If[LessEqual[b, 6.6e+75], N[(x - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := \mathsf{fma}\left(\left(t + y\right) - 2, b, z\right)\\
                \mathbf{if}\;b \leq -4.3 \cdot 10^{-75}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;b \leq 6.6 \cdot 10^{+75}:\\
                \;\;\;\;x - \left(t - 1\right) \cdot a\\
                
                \mathbf{else}:\\
                \;\;\;\;t\_1\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if b < -4.2999999999999999e-75 or 6.59999999999999996e75 < b

                  1. Initial program 91.3%

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \color{blue}{\mathsf{fma}\left(\left(y + t\right) - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right)} \]
                    13. lift--.f64N/A

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

                      \[\leadsto \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) \]
                    15. lower-+.f64N/A

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

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

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

                      \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \left(z \cdot \left(y - 1\right) + \color{blue}{a \cdot \left(t - 1\right)}\right)\right) \]
                  3. Applied rewrites95.7%

                    \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right)} \]
                  4. Taylor expanded in z around inf

                    \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \color{blue}{z \cdot \left(1 - y\right)}\right) \]
                  5. Step-by-step derivation
                    1. +-commutativeN/A

                      \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, z \cdot \left(1 - y\right)\right) \]
                    2. associate--l-N/A

                      \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \color{blue}{z} \cdot \left(1 - y\right)\right) \]
                    3. *-commutativeN/A

                      \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \left(1 - y\right) \cdot \color{blue}{z}\right) \]
                    4. lower-*.f64N/A

                      \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \left(1 - y\right) \cdot \color{blue}{z}\right) \]
                    5. lower--.f6474.7

                      \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \left(1 - y\right) \cdot z\right) \]
                  6. Applied rewrites74.7%

                    \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, \color{blue}{\left(1 - y\right) \cdot z}\right) \]
                  7. Taylor expanded in y around 0

                    \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, z\right) \]
                  8. Step-by-step derivation
                    1. Applied rewrites68.6%

                      \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, z\right) \]

                    if -4.2999999999999999e-75 < b < 6.59999999999999996e75

                    1. Initial program 98.9%

                      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                    2. Taylor expanded in z around 0

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

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

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

                        \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                      4. +-commutativeN/A

                        \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                      5. lower-fma.f64N/A

                        \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
                      6. lift--.f64N/A

                        \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                      7. +-commutativeN/A

                        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                      8. lower-+.f64N/A

                        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                      9. *-commutativeN/A

                        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                      10. lift--.f64N/A

                        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
                      11. lift-*.f6465.0

                        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                    4. Applied rewrites65.0%

                      \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
                    5. Taylor expanded in x around inf

                      \[\leadsto x - \color{blue}{\left(t - 1\right)} \cdot a \]
                    6. Step-by-step derivation
                      1. Applied rewrites55.5%

                        \[\leadsto x - \color{blue}{\left(t - 1\right)} \cdot a \]
                    7. Recombined 2 regimes into one program.
                    8. Add Preprocessing

                    Alternative 13: 61.5% accurate, 1.0× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := x - \left(y - 1\right) \cdot z\\ t_2 := \left(b - a\right) \cdot t\\ \mathbf{if}\;t \leq -7 \cdot 10^{+85}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq -3.3 \cdot 10^{-134}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 4.2 \cdot 10^{-174}:\\ \;\;\;\;\mathsf{fma}\left(-2, b, x\right) + a\\ \mathbf{elif}\;t \leq 1.2 \cdot 10^{-48}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 270000000:\\ \;\;\;\;\mathsf{fma}\left(y - 2, b, a\right)\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                    (FPCore (x y z t a b)
                     :precision binary64
                     (let* ((t_1 (- x (* (- y 1.0) z))) (t_2 (* (- b a) t)))
                       (if (<= t -7e+85)
                         t_2
                         (if (<= t -3.3e-134)
                           t_1
                           (if (<= t 4.2e-174)
                             (+ (fma -2.0 b x) a)
                             (if (<= t 1.2e-48)
                               t_1
                               (if (<= t 270000000.0) (fma (- y 2.0) b a) t_2)))))))
                    double code(double x, double y, double z, double t, double a, double b) {
                    	double t_1 = x - ((y - 1.0) * z);
                    	double t_2 = (b - a) * t;
                    	double tmp;
                    	if (t <= -7e+85) {
                    		tmp = t_2;
                    	} else if (t <= -3.3e-134) {
                    		tmp = t_1;
                    	} else if (t <= 4.2e-174) {
                    		tmp = fma(-2.0, b, x) + a;
                    	} else if (t <= 1.2e-48) {
                    		tmp = t_1;
                    	} else if (t <= 270000000.0) {
                    		tmp = fma((y - 2.0), b, a);
                    	} else {
                    		tmp = t_2;
                    	}
                    	return tmp;
                    }
                    
                    function code(x, y, z, t, a, b)
                    	t_1 = Float64(x - Float64(Float64(y - 1.0) * z))
                    	t_2 = Float64(Float64(b - a) * t)
                    	tmp = 0.0
                    	if (t <= -7e+85)
                    		tmp = t_2;
                    	elseif (t <= -3.3e-134)
                    		tmp = t_1;
                    	elseif (t <= 4.2e-174)
                    		tmp = Float64(fma(-2.0, b, x) + a);
                    	elseif (t <= 1.2e-48)
                    		tmp = t_1;
                    	elseif (t <= 270000000.0)
                    		tmp = fma(Float64(y - 2.0), b, a);
                    	else
                    		tmp = t_2;
                    	end
                    	return tmp
                    end
                    
                    code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x - N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -7e+85], t$95$2, If[LessEqual[t, -3.3e-134], t$95$1, If[LessEqual[t, 4.2e-174], N[(N[(-2.0 * b + x), $MachinePrecision] + a), $MachinePrecision], If[LessEqual[t, 1.2e-48], t$95$1, If[LessEqual[t, 270000000.0], N[(N[(y - 2.0), $MachinePrecision] * b + a), $MachinePrecision], t$95$2]]]]]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    t_1 := x - \left(y - 1\right) \cdot z\\
                    t_2 := \left(b - a\right) \cdot t\\
                    \mathbf{if}\;t \leq -7 \cdot 10^{+85}:\\
                    \;\;\;\;t\_2\\
                    
                    \mathbf{elif}\;t \leq -3.3 \cdot 10^{-134}:\\
                    \;\;\;\;t\_1\\
                    
                    \mathbf{elif}\;t \leq 4.2 \cdot 10^{-174}:\\
                    \;\;\;\;\mathsf{fma}\left(-2, b, x\right) + a\\
                    
                    \mathbf{elif}\;t \leq 1.2 \cdot 10^{-48}:\\
                    \;\;\;\;t\_1\\
                    
                    \mathbf{elif}\;t \leq 270000000:\\
                    \;\;\;\;\mathsf{fma}\left(y - 2, b, a\right)\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;t\_2\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 4 regimes
                    2. if t < -7.0000000000000001e85 or 2.7e8 < t

                      1. Initial program 91.3%

                        \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                      2. Taylor expanded in t around inf

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

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

                          \[\leadsto \left(b - a\right) \cdot \color{blue}{t} \]
                        3. lower--.f6467.5

                          \[\leadsto \left(b - a\right) \cdot t \]
                      4. Applied rewrites67.5%

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

                      if -7.0000000000000001e85 < t < -3.30000000000000019e-134 or 4.20000000000000021e-174 < t < 1.2e-48

                      1. Initial program 98.0%

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto \color{blue}{\mathsf{fma}\left(\left(y + t\right) - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right)} \]
                        13. lift--.f64N/A

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

                          \[\leadsto \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) \]
                        15. lower-+.f64N/A

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

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

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

                          \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \left(z \cdot \left(y - 1\right) + \color{blue}{a \cdot \left(t - 1\right)}\right)\right) \]
                      3. Applied rewrites98.9%

                        \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right)} \]
                      4. Step-by-step derivation
                        1. lift-fma.f64N/A

                          \[\leadsto \color{blue}{\left(\left(t + y\right) - 2\right) \cdot b + \left(x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right)} \]
                        2. lift-+.f64N/A

                          \[\leadsto \left(\color{blue}{\left(t + y\right)} - 2\right) \cdot b + \left(x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right) \]
                        3. lift--.f64N/A

                          \[\leadsto \color{blue}{\left(\left(t + y\right) - 2\right)} \cdot b + \left(x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right) \]
                        4. lift--.f64N/A

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto \color{blue}{\left(\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)\right) - z \cdot \left(y - 1\right)} \]
                      5. Applied rewrites98.1%

                        \[\leadsto \color{blue}{\mathsf{fma}\left(\left(y + t\right) - 2, b, x - \left(t - 1\right) \cdot a\right) - \left(y - 1\right) \cdot z} \]
                      6. Taylor expanded in x around inf

                        \[\leadsto \color{blue}{x} - \left(y - 1\right) \cdot z \]
                      7. Step-by-step derivation
                        1. Applied rewrites49.9%

                          \[\leadsto \color{blue}{x} - \left(y - 1\right) \cdot z \]

                        if -3.30000000000000019e-134 < t < 4.20000000000000021e-174

                        1. Initial program 98.2%

                          \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                        2. Taylor expanded in z around 0

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

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

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

                            \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                          4. +-commutativeN/A

                            \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                          5. lower-fma.f64N/A

                            \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
                          6. lift--.f64N/A

                            \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                          7. +-commutativeN/A

                            \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                          8. lower-+.f64N/A

                            \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                          9. *-commutativeN/A

                            \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                          10. lift--.f64N/A

                            \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
                          11. lift-*.f6470.0

                            \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                        4. Applied rewrites70.0%

                          \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
                        5. Taylor expanded in t around 0

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

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

                            \[\leadsto \left(b \cdot \left(y - 2\right) + x\right) - -1 \cdot a \]
                          3. *-commutativeN/A

                            \[\leadsto \left(\left(y - 2\right) \cdot b + x\right) - -1 \cdot a \]
                          4. lower-fma.f64N/A

                            \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                          5. lower--.f64N/A

                            \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                          6. mul-1-negN/A

                            \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(\mathsf{neg}\left(a\right)\right) \]
                          7. lift-neg.f6470.0

                            \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(-a\right) \]
                        7. Applied rewrites70.0%

                          \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \color{blue}{\left(-a\right)} \]
                        8. Taylor expanded in y around 0

                          \[\leadsto a + \left(x + \color{blue}{-2 \cdot b}\right) \]
                        9. Step-by-step derivation
                          1. +-commutativeN/A

                            \[\leadsto \left(x + -2 \cdot b\right) + a \]
                          2. lower-+.f64N/A

                            \[\leadsto \left(x + -2 \cdot b\right) + a \]
                          3. +-commutativeN/A

                            \[\leadsto \left(-2 \cdot b + x\right) + a \]
                          4. lower-fma.f6451.2

                            \[\leadsto \mathsf{fma}\left(-2, b, x\right) + a \]
                        10. Applied rewrites51.2%

                          \[\leadsto \mathsf{fma}\left(-2, b, x\right) + a \]

                        if 1.2e-48 < t < 2.7e8

                        1. Initial program 98.0%

                          \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                        2. Taylor expanded in z around 0

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

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

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

                            \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                          4. +-commutativeN/A

                            \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                          5. lower-fma.f64N/A

                            \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
                          6. lift--.f64N/A

                            \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                          7. +-commutativeN/A

                            \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                          8. lower-+.f64N/A

                            \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                          9. *-commutativeN/A

                            \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                          10. lift--.f64N/A

                            \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
                          11. lift-*.f6469.5

                            \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                        4. Applied rewrites69.5%

                          \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
                        5. Taylor expanded in t around 0

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

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

                            \[\leadsto \left(b \cdot \left(y - 2\right) + x\right) - -1 \cdot a \]
                          3. *-commutativeN/A

                            \[\leadsto \left(\left(y - 2\right) \cdot b + x\right) - -1 \cdot a \]
                          4. lower-fma.f64N/A

                            \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                          5. lower--.f64N/A

                            \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                          6. mul-1-negN/A

                            \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(\mathsf{neg}\left(a\right)\right) \]
                          7. lift-neg.f6460.3

                            \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(-a\right) \]
                        7. Applied rewrites60.3%

                          \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \color{blue}{\left(-a\right)} \]
                        8. Taylor expanded in x around 0

                          \[\leadsto a + b \cdot \color{blue}{\left(y - 2\right)} \]
                        9. Step-by-step derivation
                          1. +-commutativeN/A

                            \[\leadsto b \cdot \left(y - 2\right) + a \]
                          2. *-commutativeN/A

                            \[\leadsto \left(y - 2\right) \cdot b + a \]
                          3. lower-fma.f64N/A

                            \[\leadsto \mathsf{fma}\left(y - 2, b, a\right) \]
                          4. lift--.f6443.4

                            \[\leadsto \mathsf{fma}\left(y - 2, b, a\right) \]
                        10. Applied rewrites43.4%

                          \[\leadsto \mathsf{fma}\left(y - 2, b, a\right) \]
                      8. Recombined 4 regimes into one program.
                      9. Add Preprocessing

                      Alternative 14: 57.3% accurate, 1.4× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(t + y\right) - 2\right) \cdot b\\ \mathbf{if}\;b \leq -72000000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq -4.1 \cdot 10^{-302}:\\ \;\;\;\;x - \left(y - 1\right) \cdot z\\ \mathbf{elif}\;b \leq 6.6 \cdot 10^{+75}:\\ \;\;\;\;x - \left(t - 1\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                      (FPCore (x y z t a b)
                       :precision binary64
                       (let* ((t_1 (* (- (+ t y) 2.0) b)))
                         (if (<= b -72000000000.0)
                           t_1
                           (if (<= b -4.1e-302)
                             (- x (* (- y 1.0) z))
                             (if (<= b 6.6e+75) (- x (* (- t 1.0) a)) t_1)))))
                      double code(double x, double y, double z, double t, double a, double b) {
                      	double t_1 = ((t + y) - 2.0) * b;
                      	double tmp;
                      	if (b <= -72000000000.0) {
                      		tmp = t_1;
                      	} else if (b <= -4.1e-302) {
                      		tmp = x - ((y - 1.0) * z);
                      	} else if (b <= 6.6e+75) {
                      		tmp = x - ((t - 1.0) * a);
                      	} else {
                      		tmp = t_1;
                      	}
                      	return tmp;
                      }
                      
                      module fmin_fmax_functions
                          implicit none
                          private
                          public fmax
                          public fmin
                      
                          interface fmax
                              module procedure fmax88
                              module procedure fmax44
                              module procedure fmax84
                              module procedure fmax48
                          end interface
                          interface fmin
                              module procedure fmin88
                              module procedure fmin44
                              module procedure fmin84
                              module procedure fmin48
                          end interface
                      contains
                          real(8) function fmax88(x, y) result (res)
                              real(8), intent (in) :: x
                              real(8), intent (in) :: y
                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                          end function
                          real(4) function fmax44(x, y) result (res)
                              real(4), intent (in) :: x
                              real(4), intent (in) :: y
                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                          end function
                          real(8) function fmax84(x, y) result(res)
                              real(8), intent (in) :: x
                              real(4), intent (in) :: y
                              res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                          end function
                          real(8) function fmax48(x, y) result(res)
                              real(4), intent (in) :: x
                              real(8), intent (in) :: y
                              res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                          end function
                          real(8) function fmin88(x, y) result (res)
                              real(8), intent (in) :: x
                              real(8), intent (in) :: y
                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                          end function
                          real(4) function fmin44(x, y) result (res)
                              real(4), intent (in) :: x
                              real(4), intent (in) :: y
                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                          end function
                          real(8) function fmin84(x, y) result(res)
                              real(8), intent (in) :: x
                              real(4), intent (in) :: y
                              res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                          end function
                          real(8) function fmin48(x, y) result(res)
                              real(4), intent (in) :: x
                              real(8), intent (in) :: y
                              res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                          end function
                      end module
                      
                      real(8) function code(x, y, z, t, a, b)
                      use fmin_fmax_functions
                          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 = ((t + y) - 2.0d0) * b
                          if (b <= (-72000000000.0d0)) then
                              tmp = t_1
                          else if (b <= (-4.1d-302)) then
                              tmp = x - ((y - 1.0d0) * z)
                          else if (b <= 6.6d+75) then
                              tmp = x - ((t - 1.0d0) * 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 = ((t + y) - 2.0) * b;
                      	double tmp;
                      	if (b <= -72000000000.0) {
                      		tmp = t_1;
                      	} else if (b <= -4.1e-302) {
                      		tmp = x - ((y - 1.0) * z);
                      	} else if (b <= 6.6e+75) {
                      		tmp = x - ((t - 1.0) * a);
                      	} else {
                      		tmp = t_1;
                      	}
                      	return tmp;
                      }
                      
                      def code(x, y, z, t, a, b):
                      	t_1 = ((t + y) - 2.0) * b
                      	tmp = 0
                      	if b <= -72000000000.0:
                      		tmp = t_1
                      	elif b <= -4.1e-302:
                      		tmp = x - ((y - 1.0) * z)
                      	elif b <= 6.6e+75:
                      		tmp = x - ((t - 1.0) * a)
                      	else:
                      		tmp = t_1
                      	return tmp
                      
                      function code(x, y, z, t, a, b)
                      	t_1 = Float64(Float64(Float64(t + y) - 2.0) * b)
                      	tmp = 0.0
                      	if (b <= -72000000000.0)
                      		tmp = t_1;
                      	elseif (b <= -4.1e-302)
                      		tmp = Float64(x - Float64(Float64(y - 1.0) * z));
                      	elseif (b <= 6.6e+75)
                      		tmp = Float64(x - Float64(Float64(t - 1.0) * a));
                      	else
                      		tmp = t_1;
                      	end
                      	return tmp
                      end
                      
                      function tmp_2 = code(x, y, z, t, a, b)
                      	t_1 = ((t + y) - 2.0) * b;
                      	tmp = 0.0;
                      	if (b <= -72000000000.0)
                      		tmp = t_1;
                      	elseif (b <= -4.1e-302)
                      		tmp = x - ((y - 1.0) * z);
                      	elseif (b <= 6.6e+75)
                      		tmp = x - ((t - 1.0) * a);
                      	else
                      		tmp = t_1;
                      	end
                      	tmp_2 = tmp;
                      end
                      
                      code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[b, -72000000000.0], t$95$1, If[LessEqual[b, -4.1e-302], N[(x - N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.6e+75], N[(x - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      t_1 := \left(\left(t + y\right) - 2\right) \cdot b\\
                      \mathbf{if}\;b \leq -72000000000:\\
                      \;\;\;\;t\_1\\
                      
                      \mathbf{elif}\;b \leq -4.1 \cdot 10^{-302}:\\
                      \;\;\;\;x - \left(y - 1\right) \cdot z\\
                      
                      \mathbf{elif}\;b \leq 6.6 \cdot 10^{+75}:\\
                      \;\;\;\;x - \left(t - 1\right) \cdot a\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;t\_1\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 3 regimes
                      2. if b < -7.2e10 or 6.59999999999999996e75 < b

                        1. Initial program 90.1%

                          \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                        2. Taylor expanded in b around inf

                          \[\leadsto \color{blue}{b \cdot \left(\left(t + y\right) - 2\right)} \]
                        3. Step-by-step derivation
                          1. *-commutativeN/A

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

                            \[\leadsto \left(\left(y + t\right) - 2\right) \cdot b \]
                          3. lift--.f64N/A

                            \[\leadsto \left(\left(y + t\right) - 2\right) \cdot b \]
                          4. lift-+.f64N/A

                            \[\leadsto \left(\left(y + t\right) - 2\right) \cdot b \]
                          5. lift-*.f6469.2

                            \[\leadsto \left(\left(y + t\right) - 2\right) \cdot \color{blue}{b} \]
                          6. lift-+.f64N/A

                            \[\leadsto \left(\left(y + t\right) - 2\right) \cdot b \]
                          7. +-commutativeN/A

                            \[\leadsto \left(\left(t + y\right) - 2\right) \cdot b \]
                          8. lower-+.f6469.2

                            \[\leadsto \left(\left(t + y\right) - 2\right) \cdot b \]
                        4. Applied rewrites69.2%

                          \[\leadsto \color{blue}{\left(\left(t + y\right) - 2\right) \cdot b} \]

                        if -7.2e10 < b < -4.0999999999999998e-302

                        1. Initial program 99.1%

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \color{blue}{\mathsf{fma}\left(\left(y + t\right) - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right)} \]
                          13. lift--.f64N/A

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

                            \[\leadsto \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) \]
                          15. lower-+.f64N/A

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

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

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

                            \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \left(z \cdot \left(y - 1\right) + \color{blue}{a \cdot \left(t - 1\right)}\right)\right) \]
                        3. Applied rewrites99.5%

                          \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right)} \]
                        4. Step-by-step derivation
                          1. lift-fma.f64N/A

                            \[\leadsto \color{blue}{\left(\left(t + y\right) - 2\right) \cdot b + \left(x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right)} \]
                          2. lift-+.f64N/A

                            \[\leadsto \left(\color{blue}{\left(t + y\right)} - 2\right) \cdot b + \left(x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right) \]
                          3. lift--.f64N/A

                            \[\leadsto \color{blue}{\left(\left(t + y\right) - 2\right)} \cdot b + \left(x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right) \]
                          4. lift--.f64N/A

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \color{blue}{\left(\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)\right) - z \cdot \left(y - 1\right)} \]
                        5. Applied rewrites99.1%

                          \[\leadsto \color{blue}{\mathsf{fma}\left(\left(y + t\right) - 2, b, x - \left(t - 1\right) \cdot a\right) - \left(y - 1\right) \cdot z} \]
                        6. Taylor expanded in x around inf

                          \[\leadsto \color{blue}{x} - \left(y - 1\right) \cdot z \]
                        7. Step-by-step derivation
                          1. Applied rewrites58.0%

                            \[\leadsto \color{blue}{x} - \left(y - 1\right) \cdot z \]

                          if -4.0999999999999998e-302 < b < 6.59999999999999996e75

                          1. Initial program 98.8%

                            \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                          2. Taylor expanded in z around 0

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

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

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

                              \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                            4. +-commutativeN/A

                              \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                            5. lower-fma.f64N/A

                              \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
                            6. lift--.f64N/A

                              \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                            7. +-commutativeN/A

                              \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                            8. lower-+.f64N/A

                              \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                            9. *-commutativeN/A

                              \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                            10. lift--.f64N/A

                              \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
                            11. lift-*.f6466.3

                              \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                          4. Applied rewrites66.3%

                            \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
                          5. Taylor expanded in x around inf

                            \[\leadsto x - \color{blue}{\left(t - 1\right)} \cdot a \]
                          6. Step-by-step derivation
                            1. Applied rewrites53.8%

                              \[\leadsto x - \color{blue}{\left(t - 1\right)} \cdot a \]
                          7. Recombined 3 regimes into one program.
                          8. Add Preprocessing

                          Alternative 15: 56.5% accurate, 1.0× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - a\right) \cdot t\\ \mathbf{if}\;t \leq -2.55 \cdot 10^{+85}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -3.1 \cdot 10^{-123}:\\ \;\;\;\;\mathsf{fma}\left(y - 2, b, x\right)\\ \mathbf{elif}\;t \leq 1.55 \cdot 10^{-167}:\\ \;\;\;\;\mathsf{fma}\left(-2, b, x\right) + a\\ \mathbf{elif}\;t \leq 6.4 \cdot 10^{-49}:\\ \;\;\;\;\left(1 - y\right) \cdot z\\ \mathbf{elif}\;t \leq 270000000:\\ \;\;\;\;\mathsf{fma}\left(y - 2, b, a\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                          (FPCore (x y z t a b)
                           :precision binary64
                           (let* ((t_1 (* (- b a) t)))
                             (if (<= t -2.55e+85)
                               t_1
                               (if (<= t -3.1e-123)
                                 (fma (- y 2.0) b x)
                                 (if (<= t 1.55e-167)
                                   (+ (fma -2.0 b x) a)
                                   (if (<= t 6.4e-49)
                                     (* (- 1.0 y) z)
                                     (if (<= t 270000000.0) (fma (- y 2.0) b a) t_1)))))))
                          double code(double x, double y, double z, double t, double a, double b) {
                          	double t_1 = (b - a) * t;
                          	double tmp;
                          	if (t <= -2.55e+85) {
                          		tmp = t_1;
                          	} else if (t <= -3.1e-123) {
                          		tmp = fma((y - 2.0), b, x);
                          	} else if (t <= 1.55e-167) {
                          		tmp = fma(-2.0, b, x) + a;
                          	} else if (t <= 6.4e-49) {
                          		tmp = (1.0 - y) * z;
                          	} else if (t <= 270000000.0) {
                          		tmp = fma((y - 2.0), b, a);
                          	} else {
                          		tmp = t_1;
                          	}
                          	return tmp;
                          }
                          
                          function code(x, y, z, t, a, b)
                          	t_1 = Float64(Float64(b - a) * t)
                          	tmp = 0.0
                          	if (t <= -2.55e+85)
                          		tmp = t_1;
                          	elseif (t <= -3.1e-123)
                          		tmp = fma(Float64(y - 2.0), b, x);
                          	elseif (t <= 1.55e-167)
                          		tmp = Float64(fma(-2.0, b, x) + a);
                          	elseif (t <= 6.4e-49)
                          		tmp = Float64(Float64(1.0 - y) * z);
                          	elseif (t <= 270000000.0)
                          		tmp = fma(Float64(y - 2.0), b, a);
                          	else
                          		tmp = t_1;
                          	end
                          	return tmp
                          end
                          
                          code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -2.55e+85], t$95$1, If[LessEqual[t, -3.1e-123], N[(N[(y - 2.0), $MachinePrecision] * b + x), $MachinePrecision], If[LessEqual[t, 1.55e-167], N[(N[(-2.0 * b + x), $MachinePrecision] + a), $MachinePrecision], If[LessEqual[t, 6.4e-49], N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[t, 270000000.0], N[(N[(y - 2.0), $MachinePrecision] * b + a), $MachinePrecision], t$95$1]]]]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          t_1 := \left(b - a\right) \cdot t\\
                          \mathbf{if}\;t \leq -2.55 \cdot 10^{+85}:\\
                          \;\;\;\;t\_1\\
                          
                          \mathbf{elif}\;t \leq -3.1 \cdot 10^{-123}:\\
                          \;\;\;\;\mathsf{fma}\left(y - 2, b, x\right)\\
                          
                          \mathbf{elif}\;t \leq 1.55 \cdot 10^{-167}:\\
                          \;\;\;\;\mathsf{fma}\left(-2, b, x\right) + a\\
                          
                          \mathbf{elif}\;t \leq 6.4 \cdot 10^{-49}:\\
                          \;\;\;\;\left(1 - y\right) \cdot z\\
                          
                          \mathbf{elif}\;t \leq 270000000:\\
                          \;\;\;\;\mathsf{fma}\left(y - 2, b, a\right)\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;t\_1\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 5 regimes
                          2. if t < -2.5499999999999999e85 or 2.7e8 < t

                            1. Initial program 91.3%

                              \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                            2. Taylor expanded in t around inf

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

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

                                \[\leadsto \left(b - a\right) \cdot \color{blue}{t} \]
                              3. lower--.f6467.5

                                \[\leadsto \left(b - a\right) \cdot t \]
                            4. Applied rewrites67.5%

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

                            if -2.5499999999999999e85 < t < -3.09999999999999998e-123

                            1. Initial program 98.1%

                              \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                            2. Taylor expanded in z around 0

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

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

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

                                \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                              4. +-commutativeN/A

                                \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                              5. lower-fma.f64N/A

                                \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
                              6. lift--.f64N/A

                                \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                              7. +-commutativeN/A

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                              8. lower-+.f64N/A

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                              9. *-commutativeN/A

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                              10. lift--.f64N/A

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
                              11. lift-*.f6468.9

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                            4. Applied rewrites68.9%

                              \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
                            5. Taylor expanded in t around 0

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

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

                                \[\leadsto \left(b \cdot \left(y - 2\right) + x\right) - -1 \cdot a \]
                              3. *-commutativeN/A

                                \[\leadsto \left(\left(y - 2\right) \cdot b + x\right) - -1 \cdot a \]
                              4. lower-fma.f64N/A

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                              5. lower--.f64N/A

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                              6. mul-1-negN/A

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(\mathsf{neg}\left(a\right)\right) \]
                              7. lift-neg.f6454.1

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(-a\right) \]
                            7. Applied rewrites54.1%

                              \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \color{blue}{\left(-a\right)} \]
                            8. Taylor expanded in a around 0

                              \[\leadsto x + b \cdot \color{blue}{\left(y - 2\right)} \]
                            9. Step-by-step derivation
                              1. *-commutativeN/A

                                \[\leadsto x + \left(y - 2\right) \cdot b \]
                              2. +-commutativeN/A

                                \[\leadsto \left(y - 2\right) \cdot b + x \]
                              3. lift-fma.f64N/A

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) \]
                              4. lift--.f6443.3

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) \]
                            10. Applied rewrites43.3%

                              \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) \]

                            if -3.09999999999999998e-123 < t < 1.55e-167

                            1. Initial program 98.1%

                              \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                            2. Taylor expanded in z around 0

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

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

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

                                \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                              4. +-commutativeN/A

                                \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                              5. lower-fma.f64N/A

                                \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
                              6. lift--.f64N/A

                                \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                              7. +-commutativeN/A

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                              8. lower-+.f64N/A

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                              9. *-commutativeN/A

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                              10. lift--.f64N/A

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
                              11. lift-*.f6470.2

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                            4. Applied rewrites70.2%

                              \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
                            5. Taylor expanded in t around 0

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

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

                                \[\leadsto \left(b \cdot \left(y - 2\right) + x\right) - -1 \cdot a \]
                              3. *-commutativeN/A

                                \[\leadsto \left(\left(y - 2\right) \cdot b + x\right) - -1 \cdot a \]
                              4. lower-fma.f64N/A

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                              5. lower--.f64N/A

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                              6. mul-1-negN/A

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(\mathsf{neg}\left(a\right)\right) \]
                              7. lift-neg.f6470.2

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(-a\right) \]
                            7. Applied rewrites70.2%

                              \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \color{blue}{\left(-a\right)} \]
                            8. Taylor expanded in y around 0

                              \[\leadsto a + \left(x + \color{blue}{-2 \cdot b}\right) \]
                            9. Step-by-step derivation
                              1. +-commutativeN/A

                                \[\leadsto \left(x + -2 \cdot b\right) + a \]
                              2. lower-+.f64N/A

                                \[\leadsto \left(x + -2 \cdot b\right) + a \]
                              3. +-commutativeN/A

                                \[\leadsto \left(-2 \cdot b + x\right) + a \]
                              4. lower-fma.f6451.2

                                \[\leadsto \mathsf{fma}\left(-2, b, x\right) + a \]
                            10. Applied rewrites51.2%

                              \[\leadsto \mathsf{fma}\left(-2, b, x\right) + a \]

                            if 1.55e-167 < t < 6.40000000000000005e-49

                            1. Initial program 98.1%

                              \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                            2. Taylor expanded in z around inf

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

                                \[\leadsto \left(1 - y\right) \cdot \color{blue}{z} \]
                              2. lower-*.f64N/A

                                \[\leadsto \left(1 - y\right) \cdot \color{blue}{z} \]
                              3. lower--.f6433.2

                                \[\leadsto \left(1 - y\right) \cdot z \]
                            4. Applied rewrites33.2%

                              \[\leadsto \color{blue}{\left(1 - y\right) \cdot z} \]

                            if 6.40000000000000005e-49 < t < 2.7e8

                            1. Initial program 96.0%

                              \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                            2. Taylor expanded in z around 0

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

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

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

                                \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                              4. +-commutativeN/A

                                \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                              5. lower-fma.f64N/A

                                \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
                              6. lift--.f64N/A

                                \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                              7. +-commutativeN/A

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                              8. lower-+.f64N/A

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                              9. *-commutativeN/A

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                              10. lift--.f64N/A

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
                              11. lift-*.f6467.3

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                            4. Applied rewrites67.3%

                              \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
                            5. Taylor expanded in t around 0

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

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

                                \[\leadsto \left(b \cdot \left(y - 2\right) + x\right) - -1 \cdot a \]
                              3. *-commutativeN/A

                                \[\leadsto \left(\left(y - 2\right) \cdot b + x\right) - -1 \cdot a \]
                              4. lower-fma.f64N/A

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                              5. lower--.f64N/A

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                              6. mul-1-negN/A

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(\mathsf{neg}\left(a\right)\right) \]
                              7. lift-neg.f6458.9

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(-a\right) \]
                            7. Applied rewrites58.9%

                              \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \color{blue}{\left(-a\right)} \]
                            8. Taylor expanded in x around 0

                              \[\leadsto a + b \cdot \color{blue}{\left(y - 2\right)} \]
                            9. Step-by-step derivation
                              1. +-commutativeN/A

                                \[\leadsto b \cdot \left(y - 2\right) + a \]
                              2. *-commutativeN/A

                                \[\leadsto \left(y - 2\right) \cdot b + a \]
                              3. lower-fma.f64N/A

                                \[\leadsto \mathsf{fma}\left(y - 2, b, a\right) \]
                              4. lift--.f6440.6

                                \[\leadsto \mathsf{fma}\left(y - 2, b, a\right) \]
                            10. Applied rewrites40.6%

                              \[\leadsto \mathsf{fma}\left(y - 2, b, a\right) \]
                          3. Recombined 5 regimes into one program.
                          4. Add Preprocessing

                          Alternative 16: 56.3% accurate, 1.4× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - a\right) \cdot t\\ \mathbf{if}\;t \leq -2.55 \cdot 10^{+85}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -3.7 \cdot 10^{-112}:\\ \;\;\;\;\mathsf{fma}\left(y - 2, b, x\right)\\ \mathbf{elif}\;t \leq 270000000:\\ \;\;\;\;\mathsf{fma}\left(y - 2, b, a\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                          (FPCore (x y z t a b)
                           :precision binary64
                           (let* ((t_1 (* (- b a) t)))
                             (if (<= t -2.55e+85)
                               t_1
                               (if (<= t -3.7e-112)
                                 (fma (- y 2.0) b x)
                                 (if (<= t 270000000.0) (fma (- y 2.0) b a) t_1)))))
                          double code(double x, double y, double z, double t, double a, double b) {
                          	double t_1 = (b - a) * t;
                          	double tmp;
                          	if (t <= -2.55e+85) {
                          		tmp = t_1;
                          	} else if (t <= -3.7e-112) {
                          		tmp = fma((y - 2.0), b, x);
                          	} else if (t <= 270000000.0) {
                          		tmp = fma((y - 2.0), b, a);
                          	} else {
                          		tmp = t_1;
                          	}
                          	return tmp;
                          }
                          
                          function code(x, y, z, t, a, b)
                          	t_1 = Float64(Float64(b - a) * t)
                          	tmp = 0.0
                          	if (t <= -2.55e+85)
                          		tmp = t_1;
                          	elseif (t <= -3.7e-112)
                          		tmp = fma(Float64(y - 2.0), b, x);
                          	elseif (t <= 270000000.0)
                          		tmp = fma(Float64(y - 2.0), b, a);
                          	else
                          		tmp = t_1;
                          	end
                          	return tmp
                          end
                          
                          code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -2.55e+85], t$95$1, If[LessEqual[t, -3.7e-112], N[(N[(y - 2.0), $MachinePrecision] * b + x), $MachinePrecision], If[LessEqual[t, 270000000.0], N[(N[(y - 2.0), $MachinePrecision] * b + a), $MachinePrecision], t$95$1]]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          t_1 := \left(b - a\right) \cdot t\\
                          \mathbf{if}\;t \leq -2.55 \cdot 10^{+85}:\\
                          \;\;\;\;t\_1\\
                          
                          \mathbf{elif}\;t \leq -3.7 \cdot 10^{-112}:\\
                          \;\;\;\;\mathsf{fma}\left(y - 2, b, x\right)\\
                          
                          \mathbf{elif}\;t \leq 270000000:\\
                          \;\;\;\;\mathsf{fma}\left(y - 2, b, a\right)\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;t\_1\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 3 regimes
                          2. if t < -2.5499999999999999e85 or 2.7e8 < t

                            1. Initial program 91.3%

                              \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                            2. Taylor expanded in t around inf

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

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

                                \[\leadsto \left(b - a\right) \cdot \color{blue}{t} \]
                              3. lower--.f6467.5

                                \[\leadsto \left(b - a\right) \cdot t \]
                            4. Applied rewrites67.5%

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

                            if -2.5499999999999999e85 < t < -3.6999999999999998e-112

                            1. Initial program 98.0%

                              \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                            2. Taylor expanded in z around 0

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

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

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

                                \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                              4. +-commutativeN/A

                                \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                              5. lower-fma.f64N/A

                                \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
                              6. lift--.f64N/A

                                \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                              7. +-commutativeN/A

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                              8. lower-+.f64N/A

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                              9. *-commutativeN/A

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                              10. lift--.f64N/A

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
                              11. lift-*.f6468.0

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                            4. Applied rewrites68.0%

                              \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
                            5. Taylor expanded in t around 0

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

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

                                \[\leadsto \left(b \cdot \left(y - 2\right) + x\right) - -1 \cdot a \]
                              3. *-commutativeN/A

                                \[\leadsto \left(\left(y - 2\right) \cdot b + x\right) - -1 \cdot a \]
                              4. lower-fma.f64N/A

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                              5. lower--.f64N/A

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                              6. mul-1-negN/A

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(\mathsf{neg}\left(a\right)\right) \]
                              7. lift-neg.f6452.4

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(-a\right) \]
                            7. Applied rewrites52.4%

                              \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \color{blue}{\left(-a\right)} \]
                            8. Taylor expanded in a around 0

                              \[\leadsto x + b \cdot \color{blue}{\left(y - 2\right)} \]
                            9. Step-by-step derivation
                              1. *-commutativeN/A

                                \[\leadsto x + \left(y - 2\right) \cdot b \]
                              2. +-commutativeN/A

                                \[\leadsto \left(y - 2\right) \cdot b + x \]
                              3. lift-fma.f64N/A

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) \]
                              4. lift--.f6442.2

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) \]
                            10. Applied rewrites42.2%

                              \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) \]

                            if -3.6999999999999998e-112 < t < 2.7e8

                            1. Initial program 97.9%

                              \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                            2. Taylor expanded in z around 0

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

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

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

                                \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                              4. +-commutativeN/A

                                \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                              5. lower-fma.f64N/A

                                \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
                              6. lift--.f64N/A

                                \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                              7. +-commutativeN/A

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                              8. lower-+.f64N/A

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                              9. *-commutativeN/A

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                              10. lift--.f64N/A

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
                              11. lift-*.f6470.1

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                            4. Applied rewrites70.1%

                              \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
                            5. Taylor expanded in t around 0

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

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

                                \[\leadsto \left(b \cdot \left(y - 2\right) + x\right) - -1 \cdot a \]
                              3. *-commutativeN/A

                                \[\leadsto \left(\left(y - 2\right) \cdot b + x\right) - -1 \cdot a \]
                              4. lower-fma.f64N/A

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                              5. lower--.f64N/A

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                              6. mul-1-negN/A

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(\mathsf{neg}\left(a\right)\right) \]
                              7. lift-neg.f6469.2

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(-a\right) \]
                            7. Applied rewrites69.2%

                              \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \color{blue}{\left(-a\right)} \]
                            8. Taylor expanded in x around 0

                              \[\leadsto a + b \cdot \color{blue}{\left(y - 2\right)} \]
                            9. Step-by-step derivation
                              1. +-commutativeN/A

                                \[\leadsto b \cdot \left(y - 2\right) + a \]
                              2. *-commutativeN/A

                                \[\leadsto \left(y - 2\right) \cdot b + a \]
                              3. lower-fma.f64N/A

                                \[\leadsto \mathsf{fma}\left(y - 2, b, a\right) \]
                              4. lift--.f6450.3

                                \[\leadsto \mathsf{fma}\left(y - 2, b, a\right) \]
                            10. Applied rewrites50.3%

                              \[\leadsto \mathsf{fma}\left(y - 2, b, a\right) \]
                          3. Recombined 3 regimes into one program.
                          4. Add Preprocessing

                          Alternative 17: 55.6% accurate, 1.7× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - z\right) \cdot y\\ \mathbf{if}\;y \leq -3.55 \cdot 10^{+142}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 1.05 \cdot 10^{+68}:\\ \;\;\;\;x - \left(t - 1\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                          (FPCore (x y z t a b)
                           :precision binary64
                           (let* ((t_1 (* (- b z) y)))
                             (if (<= y -3.55e+142) t_1 (if (<= y 1.05e+68) (- x (* (- t 1.0) a)) t_1))))
                          double code(double x, double y, double z, double t, double a, double b) {
                          	double t_1 = (b - z) * y;
                          	double tmp;
                          	if (y <= -3.55e+142) {
                          		tmp = t_1;
                          	} else if (y <= 1.05e+68) {
                          		tmp = x - ((t - 1.0) * a);
                          	} else {
                          		tmp = t_1;
                          	}
                          	return tmp;
                          }
                          
                          module fmin_fmax_functions
                              implicit none
                              private
                              public fmax
                              public fmin
                          
                              interface fmax
                                  module procedure fmax88
                                  module procedure fmax44
                                  module procedure fmax84
                                  module procedure fmax48
                              end interface
                              interface fmin
                                  module procedure fmin88
                                  module procedure fmin44
                                  module procedure fmin84
                                  module procedure fmin48
                              end interface
                          contains
                              real(8) function fmax88(x, y) result (res)
                                  real(8), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                              end function
                              real(4) function fmax44(x, y) result (res)
                                  real(4), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                              end function
                              real(8) function fmax84(x, y) result(res)
                                  real(8), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                              end function
                              real(8) function fmax48(x, y) result(res)
                                  real(4), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                              end function
                              real(8) function fmin88(x, y) result (res)
                                  real(8), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                              end function
                              real(4) function fmin44(x, y) result (res)
                                  real(4), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                              end function
                              real(8) function fmin84(x, y) result(res)
                                  real(8), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                              end function
                              real(8) function fmin48(x, y) result(res)
                                  real(4), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                              end function
                          end module
                          
                          real(8) function code(x, y, z, t, a, b)
                          use fmin_fmax_functions
                              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 = (b - z) * y
                              if (y <= (-3.55d+142)) then
                                  tmp = t_1
                              else if (y <= 1.05d+68) then
                                  tmp = x - ((t - 1.0d0) * 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 = (b - z) * y;
                          	double tmp;
                          	if (y <= -3.55e+142) {
                          		tmp = t_1;
                          	} else if (y <= 1.05e+68) {
                          		tmp = x - ((t - 1.0) * a);
                          	} else {
                          		tmp = t_1;
                          	}
                          	return tmp;
                          }
                          
                          def code(x, y, z, t, a, b):
                          	t_1 = (b - z) * y
                          	tmp = 0
                          	if y <= -3.55e+142:
                          		tmp = t_1
                          	elif y <= 1.05e+68:
                          		tmp = x - ((t - 1.0) * a)
                          	else:
                          		tmp = t_1
                          	return tmp
                          
                          function code(x, y, z, t, a, b)
                          	t_1 = Float64(Float64(b - z) * y)
                          	tmp = 0.0
                          	if (y <= -3.55e+142)
                          		tmp = t_1;
                          	elseif (y <= 1.05e+68)
                          		tmp = Float64(x - Float64(Float64(t - 1.0) * a));
                          	else
                          		tmp = t_1;
                          	end
                          	return tmp
                          end
                          
                          function tmp_2 = code(x, y, z, t, a, b)
                          	t_1 = (b - z) * y;
                          	tmp = 0.0;
                          	if (y <= -3.55e+142)
                          		tmp = t_1;
                          	elseif (y <= 1.05e+68)
                          		tmp = x - ((t - 1.0) * a);
                          	else
                          		tmp = t_1;
                          	end
                          	tmp_2 = tmp;
                          end
                          
                          code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - z), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -3.55e+142], t$95$1, If[LessEqual[y, 1.05e+68], N[(x - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          t_1 := \left(b - z\right) \cdot y\\
                          \mathbf{if}\;y \leq -3.55 \cdot 10^{+142}:\\
                          \;\;\;\;t\_1\\
                          
                          \mathbf{elif}\;y \leq 1.05 \cdot 10^{+68}:\\
                          \;\;\;\;x - \left(t - 1\right) \cdot a\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;t\_1\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 2 regimes
                          2. if y < -3.55e142 or 1.05e68 < y

                            1. Initial program 91.2%

                              \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                            2. Taylor expanded in y around inf

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

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

                                \[\leadsto \left(b - z\right) \cdot \color{blue}{y} \]
                              3. lower--.f6472.4

                                \[\leadsto \left(b - z\right) \cdot y \]
                            4. Applied rewrites72.4%

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

                            if -3.55e142 < y < 1.05e68

                            1. Initial program 97.0%

                              \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                            2. Taylor expanded in z around 0

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

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

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

                                \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                              4. +-commutativeN/A

                                \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                              5. lower-fma.f64N/A

                                \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
                              6. lift--.f64N/A

                                \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                              7. +-commutativeN/A

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                              8. lower-+.f64N/A

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                              9. *-commutativeN/A

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                              10. lift--.f64N/A

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
                              11. lift-*.f6476.7

                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                            4. Applied rewrites76.7%

                              \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
                            5. Taylor expanded in x around inf

                              \[\leadsto x - \color{blue}{\left(t - 1\right)} \cdot a \]
                            6. Step-by-step derivation
                              1. Applied rewrites48.9%

                                \[\leadsto x - \color{blue}{\left(t - 1\right)} \cdot a \]
                            7. Recombined 2 regimes into one program.
                            8. Add Preprocessing

                            Alternative 18: 54.5% accurate, 1.8× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - a\right) \cdot t\\ \mathbf{if}\;t \leq -1.06 \cdot 10^{+70}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 270000000:\\ \;\;\;\;\mathsf{fma}\left(y - 2, b, a\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                            (FPCore (x y z t a b)
                             :precision binary64
                             (let* ((t_1 (* (- b a) t)))
                               (if (<= t -1.06e+70) t_1 (if (<= t 270000000.0) (fma (- y 2.0) b a) t_1))))
                            double code(double x, double y, double z, double t, double a, double b) {
                            	double t_1 = (b - a) * t;
                            	double tmp;
                            	if (t <= -1.06e+70) {
                            		tmp = t_1;
                            	} else if (t <= 270000000.0) {
                            		tmp = fma((y - 2.0), b, a);
                            	} else {
                            		tmp = t_1;
                            	}
                            	return tmp;
                            }
                            
                            function code(x, y, z, t, a, b)
                            	t_1 = Float64(Float64(b - a) * t)
                            	tmp = 0.0
                            	if (t <= -1.06e+70)
                            		tmp = t_1;
                            	elseif (t <= 270000000.0)
                            		tmp = fma(Float64(y - 2.0), b, a);
                            	else
                            		tmp = t_1;
                            	end
                            	return tmp
                            end
                            
                            code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -1.06e+70], t$95$1, If[LessEqual[t, 270000000.0], N[(N[(y - 2.0), $MachinePrecision] * b + a), $MachinePrecision], t$95$1]]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            t_1 := \left(b - a\right) \cdot t\\
                            \mathbf{if}\;t \leq -1.06 \cdot 10^{+70}:\\
                            \;\;\;\;t\_1\\
                            
                            \mathbf{elif}\;t \leq 270000000:\\
                            \;\;\;\;\mathsf{fma}\left(y - 2, b, a\right)\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;t\_1\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 2 regimes
                            2. if t < -1.06e70 or 2.7e8 < t

                              1. Initial program 91.4%

                                \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                              2. Taylor expanded in t around inf

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

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

                                  \[\leadsto \left(b - a\right) \cdot \color{blue}{t} \]
                                3. lower--.f6466.8

                                  \[\leadsto \left(b - a\right) \cdot t \]
                              4. Applied rewrites66.8%

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

                              if -1.06e70 < t < 2.7e8

                              1. Initial program 98.0%

                                \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                              2. Taylor expanded in z around 0

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

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

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

                                  \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                                4. +-commutativeN/A

                                  \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                                5. lower-fma.f64N/A

                                  \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
                                6. lift--.f64N/A

                                  \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                7. +-commutativeN/A

                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                8. lower-+.f64N/A

                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                9. *-commutativeN/A

                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                                10. lift--.f64N/A

                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
                                11. lift-*.f6469.8

                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                              4. Applied rewrites69.8%

                                \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
                              5. Taylor expanded in t around 0

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

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

                                  \[\leadsto \left(b \cdot \left(y - 2\right) + x\right) - -1 \cdot a \]
                                3. *-commutativeN/A

                                  \[\leadsto \left(\left(y - 2\right) \cdot b + x\right) - -1 \cdot a \]
                                4. lower-fma.f64N/A

                                  \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                                5. lower--.f64N/A

                                  \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                                6. mul-1-negN/A

                                  \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(\mathsf{neg}\left(a\right)\right) \]
                                7. lift-neg.f6465.3

                                  \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(-a\right) \]
                              7. Applied rewrites65.3%

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \color{blue}{\left(-a\right)} \]
                              8. Taylor expanded in x around 0

                                \[\leadsto a + b \cdot \color{blue}{\left(y - 2\right)} \]
                              9. Step-by-step derivation
                                1. +-commutativeN/A

                                  \[\leadsto b \cdot \left(y - 2\right) + a \]
                                2. *-commutativeN/A

                                  \[\leadsto \left(y - 2\right) \cdot b + a \]
                                3. lower-fma.f64N/A

                                  \[\leadsto \mathsf{fma}\left(y - 2, b, a\right) \]
                                4. lift--.f6446.9

                                  \[\leadsto \mathsf{fma}\left(y - 2, b, a\right) \]
                              10. Applied rewrites46.9%

                                \[\leadsto \mathsf{fma}\left(y - 2, b, a\right) \]
                            3. Recombined 2 regimes into one program.
                            4. Add Preprocessing

                            Alternative 19: 49.7% accurate, 1.3× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - a\right) \cdot t\\ \mathbf{if}\;t \leq -1.1 \cdot 10^{+70}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -4.8 \cdot 10^{-106}:\\ \;\;\;\;\left(b - z\right) \cdot y\\ \mathbf{elif}\;t \leq 1.82 \cdot 10^{-168}:\\ \;\;\;\;a + x\\ \mathbf{elif}\;t \leq 9.3 \cdot 10^{+42}:\\ \;\;\;\;\left(1 - y\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                            (FPCore (x y z t a b)
                             :precision binary64
                             (let* ((t_1 (* (- b a) t)))
                               (if (<= t -1.1e+70)
                                 t_1
                                 (if (<= t -4.8e-106)
                                   (* (- b z) y)
                                   (if (<= t 1.82e-168)
                                     (+ a x)
                                     (if (<= t 9.3e+42) (* (- 1.0 y) z) t_1))))))
                            double code(double x, double y, double z, double t, double a, double b) {
                            	double t_1 = (b - a) * t;
                            	double tmp;
                            	if (t <= -1.1e+70) {
                            		tmp = t_1;
                            	} else if (t <= -4.8e-106) {
                            		tmp = (b - z) * y;
                            	} else if (t <= 1.82e-168) {
                            		tmp = a + x;
                            	} else if (t <= 9.3e+42) {
                            		tmp = (1.0 - y) * z;
                            	} else {
                            		tmp = t_1;
                            	}
                            	return tmp;
                            }
                            
                            module fmin_fmax_functions
                                implicit none
                                private
                                public fmax
                                public fmin
                            
                                interface fmax
                                    module procedure fmax88
                                    module procedure fmax44
                                    module procedure fmax84
                                    module procedure fmax48
                                end interface
                                interface fmin
                                    module procedure fmin88
                                    module procedure fmin44
                                    module procedure fmin84
                                    module procedure fmin48
                                end interface
                            contains
                                real(8) function fmax88(x, y) result (res)
                                    real(8), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                end function
                                real(4) function fmax44(x, y) result (res)
                                    real(4), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                end function
                                real(8) function fmax84(x, y) result(res)
                                    real(8), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                end function
                                real(8) function fmax48(x, y) result(res)
                                    real(4), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                end function
                                real(8) function fmin88(x, y) result (res)
                                    real(8), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                end function
                                real(4) function fmin44(x, y) result (res)
                                    real(4), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                end function
                                real(8) function fmin84(x, y) result(res)
                                    real(8), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                end function
                                real(8) function fmin48(x, y) result(res)
                                    real(4), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                end function
                            end module
                            
                            real(8) function code(x, y, z, t, a, b)
                            use fmin_fmax_functions
                                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 = (b - a) * t
                                if (t <= (-1.1d+70)) then
                                    tmp = t_1
                                else if (t <= (-4.8d-106)) then
                                    tmp = (b - z) * y
                                else if (t <= 1.82d-168) then
                                    tmp = a + x
                                else if (t <= 9.3d+42) then
                                    tmp = (1.0d0 - 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 = (b - a) * t;
                            	double tmp;
                            	if (t <= -1.1e+70) {
                            		tmp = t_1;
                            	} else if (t <= -4.8e-106) {
                            		tmp = (b - z) * y;
                            	} else if (t <= 1.82e-168) {
                            		tmp = a + x;
                            	} else if (t <= 9.3e+42) {
                            		tmp = (1.0 - y) * z;
                            	} else {
                            		tmp = t_1;
                            	}
                            	return tmp;
                            }
                            
                            def code(x, y, z, t, a, b):
                            	t_1 = (b - a) * t
                            	tmp = 0
                            	if t <= -1.1e+70:
                            		tmp = t_1
                            	elif t <= -4.8e-106:
                            		tmp = (b - z) * y
                            	elif t <= 1.82e-168:
                            		tmp = a + x
                            	elif t <= 9.3e+42:
                            		tmp = (1.0 - y) * z
                            	else:
                            		tmp = t_1
                            	return tmp
                            
                            function code(x, y, z, t, a, b)
                            	t_1 = Float64(Float64(b - a) * t)
                            	tmp = 0.0
                            	if (t <= -1.1e+70)
                            		tmp = t_1;
                            	elseif (t <= -4.8e-106)
                            		tmp = Float64(Float64(b - z) * y);
                            	elseif (t <= 1.82e-168)
                            		tmp = Float64(a + x);
                            	elseif (t <= 9.3e+42)
                            		tmp = Float64(Float64(1.0 - y) * z);
                            	else
                            		tmp = t_1;
                            	end
                            	return tmp
                            end
                            
                            function tmp_2 = code(x, y, z, t, a, b)
                            	t_1 = (b - a) * t;
                            	tmp = 0.0;
                            	if (t <= -1.1e+70)
                            		tmp = t_1;
                            	elseif (t <= -4.8e-106)
                            		tmp = (b - z) * y;
                            	elseif (t <= 1.82e-168)
                            		tmp = a + x;
                            	elseif (t <= 9.3e+42)
                            		tmp = (1.0 - y) * z;
                            	else
                            		tmp = t_1;
                            	end
                            	tmp_2 = tmp;
                            end
                            
                            code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -1.1e+70], t$95$1, If[LessEqual[t, -4.8e-106], N[(N[(b - z), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[t, 1.82e-168], N[(a + x), $MachinePrecision], If[LessEqual[t, 9.3e+42], N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            t_1 := \left(b - a\right) \cdot t\\
                            \mathbf{if}\;t \leq -1.1 \cdot 10^{+70}:\\
                            \;\;\;\;t\_1\\
                            
                            \mathbf{elif}\;t \leq -4.8 \cdot 10^{-106}:\\
                            \;\;\;\;\left(b - z\right) \cdot y\\
                            
                            \mathbf{elif}\;t \leq 1.82 \cdot 10^{-168}:\\
                            \;\;\;\;a + x\\
                            
                            \mathbf{elif}\;t \leq 9.3 \cdot 10^{+42}:\\
                            \;\;\;\;\left(1 - y\right) \cdot z\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;t\_1\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 4 regimes
                            2. if t < -1.1e70 or 9.3000000000000005e42 < t

                              1. Initial program 90.9%

                                \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                              2. Taylor expanded in t around inf

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

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

                                  \[\leadsto \left(b - a\right) \cdot \color{blue}{t} \]
                                3. lower--.f6469.2

                                  \[\leadsto \left(b - a\right) \cdot t \]
                              4. Applied rewrites69.2%

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

                              if -1.1e70 < t < -4.7999999999999995e-106

                              1. Initial program 98.3%

                                \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                              2. Taylor expanded in y around inf

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

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

                                  \[\leadsto \left(b - z\right) \cdot \color{blue}{y} \]
                                3. lower--.f6436.4

                                  \[\leadsto \left(b - z\right) \cdot y \]
                              4. Applied rewrites36.4%

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

                              if -4.7999999999999995e-106 < t < 1.82000000000000001e-168

                              1. Initial program 98.2%

                                \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                              2. Taylor expanded in z around 0

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

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

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

                                  \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                                4. +-commutativeN/A

                                  \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                                5. lower-fma.f64N/A

                                  \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
                                6. lift--.f64N/A

                                  \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                7. +-commutativeN/A

                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                8. lower-+.f64N/A

                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                9. *-commutativeN/A

                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                                10. lift--.f64N/A

                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
                                11. lift-*.f6470.5

                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                              4. Applied rewrites70.5%

                                \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
                              5. Taylor expanded in t around 0

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

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

                                  \[\leadsto \left(b \cdot \left(y - 2\right) + x\right) - -1 \cdot a \]
                                3. *-commutativeN/A

                                  \[\leadsto \left(\left(y - 2\right) \cdot b + x\right) - -1 \cdot a \]
                                4. lower-fma.f64N/A

                                  \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                                5. lower--.f64N/A

                                  \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                                6. mul-1-negN/A

                                  \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(\mathsf{neg}\left(a\right)\right) \]
                                7. lift-neg.f6470.5

                                  \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(-a\right) \]
                              7. Applied rewrites70.5%

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \color{blue}{\left(-a\right)} \]
                              8. Taylor expanded in b around 0

                                \[\leadsto a + x \]
                              9. Step-by-step derivation
                                1. lower-+.f6438.1

                                  \[\leadsto a + x \]
                              10. Applied rewrites38.1%

                                \[\leadsto a + x \]

                              if 1.82000000000000001e-168 < t < 9.3000000000000005e42

                              1. Initial program 97.6%

                                \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                              2. Taylor expanded in z around inf

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

                                  \[\leadsto \left(1 - y\right) \cdot \color{blue}{z} \]
                                2. lower-*.f64N/A

                                  \[\leadsto \left(1 - y\right) \cdot \color{blue}{z} \]
                                3. lower--.f6433.5

                                  \[\leadsto \left(1 - y\right) \cdot z \]
                              4. Applied rewrites33.5%

                                \[\leadsto \color{blue}{\left(1 - y\right) \cdot z} \]
                            3. Recombined 4 regimes into one program.
                            4. Add Preprocessing

                            Alternative 20: 48.3% accurate, 1.3× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - a\right) \cdot t\\ \mathbf{if}\;t \leq -1.06 \cdot 10^{+70}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -5 \cdot 10^{-161}:\\ \;\;\;\;\left(y - 2\right) \cdot b\\ \mathbf{elif}\;t \leq 1.82 \cdot 10^{-168}:\\ \;\;\;\;a + x\\ \mathbf{elif}\;t \leq 9.3 \cdot 10^{+42}:\\ \;\;\;\;\left(1 - y\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                            (FPCore (x y z t a b)
                             :precision binary64
                             (let* ((t_1 (* (- b a) t)))
                               (if (<= t -1.06e+70)
                                 t_1
                                 (if (<= t -5e-161)
                                   (* (- y 2.0) b)
                                   (if (<= t 1.82e-168)
                                     (+ a x)
                                     (if (<= t 9.3e+42) (* (- 1.0 y) z) t_1))))))
                            double code(double x, double y, double z, double t, double a, double b) {
                            	double t_1 = (b - a) * t;
                            	double tmp;
                            	if (t <= -1.06e+70) {
                            		tmp = t_1;
                            	} else if (t <= -5e-161) {
                            		tmp = (y - 2.0) * b;
                            	} else if (t <= 1.82e-168) {
                            		tmp = a + x;
                            	} else if (t <= 9.3e+42) {
                            		tmp = (1.0 - y) * z;
                            	} else {
                            		tmp = t_1;
                            	}
                            	return tmp;
                            }
                            
                            module fmin_fmax_functions
                                implicit none
                                private
                                public fmax
                                public fmin
                            
                                interface fmax
                                    module procedure fmax88
                                    module procedure fmax44
                                    module procedure fmax84
                                    module procedure fmax48
                                end interface
                                interface fmin
                                    module procedure fmin88
                                    module procedure fmin44
                                    module procedure fmin84
                                    module procedure fmin48
                                end interface
                            contains
                                real(8) function fmax88(x, y) result (res)
                                    real(8), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                end function
                                real(4) function fmax44(x, y) result (res)
                                    real(4), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                end function
                                real(8) function fmax84(x, y) result(res)
                                    real(8), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                end function
                                real(8) function fmax48(x, y) result(res)
                                    real(4), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                end function
                                real(8) function fmin88(x, y) result (res)
                                    real(8), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                end function
                                real(4) function fmin44(x, y) result (res)
                                    real(4), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                end function
                                real(8) function fmin84(x, y) result(res)
                                    real(8), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                end function
                                real(8) function fmin48(x, y) result(res)
                                    real(4), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                end function
                            end module
                            
                            real(8) function code(x, y, z, t, a, b)
                            use fmin_fmax_functions
                                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 = (b - a) * t
                                if (t <= (-1.06d+70)) then
                                    tmp = t_1
                                else if (t <= (-5d-161)) then
                                    tmp = (y - 2.0d0) * b
                                else if (t <= 1.82d-168) then
                                    tmp = a + x
                                else if (t <= 9.3d+42) then
                                    tmp = (1.0d0 - 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 = (b - a) * t;
                            	double tmp;
                            	if (t <= -1.06e+70) {
                            		tmp = t_1;
                            	} else if (t <= -5e-161) {
                            		tmp = (y - 2.0) * b;
                            	} else if (t <= 1.82e-168) {
                            		tmp = a + x;
                            	} else if (t <= 9.3e+42) {
                            		tmp = (1.0 - y) * z;
                            	} else {
                            		tmp = t_1;
                            	}
                            	return tmp;
                            }
                            
                            def code(x, y, z, t, a, b):
                            	t_1 = (b - a) * t
                            	tmp = 0
                            	if t <= -1.06e+70:
                            		tmp = t_1
                            	elif t <= -5e-161:
                            		tmp = (y - 2.0) * b
                            	elif t <= 1.82e-168:
                            		tmp = a + x
                            	elif t <= 9.3e+42:
                            		tmp = (1.0 - y) * z
                            	else:
                            		tmp = t_1
                            	return tmp
                            
                            function code(x, y, z, t, a, b)
                            	t_1 = Float64(Float64(b - a) * t)
                            	tmp = 0.0
                            	if (t <= -1.06e+70)
                            		tmp = t_1;
                            	elseif (t <= -5e-161)
                            		tmp = Float64(Float64(y - 2.0) * b);
                            	elseif (t <= 1.82e-168)
                            		tmp = Float64(a + x);
                            	elseif (t <= 9.3e+42)
                            		tmp = Float64(Float64(1.0 - y) * z);
                            	else
                            		tmp = t_1;
                            	end
                            	return tmp
                            end
                            
                            function tmp_2 = code(x, y, z, t, a, b)
                            	t_1 = (b - a) * t;
                            	tmp = 0.0;
                            	if (t <= -1.06e+70)
                            		tmp = t_1;
                            	elseif (t <= -5e-161)
                            		tmp = (y - 2.0) * b;
                            	elseif (t <= 1.82e-168)
                            		tmp = a + x;
                            	elseif (t <= 9.3e+42)
                            		tmp = (1.0 - y) * z;
                            	else
                            		tmp = t_1;
                            	end
                            	tmp_2 = tmp;
                            end
                            
                            code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -1.06e+70], t$95$1, If[LessEqual[t, -5e-161], N[(N[(y - 2.0), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[t, 1.82e-168], N[(a + x), $MachinePrecision], If[LessEqual[t, 9.3e+42], N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            t_1 := \left(b - a\right) \cdot t\\
                            \mathbf{if}\;t \leq -1.06 \cdot 10^{+70}:\\
                            \;\;\;\;t\_1\\
                            
                            \mathbf{elif}\;t \leq -5 \cdot 10^{-161}:\\
                            \;\;\;\;\left(y - 2\right) \cdot b\\
                            
                            \mathbf{elif}\;t \leq 1.82 \cdot 10^{-168}:\\
                            \;\;\;\;a + x\\
                            
                            \mathbf{elif}\;t \leq 9.3 \cdot 10^{+42}:\\
                            \;\;\;\;\left(1 - y\right) \cdot z\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;t\_1\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 4 regimes
                            2. if t < -1.06e70 or 9.3000000000000005e42 < t

                              1. Initial program 90.9%

                                \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                              2. Taylor expanded in t around inf

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

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

                                  \[\leadsto \left(b - a\right) \cdot \color{blue}{t} \]
                                3. lower--.f6469.2

                                  \[\leadsto \left(b - a\right) \cdot t \]
                              4. Applied rewrites69.2%

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

                              if -1.06e70 < t < -4.9999999999999999e-161

                              1. Initial program 98.5%

                                \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                              2. Taylor expanded in z around 0

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

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

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

                                  \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                                4. +-commutativeN/A

                                  \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                                5. lower-fma.f64N/A

                                  \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
                                6. lift--.f64N/A

                                  \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                7. +-commutativeN/A

                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                8. lower-+.f64N/A

                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                9. *-commutativeN/A

                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                                10. lift--.f64N/A

                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
                                11. lift-*.f6469.9

                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                              4. Applied rewrites69.9%

                                \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
                              5. Taylor expanded in t around 0

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

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

                                  \[\leadsto \left(b \cdot \left(y - 2\right) + x\right) - -1 \cdot a \]
                                3. *-commutativeN/A

                                  \[\leadsto \left(\left(y - 2\right) \cdot b + x\right) - -1 \cdot a \]
                                4. lower-fma.f64N/A

                                  \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                                5. lower--.f64N/A

                                  \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                                6. mul-1-negN/A

                                  \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(\mathsf{neg}\left(a\right)\right) \]
                                7. lift-neg.f6458.6

                                  \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(-a\right) \]
                              7. Applied rewrites58.6%

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \color{blue}{\left(-a\right)} \]
                              8. Taylor expanded in b around inf

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

                                  \[\leadsto \left(y - 2\right) \cdot b \]
                                2. lower-*.f64N/A

                                  \[\leadsto \left(y - 2\right) \cdot b \]
                                3. lift--.f6429.1

                                  \[\leadsto \left(y - 2\right) \cdot b \]
                              10. Applied rewrites29.1%

                                \[\leadsto \left(y - 2\right) \cdot b \]

                              if -4.9999999999999999e-161 < t < 1.82000000000000001e-168

                              1. Initial program 98.0%

                                \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                              2. Taylor expanded in z around 0

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

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

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

                                  \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                                4. +-commutativeN/A

                                  \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                                5. lower-fma.f64N/A

                                  \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
                                6. lift--.f64N/A

                                  \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                7. +-commutativeN/A

                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                8. lower-+.f64N/A

                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                9. *-commutativeN/A

                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                                10. lift--.f64N/A

                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
                                11. lift-*.f6470.2

                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                              4. Applied rewrites70.2%

                                \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
                              5. Taylor expanded in t around 0

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

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

                                  \[\leadsto \left(b \cdot \left(y - 2\right) + x\right) - -1 \cdot a \]
                                3. *-commutativeN/A

                                  \[\leadsto \left(\left(y - 2\right) \cdot b + x\right) - -1 \cdot a \]
                                4. lower-fma.f64N/A

                                  \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                                5. lower--.f64N/A

                                  \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                                6. mul-1-negN/A

                                  \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(\mathsf{neg}\left(a\right)\right) \]
                                7. lift-neg.f6470.2

                                  \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(-a\right) \]
                              7. Applied rewrites70.2%

                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \color{blue}{\left(-a\right)} \]
                              8. Taylor expanded in b around 0

                                \[\leadsto a + x \]
                              9. Step-by-step derivation
                                1. lower-+.f6438.4

                                  \[\leadsto a + x \]
                              10. Applied rewrites38.4%

                                \[\leadsto a + x \]

                              if 1.82000000000000001e-168 < t < 9.3000000000000005e42

                              1. Initial program 97.6%

                                \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                              2. Taylor expanded in z around inf

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

                                  \[\leadsto \left(1 - y\right) \cdot \color{blue}{z} \]
                                2. lower-*.f64N/A

                                  \[\leadsto \left(1 - y\right) \cdot \color{blue}{z} \]
                                3. lower--.f6433.5

                                  \[\leadsto \left(1 - y\right) \cdot z \]
                              4. Applied rewrites33.5%

                                \[\leadsto \color{blue}{\left(1 - y\right) \cdot z} \]
                            3. Recombined 4 regimes into one program.
                            4. Add Preprocessing

                            Alternative 21: 44.0% accurate, 1.3× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(1 - t\right) \cdot a\\ \mathbf{if}\;a \leq -8 \cdot 10^{-33}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -1.25 \cdot 10^{-282}:\\ \;\;\;\;\mathsf{fma}\left(y, b, x\right)\\ \mathbf{elif}\;a \leq 4.2 \cdot 10^{-92}:\\ \;\;\;\;\left(1 - y\right) \cdot z\\ \mathbf{elif}\;a \leq 1.95 \cdot 10^{+84}:\\ \;\;\;\;\mathsf{fma}\left(y, b, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                            (FPCore (x y z t a b)
                             :precision binary64
                             (let* ((t_1 (* (- 1.0 t) a)))
                               (if (<= a -8e-33)
                                 t_1
                                 (if (<= a -1.25e-282)
                                   (fma y b x)
                                   (if (<= a 4.2e-92)
                                     (* (- 1.0 y) z)
                                     (if (<= a 1.95e+84) (fma y b x) t_1))))))
                            double code(double x, double y, double z, double t, double a, double b) {
                            	double t_1 = (1.0 - t) * a;
                            	double tmp;
                            	if (a <= -8e-33) {
                            		tmp = t_1;
                            	} else if (a <= -1.25e-282) {
                            		tmp = fma(y, b, x);
                            	} else if (a <= 4.2e-92) {
                            		tmp = (1.0 - y) * z;
                            	} else if (a <= 1.95e+84) {
                            		tmp = fma(y, b, x);
                            	} else {
                            		tmp = t_1;
                            	}
                            	return tmp;
                            }
                            
                            function code(x, y, z, t, a, b)
                            	t_1 = Float64(Float64(1.0 - t) * a)
                            	tmp = 0.0
                            	if (a <= -8e-33)
                            		tmp = t_1;
                            	elseif (a <= -1.25e-282)
                            		tmp = fma(y, b, x);
                            	elseif (a <= 4.2e-92)
                            		tmp = Float64(Float64(1.0 - y) * z);
                            	elseif (a <= 1.95e+84)
                            		tmp = fma(y, b, x);
                            	else
                            		tmp = t_1;
                            	end
                            	return tmp
                            end
                            
                            code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(1.0 - t), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[a, -8e-33], t$95$1, If[LessEqual[a, -1.25e-282], N[(y * b + x), $MachinePrecision], If[LessEqual[a, 4.2e-92], N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[a, 1.95e+84], N[(y * b + x), $MachinePrecision], t$95$1]]]]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            t_1 := \left(1 - t\right) \cdot a\\
                            \mathbf{if}\;a \leq -8 \cdot 10^{-33}:\\
                            \;\;\;\;t\_1\\
                            
                            \mathbf{elif}\;a \leq -1.25 \cdot 10^{-282}:\\
                            \;\;\;\;\mathsf{fma}\left(y, b, x\right)\\
                            
                            \mathbf{elif}\;a \leq 4.2 \cdot 10^{-92}:\\
                            \;\;\;\;\left(1 - y\right) \cdot z\\
                            
                            \mathbf{elif}\;a \leq 1.95 \cdot 10^{+84}:\\
                            \;\;\;\;\mathsf{fma}\left(y, b, x\right)\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;t\_1\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 3 regimes
                            2. if a < -8.0000000000000004e-33 or 1.95000000000000008e84 < a

                              1. Initial program 91.9%

                                \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                              2. Taylor expanded in a around inf

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

                                  \[\leadsto \left(1 - t\right) \cdot \color{blue}{a} \]
                                2. lower-*.f64N/A

                                  \[\leadsto \left(1 - t\right) \cdot \color{blue}{a} \]
                                3. lower--.f6451.8

                                  \[\leadsto \left(1 - t\right) \cdot a \]
                              4. Applied rewrites51.8%

                                \[\leadsto \color{blue}{\left(1 - t\right) \cdot a} \]

                              if -8.0000000000000004e-33 < a < -1.25e-282 or 4.2e-92 < a < 1.95000000000000008e84

                              1. Initial program 97.6%

                                \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                              2. Taylor expanded in x around inf

                                \[\leadsto \color{blue}{x} + \left(\left(y + t\right) - 2\right) \cdot b \]
                              3. Step-by-step derivation
                                1. Applied rewrites61.8%

                                  \[\leadsto \color{blue}{x} + \left(\left(y + t\right) - 2\right) \cdot b \]
                                2. Taylor expanded in y around inf

                                  \[\leadsto x + \color{blue}{y} \cdot b \]
                                3. Step-by-step derivation
                                  1. Applied rewrites37.2%

                                    \[\leadsto x + \color{blue}{y} \cdot b \]
                                  2. Step-by-step derivation
                                    1. lift-+.f64N/A

                                      \[\leadsto \color{blue}{x + y \cdot b} \]
                                    2. +-commutativeN/A

                                      \[\leadsto \color{blue}{y \cdot b + x} \]
                                    3. lift-*.f64N/A

                                      \[\leadsto \color{blue}{y \cdot b} + x \]
                                    4. lower-fma.f6437.2

                                      \[\leadsto \color{blue}{\mathsf{fma}\left(y, b, x\right)} \]
                                    5. +-commutative37.2

                                      \[\leadsto \mathsf{fma}\left(y, b, x\right) \]
                                  3. Applied rewrites37.2%

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(y, b, x\right)} \]

                                  if -1.25e-282 < a < 4.2e-92

                                  1. Initial program 98.0%

                                    \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                  2. Taylor expanded in z around inf

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

                                      \[\leadsto \left(1 - y\right) \cdot \color{blue}{z} \]
                                    2. lower-*.f64N/A

                                      \[\leadsto \left(1 - y\right) \cdot \color{blue}{z} \]
                                    3. lower--.f6437.1

                                      \[\leadsto \left(1 - y\right) \cdot z \]
                                  4. Applied rewrites37.1%

                                    \[\leadsto \color{blue}{\left(1 - y\right) \cdot z} \]
                                4. Recombined 3 regimes into one program.
                                5. Add Preprocessing

                                Alternative 22: 43.8% accurate, 2.0× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(1 - t\right) \cdot a\\ \mathbf{if}\;a \leq -8 \cdot 10^{-33}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 1.95 \cdot 10^{+84}:\\ \;\;\;\;\mathsf{fma}\left(y, b, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                (FPCore (x y z t a b)
                                 :precision binary64
                                 (let* ((t_1 (* (- 1.0 t) a)))
                                   (if (<= a -8e-33) t_1 (if (<= a 1.95e+84) (fma y b x) t_1))))
                                double code(double x, double y, double z, double t, double a, double b) {
                                	double t_1 = (1.0 - t) * a;
                                	double tmp;
                                	if (a <= -8e-33) {
                                		tmp = t_1;
                                	} else if (a <= 1.95e+84) {
                                		tmp = fma(y, b, x);
                                	} else {
                                		tmp = t_1;
                                	}
                                	return tmp;
                                }
                                
                                function code(x, y, z, t, a, b)
                                	t_1 = Float64(Float64(1.0 - t) * a)
                                	tmp = 0.0
                                	if (a <= -8e-33)
                                		tmp = t_1;
                                	elseif (a <= 1.95e+84)
                                		tmp = fma(y, b, x);
                                	else
                                		tmp = t_1;
                                	end
                                	return tmp
                                end
                                
                                code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(1.0 - t), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[a, -8e-33], t$95$1, If[LessEqual[a, 1.95e+84], N[(y * b + x), $MachinePrecision], t$95$1]]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                t_1 := \left(1 - t\right) \cdot a\\
                                \mathbf{if}\;a \leq -8 \cdot 10^{-33}:\\
                                \;\;\;\;t\_1\\
                                
                                \mathbf{elif}\;a \leq 1.95 \cdot 10^{+84}:\\
                                \;\;\;\;\mathsf{fma}\left(y, b, x\right)\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;t\_1\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 2 regimes
                                2. if a < -8.0000000000000004e-33 or 1.95000000000000008e84 < a

                                  1. Initial program 91.9%

                                    \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                  2. Taylor expanded in a around inf

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

                                      \[\leadsto \left(1 - t\right) \cdot \color{blue}{a} \]
                                    2. lower-*.f64N/A

                                      \[\leadsto \left(1 - t\right) \cdot \color{blue}{a} \]
                                    3. lower--.f6451.8

                                      \[\leadsto \left(1 - t\right) \cdot a \]
                                  4. Applied rewrites51.8%

                                    \[\leadsto \color{blue}{\left(1 - t\right) \cdot a} \]

                                  if -8.0000000000000004e-33 < a < 1.95000000000000008e84

                                  1. Initial program 97.8%

                                    \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                  2. Taylor expanded in x around inf

                                    \[\leadsto \color{blue}{x} + \left(\left(y + t\right) - 2\right) \cdot b \]
                                  3. Step-by-step derivation
                                    1. Applied rewrites62.8%

                                      \[\leadsto \color{blue}{x} + \left(\left(y + t\right) - 2\right) \cdot b \]
                                    2. Taylor expanded in y around inf

                                      \[\leadsto x + \color{blue}{y} \cdot b \]
                                    3. Step-by-step derivation
                                      1. Applied rewrites37.5%

                                        \[\leadsto x + \color{blue}{y} \cdot b \]
                                      2. Step-by-step derivation
                                        1. lift-+.f64N/A

                                          \[\leadsto \color{blue}{x + y \cdot b} \]
                                        2. +-commutativeN/A

                                          \[\leadsto \color{blue}{y \cdot b + x} \]
                                        3. lift-*.f64N/A

                                          \[\leadsto \color{blue}{y \cdot b} + x \]
                                        4. lower-fma.f6437.5

                                          \[\leadsto \color{blue}{\mathsf{fma}\left(y, b, x\right)} \]
                                        5. +-commutative37.5

                                          \[\leadsto \mathsf{fma}\left(y, b, x\right) \]
                                      3. Applied rewrites37.5%

                                        \[\leadsto \color{blue}{\mathsf{fma}\left(y, b, x\right)} \]
                                    4. Recombined 2 regimes into one program.
                                    5. Add Preprocessing

                                    Alternative 23: 37.5% accurate, 2.0× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(y - 2\right) \cdot b\\ \mathbf{if}\;b \leq -4.6 \cdot 10^{+16}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 5.6 \cdot 10^{+85}:\\ \;\;\;\;a + x\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                    (FPCore (x y z t a b)
                                     :precision binary64
                                     (let* ((t_1 (* (- y 2.0) b)))
                                       (if (<= b -4.6e+16) t_1 (if (<= b 5.6e+85) (+ a x) t_1))))
                                    double code(double x, double y, double z, double t, double a, double b) {
                                    	double t_1 = (y - 2.0) * b;
                                    	double tmp;
                                    	if (b <= -4.6e+16) {
                                    		tmp = t_1;
                                    	} else if (b <= 5.6e+85) {
                                    		tmp = a + x;
                                    	} else {
                                    		tmp = t_1;
                                    	}
                                    	return tmp;
                                    }
                                    
                                    module fmin_fmax_functions
                                        implicit none
                                        private
                                        public fmax
                                        public fmin
                                    
                                        interface fmax
                                            module procedure fmax88
                                            module procedure fmax44
                                            module procedure fmax84
                                            module procedure fmax48
                                        end interface
                                        interface fmin
                                            module procedure fmin88
                                            module procedure fmin44
                                            module procedure fmin84
                                            module procedure fmin48
                                        end interface
                                    contains
                                        real(8) function fmax88(x, y) result (res)
                                            real(8), intent (in) :: x
                                            real(8), intent (in) :: y
                                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                        end function
                                        real(4) function fmax44(x, y) result (res)
                                            real(4), intent (in) :: x
                                            real(4), intent (in) :: y
                                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                        end function
                                        real(8) function fmax84(x, y) result(res)
                                            real(8), intent (in) :: x
                                            real(4), intent (in) :: y
                                            res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                        end function
                                        real(8) function fmax48(x, y) result(res)
                                            real(4), intent (in) :: x
                                            real(8), intent (in) :: y
                                            res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                        end function
                                        real(8) function fmin88(x, y) result (res)
                                            real(8), intent (in) :: x
                                            real(8), intent (in) :: y
                                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                        end function
                                        real(4) function fmin44(x, y) result (res)
                                            real(4), intent (in) :: x
                                            real(4), intent (in) :: y
                                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                        end function
                                        real(8) function fmin84(x, y) result(res)
                                            real(8), intent (in) :: x
                                            real(4), intent (in) :: y
                                            res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                        end function
                                        real(8) function fmin48(x, y) result(res)
                                            real(4), intent (in) :: x
                                            real(8), intent (in) :: y
                                            res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                        end function
                                    end module
                                    
                                    real(8) function code(x, y, z, t, a, b)
                                    use fmin_fmax_functions
                                        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 = (y - 2.0d0) * b
                                        if (b <= (-4.6d+16)) then
                                            tmp = t_1
                                        else if (b <= 5.6d+85) then
                                            tmp = a + 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 = (y - 2.0) * b;
                                    	double tmp;
                                    	if (b <= -4.6e+16) {
                                    		tmp = t_1;
                                    	} else if (b <= 5.6e+85) {
                                    		tmp = a + x;
                                    	} else {
                                    		tmp = t_1;
                                    	}
                                    	return tmp;
                                    }
                                    
                                    def code(x, y, z, t, a, b):
                                    	t_1 = (y - 2.0) * b
                                    	tmp = 0
                                    	if b <= -4.6e+16:
                                    		tmp = t_1
                                    	elif b <= 5.6e+85:
                                    		tmp = a + x
                                    	else:
                                    		tmp = t_1
                                    	return tmp
                                    
                                    function code(x, y, z, t, a, b)
                                    	t_1 = Float64(Float64(y - 2.0) * b)
                                    	tmp = 0.0
                                    	if (b <= -4.6e+16)
                                    		tmp = t_1;
                                    	elseif (b <= 5.6e+85)
                                    		tmp = Float64(a + x);
                                    	else
                                    		tmp = t_1;
                                    	end
                                    	return tmp
                                    end
                                    
                                    function tmp_2 = code(x, y, z, t, a, b)
                                    	t_1 = (y - 2.0) * b;
                                    	tmp = 0.0;
                                    	if (b <= -4.6e+16)
                                    		tmp = t_1;
                                    	elseif (b <= 5.6e+85)
                                    		tmp = a + x;
                                    	else
                                    		tmp = t_1;
                                    	end
                                    	tmp_2 = tmp;
                                    end
                                    
                                    code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y - 2.0), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[b, -4.6e+16], t$95$1, If[LessEqual[b, 5.6e+85], N[(a + x), $MachinePrecision], t$95$1]]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    t_1 := \left(y - 2\right) \cdot b\\
                                    \mathbf{if}\;b \leq -4.6 \cdot 10^{+16}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    \mathbf{elif}\;b \leq 5.6 \cdot 10^{+85}:\\
                                    \;\;\;\;a + x\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 2 regimes
                                    2. if b < -4.6e16 or 5.5999999999999998e85 < b

                                      1. Initial program 90.1%

                                        \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                      2. Taylor expanded in z around 0

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

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

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

                                          \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                                        4. +-commutativeN/A

                                          \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                                        5. lower-fma.f64N/A

                                          \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
                                        6. lift--.f64N/A

                                          \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                        7. +-commutativeN/A

                                          \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                        8. lower-+.f64N/A

                                          \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                        9. *-commutativeN/A

                                          \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                                        10. lift--.f64N/A

                                          \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
                                        11. lift-*.f6483.0

                                          \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                                      4. Applied rewrites83.0%

                                        \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
                                      5. Taylor expanded in t around 0

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

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

                                          \[\leadsto \left(b \cdot \left(y - 2\right) + x\right) - -1 \cdot a \]
                                        3. *-commutativeN/A

                                          \[\leadsto \left(\left(y - 2\right) \cdot b + x\right) - -1 \cdot a \]
                                        4. lower-fma.f64N/A

                                          \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                                        5. lower--.f64N/A

                                          \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                                        6. mul-1-negN/A

                                          \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(\mathsf{neg}\left(a\right)\right) \]
                                        7. lift-neg.f6456.1

                                          \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(-a\right) \]
                                      7. Applied rewrites56.1%

                                        \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \color{blue}{\left(-a\right)} \]
                                      8. Taylor expanded in b around inf

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

                                          \[\leadsto \left(y - 2\right) \cdot b \]
                                        2. lower-*.f64N/A

                                          \[\leadsto \left(y - 2\right) \cdot b \]
                                        3. lift--.f6444.3

                                          \[\leadsto \left(y - 2\right) \cdot b \]
                                      10. Applied rewrites44.3%

                                        \[\leadsto \left(y - 2\right) \cdot b \]

                                      if -4.6e16 < b < 5.5999999999999998e85

                                      1. Initial program 98.8%

                                        \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                      2. Taylor expanded in z around 0

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

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

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

                                          \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                                        4. +-commutativeN/A

                                          \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                                        5. lower-fma.f64N/A

                                          \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
                                        6. lift--.f64N/A

                                          \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                        7. +-commutativeN/A

                                          \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                        8. lower-+.f64N/A

                                          \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                        9. *-commutativeN/A

                                          \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                                        10. lift--.f64N/A

                                          \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
                                        11. lift-*.f6465.5

                                          \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                                      4. Applied rewrites65.5%

                                        \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
                                      5. Taylor expanded in t around 0

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

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

                                          \[\leadsto \left(b \cdot \left(y - 2\right) + x\right) - -1 \cdot a \]
                                        3. *-commutativeN/A

                                          \[\leadsto \left(\left(y - 2\right) \cdot b + x\right) - -1 \cdot a \]
                                        4. lower-fma.f64N/A

                                          \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                                        5. lower--.f64N/A

                                          \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                                        6. mul-1-negN/A

                                          \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(\mathsf{neg}\left(a\right)\right) \]
                                        7. lift-neg.f6439.1

                                          \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(-a\right) \]
                                      7. Applied rewrites39.1%

                                        \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \color{blue}{\left(-a\right)} \]
                                      8. Taylor expanded in b around 0

                                        \[\leadsto a + x \]
                                      9. Step-by-step derivation
                                        1. lower-+.f6432.6

                                          \[\leadsto a + x \]
                                      10. Applied rewrites32.6%

                                        \[\leadsto a + x \]
                                    3. Recombined 2 regimes into one program.
                                    4. Add Preprocessing

                                    Alternative 24: 33.5% accurate, 0.4× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b\\ \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+293}:\\ \;\;\;\;\mathsf{fma}\left(y, b, x\right)\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+278}:\\ \;\;\;\;a + x\\ \mathbf{else}:\\ \;\;\;\;\left(-z\right) \cdot y\\ \end{array} \end{array} \]
                                    (FPCore (x y z t a b)
                                     :precision binary64
                                     (let* ((t_1
                                             (+ (- (- x (* (- y 1.0) z)) (* (- t 1.0) a)) (* (- (+ y t) 2.0) b))))
                                       (if (<= t_1 -1e+293) (fma y b x) (if (<= t_1 5e+278) (+ a x) (* (- z) y)))))
                                    double code(double x, double y, double z, double t, double a, double b) {
                                    	double t_1 = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
                                    	double tmp;
                                    	if (t_1 <= -1e+293) {
                                    		tmp = fma(y, b, x);
                                    	} else if (t_1 <= 5e+278) {
                                    		tmp = a + x;
                                    	} else {
                                    		tmp = -z * y;
                                    	}
                                    	return tmp;
                                    }
                                    
                                    function code(x, y, z, t, a, b)
                                    	t_1 = Float64(Float64(Float64(x - Float64(Float64(y - 1.0) * z)) - Float64(Float64(t - 1.0) * a)) + Float64(Float64(Float64(y + t) - 2.0) * b))
                                    	tmp = 0.0
                                    	if (t_1 <= -1e+293)
                                    		tmp = fma(y, b, x);
                                    	elseif (t_1 <= 5e+278)
                                    		tmp = Float64(a + x);
                                    	else
                                    		tmp = Float64(Float64(-z) * y);
                                    	end
                                    	return tmp
                                    end
                                    
                                    code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(x - N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+293], N[(y * b + x), $MachinePrecision], If[LessEqual[t$95$1, 5e+278], N[(a + x), $MachinePrecision], N[((-z) * y), $MachinePrecision]]]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    t_1 := \left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b\\
                                    \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+293}:\\
                                    \;\;\;\;\mathsf{fma}\left(y, b, x\right)\\
                                    
                                    \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+278}:\\
                                    \;\;\;\;a + x\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;\left(-z\right) \cdot y\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 3 regimes
                                    2. if (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y #s(literal 1 binary64)) z)) (*.f64 (-.f64 t #s(literal 1 binary64)) a)) (*.f64 (-.f64 (+.f64 y t) #s(literal 2 binary64)) b)) < -9.9999999999999992e292

                                      1. Initial program 100.0%

                                        \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                      2. Taylor expanded in x around inf

                                        \[\leadsto \color{blue}{x} + \left(\left(y + t\right) - 2\right) \cdot b \]
                                      3. Step-by-step derivation
                                        1. Applied rewrites54.0%

                                          \[\leadsto \color{blue}{x} + \left(\left(y + t\right) - 2\right) \cdot b \]
                                        2. Taylor expanded in y around inf

                                          \[\leadsto x + \color{blue}{y} \cdot b \]
                                        3. Step-by-step derivation
                                          1. Applied rewrites32.7%

                                            \[\leadsto x + \color{blue}{y} \cdot b \]
                                          2. Step-by-step derivation
                                            1. lift-+.f64N/A

                                              \[\leadsto \color{blue}{x + y \cdot b} \]
                                            2. +-commutativeN/A

                                              \[\leadsto \color{blue}{y \cdot b + x} \]
                                            3. lift-*.f64N/A

                                              \[\leadsto \color{blue}{y \cdot b} + x \]
                                            4. lower-fma.f6432.7

                                              \[\leadsto \color{blue}{\mathsf{fma}\left(y, b, x\right)} \]
                                            5. +-commutative32.7

                                              \[\leadsto \mathsf{fma}\left(y, b, x\right) \]
                                          3. Applied rewrites32.7%

                                            \[\leadsto \color{blue}{\mathsf{fma}\left(y, b, x\right)} \]

                                          if -9.9999999999999992e292 < (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y #s(literal 1 binary64)) z)) (*.f64 (-.f64 t #s(literal 1 binary64)) a)) (*.f64 (-.f64 (+.f64 y t) #s(literal 2 binary64)) b)) < 5.00000000000000029e278

                                          1. Initial program 100.0%

                                            \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                          2. Taylor expanded in z around 0

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

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

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

                                              \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                                            4. +-commutativeN/A

                                              \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                                            5. lower-fma.f64N/A

                                              \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
                                            6. lift--.f64N/A

                                              \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                            7. +-commutativeN/A

                                              \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                            8. lower-+.f64N/A

                                              \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                            9. *-commutativeN/A

                                              \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                                            10. lift--.f64N/A

                                              \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
                                            11. lift-*.f6474.6

                                              \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                                          4. Applied rewrites74.6%

                                            \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
                                          5. Taylor expanded in t around 0

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

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

                                              \[\leadsto \left(b \cdot \left(y - 2\right) + x\right) - -1 \cdot a \]
                                            3. *-commutativeN/A

                                              \[\leadsto \left(\left(y - 2\right) \cdot b + x\right) - -1 \cdot a \]
                                            4. lower-fma.f64N/A

                                              \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                                            5. lower--.f64N/A

                                              \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                                            6. mul-1-negN/A

                                              \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(\mathsf{neg}\left(a\right)\right) \]
                                            7. lift-neg.f6455.0

                                              \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(-a\right) \]
                                          7. Applied rewrites55.0%

                                            \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \color{blue}{\left(-a\right)} \]
                                          8. Taylor expanded in b around 0

                                            \[\leadsto a + x \]
                                          9. Step-by-step derivation
                                            1. lower-+.f6436.9

                                              \[\leadsto a + x \]
                                          10. Applied rewrites36.9%

                                            \[\leadsto a + x \]

                                          if 5.00000000000000029e278 < (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y #s(literal 1 binary64)) z)) (*.f64 (-.f64 t #s(literal 1 binary64)) a)) (*.f64 (-.f64 (+.f64 y t) #s(literal 2 binary64)) b))

                                          1. Initial program 82.0%

                                            \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                          2. Taylor expanded in y around inf

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

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

                                              \[\leadsto \left(b - z\right) \cdot \color{blue}{y} \]
                                            3. lower--.f6445.8

                                              \[\leadsto \left(b - z\right) \cdot y \]
                                          4. Applied rewrites45.8%

                                            \[\leadsto \color{blue}{\left(b - z\right) \cdot y} \]
                                          5. Taylor expanded in z around inf

                                            \[\leadsto \left(-1 \cdot z\right) \cdot y \]
                                          6. Step-by-step derivation
                                            1. mul-1-negN/A

                                              \[\leadsto \left(\mathsf{neg}\left(z\right)\right) \cdot y \]
                                            2. lower-neg.f6426.7

                                              \[\leadsto \left(-z\right) \cdot y \]
                                          7. Applied rewrites26.7%

                                            \[\leadsto \left(-z\right) \cdot y \]
                                        4. Recombined 3 regimes into one program.
                                        5. Add Preprocessing

                                        Alternative 25: 33.4% accurate, 0.4× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b\\ \mathbf{if}\;t\_1 \leq -\infty:\\ \;\;\;\;b \cdot y\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+278}:\\ \;\;\;\;a + x\\ \mathbf{else}:\\ \;\;\;\;\left(-z\right) \cdot y\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a b)
                                         :precision binary64
                                         (let* ((t_1
                                                 (+ (- (- x (* (- y 1.0) z)) (* (- t 1.0) a)) (* (- (+ y t) 2.0) b))))
                                           (if (<= t_1 (- INFINITY))
                                             (* b y)
                                             (if (<= t_1 5e+278) (+ a x) (* (- z) y)))))
                                        double code(double x, double y, double z, double t, double a, double b) {
                                        	double t_1 = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
                                        	double tmp;
                                        	if (t_1 <= -((double) INFINITY)) {
                                        		tmp = b * y;
                                        	} else if (t_1 <= 5e+278) {
                                        		tmp = a + x;
                                        	} else {
                                        		tmp = -z * y;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        public static double code(double x, double y, double z, double t, double a, double b) {
                                        	double t_1 = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
                                        	double tmp;
                                        	if (t_1 <= -Double.POSITIVE_INFINITY) {
                                        		tmp = b * y;
                                        	} else if (t_1 <= 5e+278) {
                                        		tmp = a + x;
                                        	} else {
                                        		tmp = -z * y;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        def code(x, y, z, t, a, b):
                                        	t_1 = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b)
                                        	tmp = 0
                                        	if t_1 <= -math.inf:
                                        		tmp = b * y
                                        	elif t_1 <= 5e+278:
                                        		tmp = a + x
                                        	else:
                                        		tmp = -z * y
                                        	return tmp
                                        
                                        function code(x, y, z, t, a, b)
                                        	t_1 = Float64(Float64(Float64(x - Float64(Float64(y - 1.0) * z)) - Float64(Float64(t - 1.0) * a)) + Float64(Float64(Float64(y + t) - 2.0) * b))
                                        	tmp = 0.0
                                        	if (t_1 <= Float64(-Inf))
                                        		tmp = Float64(b * y);
                                        	elseif (t_1 <= 5e+278)
                                        		tmp = Float64(a + x);
                                        	else
                                        		tmp = Float64(Float64(-z) * y);
                                        	end
                                        	return tmp
                                        end
                                        
                                        function tmp_2 = code(x, y, z, t, a, b)
                                        	t_1 = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
                                        	tmp = 0.0;
                                        	if (t_1 <= -Inf)
                                        		tmp = b * y;
                                        	elseif (t_1 <= 5e+278)
                                        		tmp = a + x;
                                        	else
                                        		tmp = -z * y;
                                        	end
                                        	tmp_2 = tmp;
                                        end
                                        
                                        code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(x - N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(b * y), $MachinePrecision], If[LessEqual[t$95$1, 5e+278], N[(a + x), $MachinePrecision], N[((-z) * y), $MachinePrecision]]]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        t_1 := \left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b\\
                                        \mathbf{if}\;t\_1 \leq -\infty:\\
                                        \;\;\;\;b \cdot y\\
                                        
                                        \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+278}:\\
                                        \;\;\;\;a + x\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;\left(-z\right) \cdot y\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 3 regimes
                                        2. if (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y #s(literal 1 binary64)) z)) (*.f64 (-.f64 t #s(literal 1 binary64)) a)) (*.f64 (-.f64 (+.f64 y t) #s(literal 2 binary64)) b)) < -inf.0

                                          1. Initial program 100.0%

                                            \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                          2. Taylor expanded in y around inf

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

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

                                              \[\leadsto \left(b - z\right) \cdot \color{blue}{y} \]
                                            3. lower--.f6456.7

                                              \[\leadsto \left(b - z\right) \cdot y \]
                                          4. Applied rewrites56.7%

                                            \[\leadsto \color{blue}{\left(b - z\right) \cdot y} \]
                                          5. Taylor expanded in z around 0

                                            \[\leadsto b \cdot y \]
                                          6. Step-by-step derivation
                                            1. Applied rewrites32.6%

                                              \[\leadsto b \cdot y \]

                                            if -inf.0 < (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y #s(literal 1 binary64)) z)) (*.f64 (-.f64 t #s(literal 1 binary64)) a)) (*.f64 (-.f64 (+.f64 y t) #s(literal 2 binary64)) b)) < 5.00000000000000029e278

                                            1. Initial program 100.0%

                                              \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                            2. Taylor expanded in z around 0

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

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

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

                                                \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                                              4. +-commutativeN/A

                                                \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                                              5. lower-fma.f64N/A

                                                \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
                                              6. lift--.f64N/A

                                                \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                              7. +-commutativeN/A

                                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                              8. lower-+.f64N/A

                                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                              9. *-commutativeN/A

                                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                                              10. lift--.f64N/A

                                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
                                              11. lift-*.f6474.5

                                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                                            4. Applied rewrites74.5%

                                              \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
                                            5. Taylor expanded in t around 0

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

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

                                                \[\leadsto \left(b \cdot \left(y - 2\right) + x\right) - -1 \cdot a \]
                                              3. *-commutativeN/A

                                                \[\leadsto \left(\left(y - 2\right) \cdot b + x\right) - -1 \cdot a \]
                                              4. lower-fma.f64N/A

                                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                                              5. lower--.f64N/A

                                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                                              6. mul-1-negN/A

                                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(\mathsf{neg}\left(a\right)\right) \]
                                              7. lift-neg.f6454.9

                                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(-a\right) \]
                                            7. Applied rewrites54.9%

                                              \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \color{blue}{\left(-a\right)} \]
                                            8. Taylor expanded in b around 0

                                              \[\leadsto a + x \]
                                            9. Step-by-step derivation
                                              1. lower-+.f6436.9

                                                \[\leadsto a + x \]
                                            10. Applied rewrites36.9%

                                              \[\leadsto a + x \]

                                            if 5.00000000000000029e278 < (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y #s(literal 1 binary64)) z)) (*.f64 (-.f64 t #s(literal 1 binary64)) a)) (*.f64 (-.f64 (+.f64 y t) #s(literal 2 binary64)) b))

                                            1. Initial program 82.0%

                                              \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                            2. Taylor expanded in y around inf

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

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

                                                \[\leadsto \left(b - z\right) \cdot \color{blue}{y} \]
                                              3. lower--.f6445.8

                                                \[\leadsto \left(b - z\right) \cdot y \]
                                            4. Applied rewrites45.8%

                                              \[\leadsto \color{blue}{\left(b - z\right) \cdot y} \]
                                            5. Taylor expanded in z around inf

                                              \[\leadsto \left(-1 \cdot z\right) \cdot y \]
                                            6. Step-by-step derivation
                                              1. mul-1-negN/A

                                                \[\leadsto \left(\mathsf{neg}\left(z\right)\right) \cdot y \]
                                              2. lower-neg.f6426.7

                                                \[\leadsto \left(-z\right) \cdot y \]
                                            7. Applied rewrites26.7%

                                              \[\leadsto \left(-z\right) \cdot y \]
                                          7. Recombined 3 regimes into one program.
                                          8. Add Preprocessing

                                          Alternative 26: 33.0% accurate, 0.4× speedup?

                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b\\ \mathbf{if}\;t\_1 \leq -\infty:\\ \;\;\;\;b \cdot y\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+278}:\\ \;\;\;\;a + x\\ \mathbf{else}:\\ \;\;\;\;b \cdot y\\ \end{array} \end{array} \]
                                          (FPCore (x y z t a b)
                                           :precision binary64
                                           (let* ((t_1
                                                   (+ (- (- x (* (- y 1.0) z)) (* (- t 1.0) a)) (* (- (+ y t) 2.0) b))))
                                             (if (<= t_1 (- INFINITY)) (* b y) (if (<= t_1 5e+278) (+ a x) (* b y)))))
                                          double code(double x, double y, double z, double t, double a, double b) {
                                          	double t_1 = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
                                          	double tmp;
                                          	if (t_1 <= -((double) INFINITY)) {
                                          		tmp = b * y;
                                          	} else if (t_1 <= 5e+278) {
                                          		tmp = a + x;
                                          	} else {
                                          		tmp = b * y;
                                          	}
                                          	return tmp;
                                          }
                                          
                                          public static double code(double x, double y, double z, double t, double a, double b) {
                                          	double t_1 = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
                                          	double tmp;
                                          	if (t_1 <= -Double.POSITIVE_INFINITY) {
                                          		tmp = b * y;
                                          	} else if (t_1 <= 5e+278) {
                                          		tmp = a + x;
                                          	} else {
                                          		tmp = b * y;
                                          	}
                                          	return tmp;
                                          }
                                          
                                          def code(x, y, z, t, a, b):
                                          	t_1 = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b)
                                          	tmp = 0
                                          	if t_1 <= -math.inf:
                                          		tmp = b * y
                                          	elif t_1 <= 5e+278:
                                          		tmp = a + x
                                          	else:
                                          		tmp = b * y
                                          	return tmp
                                          
                                          function code(x, y, z, t, a, b)
                                          	t_1 = Float64(Float64(Float64(x - Float64(Float64(y - 1.0) * z)) - Float64(Float64(t - 1.0) * a)) + Float64(Float64(Float64(y + t) - 2.0) * b))
                                          	tmp = 0.0
                                          	if (t_1 <= Float64(-Inf))
                                          		tmp = Float64(b * y);
                                          	elseif (t_1 <= 5e+278)
                                          		tmp = Float64(a + x);
                                          	else
                                          		tmp = Float64(b * y);
                                          	end
                                          	return tmp
                                          end
                                          
                                          function tmp_2 = code(x, y, z, t, a, b)
                                          	t_1 = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
                                          	tmp = 0.0;
                                          	if (t_1 <= -Inf)
                                          		tmp = b * y;
                                          	elseif (t_1 <= 5e+278)
                                          		tmp = a + x;
                                          	else
                                          		tmp = b * y;
                                          	end
                                          	tmp_2 = tmp;
                                          end
                                          
                                          code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(x - N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(b * y), $MachinePrecision], If[LessEqual[t$95$1, 5e+278], N[(a + x), $MachinePrecision], N[(b * y), $MachinePrecision]]]]
                                          
                                          \begin{array}{l}
                                          
                                          \\
                                          \begin{array}{l}
                                          t_1 := \left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b\\
                                          \mathbf{if}\;t\_1 \leq -\infty:\\
                                          \;\;\;\;b \cdot y\\
                                          
                                          \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+278}:\\
                                          \;\;\;\;a + x\\
                                          
                                          \mathbf{else}:\\
                                          \;\;\;\;b \cdot y\\
                                          
                                          
                                          \end{array}
                                          \end{array}
                                          
                                          Derivation
                                          1. Split input into 2 regimes
                                          2. if (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y #s(literal 1 binary64)) z)) (*.f64 (-.f64 t #s(literal 1 binary64)) a)) (*.f64 (-.f64 (+.f64 y t) #s(literal 2 binary64)) b)) < -inf.0 or 5.00000000000000029e278 < (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y #s(literal 1 binary64)) z)) (*.f64 (-.f64 t #s(literal 1 binary64)) a)) (*.f64 (-.f64 (+.f64 y t) #s(literal 2 binary64)) b))

                                            1. Initial program 88.5%

                                              \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                            2. Taylor expanded in y around inf

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

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

                                                \[\leadsto \left(b - z\right) \cdot \color{blue}{y} \]
                                              3. lower--.f6449.7

                                                \[\leadsto \left(b - z\right) \cdot y \]
                                            4. Applied rewrites49.7%

                                              \[\leadsto \color{blue}{\left(b - z\right) \cdot y} \]
                                            5. Taylor expanded in z around 0

                                              \[\leadsto b \cdot y \]
                                            6. Step-by-step derivation
                                              1. Applied rewrites27.6%

                                                \[\leadsto b \cdot y \]

                                              if -inf.0 < (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y #s(literal 1 binary64)) z)) (*.f64 (-.f64 t #s(literal 1 binary64)) a)) (*.f64 (-.f64 (+.f64 y t) #s(literal 2 binary64)) b)) < 5.00000000000000029e278

                                              1. Initial program 100.0%

                                                \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                              2. Taylor expanded in z around 0

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

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

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

                                                  \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                                                4. +-commutativeN/A

                                                  \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                                                5. lower-fma.f64N/A

                                                  \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
                                                6. lift--.f64N/A

                                                  \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                                7. +-commutativeN/A

                                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                                8. lower-+.f64N/A

                                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                                9. *-commutativeN/A

                                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                                                10. lift--.f64N/A

                                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
                                                11. lift-*.f6474.5

                                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                                              4. Applied rewrites74.5%

                                                \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
                                              5. Taylor expanded in t around 0

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

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

                                                  \[\leadsto \left(b \cdot \left(y - 2\right) + x\right) - -1 \cdot a \]
                                                3. *-commutativeN/A

                                                  \[\leadsto \left(\left(y - 2\right) \cdot b + x\right) - -1 \cdot a \]
                                                4. lower-fma.f64N/A

                                                  \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                                                5. lower--.f64N/A

                                                  \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                                                6. mul-1-negN/A

                                                  \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(\mathsf{neg}\left(a\right)\right) \]
                                                7. lift-neg.f6454.9

                                                  \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(-a\right) \]
                                              7. Applied rewrites54.9%

                                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \color{blue}{\left(-a\right)} \]
                                              8. Taylor expanded in b around 0

                                                \[\leadsto a + x \]
                                              9. Step-by-step derivation
                                                1. lower-+.f6436.9

                                                  \[\leadsto a + x \]
                                              10. Applied rewrites36.9%

                                                \[\leadsto a + x \]
                                            7. Recombined 2 regimes into one program.
                                            8. Add Preprocessing

                                            Alternative 27: 24.6% accurate, 7.6× speedup?

                                            \[\begin{array}{l} \\ a + x \end{array} \]
                                            (FPCore (x y z t a b) :precision binary64 (+ a x))
                                            double code(double x, double y, double z, double t, double a, double b) {
                                            	return a + x;
                                            }
                                            
                                            module fmin_fmax_functions
                                                implicit none
                                                private
                                                public fmax
                                                public fmin
                                            
                                                interface fmax
                                                    module procedure fmax88
                                                    module procedure fmax44
                                                    module procedure fmax84
                                                    module procedure fmax48
                                                end interface
                                                interface fmin
                                                    module procedure fmin88
                                                    module procedure fmin44
                                                    module procedure fmin84
                                                    module procedure fmin48
                                                end interface
                                            contains
                                                real(8) function fmax88(x, y) result (res)
                                                    real(8), intent (in) :: x
                                                    real(8), intent (in) :: y
                                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                end function
                                                real(4) function fmax44(x, y) result (res)
                                                    real(4), intent (in) :: x
                                                    real(4), intent (in) :: y
                                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                end function
                                                real(8) function fmax84(x, y) result(res)
                                                    real(8), intent (in) :: x
                                                    real(4), intent (in) :: y
                                                    res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                end function
                                                real(8) function fmax48(x, y) result(res)
                                                    real(4), intent (in) :: x
                                                    real(8), intent (in) :: y
                                                    res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                end function
                                                real(8) function fmin88(x, y) result (res)
                                                    real(8), intent (in) :: x
                                                    real(8), intent (in) :: y
                                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                end function
                                                real(4) function fmin44(x, y) result (res)
                                                    real(4), intent (in) :: x
                                                    real(4), intent (in) :: y
                                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                end function
                                                real(8) function fmin84(x, y) result(res)
                                                    real(8), intent (in) :: x
                                                    real(4), intent (in) :: y
                                                    res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                end function
                                                real(8) function fmin48(x, y) result(res)
                                                    real(4), intent (in) :: x
                                                    real(8), intent (in) :: y
                                                    res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                end function
                                            end module
                                            
                                            real(8) function code(x, y, z, t, a, b)
                                            use fmin_fmax_functions
                                                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 = a + x
                                            end function
                                            
                                            public static double code(double x, double y, double z, double t, double a, double b) {
                                            	return a + x;
                                            }
                                            
                                            def code(x, y, z, t, a, b):
                                            	return a + x
                                            
                                            function code(x, y, z, t, a, b)
                                            	return Float64(a + x)
                                            end
                                            
                                            function tmp = code(x, y, z, t, a, b)
                                            	tmp = a + x;
                                            end
                                            
                                            code[x_, y_, z_, t_, a_, b_] := N[(a + x), $MachinePrecision]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            a + x
                                            \end{array}
                                            
                                            Derivation
                                            1. Initial program 95.1%

                                              \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                            2. Taylor expanded in z around 0

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

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

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

                                                \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                                              4. +-commutativeN/A

                                                \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                                              5. lower-fma.f64N/A

                                                \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
                                              6. lift--.f64N/A

                                                \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                              7. +-commutativeN/A

                                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                              8. lower-+.f64N/A

                                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                              9. *-commutativeN/A

                                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                                              10. lift--.f64N/A

                                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
                                              11. lift-*.f6472.9

                                                \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                                            4. Applied rewrites72.9%

                                              \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
                                            5. Taylor expanded in t around 0

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

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

                                                \[\leadsto \left(b \cdot \left(y - 2\right) + x\right) - -1 \cdot a \]
                                              3. *-commutativeN/A

                                                \[\leadsto \left(\left(y - 2\right) \cdot b + x\right) - -1 \cdot a \]
                                              4. lower-fma.f64N/A

                                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                                              5. lower--.f64N/A

                                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                                              6. mul-1-negN/A

                                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(\mathsf{neg}\left(a\right)\right) \]
                                              7. lift-neg.f6446.2

                                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(-a\right) \]
                                            7. Applied rewrites46.2%

                                              \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \color{blue}{\left(-a\right)} \]
                                            8. Taylor expanded in b around 0

                                              \[\leadsto a + x \]
                                            9. Step-by-step derivation
                                              1. lower-+.f6424.6

                                                \[\leadsto a + x \]
                                            10. Applied rewrites24.6%

                                              \[\leadsto a + x \]
                                            11. Add Preprocessing

                                            Alternative 28: 21.1% accurate, 3.3× speedup?

                                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -1.6 \cdot 10^{+79}:\\ \;\;\;\;a\\ \mathbf{elif}\;a \leq 3.3 \cdot 10^{+115}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;a\\ \end{array} \end{array} \]
                                            (FPCore (x y z t a b)
                                             :precision binary64
                                             (if (<= a -1.6e+79) a (if (<= a 3.3e+115) x a)))
                                            double code(double x, double y, double z, double t, double a, double b) {
                                            	double tmp;
                                            	if (a <= -1.6e+79) {
                                            		tmp = a;
                                            	} else if (a <= 3.3e+115) {
                                            		tmp = x;
                                            	} else {
                                            		tmp = a;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            module fmin_fmax_functions
                                                implicit none
                                                private
                                                public fmax
                                                public fmin
                                            
                                                interface fmax
                                                    module procedure fmax88
                                                    module procedure fmax44
                                                    module procedure fmax84
                                                    module procedure fmax48
                                                end interface
                                                interface fmin
                                                    module procedure fmin88
                                                    module procedure fmin44
                                                    module procedure fmin84
                                                    module procedure fmin48
                                                end interface
                                            contains
                                                real(8) function fmax88(x, y) result (res)
                                                    real(8), intent (in) :: x
                                                    real(8), intent (in) :: y
                                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                end function
                                                real(4) function fmax44(x, y) result (res)
                                                    real(4), intent (in) :: x
                                                    real(4), intent (in) :: y
                                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                end function
                                                real(8) function fmax84(x, y) result(res)
                                                    real(8), intent (in) :: x
                                                    real(4), intent (in) :: y
                                                    res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                end function
                                                real(8) function fmax48(x, y) result(res)
                                                    real(4), intent (in) :: x
                                                    real(8), intent (in) :: y
                                                    res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                end function
                                                real(8) function fmin88(x, y) result (res)
                                                    real(8), intent (in) :: x
                                                    real(8), intent (in) :: y
                                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                end function
                                                real(4) function fmin44(x, y) result (res)
                                                    real(4), intent (in) :: x
                                                    real(4), intent (in) :: y
                                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                end function
                                                real(8) function fmin84(x, y) result(res)
                                                    real(8), intent (in) :: x
                                                    real(4), intent (in) :: y
                                                    res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                end function
                                                real(8) function fmin48(x, y) result(res)
                                                    real(4), intent (in) :: x
                                                    real(8), intent (in) :: y
                                                    res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                end function
                                            end module
                                            
                                            real(8) function code(x, y, z, t, a, b)
                                            use fmin_fmax_functions
                                                real(8), intent (in) :: x
                                                real(8), intent (in) :: y
                                                real(8), intent (in) :: z
                                                real(8), intent (in) :: t
                                                real(8), intent (in) :: a
                                                real(8), intent (in) :: b
                                                real(8) :: tmp
                                                if (a <= (-1.6d+79)) then
                                                    tmp = a
                                                else if (a <= 3.3d+115) then
                                                    tmp = x
                                                else
                                                    tmp = a
                                                end if
                                                code = tmp
                                            end function
                                            
                                            public static double code(double x, double y, double z, double t, double a, double b) {
                                            	double tmp;
                                            	if (a <= -1.6e+79) {
                                            		tmp = a;
                                            	} else if (a <= 3.3e+115) {
                                            		tmp = x;
                                            	} else {
                                            		tmp = a;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            def code(x, y, z, t, a, b):
                                            	tmp = 0
                                            	if a <= -1.6e+79:
                                            		tmp = a
                                            	elif a <= 3.3e+115:
                                            		tmp = x
                                            	else:
                                            		tmp = a
                                            	return tmp
                                            
                                            function code(x, y, z, t, a, b)
                                            	tmp = 0.0
                                            	if (a <= -1.6e+79)
                                            		tmp = a;
                                            	elseif (a <= 3.3e+115)
                                            		tmp = x;
                                            	else
                                            		tmp = a;
                                            	end
                                            	return tmp
                                            end
                                            
                                            function tmp_2 = code(x, y, z, t, a, b)
                                            	tmp = 0.0;
                                            	if (a <= -1.6e+79)
                                            		tmp = a;
                                            	elseif (a <= 3.3e+115)
                                            		tmp = x;
                                            	else
                                            		tmp = a;
                                            	end
                                            	tmp_2 = tmp;
                                            end
                                            
                                            code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -1.6e+79], a, If[LessEqual[a, 3.3e+115], x, a]]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            \begin{array}{l}
                                            \mathbf{if}\;a \leq -1.6 \cdot 10^{+79}:\\
                                            \;\;\;\;a\\
                                            
                                            \mathbf{elif}\;a \leq 3.3 \cdot 10^{+115}:\\
                                            \;\;\;\;x\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;a\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            
                                            Derivation
                                            1. Split input into 2 regimes
                                            2. if a < -1.60000000000000001e79 or 3.30000000000000005e115 < a

                                              1. Initial program 90.5%

                                                \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                              2. Taylor expanded in z around 0

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

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

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

                                                  \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                                                4. +-commutativeN/A

                                                  \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
                                                5. lower-fma.f64N/A

                                                  \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
                                                6. lift--.f64N/A

                                                  \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                                7. +-commutativeN/A

                                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                                8. lower-+.f64N/A

                                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
                                                9. *-commutativeN/A

                                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                                                10. lift--.f64N/A

                                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
                                                11. lift-*.f6479.5

                                                  \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
                                              4. Applied rewrites79.5%

                                                \[\leadsto \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a} \]
                                              5. Taylor expanded in t around 0

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

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

                                                  \[\leadsto \left(b \cdot \left(y - 2\right) + x\right) - -1 \cdot a \]
                                                3. *-commutativeN/A

                                                  \[\leadsto \left(\left(y - 2\right) \cdot b + x\right) - -1 \cdot a \]
                                                4. lower-fma.f64N/A

                                                  \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                                                5. lower--.f64N/A

                                                  \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - -1 \cdot a \]
                                                6. mul-1-negN/A

                                                  \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(\mathsf{neg}\left(a\right)\right) \]
                                                7. lift-neg.f6446.1

                                                  \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \left(-a\right) \]
                                              7. Applied rewrites46.1%

                                                \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) - \color{blue}{\left(-a\right)} \]
                                              8. Taylor expanded in a around inf

                                                \[\leadsto a \]
                                              9. Step-by-step derivation
                                                1. Applied rewrites23.7%

                                                  \[\leadsto a \]

                                                if -1.60000000000000001e79 < a < 3.30000000000000005e115

                                                1. Initial program 97.5%

                                                  \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                                2. Taylor expanded in x around inf

                                                  \[\leadsto \color{blue}{x} \]
                                                3. Step-by-step derivation
                                                  1. Applied rewrites19.8%

                                                    \[\leadsto \color{blue}{x} \]
                                                4. Recombined 2 regimes into one program.
                                                5. Add Preprocessing

                                                Alternative 29: 15.7% accurate, 28.4× 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;
                                                }
                                                
                                                module fmin_fmax_functions
                                                    implicit none
                                                    private
                                                    public fmax
                                                    public fmin
                                                
                                                    interface fmax
                                                        module procedure fmax88
                                                        module procedure fmax44
                                                        module procedure fmax84
                                                        module procedure fmax48
                                                    end interface
                                                    interface fmin
                                                        module procedure fmin88
                                                        module procedure fmin44
                                                        module procedure fmin84
                                                        module procedure fmin48
                                                    end interface
                                                contains
                                                    real(8) function fmax88(x, y) result (res)
                                                        real(8), intent (in) :: x
                                                        real(8), intent (in) :: y
                                                        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                    end function
                                                    real(4) function fmax44(x, y) result (res)
                                                        real(4), intent (in) :: x
                                                        real(4), intent (in) :: y
                                                        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                    end function
                                                    real(8) function fmax84(x, y) result(res)
                                                        real(8), intent (in) :: x
                                                        real(4), intent (in) :: y
                                                        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                    end function
                                                    real(8) function fmax48(x, y) result(res)
                                                        real(4), intent (in) :: x
                                                        real(8), intent (in) :: y
                                                        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                    end function
                                                    real(8) function fmin88(x, y) result (res)
                                                        real(8), intent (in) :: x
                                                        real(8), intent (in) :: y
                                                        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                    end function
                                                    real(4) function fmin44(x, y) result (res)
                                                        real(4), intent (in) :: x
                                                        real(4), intent (in) :: y
                                                        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                    end function
                                                    real(8) function fmin84(x, y) result(res)
                                                        real(8), intent (in) :: x
                                                        real(4), intent (in) :: y
                                                        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                    end function
                                                    real(8) function fmin48(x, y) result(res)
                                                        real(4), intent (in) :: x
                                                        real(8), intent (in) :: y
                                                        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                    end function
                                                end module
                                                
                                                real(8) function code(x, y, z, t, a, b)
                                                use fmin_fmax_functions
                                                    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.1%

                                                  \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                                2. Taylor expanded in x around inf

                                                  \[\leadsto \color{blue}{x} \]
                                                3. Step-by-step derivation
                                                  1. Applied rewrites15.7%

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

                                                  Reproduce

                                                  ?
                                                  herbie shell --seed 2025120 
                                                  (FPCore (x y z t a b)
                                                    :name "Statistics.Distribution.Beta:$centropy from math-functions-0.1.5.2"
                                                    :precision binary64
                                                    (+ (- (- x (* (- y 1.0) z)) (* (- t 1.0) a)) (* (- (+ y t) 2.0) b)))