Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3

Percentage Accurate: 67.7% → 90.5%
Time: 9.6s
Alternatives: 21
Speedup: 0.8×

Specification

?
\[\begin{array}{l} \\ x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \end{array} \]
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) (- t x)) (- a z))))
double code(double x, double y, double z, double t, double a) {
	return x + (((y - z) * (t - x)) / (a - z));
}
real(8) function code(x, y, z, t, a)
    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
    code = x + (((y - z) * (t - x)) / (a - z))
end function
public static double code(double x, double y, double z, double t, double a) {
	return x + (((y - z) * (t - x)) / (a - z));
}
def code(x, y, z, t, a):
	return x + (((y - z) * (t - x)) / (a - z))
function code(x, y, z, t, a)
	return Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z)))
end
function tmp = code(x, y, z, t, a)
	tmp = x + (((y - z) * (t - x)) / (a - z));
end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 21 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: 67.7% accurate, 1.0× speedup?

\[\begin{array}{l} \\ x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \end{array} \]
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) (- t x)) (- a z))))
double code(double x, double y, double z, double t, double a) {
	return x + (((y - z) * (t - x)) / (a - z));
}
real(8) function code(x, y, z, t, a)
    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
    code = x + (((y - z) * (t - x)) / (a - z))
end function
public static double code(double x, double y, double z, double t, double a) {
	return x + (((y - z) * (t - x)) / (a - z));
}
def code(x, y, z, t, a):
	return x + (((y - z) * (t - x)) / (a - z))
function code(x, y, z, t, a)
	return Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z)))
end
function tmp = code(x, y, z, t, a)
	tmp = x + (((y - z) * (t - x)) / (a - z));
end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Alternative 1: 90.5% accurate, 0.3× speedup?

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

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

\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;t - \frac{\left(a - y\right) \cdot x}{z}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -2.00000000000000003e-294 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z)))

    1. Initial program 76.5%

      \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. lift-+.f64N/A

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

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

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

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

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

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
      8. lower-/.f6491.3

        \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
    4. Applied rewrites91.3%

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

    if -2.00000000000000003e-294 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0

    1. Initial program 4.5%

      \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. lift-+.f64N/A

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

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

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

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

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

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
      8. lower-/.f644.5

        \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
    4. Applied rewrites4.5%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
    5. Taylor expanded in z around inf

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

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

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

        \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \color{blue}{\frac{-1 \cdot \left(a \cdot \left(t - x\right)\right)}{z}}\right) \]
      4. mul-1-negN/A

        \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \frac{\color{blue}{\mathsf{neg}\left(a \cdot \left(t - x\right)\right)}}{z}\right) \]
      5. div-subN/A

        \[\leadsto t + \color{blue}{\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \left(\mathsf{neg}\left(a \cdot \left(t - x\right)\right)\right)}{z}} \]
      6. mul-1-negN/A

        \[\leadsto t + \frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \color{blue}{-1 \cdot \left(a \cdot \left(t - x\right)\right)}}{z} \]
      7. distribute-lft-out--N/A

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

        \[\leadsto t + \color{blue}{-1 \cdot \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
      9. mul-1-negN/A

        \[\leadsto t + \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} \]
      10. unsub-negN/A

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

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

        \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
    7. Applied rewrites99.6%

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

      \[\leadsto t - \frac{-1 \cdot \left(x \cdot \left(y - a\right)\right)}{z} \]
    9. Step-by-step derivation
      1. Applied rewrites99.6%

        \[\leadsto t - \frac{\left(-x\right) \cdot \left(y - a\right)}{z} \]
    10. Recombined 2 regimes into one program.
    11. Final simplification91.9%

      \[\leadsto \begin{array}{l} \mathbf{if}\;x - \frac{\left(x - t\right) \cdot \left(y - z\right)}{a - z} \leq -2 \cdot 10^{-294}:\\ \;\;\;\;\mathsf{fma}\left(t - x, \frac{z - y}{z - a}, x\right)\\ \mathbf{elif}\;x - \frac{\left(x - t\right) \cdot \left(y - z\right)}{a - z} \leq 0:\\ \;\;\;\;t - \frac{\left(a - y\right) \cdot x}{z}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(t - x, \frac{z - y}{z - a}, x\right)\\ \end{array} \]
    12. Add Preprocessing

    Alternative 2: 67.5% accurate, 0.6× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := t - \frac{\left(a - y\right) \cdot x}{z}\\ \mathbf{if}\;z \leq -1.9 \cdot 10^{+77}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -1.25 \cdot 10^{-127}:\\ \;\;\;\;\mathsf{fma}\left(z - y, \frac{x}{a - z}, x\right)\\ \mathbf{elif}\;z \leq 10^{+47}:\\ \;\;\;\;\mathsf{fma}\left(t - x, \frac{y - z}{a}, x\right)\\ \mathbf{elif}\;z \leq 2.2 \cdot 10^{+161}:\\ \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
    (FPCore (x y z t a)
     :precision binary64
     (let* ((t_1 (- t (/ (* (- a y) x) z))))
       (if (<= z -1.9e+77)
         t_1
         (if (<= z -1.25e-127)
           (fma (- z y) (/ x (- a z)) x)
           (if (<= z 1e+47)
             (fma (- t x) (/ (- y z) a) x)
             (if (<= z 2.2e+161) (* (/ t (- z a)) (- z y)) t_1))))))
    double code(double x, double y, double z, double t, double a) {
    	double t_1 = t - (((a - y) * x) / z);
    	double tmp;
    	if (z <= -1.9e+77) {
    		tmp = t_1;
    	} else if (z <= -1.25e-127) {
    		tmp = fma((z - y), (x / (a - z)), x);
    	} else if (z <= 1e+47) {
    		tmp = fma((t - x), ((y - z) / a), x);
    	} else if (z <= 2.2e+161) {
    		tmp = (t / (z - a)) * (z - y);
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a)
    	t_1 = Float64(t - Float64(Float64(Float64(a - y) * x) / z))
    	tmp = 0.0
    	if (z <= -1.9e+77)
    		tmp = t_1;
    	elseif (z <= -1.25e-127)
    		tmp = fma(Float64(z - y), Float64(x / Float64(a - z)), x);
    	elseif (z <= 1e+47)
    		tmp = fma(Float64(t - x), Float64(Float64(y - z) / a), x);
    	elseif (z <= 2.2e+161)
    		tmp = Float64(Float64(t / Float64(z - a)) * Float64(z - y));
    	else
    		tmp = t_1;
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(N[(a - y), $MachinePrecision] * x), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.9e+77], t$95$1, If[LessEqual[z, -1.25e-127], N[(N[(z - y), $MachinePrecision] * N[(x / N[(a - z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 1e+47], N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 2.2e+161], N[(N[(t / N[(z - a), $MachinePrecision]), $MachinePrecision] * N[(z - y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := t - \frac{\left(a - y\right) \cdot x}{z}\\
    \mathbf{if}\;z \leq -1.9 \cdot 10^{+77}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;z \leq -1.25 \cdot 10^{-127}:\\
    \;\;\;\;\mathsf{fma}\left(z - y, \frac{x}{a - z}, x\right)\\
    
    \mathbf{elif}\;z \leq 10^{+47}:\\
    \;\;\;\;\mathsf{fma}\left(t - x, \frac{y - z}{a}, x\right)\\
    
    \mathbf{elif}\;z \leq 2.2 \cdot 10^{+161}:\\
    \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 4 regimes
    2. if z < -1.9000000000000001e77 or 2.2e161 < z

      1. Initial program 36.5%

        \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
      2. Add Preprocessing
      3. Step-by-step derivation
        1. lift-+.f64N/A

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

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

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

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

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

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

          \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
        8. lower-/.f6464.7

          \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
      4. Applied rewrites64.7%

        \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
      5. Taylor expanded in z around inf

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

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

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

          \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \color{blue}{\frac{-1 \cdot \left(a \cdot \left(t - x\right)\right)}{z}}\right) \]
        4. mul-1-negN/A

          \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \frac{\color{blue}{\mathsf{neg}\left(a \cdot \left(t - x\right)\right)}}{z}\right) \]
        5. div-subN/A

          \[\leadsto t + \color{blue}{\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \left(\mathsf{neg}\left(a \cdot \left(t - x\right)\right)\right)}{z}} \]
        6. mul-1-negN/A

          \[\leadsto t + \frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \color{blue}{-1 \cdot \left(a \cdot \left(t - x\right)\right)}}{z} \]
        7. distribute-lft-out--N/A

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

          \[\leadsto t + \color{blue}{-1 \cdot \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
        9. mul-1-negN/A

          \[\leadsto t + \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} \]
        10. unsub-negN/A

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

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

          \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
      7. Applied rewrites72.1%

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

        \[\leadsto t - \frac{-1 \cdot \left(x \cdot \left(y - a\right)\right)}{z} \]
      9. Step-by-step derivation
        1. Applied rewrites74.2%

          \[\leadsto t - \frac{\left(-x\right) \cdot \left(y - a\right)}{z} \]

        if -1.9000000000000001e77 < z < -1.2499999999999999e-127

        1. Initial program 86.4%

          \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
        2. Add Preprocessing
        3. Taylor expanded in x around inf

          \[\leadsto \color{blue}{x \cdot \left(1 + -1 \cdot \frac{y - z}{a - z}\right)} \]
        4. Step-by-step derivation
          1. +-commutativeN/A

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

            \[\leadsto \color{blue}{\left(-1 \cdot \frac{y - z}{a - z}\right) \cdot x + 1 \cdot x} \]
          3. mul-1-negN/A

            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{y - z}{a - z}\right)\right)} \cdot x + 1 \cdot x \]
          4. distribute-lft-neg-outN/A

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

            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{x \cdot \frac{y - z}{a - z}}\right)\right) + 1 \cdot x \]
          6. associate-/l*N/A

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

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

            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - z\right) \cdot \frac{x}{a - z}}\right)\right) + 1 \cdot x \]
          9. distribute-lft-neg-inN/A

            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(y - z\right)\right)\right) \cdot \frac{x}{a - z}} + 1 \cdot x \]
          10. mul-1-negN/A

            \[\leadsto \color{blue}{\left(-1 \cdot \left(y - z\right)\right)} \cdot \frac{x}{a - z} + 1 \cdot x \]
          11. *-lft-identityN/A

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

            \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(y - z\right), \frac{x}{a - z}, x\right)} \]
        5. Applied rewrites65.5%

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

        if -1.2499999999999999e-127 < z < 1e47

        1. Initial program 90.7%

          \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
        2. Add Preprocessing
        3. Step-by-step derivation
          1. lift-+.f64N/A

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

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

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

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

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

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

            \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
          8. lower-/.f6494.8

            \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
        4. Applied rewrites94.8%

          \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
        5. Taylor expanded in a around inf

          \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a}}, x\right) \]
        6. Step-by-step derivation
          1. lower-/.f64N/A

            \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a}}, x\right) \]
          2. lower--.f6482.6

            \[\leadsto \mathsf{fma}\left(t - x, \frac{\color{blue}{y - z}}{a}, x\right) \]
        7. Applied rewrites82.6%

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

        if 1e47 < z < 2.2e161

        1. Initial program 57.6%

          \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
        2. Add Preprocessing
        3. Taylor expanded in x around 0

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

            \[\leadsto \frac{\color{blue}{\left(y - z\right) \cdot t}}{a - z} \]
          2. associate-/l*N/A

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

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

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

            \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{t}{a - z}} \]
          6. lower--.f6474.0

            \[\leadsto \left(y - z\right) \cdot \frac{t}{\color{blue}{a - z}} \]
        5. Applied rewrites74.0%

          \[\leadsto \color{blue}{\left(y - z\right) \cdot \frac{t}{a - z}} \]
      10. Recombined 4 regimes into one program.
      11. Final simplification76.2%

        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.9 \cdot 10^{+77}:\\ \;\;\;\;t - \frac{\left(a - y\right) \cdot x}{z}\\ \mathbf{elif}\;z \leq -1.25 \cdot 10^{-127}:\\ \;\;\;\;\mathsf{fma}\left(z - y, \frac{x}{a - z}, x\right)\\ \mathbf{elif}\;z \leq 10^{+47}:\\ \;\;\;\;\mathsf{fma}\left(t - x, \frac{y - z}{a}, x\right)\\ \mathbf{elif}\;z \leq 2.2 \cdot 10^{+161}:\\ \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\ \mathbf{else}:\\ \;\;\;\;t - \frac{\left(a - y\right) \cdot x}{z}\\ \end{array} \]
      12. Add Preprocessing

      Alternative 3: 63.8% accurate, 0.6× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.48 \cdot 10^{+203}:\\ \;\;\;\;\frac{z}{z - a} \cdot t\\ \mathbf{elif}\;z \leq -1.25 \cdot 10^{-127}:\\ \;\;\;\;\mathsf{fma}\left(z - y, \frac{x}{a - z}, x\right)\\ \mathbf{elif}\;z \leq 10^{+47}:\\ \;\;\;\;\mathsf{fma}\left(t - x, \frac{y - z}{a}, x\right)\\ \mathbf{elif}\;z \leq 6.4 \cdot 10^{+164}:\\ \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \end{array} \end{array} \]
      (FPCore (x y z t a)
       :precision binary64
       (if (<= z -1.48e+203)
         (* (/ z (- z a)) t)
         (if (<= z -1.25e-127)
           (fma (- z y) (/ x (- a z)) x)
           (if (<= z 1e+47)
             (fma (- t x) (/ (- y z) a) x)
             (if (<= z 6.4e+164)
               (* (/ t (- z a)) (- z y))
               (fma a (/ (- t x) z) t))))))
      double code(double x, double y, double z, double t, double a) {
      	double tmp;
      	if (z <= -1.48e+203) {
      		tmp = (z / (z - a)) * t;
      	} else if (z <= -1.25e-127) {
      		tmp = fma((z - y), (x / (a - z)), x);
      	} else if (z <= 1e+47) {
      		tmp = fma((t - x), ((y - z) / a), x);
      	} else if (z <= 6.4e+164) {
      		tmp = (t / (z - a)) * (z - y);
      	} else {
      		tmp = fma(a, ((t - x) / z), t);
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a)
      	tmp = 0.0
      	if (z <= -1.48e+203)
      		tmp = Float64(Float64(z / Float64(z - a)) * t);
      	elseif (z <= -1.25e-127)
      		tmp = fma(Float64(z - y), Float64(x / Float64(a - z)), x);
      	elseif (z <= 1e+47)
      		tmp = fma(Float64(t - x), Float64(Float64(y - z) / a), x);
      	elseif (z <= 6.4e+164)
      		tmp = Float64(Float64(t / Float64(z - a)) * Float64(z - y));
      	else
      		tmp = fma(a, Float64(Float64(t - x) / z), t);
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.48e+203], N[(N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, -1.25e-127], N[(N[(z - y), $MachinePrecision] * N[(x / N[(a - z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 1e+47], N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 6.4e+164], N[(N[(t / N[(z - a), $MachinePrecision]), $MachinePrecision] * N[(z - y), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision]]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;z \leq -1.48 \cdot 10^{+203}:\\
      \;\;\;\;\frac{z}{z - a} \cdot t\\
      
      \mathbf{elif}\;z \leq -1.25 \cdot 10^{-127}:\\
      \;\;\;\;\mathsf{fma}\left(z - y, \frac{x}{a - z}, x\right)\\
      
      \mathbf{elif}\;z \leq 10^{+47}:\\
      \;\;\;\;\mathsf{fma}\left(t - x, \frac{y - z}{a}, x\right)\\
      
      \mathbf{elif}\;z \leq 6.4 \cdot 10^{+164}:\\
      \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 5 regimes
      2. if z < -1.4799999999999999e203

        1. Initial program 30.6%

          \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
        2. Add Preprocessing
        3. Step-by-step derivation
          1. lift-+.f64N/A

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

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

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

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

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

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

            \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
          8. lower-/.f6469.5

            \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
        4. Applied rewrites69.5%

          \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
        5. Taylor expanded in x around 0

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

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

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

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

            \[\leadsto \frac{\color{blue}{\left(y - z\right)} \cdot t}{a - z} \]
          5. lower--.f6448.2

            \[\leadsto \frac{\left(y - z\right) \cdot t}{\color{blue}{a - z}} \]
        7. Applied rewrites48.2%

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

          \[\leadsto -1 \cdot \color{blue}{\frac{t \cdot z}{a - z}} \]
        9. Step-by-step derivation
          1. Applied rewrites91.3%

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

          if -1.4799999999999999e203 < z < -1.2499999999999999e-127

          1. Initial program 77.6%

            \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
          2. Add Preprocessing
          3. Taylor expanded in x around inf

            \[\leadsto \color{blue}{x \cdot \left(1 + -1 \cdot \frac{y - z}{a - z}\right)} \]
          4. Step-by-step derivation
            1. +-commutativeN/A

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

              \[\leadsto \color{blue}{\left(-1 \cdot \frac{y - z}{a - z}\right) \cdot x + 1 \cdot x} \]
            3. mul-1-negN/A

              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{y - z}{a - z}\right)\right)} \cdot x + 1 \cdot x \]
            4. distribute-lft-neg-outN/A

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

              \[\leadsto \left(\mathsf{neg}\left(\color{blue}{x \cdot \frac{y - z}{a - z}}\right)\right) + 1 \cdot x \]
            6. associate-/l*N/A

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

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

              \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - z\right) \cdot \frac{x}{a - z}}\right)\right) + 1 \cdot x \]
            9. distribute-lft-neg-inN/A

              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(y - z\right)\right)\right) \cdot \frac{x}{a - z}} + 1 \cdot x \]
            10. mul-1-negN/A

              \[\leadsto \color{blue}{\left(-1 \cdot \left(y - z\right)\right)} \cdot \frac{x}{a - z} + 1 \cdot x \]
            11. *-lft-identityN/A

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

              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(y - z\right), \frac{x}{a - z}, x\right)} \]
          5. Applied rewrites55.3%

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

          if -1.2499999999999999e-127 < z < 1e47

          1. Initial program 90.7%

            \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
          2. Add Preprocessing
          3. Step-by-step derivation
            1. lift-+.f64N/A

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

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

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

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

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

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

              \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
            8. lower-/.f6494.8

              \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
          4. Applied rewrites94.8%

            \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
          5. Taylor expanded in a around inf

            \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a}}, x\right) \]
          6. Step-by-step derivation
            1. lower-/.f64N/A

              \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a}}, x\right) \]
            2. lower--.f6482.6

              \[\leadsto \mathsf{fma}\left(t - x, \frac{\color{blue}{y - z}}{a}, x\right) \]
          7. Applied rewrites82.6%

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

          if 1e47 < z < 6.3999999999999996e164

          1. Initial program 55.1%

            \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
          2. Add Preprocessing
          3. Taylor expanded in x around 0

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

              \[\leadsto \frac{\color{blue}{\left(y - z\right) \cdot t}}{a - z} \]
            2. associate-/l*N/A

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

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

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

              \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{t}{a - z}} \]
            6. lower--.f6470.9

              \[\leadsto \left(y - z\right) \cdot \frac{t}{\color{blue}{a - z}} \]
          5. Applied rewrites70.9%

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

          if 6.3999999999999996e164 < z

          1. Initial program 22.8%

            \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
          2. Add Preprocessing
          3. Step-by-step derivation
            1. lift-+.f64N/A

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

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

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

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

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

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

              \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
            8. lower-/.f6454.3

              \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
          4. Applied rewrites54.3%

            \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
          5. Taylor expanded in z around inf

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

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

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

              \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \color{blue}{\frac{-1 \cdot \left(a \cdot \left(t - x\right)\right)}{z}}\right) \]
            4. mul-1-negN/A

              \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \frac{\color{blue}{\mathsf{neg}\left(a \cdot \left(t - x\right)\right)}}{z}\right) \]
            5. div-subN/A

              \[\leadsto t + \color{blue}{\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \left(\mathsf{neg}\left(a \cdot \left(t - x\right)\right)\right)}{z}} \]
            6. mul-1-negN/A

              \[\leadsto t + \frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \color{blue}{-1 \cdot \left(a \cdot \left(t - x\right)\right)}}{z} \]
            7. distribute-lft-out--N/A

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

              \[\leadsto t + \color{blue}{-1 \cdot \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
            9. mul-1-negN/A

              \[\leadsto t + \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} \]
            10. unsub-negN/A

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

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

              \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
          7. Applied rewrites74.1%

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

            \[\leadsto t - \color{blue}{-1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
          9. Step-by-step derivation
            1. Applied rewrites80.3%

              \[\leadsto \mathsf{fma}\left(a, \color{blue}{\frac{t - x}{z}}, t\right) \]
          10. Recombined 5 regimes into one program.
          11. Final simplification74.5%

            \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.48 \cdot 10^{+203}:\\ \;\;\;\;\frac{z}{z - a} \cdot t\\ \mathbf{elif}\;z \leq -1.25 \cdot 10^{-127}:\\ \;\;\;\;\mathsf{fma}\left(z - y, \frac{x}{a - z}, x\right)\\ \mathbf{elif}\;z \leq 10^{+47}:\\ \;\;\;\;\mathsf{fma}\left(t - x, \frac{y - z}{a}, x\right)\\ \mathbf{elif}\;z \leq 6.4 \cdot 10^{+164}:\\ \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \end{array} \]
          12. Add Preprocessing

          Alternative 4: 62.7% accurate, 0.6× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.48 \cdot 10^{+203}:\\ \;\;\;\;\frac{z}{z - a} \cdot t\\ \mathbf{elif}\;z \leq -1.25 \cdot 10^{-127}:\\ \;\;\;\;\mathsf{fma}\left(z - y, \frac{x}{a - z}, x\right)\\ \mathbf{elif}\;z \leq 1.04 \cdot 10^{+46}:\\ \;\;\;\;\mathsf{fma}\left(y - z, \frac{t - x}{a}, x\right)\\ \mathbf{elif}\;z \leq 6.4 \cdot 10^{+164}:\\ \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \end{array} \end{array} \]
          (FPCore (x y z t a)
           :precision binary64
           (if (<= z -1.48e+203)
             (* (/ z (- z a)) t)
             (if (<= z -1.25e-127)
               (fma (- z y) (/ x (- a z)) x)
               (if (<= z 1.04e+46)
                 (fma (- y z) (/ (- t x) a) x)
                 (if (<= z 6.4e+164)
                   (* (/ t (- z a)) (- z y))
                   (fma a (/ (- t x) z) t))))))
          double code(double x, double y, double z, double t, double a) {
          	double tmp;
          	if (z <= -1.48e+203) {
          		tmp = (z / (z - a)) * t;
          	} else if (z <= -1.25e-127) {
          		tmp = fma((z - y), (x / (a - z)), x);
          	} else if (z <= 1.04e+46) {
          		tmp = fma((y - z), ((t - x) / a), x);
          	} else if (z <= 6.4e+164) {
          		tmp = (t / (z - a)) * (z - y);
          	} else {
          		tmp = fma(a, ((t - x) / z), t);
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a)
          	tmp = 0.0
          	if (z <= -1.48e+203)
          		tmp = Float64(Float64(z / Float64(z - a)) * t);
          	elseif (z <= -1.25e-127)
          		tmp = fma(Float64(z - y), Float64(x / Float64(a - z)), x);
          	elseif (z <= 1.04e+46)
          		tmp = fma(Float64(y - z), Float64(Float64(t - x) / a), x);
          	elseif (z <= 6.4e+164)
          		tmp = Float64(Float64(t / Float64(z - a)) * Float64(z - y));
          	else
          		tmp = fma(a, Float64(Float64(t - x) / z), t);
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.48e+203], N[(N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, -1.25e-127], N[(N[(z - y), $MachinePrecision] * N[(x / N[(a - z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 1.04e+46], N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 6.4e+164], N[(N[(t / N[(z - a), $MachinePrecision]), $MachinePrecision] * N[(z - y), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision]]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;z \leq -1.48 \cdot 10^{+203}:\\
          \;\;\;\;\frac{z}{z - a} \cdot t\\
          
          \mathbf{elif}\;z \leq -1.25 \cdot 10^{-127}:\\
          \;\;\;\;\mathsf{fma}\left(z - y, \frac{x}{a - z}, x\right)\\
          
          \mathbf{elif}\;z \leq 1.04 \cdot 10^{+46}:\\
          \;\;\;\;\mathsf{fma}\left(y - z, \frac{t - x}{a}, x\right)\\
          
          \mathbf{elif}\;z \leq 6.4 \cdot 10^{+164}:\\
          \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 5 regimes
          2. if z < -1.4799999999999999e203

            1. Initial program 30.6%

              \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
            2. Add Preprocessing
            3. Step-by-step derivation
              1. lift-+.f64N/A

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

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

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

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

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

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

                \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
              8. lower-/.f6469.5

                \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
            4. Applied rewrites69.5%

              \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
            5. Taylor expanded in x around 0

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

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

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

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

                \[\leadsto \frac{\color{blue}{\left(y - z\right)} \cdot t}{a - z} \]
              5. lower--.f6448.2

                \[\leadsto \frac{\left(y - z\right) \cdot t}{\color{blue}{a - z}} \]
            7. Applied rewrites48.2%

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

              \[\leadsto -1 \cdot \color{blue}{\frac{t \cdot z}{a - z}} \]
            9. Step-by-step derivation
              1. Applied rewrites91.3%

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

              if -1.4799999999999999e203 < z < -1.2499999999999999e-127

              1. Initial program 77.6%

                \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
              2. Add Preprocessing
              3. Taylor expanded in x around inf

                \[\leadsto \color{blue}{x \cdot \left(1 + -1 \cdot \frac{y - z}{a - z}\right)} \]
              4. Step-by-step derivation
                1. +-commutativeN/A

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

                  \[\leadsto \color{blue}{\left(-1 \cdot \frac{y - z}{a - z}\right) \cdot x + 1 \cdot x} \]
                3. mul-1-negN/A

                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{y - z}{a - z}\right)\right)} \cdot x + 1 \cdot x \]
                4. distribute-lft-neg-outN/A

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

                  \[\leadsto \left(\mathsf{neg}\left(\color{blue}{x \cdot \frac{y - z}{a - z}}\right)\right) + 1 \cdot x \]
                6. associate-/l*N/A

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

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

                  \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - z\right) \cdot \frac{x}{a - z}}\right)\right) + 1 \cdot x \]
                9. distribute-lft-neg-inN/A

                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(y - z\right)\right)\right) \cdot \frac{x}{a - z}} + 1 \cdot x \]
                10. mul-1-negN/A

                  \[\leadsto \color{blue}{\left(-1 \cdot \left(y - z\right)\right)} \cdot \frac{x}{a - z} + 1 \cdot x \]
                11. *-lft-identityN/A

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

                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(y - z\right), \frac{x}{a - z}, x\right)} \]
              5. Applied rewrites55.3%

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

              if -1.2499999999999999e-127 < z < 1.04000000000000003e46

              1. Initial program 90.7%

                \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
              2. Add Preprocessing
              3. Taylor expanded in a around inf

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

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

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

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

                  \[\leadsto \color{blue}{\mathsf{fma}\left(y - z, \frac{t - x}{a}, x\right)} \]
                5. lower--.f64N/A

                  \[\leadsto \mathsf{fma}\left(\color{blue}{y - z}, \frac{t - x}{a}, x\right) \]
                6. lower-/.f64N/A

                  \[\leadsto \mathsf{fma}\left(y - z, \color{blue}{\frac{t - x}{a}}, x\right) \]
                7. lower--.f6481.0

                  \[\leadsto \mathsf{fma}\left(y - z, \frac{\color{blue}{t - x}}{a}, x\right) \]
              5. Applied rewrites81.0%

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

              if 1.04000000000000003e46 < z < 6.3999999999999996e164

              1. Initial program 55.1%

                \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
              2. Add Preprocessing
              3. Taylor expanded in x around 0

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

                  \[\leadsto \frac{\color{blue}{\left(y - z\right) \cdot t}}{a - z} \]
                2. associate-/l*N/A

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

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

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

                  \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{t}{a - z}} \]
                6. lower--.f6470.9

                  \[\leadsto \left(y - z\right) \cdot \frac{t}{\color{blue}{a - z}} \]
              5. Applied rewrites70.9%

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

              if 6.3999999999999996e164 < z

              1. Initial program 22.8%

                \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
              2. Add Preprocessing
              3. Step-by-step derivation
                1. lift-+.f64N/A

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

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

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

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

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

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

                  \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                8. lower-/.f6454.3

                  \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
              4. Applied rewrites54.3%

                \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
              5. Taylor expanded in z around inf

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

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

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

                  \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \color{blue}{\frac{-1 \cdot \left(a \cdot \left(t - x\right)\right)}{z}}\right) \]
                4. mul-1-negN/A

                  \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \frac{\color{blue}{\mathsf{neg}\left(a \cdot \left(t - x\right)\right)}}{z}\right) \]
                5. div-subN/A

                  \[\leadsto t + \color{blue}{\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \left(\mathsf{neg}\left(a \cdot \left(t - x\right)\right)\right)}{z}} \]
                6. mul-1-negN/A

                  \[\leadsto t + \frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \color{blue}{-1 \cdot \left(a \cdot \left(t - x\right)\right)}}{z} \]
                7. distribute-lft-out--N/A

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

                  \[\leadsto t + \color{blue}{-1 \cdot \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                9. mul-1-negN/A

                  \[\leadsto t + \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} \]
                10. unsub-negN/A

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

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

                  \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
              7. Applied rewrites74.1%

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

                \[\leadsto t - \color{blue}{-1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
              9. Step-by-step derivation
                1. Applied rewrites80.3%

                  \[\leadsto \mathsf{fma}\left(a, \color{blue}{\frac{t - x}{z}}, t\right) \]
              10. Recombined 5 regimes into one program.
              11. Final simplification73.8%

                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.48 \cdot 10^{+203}:\\ \;\;\;\;\frac{z}{z - a} \cdot t\\ \mathbf{elif}\;z \leq -1.25 \cdot 10^{-127}:\\ \;\;\;\;\mathsf{fma}\left(z - y, \frac{x}{a - z}, x\right)\\ \mathbf{elif}\;z \leq 1.04 \cdot 10^{+46}:\\ \;\;\;\;\mathsf{fma}\left(y - z, \frac{t - x}{a}, x\right)\\ \mathbf{elif}\;z \leq 6.4 \cdot 10^{+164}:\\ \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \end{array} \]
              12. Add Preprocessing

              Alternative 5: 65.0% accurate, 0.6× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.48 \cdot 10^{+203}:\\ \;\;\;\;\frac{z}{z - a} \cdot t\\ \mathbf{elif}\;z \leq -1.3 \cdot 10^{+76}:\\ \;\;\;\;\frac{y}{z - a} \cdot \left(x - t\right)\\ \mathbf{elif}\;z \leq 1.04 \cdot 10^{+46}:\\ \;\;\;\;\mathsf{fma}\left(y - z, \frac{t - x}{a}, x\right)\\ \mathbf{elif}\;z \leq 6.4 \cdot 10^{+164}:\\ \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \end{array} \end{array} \]
              (FPCore (x y z t a)
               :precision binary64
               (if (<= z -1.48e+203)
                 (* (/ z (- z a)) t)
                 (if (<= z -1.3e+76)
                   (* (/ y (- z a)) (- x t))
                   (if (<= z 1.04e+46)
                     (fma (- y z) (/ (- t x) a) x)
                     (if (<= z 6.4e+164)
                       (* (/ t (- z a)) (- z y))
                       (fma a (/ (- t x) z) t))))))
              double code(double x, double y, double z, double t, double a) {
              	double tmp;
              	if (z <= -1.48e+203) {
              		tmp = (z / (z - a)) * t;
              	} else if (z <= -1.3e+76) {
              		tmp = (y / (z - a)) * (x - t);
              	} else if (z <= 1.04e+46) {
              		tmp = fma((y - z), ((t - x) / a), x);
              	} else if (z <= 6.4e+164) {
              		tmp = (t / (z - a)) * (z - y);
              	} else {
              		tmp = fma(a, ((t - x) / z), t);
              	}
              	return tmp;
              }
              
              function code(x, y, z, t, a)
              	tmp = 0.0
              	if (z <= -1.48e+203)
              		tmp = Float64(Float64(z / Float64(z - a)) * t);
              	elseif (z <= -1.3e+76)
              		tmp = Float64(Float64(y / Float64(z - a)) * Float64(x - t));
              	elseif (z <= 1.04e+46)
              		tmp = fma(Float64(y - z), Float64(Float64(t - x) / a), x);
              	elseif (z <= 6.4e+164)
              		tmp = Float64(Float64(t / Float64(z - a)) * Float64(z - y));
              	else
              		tmp = fma(a, Float64(Float64(t - x) / z), t);
              	end
              	return tmp
              end
              
              code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.48e+203], N[(N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, -1.3e+76], N[(N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.04e+46], N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 6.4e+164], N[(N[(t / N[(z - a), $MachinePrecision]), $MachinePrecision] * N[(z - y), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision]]]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              \mathbf{if}\;z \leq -1.48 \cdot 10^{+203}:\\
              \;\;\;\;\frac{z}{z - a} \cdot t\\
              
              \mathbf{elif}\;z \leq -1.3 \cdot 10^{+76}:\\
              \;\;\;\;\frac{y}{z - a} \cdot \left(x - t\right)\\
              
              \mathbf{elif}\;z \leq 1.04 \cdot 10^{+46}:\\
              \;\;\;\;\mathsf{fma}\left(y - z, \frac{t - x}{a}, x\right)\\
              
              \mathbf{elif}\;z \leq 6.4 \cdot 10^{+164}:\\
              \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\
              
              \mathbf{else}:\\
              \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 5 regimes
              2. if z < -1.4799999999999999e203

                1. Initial program 30.6%

                  \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                2. Add Preprocessing
                3. Step-by-step derivation
                  1. lift-+.f64N/A

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

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

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

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

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

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

                    \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                  8. lower-/.f6469.5

                    \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
                4. Applied rewrites69.5%

                  \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                5. Taylor expanded in x around 0

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

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

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

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

                    \[\leadsto \frac{\color{blue}{\left(y - z\right)} \cdot t}{a - z} \]
                  5. lower--.f6448.2

                    \[\leadsto \frac{\left(y - z\right) \cdot t}{\color{blue}{a - z}} \]
                7. Applied rewrites48.2%

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

                  \[\leadsto -1 \cdot \color{blue}{\frac{t \cdot z}{a - z}} \]
                9. Step-by-step derivation
                  1. Applied rewrites91.3%

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

                  if -1.4799999999999999e203 < z < -1.3e76

                  1. Initial program 60.3%

                    \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                  2. Add Preprocessing
                  3. Taylor expanded in y around inf

                    \[\leadsto \color{blue}{y \cdot \left(\frac{t}{a - z} - \frac{x}{a - z}\right)} \]
                  4. Step-by-step derivation
                    1. div-subN/A

                      \[\leadsto y \cdot \color{blue}{\frac{t - x}{a - z}} \]
                    2. associate-/l*N/A

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

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

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

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

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

                      \[\leadsto \left(t - x\right) \cdot \color{blue}{\frac{y}{a - z}} \]
                    8. lower--.f6451.9

                      \[\leadsto \left(t - x\right) \cdot \frac{y}{\color{blue}{a - z}} \]
                  5. Applied rewrites51.9%

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

                  if -1.3e76 < z < 1.04000000000000003e46

                  1. Initial program 89.4%

                    \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                  2. Add Preprocessing
                  3. Taylor expanded in a around inf

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

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

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

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

                      \[\leadsto \color{blue}{\mathsf{fma}\left(y - z, \frac{t - x}{a}, x\right)} \]
                    5. lower--.f64N/A

                      \[\leadsto \mathsf{fma}\left(\color{blue}{y - z}, \frac{t - x}{a}, x\right) \]
                    6. lower-/.f64N/A

                      \[\leadsto \mathsf{fma}\left(y - z, \color{blue}{\frac{t - x}{a}}, x\right) \]
                    7. lower--.f6473.2

                      \[\leadsto \mathsf{fma}\left(y - z, \frac{\color{blue}{t - x}}{a}, x\right) \]
                  5. Applied rewrites73.2%

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

                  if 1.04000000000000003e46 < z < 6.3999999999999996e164

                  1. Initial program 55.1%

                    \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                  2. Add Preprocessing
                  3. Taylor expanded in x around 0

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

                      \[\leadsto \frac{\color{blue}{\left(y - z\right) \cdot t}}{a - z} \]
                    2. associate-/l*N/A

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

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

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

                      \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{t}{a - z}} \]
                    6. lower--.f6470.9

                      \[\leadsto \left(y - z\right) \cdot \frac{t}{\color{blue}{a - z}} \]
                  5. Applied rewrites70.9%

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

                  if 6.3999999999999996e164 < z

                  1. Initial program 22.8%

                    \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                  2. Add Preprocessing
                  3. Step-by-step derivation
                    1. lift-+.f64N/A

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

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

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

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

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

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

                      \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                    8. lower-/.f6454.3

                      \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
                  4. Applied rewrites54.3%

                    \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                  5. Taylor expanded in z around inf

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

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

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

                      \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \color{blue}{\frac{-1 \cdot \left(a \cdot \left(t - x\right)\right)}{z}}\right) \]
                    4. mul-1-negN/A

                      \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \frac{\color{blue}{\mathsf{neg}\left(a \cdot \left(t - x\right)\right)}}{z}\right) \]
                    5. div-subN/A

                      \[\leadsto t + \color{blue}{\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \left(\mathsf{neg}\left(a \cdot \left(t - x\right)\right)\right)}{z}} \]
                    6. mul-1-negN/A

                      \[\leadsto t + \frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \color{blue}{-1 \cdot \left(a \cdot \left(t - x\right)\right)}}{z} \]
                    7. distribute-lft-out--N/A

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

                      \[\leadsto t + \color{blue}{-1 \cdot \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                    9. mul-1-negN/A

                      \[\leadsto t + \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} \]
                    10. unsub-negN/A

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

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

                      \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                  7. Applied rewrites74.1%

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

                    \[\leadsto t - \color{blue}{-1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                  9. Step-by-step derivation
                    1. Applied rewrites80.3%

                      \[\leadsto \mathsf{fma}\left(a, \color{blue}{\frac{t - x}{z}}, t\right) \]
                  10. Recombined 5 regimes into one program.
                  11. Final simplification73.4%

                    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.48 \cdot 10^{+203}:\\ \;\;\;\;\frac{z}{z - a} \cdot t\\ \mathbf{elif}\;z \leq -1.3 \cdot 10^{+76}:\\ \;\;\;\;\frac{y}{z - a} \cdot \left(x - t\right)\\ \mathbf{elif}\;z \leq 1.04 \cdot 10^{+46}:\\ \;\;\;\;\mathsf{fma}\left(y - z, \frac{t - x}{a}, x\right)\\ \mathbf{elif}\;z \leq 6.4 \cdot 10^{+164}:\\ \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \end{array} \]
                  12. Add Preprocessing

                  Alternative 6: 63.1% accurate, 0.6× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.48 \cdot 10^{+203}:\\ \;\;\;\;\frac{z}{z - a} \cdot t\\ \mathbf{elif}\;z \leq -4.1 \cdot 10^{+80}:\\ \;\;\;\;\frac{y}{z - a} \cdot \left(x - t\right)\\ \mathbf{elif}\;z \leq 1.25 \cdot 10^{-79}:\\ \;\;\;\;\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)\\ \mathbf{elif}\;z \leq 6.4 \cdot 10^{+164}:\\ \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \end{array} \end{array} \]
                  (FPCore (x y z t a)
                   :precision binary64
                   (if (<= z -1.48e+203)
                     (* (/ z (- z a)) t)
                     (if (<= z -4.1e+80)
                       (* (/ y (- z a)) (- x t))
                       (if (<= z 1.25e-79)
                         (fma (- t x) (/ y a) x)
                         (if (<= z 6.4e+164)
                           (* (/ t (- z a)) (- z y))
                           (fma a (/ (- t x) z) t))))))
                  double code(double x, double y, double z, double t, double a) {
                  	double tmp;
                  	if (z <= -1.48e+203) {
                  		tmp = (z / (z - a)) * t;
                  	} else if (z <= -4.1e+80) {
                  		tmp = (y / (z - a)) * (x - t);
                  	} else if (z <= 1.25e-79) {
                  		tmp = fma((t - x), (y / a), x);
                  	} else if (z <= 6.4e+164) {
                  		tmp = (t / (z - a)) * (z - y);
                  	} else {
                  		tmp = fma(a, ((t - x) / z), t);
                  	}
                  	return tmp;
                  }
                  
                  function code(x, y, z, t, a)
                  	tmp = 0.0
                  	if (z <= -1.48e+203)
                  		tmp = Float64(Float64(z / Float64(z - a)) * t);
                  	elseif (z <= -4.1e+80)
                  		tmp = Float64(Float64(y / Float64(z - a)) * Float64(x - t));
                  	elseif (z <= 1.25e-79)
                  		tmp = fma(Float64(t - x), Float64(y / a), x);
                  	elseif (z <= 6.4e+164)
                  		tmp = Float64(Float64(t / Float64(z - a)) * Float64(z - y));
                  	else
                  		tmp = fma(a, Float64(Float64(t - x) / z), t);
                  	end
                  	return tmp
                  end
                  
                  code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.48e+203], N[(N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, -4.1e+80], N[(N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.25e-79], N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 6.4e+164], N[(N[(t / N[(z - a), $MachinePrecision]), $MachinePrecision] * N[(z - y), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision]]]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  \mathbf{if}\;z \leq -1.48 \cdot 10^{+203}:\\
                  \;\;\;\;\frac{z}{z - a} \cdot t\\
                  
                  \mathbf{elif}\;z \leq -4.1 \cdot 10^{+80}:\\
                  \;\;\;\;\frac{y}{z - a} \cdot \left(x - t\right)\\
                  
                  \mathbf{elif}\;z \leq 1.25 \cdot 10^{-79}:\\
                  \;\;\;\;\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)\\
                  
                  \mathbf{elif}\;z \leq 6.4 \cdot 10^{+164}:\\
                  \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 5 regimes
                  2. if z < -1.4799999999999999e203

                    1. Initial program 30.6%

                      \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                    2. Add Preprocessing
                    3. Step-by-step derivation
                      1. lift-+.f64N/A

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

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

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

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

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

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

                        \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                      8. lower-/.f6469.5

                        \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
                    4. Applied rewrites69.5%

                      \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                    5. Taylor expanded in x around 0

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

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

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

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

                        \[\leadsto \frac{\color{blue}{\left(y - z\right)} \cdot t}{a - z} \]
                      5. lower--.f6448.2

                        \[\leadsto \frac{\left(y - z\right) \cdot t}{\color{blue}{a - z}} \]
                    7. Applied rewrites48.2%

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

                      \[\leadsto -1 \cdot \color{blue}{\frac{t \cdot z}{a - z}} \]
                    9. Step-by-step derivation
                      1. Applied rewrites91.3%

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

                      if -1.4799999999999999e203 < z < -4.10000000000000001e80

                      1. Initial program 58.6%

                        \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                      2. Add Preprocessing
                      3. Taylor expanded in y around inf

                        \[\leadsto \color{blue}{y \cdot \left(\frac{t}{a - z} - \frac{x}{a - z}\right)} \]
                      4. Step-by-step derivation
                        1. div-subN/A

                          \[\leadsto y \cdot \color{blue}{\frac{t - x}{a - z}} \]
                        2. associate-/l*N/A

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

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

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

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

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

                          \[\leadsto \left(t - x\right) \cdot \color{blue}{\frac{y}{a - z}} \]
                        8. lower--.f6454.0

                          \[\leadsto \left(t - x\right) \cdot \frac{y}{\color{blue}{a - z}} \]
                      5. Applied rewrites54.0%

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

                      if -4.10000000000000001e80 < z < 1.25e-79

                      1. Initial program 90.5%

                        \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                      2. Add Preprocessing
                      3. Step-by-step derivation
                        1. lift-+.f64N/A

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

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

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

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

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

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

                          \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                        8. lower-/.f6496.1

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

                        \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                      5. Taylor expanded in z around 0

                        \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y}{a}}, x\right) \]
                      6. Step-by-step derivation
                        1. lower-/.f6474.7

                          \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y}{a}}, x\right) \]
                      7. Applied rewrites74.7%

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

                      if 1.25e-79 < z < 6.3999999999999996e164

                      1. Initial program 69.5%

                        \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                      2. Add Preprocessing
                      3. Taylor expanded in x around 0

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

                          \[\leadsto \frac{\color{blue}{\left(y - z\right) \cdot t}}{a - z} \]
                        2. associate-/l*N/A

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

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

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

                          \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{t}{a - z}} \]
                        6. lower--.f6460.3

                          \[\leadsto \left(y - z\right) \cdot \frac{t}{\color{blue}{a - z}} \]
                      5. Applied rewrites60.3%

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

                      if 6.3999999999999996e164 < z

                      1. Initial program 22.8%

                        \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                      2. Add Preprocessing
                      3. Step-by-step derivation
                        1. lift-+.f64N/A

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

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

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

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

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

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

                          \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                        8. lower-/.f6454.3

                          \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
                      4. Applied rewrites54.3%

                        \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                      5. Taylor expanded in z around inf

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

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

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

                          \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \color{blue}{\frac{-1 \cdot \left(a \cdot \left(t - x\right)\right)}{z}}\right) \]
                        4. mul-1-negN/A

                          \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \frac{\color{blue}{\mathsf{neg}\left(a \cdot \left(t - x\right)\right)}}{z}\right) \]
                        5. div-subN/A

                          \[\leadsto t + \color{blue}{\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \left(\mathsf{neg}\left(a \cdot \left(t - x\right)\right)\right)}{z}} \]
                        6. mul-1-negN/A

                          \[\leadsto t + \frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \color{blue}{-1 \cdot \left(a \cdot \left(t - x\right)\right)}}{z} \]
                        7. distribute-lft-out--N/A

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

                          \[\leadsto t + \color{blue}{-1 \cdot \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                        9. mul-1-negN/A

                          \[\leadsto t + \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} \]
                        10. unsub-negN/A

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

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

                          \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                      7. Applied rewrites74.1%

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

                        \[\leadsto t - \color{blue}{-1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                      9. Step-by-step derivation
                        1. Applied rewrites80.3%

                          \[\leadsto \mathsf{fma}\left(a, \color{blue}{\frac{t - x}{z}}, t\right) \]
                      10. Recombined 5 regimes into one program.
                      11. Final simplification72.4%

                        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.48 \cdot 10^{+203}:\\ \;\;\;\;\frac{z}{z - a} \cdot t\\ \mathbf{elif}\;z \leq -4.1 \cdot 10^{+80}:\\ \;\;\;\;\frac{y}{z - a} \cdot \left(x - t\right)\\ \mathbf{elif}\;z \leq 1.25 \cdot 10^{-79}:\\ \;\;\;\;\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)\\ \mathbf{elif}\;z \leq 6.4 \cdot 10^{+164}:\\ \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \end{array} \]
                      12. Add Preprocessing

                      Alternative 7: 31.4% accurate, 0.7× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(y - a\right) \cdot x}{z}\\ t_2 := \left(t - x\right) + x\\ \mathbf{if}\;z \leq -1.96 \cdot 10^{+198}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;z \leq -1.24 \cdot 10^{-114}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 2.2 \cdot 10^{+161}:\\ \;\;\;\;\frac{y}{a - z} \cdot t\\ \mathbf{elif}\;z \leq 2.9 \cdot 10^{+211}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                      (FPCore (x y z t a)
                       :precision binary64
                       (let* ((t_1 (/ (* (- y a) x) z)) (t_2 (+ (- t x) x)))
                         (if (<= z -1.96e+198)
                           t_2
                           (if (<= z -1.24e-114)
                             t_1
                             (if (<= z 2.2e+161)
                               (* (/ y (- a z)) t)
                               (if (<= z 2.9e+211) t_1 t_2))))))
                      double code(double x, double y, double z, double t, double a) {
                      	double t_1 = ((y - a) * x) / z;
                      	double t_2 = (t - x) + x;
                      	double tmp;
                      	if (z <= -1.96e+198) {
                      		tmp = t_2;
                      	} else if (z <= -1.24e-114) {
                      		tmp = t_1;
                      	} else if (z <= 2.2e+161) {
                      		tmp = (y / (a - z)) * t;
                      	} else if (z <= 2.9e+211) {
                      		tmp = t_1;
                      	} else {
                      		tmp = t_2;
                      	}
                      	return tmp;
                      }
                      
                      real(8) function code(x, y, z, t, a)
                          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) :: t_1
                          real(8) :: t_2
                          real(8) :: tmp
                          t_1 = ((y - a) * x) / z
                          t_2 = (t - x) + x
                          if (z <= (-1.96d+198)) then
                              tmp = t_2
                          else if (z <= (-1.24d-114)) then
                              tmp = t_1
                          else if (z <= 2.2d+161) then
                              tmp = (y / (a - z)) * t
                          else if (z <= 2.9d+211) then
                              tmp = t_1
                          else
                              tmp = t_2
                          end if
                          code = tmp
                      end function
                      
                      public static double code(double x, double y, double z, double t, double a) {
                      	double t_1 = ((y - a) * x) / z;
                      	double t_2 = (t - x) + x;
                      	double tmp;
                      	if (z <= -1.96e+198) {
                      		tmp = t_2;
                      	} else if (z <= -1.24e-114) {
                      		tmp = t_1;
                      	} else if (z <= 2.2e+161) {
                      		tmp = (y / (a - z)) * t;
                      	} else if (z <= 2.9e+211) {
                      		tmp = t_1;
                      	} else {
                      		tmp = t_2;
                      	}
                      	return tmp;
                      }
                      
                      def code(x, y, z, t, a):
                      	t_1 = ((y - a) * x) / z
                      	t_2 = (t - x) + x
                      	tmp = 0
                      	if z <= -1.96e+198:
                      		tmp = t_2
                      	elif z <= -1.24e-114:
                      		tmp = t_1
                      	elif z <= 2.2e+161:
                      		tmp = (y / (a - z)) * t
                      	elif z <= 2.9e+211:
                      		tmp = t_1
                      	else:
                      		tmp = t_2
                      	return tmp
                      
                      function code(x, y, z, t, a)
                      	t_1 = Float64(Float64(Float64(y - a) * x) / z)
                      	t_2 = Float64(Float64(t - x) + x)
                      	tmp = 0.0
                      	if (z <= -1.96e+198)
                      		tmp = t_2;
                      	elseif (z <= -1.24e-114)
                      		tmp = t_1;
                      	elseif (z <= 2.2e+161)
                      		tmp = Float64(Float64(y / Float64(a - z)) * t);
                      	elseif (z <= 2.9e+211)
                      		tmp = t_1;
                      	else
                      		tmp = t_2;
                      	end
                      	return tmp
                      end
                      
                      function tmp_2 = code(x, y, z, t, a)
                      	t_1 = ((y - a) * x) / z;
                      	t_2 = (t - x) + x;
                      	tmp = 0.0;
                      	if (z <= -1.96e+198)
                      		tmp = t_2;
                      	elseif (z <= -1.24e-114)
                      		tmp = t_1;
                      	elseif (z <= 2.2e+161)
                      		tmp = (y / (a - z)) * t;
                      	elseif (z <= 2.9e+211)
                      		tmp = t_1;
                      	else
                      		tmp = t_2;
                      	end
                      	tmp_2 = tmp;
                      end
                      
                      code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(y - a), $MachinePrecision] * x), $MachinePrecision] / z), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t - x), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[z, -1.96e+198], t$95$2, If[LessEqual[z, -1.24e-114], t$95$1, If[LessEqual[z, 2.2e+161], N[(N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, 2.9e+211], t$95$1, t$95$2]]]]]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      t_1 := \frac{\left(y - a\right) \cdot x}{z}\\
                      t_2 := \left(t - x\right) + x\\
                      \mathbf{if}\;z \leq -1.96 \cdot 10^{+198}:\\
                      \;\;\;\;t\_2\\
                      
                      \mathbf{elif}\;z \leq -1.24 \cdot 10^{-114}:\\
                      \;\;\;\;t\_1\\
                      
                      \mathbf{elif}\;z \leq 2.2 \cdot 10^{+161}:\\
                      \;\;\;\;\frac{y}{a - z} \cdot t\\
                      
                      \mathbf{elif}\;z \leq 2.9 \cdot 10^{+211}:\\
                      \;\;\;\;t\_1\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;t\_2\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 3 regimes
                      2. if z < -1.9600000000000001e198 or 2.9e211 < z

                        1. Initial program 23.4%

                          \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                        2. Add Preprocessing
                        3. Taylor expanded in z around inf

                          \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                        4. Step-by-step derivation
                          1. lower--.f6458.6

                            \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                        5. Applied rewrites58.6%

                          \[\leadsto x + \color{blue}{\left(t - x\right)} \]

                        if -1.9600000000000001e198 < z < -1.24000000000000003e-114 or 2.2e161 < z < 2.9e211

                        1. Initial program 70.5%

                          \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                        2. Add Preprocessing
                        3. Step-by-step derivation
                          1. lift-+.f64N/A

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

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

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

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

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

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

                            \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                          8. lower-/.f6478.8

                            \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
                        4. Applied rewrites78.8%

                          \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                        5. Taylor expanded in z around inf

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

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

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

                            \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \color{blue}{\frac{-1 \cdot \left(a \cdot \left(t - x\right)\right)}{z}}\right) \]
                          4. mul-1-negN/A

                            \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \frac{\color{blue}{\mathsf{neg}\left(a \cdot \left(t - x\right)\right)}}{z}\right) \]
                          5. div-subN/A

                            \[\leadsto t + \color{blue}{\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \left(\mathsf{neg}\left(a \cdot \left(t - x\right)\right)\right)}{z}} \]
                          6. mul-1-negN/A

                            \[\leadsto t + \frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \color{blue}{-1 \cdot \left(a \cdot \left(t - x\right)\right)}}{z} \]
                          7. distribute-lft-out--N/A

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

                            \[\leadsto t + \color{blue}{-1 \cdot \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                          9. mul-1-negN/A

                            \[\leadsto t + \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} \]
                          10. unsub-negN/A

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

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

                            \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                        7. Applied rewrites63.7%

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

                          \[\leadsto \frac{x \cdot \left(y - a\right)}{\color{blue}{z}} \]
                        9. Step-by-step derivation
                          1. Applied rewrites36.5%

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

                          if -1.24000000000000003e-114 < z < 2.2e161

                          1. Initial program 85.6%

                            \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                          2. Add Preprocessing
                          3. Step-by-step derivation
                            1. lift-+.f64N/A

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

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

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

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

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

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

                              \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                            8. lower-/.f6492.6

                              \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
                          4. Applied rewrites92.6%

                            \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                          5. Taylor expanded in x around 0

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

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

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

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

                              \[\leadsto \frac{\color{blue}{\left(y - z\right)} \cdot t}{a - z} \]
                            5. lower--.f6445.0

                              \[\leadsto \frac{\left(y - z\right) \cdot t}{\color{blue}{a - z}} \]
                          7. Applied rewrites45.0%

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

                            \[\leadsto \frac{t \cdot y}{\color{blue}{a - z}} \]
                          9. Step-by-step derivation
                            1. Applied rewrites35.4%

                              \[\leadsto t \cdot \color{blue}{\frac{y}{a - z}} \]
                          10. Recombined 3 regimes into one program.
                          11. Final simplification39.5%

                            \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.96 \cdot 10^{+198}:\\ \;\;\;\;\left(t - x\right) + x\\ \mathbf{elif}\;z \leq -1.24 \cdot 10^{-114}:\\ \;\;\;\;\frac{\left(y - a\right) \cdot x}{z}\\ \mathbf{elif}\;z \leq 2.2 \cdot 10^{+161}:\\ \;\;\;\;\frac{y}{a - z} \cdot t\\ \mathbf{elif}\;z \leq 2.9 \cdot 10^{+211}:\\ \;\;\;\;\frac{\left(y - a\right) \cdot x}{z}\\ \mathbf{else}:\\ \;\;\;\;\left(t - x\right) + x\\ \end{array} \]
                          12. Add Preprocessing

                          Alternative 8: 62.7% accurate, 0.7× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.48 \cdot 10^{+203}:\\ \;\;\;\;\frac{z}{z - a} \cdot t\\ \mathbf{elif}\;z \leq -4.1 \cdot 10^{+80}:\\ \;\;\;\;\frac{y}{z - a} \cdot \left(x - t\right)\\ \mathbf{elif}\;z \leq 5 \cdot 10^{+62}:\\ \;\;\;\;\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \end{array} \end{array} \]
                          (FPCore (x y z t a)
                           :precision binary64
                           (if (<= z -1.48e+203)
                             (* (/ z (- z a)) t)
                             (if (<= z -4.1e+80)
                               (* (/ y (- z a)) (- x t))
                               (if (<= z 5e+62) (fma (- t x) (/ y a) x) (fma a (/ (- t x) z) t)))))
                          double code(double x, double y, double z, double t, double a) {
                          	double tmp;
                          	if (z <= -1.48e+203) {
                          		tmp = (z / (z - a)) * t;
                          	} else if (z <= -4.1e+80) {
                          		tmp = (y / (z - a)) * (x - t);
                          	} else if (z <= 5e+62) {
                          		tmp = fma((t - x), (y / a), x);
                          	} else {
                          		tmp = fma(a, ((t - x) / z), t);
                          	}
                          	return tmp;
                          }
                          
                          function code(x, y, z, t, a)
                          	tmp = 0.0
                          	if (z <= -1.48e+203)
                          		tmp = Float64(Float64(z / Float64(z - a)) * t);
                          	elseif (z <= -4.1e+80)
                          		tmp = Float64(Float64(y / Float64(z - a)) * Float64(x - t));
                          	elseif (z <= 5e+62)
                          		tmp = fma(Float64(t - x), Float64(y / a), x);
                          	else
                          		tmp = fma(a, Float64(Float64(t - x) / z), t);
                          	end
                          	return tmp
                          end
                          
                          code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.48e+203], N[(N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, -4.1e+80], N[(N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5e+62], N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision] + x), $MachinePrecision], N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision]]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          \mathbf{if}\;z \leq -1.48 \cdot 10^{+203}:\\
                          \;\;\;\;\frac{z}{z - a} \cdot t\\
                          
                          \mathbf{elif}\;z \leq -4.1 \cdot 10^{+80}:\\
                          \;\;\;\;\frac{y}{z - a} \cdot \left(x - t\right)\\
                          
                          \mathbf{elif}\;z \leq 5 \cdot 10^{+62}:\\
                          \;\;\;\;\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 4 regimes
                          2. if z < -1.4799999999999999e203

                            1. Initial program 30.6%

                              \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                            2. Add Preprocessing
                            3. Step-by-step derivation
                              1. lift-+.f64N/A

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

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

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

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

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

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

                                \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                              8. lower-/.f6469.5

                                \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
                            4. Applied rewrites69.5%

                              \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                            5. Taylor expanded in x around 0

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

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

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

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

                                \[\leadsto \frac{\color{blue}{\left(y - z\right)} \cdot t}{a - z} \]
                              5. lower--.f6448.2

                                \[\leadsto \frac{\left(y - z\right) \cdot t}{\color{blue}{a - z}} \]
                            7. Applied rewrites48.2%

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

                              \[\leadsto -1 \cdot \color{blue}{\frac{t \cdot z}{a - z}} \]
                            9. Step-by-step derivation
                              1. Applied rewrites91.3%

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

                              if -1.4799999999999999e203 < z < -4.10000000000000001e80

                              1. Initial program 58.6%

                                \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                              2. Add Preprocessing
                              3. Taylor expanded in y around inf

                                \[\leadsto \color{blue}{y \cdot \left(\frac{t}{a - z} - \frac{x}{a - z}\right)} \]
                              4. Step-by-step derivation
                                1. div-subN/A

                                  \[\leadsto y \cdot \color{blue}{\frac{t - x}{a - z}} \]
                                2. associate-/l*N/A

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

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

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

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

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

                                  \[\leadsto \left(t - x\right) \cdot \color{blue}{\frac{y}{a - z}} \]
                                8. lower--.f6454.0

                                  \[\leadsto \left(t - x\right) \cdot \frac{y}{\color{blue}{a - z}} \]
                              5. Applied rewrites54.0%

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

                              if -4.10000000000000001e80 < z < 5.00000000000000029e62

                              1. Initial program 89.5%

                                \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                              2. Add Preprocessing
                              3. Step-by-step derivation
                                1. lift-+.f64N/A

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

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

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

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

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

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

                                  \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                8. lower-/.f6494.8

                                  \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
                              4. Applied rewrites94.8%

                                \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                              5. Taylor expanded in z around 0

                                \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y}{a}}, x\right) \]
                              6. Step-by-step derivation
                                1. lower-/.f6470.7

                                  \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y}{a}}, x\right) \]
                              7. Applied rewrites70.7%

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

                              if 5.00000000000000029e62 < z

                              1. Initial program 35.2%

                                \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                              2. Add Preprocessing
                              3. Step-by-step derivation
                                1. lift-+.f64N/A

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

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

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

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

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

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

                                  \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                8. lower-/.f6462.9

                                  \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
                              4. Applied rewrites62.9%

                                \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                              5. Taylor expanded in z around inf

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

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

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

                                  \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \color{blue}{\frac{-1 \cdot \left(a \cdot \left(t - x\right)\right)}{z}}\right) \]
                                4. mul-1-negN/A

                                  \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \frac{\color{blue}{\mathsf{neg}\left(a \cdot \left(t - x\right)\right)}}{z}\right) \]
                                5. div-subN/A

                                  \[\leadsto t + \color{blue}{\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \left(\mathsf{neg}\left(a \cdot \left(t - x\right)\right)\right)}{z}} \]
                                6. mul-1-negN/A

                                  \[\leadsto t + \frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \color{blue}{-1 \cdot \left(a \cdot \left(t - x\right)\right)}}{z} \]
                                7. distribute-lft-out--N/A

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

                                  \[\leadsto t + \color{blue}{-1 \cdot \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                9. mul-1-negN/A

                                  \[\leadsto t + \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} \]
                                10. unsub-negN/A

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

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

                                  \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                              7. Applied rewrites73.4%

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

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

                                  \[\leadsto \mathsf{fma}\left(a, \color{blue}{\frac{t - x}{z}}, t\right) \]
                              10. Recombined 4 regimes into one program.
                              11. Final simplification70.3%

                                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.48 \cdot 10^{+203}:\\ \;\;\;\;\frac{z}{z - a} \cdot t\\ \mathbf{elif}\;z \leq -4.1 \cdot 10^{+80}:\\ \;\;\;\;\frac{y}{z - a} \cdot \left(x - t\right)\\ \mathbf{elif}\;z \leq 5 \cdot 10^{+62}:\\ \;\;\;\;\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \end{array} \]
                              12. Add Preprocessing

                              Alternative 9: 54.1% accurate, 0.7× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(t - x\right) + x\\ \mathbf{if}\;z \leq -1.96 \cdot 10^{+198}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -1.1 \cdot 10^{+121}:\\ \;\;\;\;\frac{\left(y - a\right) \cdot x}{z}\\ \mathbf{elif}\;z \leq 10^{+64}:\\ \;\;\;\;\mathsf{fma}\left(\frac{t - x}{a}, y, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                              (FPCore (x y z t a)
                               :precision binary64
                               (let* ((t_1 (+ (- t x) x)))
                                 (if (<= z -1.96e+198)
                                   t_1
                                   (if (<= z -1.1e+121)
                                     (/ (* (- y a) x) z)
                                     (if (<= z 1e+64) (fma (/ (- t x) a) y x) t_1)))))
                              double code(double x, double y, double z, double t, double a) {
                              	double t_1 = (t - x) + x;
                              	double tmp;
                              	if (z <= -1.96e+198) {
                              		tmp = t_1;
                              	} else if (z <= -1.1e+121) {
                              		tmp = ((y - a) * x) / z;
                              	} else if (z <= 1e+64) {
                              		tmp = fma(((t - x) / a), y, x);
                              	} else {
                              		tmp = t_1;
                              	}
                              	return tmp;
                              }
                              
                              function code(x, y, z, t, a)
                              	t_1 = Float64(Float64(t - x) + x)
                              	tmp = 0.0
                              	if (z <= -1.96e+198)
                              		tmp = t_1;
                              	elseif (z <= -1.1e+121)
                              		tmp = Float64(Float64(Float64(y - a) * x) / z);
                              	elseif (z <= 1e+64)
                              		tmp = fma(Float64(Float64(t - x) / a), y, x);
                              	else
                              		tmp = t_1;
                              	end
                              	return tmp
                              end
                              
                              code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t - x), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[z, -1.96e+198], t$95$1, If[LessEqual[z, -1.1e+121], N[(N[(N[(y - a), $MachinePrecision] * x), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[z, 1e+64], N[(N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision] * y + x), $MachinePrecision], t$95$1]]]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              t_1 := \left(t - x\right) + x\\
                              \mathbf{if}\;z \leq -1.96 \cdot 10^{+198}:\\
                              \;\;\;\;t\_1\\
                              
                              \mathbf{elif}\;z \leq -1.1 \cdot 10^{+121}:\\
                              \;\;\;\;\frac{\left(y - a\right) \cdot x}{z}\\
                              
                              \mathbf{elif}\;z \leq 10^{+64}:\\
                              \;\;\;\;\mathsf{fma}\left(\frac{t - x}{a}, y, x\right)\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;t\_1\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 3 regimes
                              2. if z < -1.9600000000000001e198 or 1.00000000000000002e64 < z

                                1. Initial program 34.3%

                                  \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                2. Add Preprocessing
                                3. Taylor expanded in z around inf

                                  \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                4. Step-by-step derivation
                                  1. lower--.f6442.6

                                    \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                5. Applied rewrites42.6%

                                  \[\leadsto x + \color{blue}{\left(t - x\right)} \]

                                if -1.9600000000000001e198 < z < -1.10000000000000001e121

                                1. Initial program 64.3%

                                  \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                2. Add Preprocessing
                                3. Step-by-step derivation
                                  1. lift-+.f64N/A

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

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

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

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

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

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

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                  8. lower-/.f6475.8

                                    \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
                                4. Applied rewrites75.8%

                                  \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                5. Taylor expanded in z around inf

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

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

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

                                    \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \color{blue}{\frac{-1 \cdot \left(a \cdot \left(t - x\right)\right)}{z}}\right) \]
                                  4. mul-1-negN/A

                                    \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \frac{\color{blue}{\mathsf{neg}\left(a \cdot \left(t - x\right)\right)}}{z}\right) \]
                                  5. div-subN/A

                                    \[\leadsto t + \color{blue}{\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \left(\mathsf{neg}\left(a \cdot \left(t - x\right)\right)\right)}{z}} \]
                                  6. mul-1-negN/A

                                    \[\leadsto t + \frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \color{blue}{-1 \cdot \left(a \cdot \left(t - x\right)\right)}}{z} \]
                                  7. distribute-lft-out--N/A

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

                                    \[\leadsto t + \color{blue}{-1 \cdot \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                  9. mul-1-negN/A

                                    \[\leadsto t + \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} \]
                                  10. unsub-negN/A

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

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

                                    \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                7. Applied rewrites63.6%

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

                                  \[\leadsto \frac{x \cdot \left(y - a\right)}{\color{blue}{z}} \]
                                9. Step-by-step derivation
                                  1. Applied rewrites45.3%

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

                                  if -1.10000000000000001e121 < z < 1.00000000000000002e64

                                  1. Initial program 88.1%

                                    \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                  2. Add Preprocessing
                                  3. Taylor expanded in z around 0

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

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

                                      \[\leadsto \color{blue}{y \cdot \frac{t - x}{a}} + x \]
                                    3. *-commutativeN/A

                                      \[\leadsto \color{blue}{\frac{t - x}{a} \cdot y} + x \]
                                    4. lower-fma.f64N/A

                                      \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{t - x}{a}, y, x\right)} \]
                                    5. lower-/.f64N/A

                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a}}, y, x\right) \]
                                    6. lower--.f6468.8

                                      \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{t - x}}{a}, y, x\right) \]
                                  5. Applied rewrites68.8%

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{t - x}{a}, y, x\right)} \]
                                10. Recombined 3 regimes into one program.
                                11. Final simplification59.6%

                                  \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.96 \cdot 10^{+198}:\\ \;\;\;\;\left(t - x\right) + x\\ \mathbf{elif}\;z \leq -1.1 \cdot 10^{+121}:\\ \;\;\;\;\frac{\left(y - a\right) \cdot x}{z}\\ \mathbf{elif}\;z \leq 10^{+64}:\\ \;\;\;\;\mathsf{fma}\left(\frac{t - x}{a}, y, x\right)\\ \mathbf{else}:\\ \;\;\;\;\left(t - x\right) + x\\ \end{array} \]
                                12. Add Preprocessing

                                Alternative 10: 69.9% accurate, 0.8× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -6.3 \cdot 10^{-24}:\\ \;\;\;\;\mathsf{fma}\left(t - x, \frac{y - z}{a}, x\right)\\ \mathbf{elif}\;a \leq 2.8 \cdot 10^{+42}:\\ \;\;\;\;t - \frac{\left(x - t\right) \cdot \left(a - y\right)}{z}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(t - x, \frac{-z}{a - z}, x\right)\\ \end{array} \end{array} \]
                                (FPCore (x y z t a)
                                 :precision binary64
                                 (if (<= a -6.3e-24)
                                   (fma (- t x) (/ (- y z) a) x)
                                   (if (<= a 2.8e+42)
                                     (- t (/ (* (- x t) (- a y)) z))
                                     (fma (- t x) (/ (- z) (- a z)) x))))
                                double code(double x, double y, double z, double t, double a) {
                                	double tmp;
                                	if (a <= -6.3e-24) {
                                		tmp = fma((t - x), ((y - z) / a), x);
                                	} else if (a <= 2.8e+42) {
                                		tmp = t - (((x - t) * (a - y)) / z);
                                	} else {
                                		tmp = fma((t - x), (-z / (a - z)), x);
                                	}
                                	return tmp;
                                }
                                
                                function code(x, y, z, t, a)
                                	tmp = 0.0
                                	if (a <= -6.3e-24)
                                		tmp = fma(Float64(t - x), Float64(Float64(y - z) / a), x);
                                	elseif (a <= 2.8e+42)
                                		tmp = Float64(t - Float64(Float64(Float64(x - t) * Float64(a - y)) / z));
                                	else
                                		tmp = fma(Float64(t - x), Float64(Float64(-z) / Float64(a - z)), x);
                                	end
                                	return tmp
                                end
                                
                                code[x_, y_, z_, t_, a_] := If[LessEqual[a, -6.3e-24], N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[a, 2.8e+42], N[(t - N[(N[(N[(x - t), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(N[(t - x), $MachinePrecision] * N[((-z) / N[(a - z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                \mathbf{if}\;a \leq -6.3 \cdot 10^{-24}:\\
                                \;\;\;\;\mathsf{fma}\left(t - x, \frac{y - z}{a}, x\right)\\
                                
                                \mathbf{elif}\;a \leq 2.8 \cdot 10^{+42}:\\
                                \;\;\;\;t - \frac{\left(x - t\right) \cdot \left(a - y\right)}{z}\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;\mathsf{fma}\left(t - x, \frac{-z}{a - z}, x\right)\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 3 regimes
                                2. if a < -6.29999999999999979e-24

                                  1. Initial program 72.4%

                                    \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                  2. Add Preprocessing
                                  3. Step-by-step derivation
                                    1. lift-+.f64N/A

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

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

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

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

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

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

                                      \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                    8. lower-/.f6492.6

                                      \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
                                  4. Applied rewrites92.6%

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                  5. Taylor expanded in a around inf

                                    \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a}}, x\right) \]
                                  6. Step-by-step derivation
                                    1. lower-/.f64N/A

                                      \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a}}, x\right) \]
                                    2. lower--.f6486.0

                                      \[\leadsto \mathsf{fma}\left(t - x, \frac{\color{blue}{y - z}}{a}, x\right) \]
                                  7. Applied rewrites86.0%

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

                                  if -6.29999999999999979e-24 < a < 2.7999999999999999e42

                                  1. Initial program 68.5%

                                    \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                  2. Add Preprocessing
                                  3. Step-by-step derivation
                                    1. lift-+.f64N/A

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

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

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

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

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

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

                                      \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                    8. lower-/.f6475.9

                                      \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
                                  4. Applied rewrites75.9%

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                  5. Taylor expanded in z around inf

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

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

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

                                      \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \color{blue}{\frac{-1 \cdot \left(a \cdot \left(t - x\right)\right)}{z}}\right) \]
                                    4. mul-1-negN/A

                                      \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \frac{\color{blue}{\mathsf{neg}\left(a \cdot \left(t - x\right)\right)}}{z}\right) \]
                                    5. div-subN/A

                                      \[\leadsto t + \color{blue}{\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \left(\mathsf{neg}\left(a \cdot \left(t - x\right)\right)\right)}{z}} \]
                                    6. mul-1-negN/A

                                      \[\leadsto t + \frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \color{blue}{-1 \cdot \left(a \cdot \left(t - x\right)\right)}}{z} \]
                                    7. distribute-lft-out--N/A

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

                                      \[\leadsto t + \color{blue}{-1 \cdot \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                    9. mul-1-negN/A

                                      \[\leadsto t + \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} \]
                                    10. unsub-negN/A

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

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

                                      \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                  7. Applied rewrites81.4%

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

                                  if 2.7999999999999999e42 < a

                                  1. Initial program 74.3%

                                    \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                  2. Add Preprocessing
                                  3. Step-by-step derivation
                                    1. lift-+.f64N/A

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

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

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

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

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

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

                                      \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                    8. lower-/.f6493.9

                                      \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
                                  4. Applied rewrites93.9%

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                  5. Taylor expanded in y around 0

                                    \[\leadsto \mathsf{fma}\left(t - x, \frac{\color{blue}{-1 \cdot z}}{a - z}, x\right) \]
                                  6. Step-by-step derivation
                                    1. mul-1-negN/A

                                      \[\leadsto \mathsf{fma}\left(t - x, \frac{\color{blue}{\mathsf{neg}\left(z\right)}}{a - z}, x\right) \]
                                    2. lower-neg.f6471.9

                                      \[\leadsto \mathsf{fma}\left(t - x, \frac{\color{blue}{-z}}{a - z}, x\right) \]
                                  7. Applied rewrites71.9%

                                    \[\leadsto \mathsf{fma}\left(t - x, \frac{\color{blue}{-z}}{a - z}, x\right) \]
                                3. Recombined 3 regimes into one program.
                                4. Final simplification80.5%

                                  \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -6.3 \cdot 10^{-24}:\\ \;\;\;\;\mathsf{fma}\left(t - x, \frac{y - z}{a}, x\right)\\ \mathbf{elif}\;a \leq 2.8 \cdot 10^{+42}:\\ \;\;\;\;t - \frac{\left(x - t\right) \cdot \left(a - y\right)}{z}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(t - x, \frac{-z}{a - z}, x\right)\\ \end{array} \]
                                5. Add Preprocessing

                                Alternative 11: 72.5% accurate, 0.8× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(t - x, \frac{y - z}{a}, x\right)\\ \mathbf{if}\;a \leq -6.3 \cdot 10^{-24}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 6.4 \cdot 10^{+64}:\\ \;\;\;\;t - \frac{\left(x - t\right) \cdot \left(a - y\right)}{z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                (FPCore (x y z t a)
                                 :precision binary64
                                 (let* ((t_1 (fma (- t x) (/ (- y z) a) x)))
                                   (if (<= a -6.3e-24)
                                     t_1
                                     (if (<= a 6.4e+64) (- t (/ (* (- x t) (- a y)) z)) t_1))))
                                double code(double x, double y, double z, double t, double a) {
                                	double t_1 = fma((t - x), ((y - z) / a), x);
                                	double tmp;
                                	if (a <= -6.3e-24) {
                                		tmp = t_1;
                                	} else if (a <= 6.4e+64) {
                                		tmp = t - (((x - t) * (a - y)) / z);
                                	} else {
                                		tmp = t_1;
                                	}
                                	return tmp;
                                }
                                
                                function code(x, y, z, t, a)
                                	t_1 = fma(Float64(t - x), Float64(Float64(y - z) / a), x)
                                	tmp = 0.0
                                	if (a <= -6.3e-24)
                                		tmp = t_1;
                                	elseif (a <= 6.4e+64)
                                		tmp = Float64(t - Float64(Float64(Float64(x - t) * Float64(a - y)) / z));
                                	else
                                		tmp = t_1;
                                	end
                                	return tmp
                                end
                                
                                code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[a, -6.3e-24], t$95$1, If[LessEqual[a, 6.4e+64], N[(t - N[(N[(N[(x - t), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                t_1 := \mathsf{fma}\left(t - x, \frac{y - z}{a}, x\right)\\
                                \mathbf{if}\;a \leq -6.3 \cdot 10^{-24}:\\
                                \;\;\;\;t\_1\\
                                
                                \mathbf{elif}\;a \leq 6.4 \cdot 10^{+64}:\\
                                \;\;\;\;t - \frac{\left(x - t\right) \cdot \left(a - y\right)}{z}\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;t\_1\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 2 regimes
                                2. if a < -6.29999999999999979e-24 or 6.40000000000000037e64 < a

                                  1. Initial program 72.9%

                                    \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                  2. Add Preprocessing
                                  3. Step-by-step derivation
                                    1. lift-+.f64N/A

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

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

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

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

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

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

                                      \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                    8. lower-/.f6493.2

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

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                  5. Taylor expanded in a around inf

                                    \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a}}, x\right) \]
                                  6. Step-by-step derivation
                                    1. lower-/.f64N/A

                                      \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a}}, x\right) \]
                                    2. lower--.f6479.7

                                      \[\leadsto \mathsf{fma}\left(t - x, \frac{\color{blue}{y - z}}{a}, x\right) \]
                                  7. Applied rewrites79.7%

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

                                  if -6.29999999999999979e-24 < a < 6.40000000000000037e64

                                  1. Initial program 69.1%

                                    \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                  2. Add Preprocessing
                                  3. Step-by-step derivation
                                    1. lift-+.f64N/A

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

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

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

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

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

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

                                      \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                    8. lower-/.f6476.8

                                      \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
                                  4. Applied rewrites76.8%

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                  5. Taylor expanded in z around inf

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

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

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

                                      \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \color{blue}{\frac{-1 \cdot \left(a \cdot \left(t - x\right)\right)}{z}}\right) \]
                                    4. mul-1-negN/A

                                      \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \frac{\color{blue}{\mathsf{neg}\left(a \cdot \left(t - x\right)\right)}}{z}\right) \]
                                    5. div-subN/A

                                      \[\leadsto t + \color{blue}{\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \left(\mathsf{neg}\left(a \cdot \left(t - x\right)\right)\right)}{z}} \]
                                    6. mul-1-negN/A

                                      \[\leadsto t + \frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \color{blue}{-1 \cdot \left(a \cdot \left(t - x\right)\right)}}{z} \]
                                    7. distribute-lft-out--N/A

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

                                      \[\leadsto t + \color{blue}{-1 \cdot \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                    9. mul-1-negN/A

                                      \[\leadsto t + \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} \]
                                    10. unsub-negN/A

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

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

                                      \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                  7. Applied rewrites80.1%

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

                                  \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -6.3 \cdot 10^{-24}:\\ \;\;\;\;\mathsf{fma}\left(t - x, \frac{y - z}{a}, x\right)\\ \mathbf{elif}\;a \leq 6.4 \cdot 10^{+64}:\\ \;\;\;\;t - \frac{\left(x - t\right) \cdot \left(a - y\right)}{z}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(t - x, \frac{y - z}{a}, x\right)\\ \end{array} \]
                                5. Add Preprocessing

                                Alternative 12: 24.6% accurate, 0.8× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(-y\right) \cdot \frac{t}{z}\\ \mathbf{if}\;y \leq -8.5 \cdot 10^{+95}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 6.4 \cdot 10^{+16}:\\ \;\;\;\;\left(t - x\right) + x\\ \mathbf{elif}\;y \leq 3.4 \cdot 10^{+237}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                (FPCore (x y z t a)
                                 :precision binary64
                                 (let* ((t_1 (* (- y) (/ t z))))
                                   (if (<= y -8.5e+95)
                                     t_1
                                     (if (<= y 6.4e+16)
                                       (+ (- t x) x)
                                       (if (<= y 3.4e+237) (/ (* y x) z) t_1)))))
                                double code(double x, double y, double z, double t, double a) {
                                	double t_1 = -y * (t / z);
                                	double tmp;
                                	if (y <= -8.5e+95) {
                                		tmp = t_1;
                                	} else if (y <= 6.4e+16) {
                                		tmp = (t - x) + x;
                                	} else if (y <= 3.4e+237) {
                                		tmp = (y * x) / z;
                                	} else {
                                		tmp = t_1;
                                	}
                                	return tmp;
                                }
                                
                                real(8) function code(x, y, z, t, a)
                                    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) :: t_1
                                    real(8) :: tmp
                                    t_1 = -y * (t / z)
                                    if (y <= (-8.5d+95)) then
                                        tmp = t_1
                                    else if (y <= 6.4d+16) then
                                        tmp = (t - x) + x
                                    else if (y <= 3.4d+237) then
                                        tmp = (y * x) / 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 t_1 = -y * (t / z);
                                	double tmp;
                                	if (y <= -8.5e+95) {
                                		tmp = t_1;
                                	} else if (y <= 6.4e+16) {
                                		tmp = (t - x) + x;
                                	} else if (y <= 3.4e+237) {
                                		tmp = (y * x) / z;
                                	} else {
                                		tmp = t_1;
                                	}
                                	return tmp;
                                }
                                
                                def code(x, y, z, t, a):
                                	t_1 = -y * (t / z)
                                	tmp = 0
                                	if y <= -8.5e+95:
                                		tmp = t_1
                                	elif y <= 6.4e+16:
                                		tmp = (t - x) + x
                                	elif y <= 3.4e+237:
                                		tmp = (y * x) / z
                                	else:
                                		tmp = t_1
                                	return tmp
                                
                                function code(x, y, z, t, a)
                                	t_1 = Float64(Float64(-y) * Float64(t / z))
                                	tmp = 0.0
                                	if (y <= -8.5e+95)
                                		tmp = t_1;
                                	elseif (y <= 6.4e+16)
                                		tmp = Float64(Float64(t - x) + x);
                                	elseif (y <= 3.4e+237)
                                		tmp = Float64(Float64(y * x) / z);
                                	else
                                		tmp = t_1;
                                	end
                                	return tmp
                                end
                                
                                function tmp_2 = code(x, y, z, t, a)
                                	t_1 = -y * (t / z);
                                	tmp = 0.0;
                                	if (y <= -8.5e+95)
                                		tmp = t_1;
                                	elseif (y <= 6.4e+16)
                                		tmp = (t - x) + x;
                                	elseif (y <= 3.4e+237)
                                		tmp = (y * x) / z;
                                	else
                                		tmp = t_1;
                                	end
                                	tmp_2 = tmp;
                                end
                                
                                code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[((-y) * N[(t / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -8.5e+95], t$95$1, If[LessEqual[y, 6.4e+16], N[(N[(t - x), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[y, 3.4e+237], N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision], t$95$1]]]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                t_1 := \left(-y\right) \cdot \frac{t}{z}\\
                                \mathbf{if}\;y \leq -8.5 \cdot 10^{+95}:\\
                                \;\;\;\;t\_1\\
                                
                                \mathbf{elif}\;y \leq 6.4 \cdot 10^{+16}:\\
                                \;\;\;\;\left(t - x\right) + x\\
                                
                                \mathbf{elif}\;y \leq 3.4 \cdot 10^{+237}:\\
                                \;\;\;\;\frac{y \cdot x}{z}\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;t\_1\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 3 regimes
                                2. if y < -8.5000000000000002e95 or 3.4000000000000003e237 < y

                                  1. Initial program 81.5%

                                    \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                  2. Add Preprocessing
                                  3. Step-by-step derivation
                                    1. lift-+.f64N/A

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

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

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

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

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

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

                                      \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                    8. lower-/.f6496.8

                                      \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
                                  4. Applied rewrites96.8%

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                  5. Taylor expanded in z around inf

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

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

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

                                      \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \color{blue}{\frac{-1 \cdot \left(a \cdot \left(t - x\right)\right)}{z}}\right) \]
                                    4. mul-1-negN/A

                                      \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \frac{\color{blue}{\mathsf{neg}\left(a \cdot \left(t - x\right)\right)}}{z}\right) \]
                                    5. div-subN/A

                                      \[\leadsto t + \color{blue}{\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \left(\mathsf{neg}\left(a \cdot \left(t - x\right)\right)\right)}{z}} \]
                                    6. mul-1-negN/A

                                      \[\leadsto t + \frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \color{blue}{-1 \cdot \left(a \cdot \left(t - x\right)\right)}}{z} \]
                                    7. distribute-lft-out--N/A

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

                                      \[\leadsto t + \color{blue}{-1 \cdot \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                    9. mul-1-negN/A

                                      \[\leadsto t + \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} \]
                                    10. unsub-negN/A

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

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

                                      \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                  7. Applied rewrites52.7%

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

                                    \[\leadsto -1 \cdot \color{blue}{\frac{y \cdot \left(t - x\right)}{z}} \]
                                  9. Step-by-step derivation
                                    1. Applied rewrites54.0%

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

                                      \[\leadsto \frac{t}{z} \cdot \left(-y\right) \]
                                    3. Step-by-step derivation
                                      1. Applied rewrites41.1%

                                        \[\leadsto \frac{t}{z} \cdot \left(-y\right) \]

                                      if -8.5000000000000002e95 < y < 6.4e16

                                      1. Initial program 63.4%

                                        \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                      2. Add Preprocessing
                                      3. Taylor expanded in z around inf

                                        \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                      4. Step-by-step derivation
                                        1. lower--.f6430.1

                                          \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                      5. Applied rewrites30.1%

                                        \[\leadsto x + \color{blue}{\left(t - x\right)} \]

                                      if 6.4e16 < y < 3.4000000000000003e237

                                      1. Initial program 77.4%

                                        \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                      2. Add Preprocessing
                                      3. Step-by-step derivation
                                        1. lift-+.f64N/A

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

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

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

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

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

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

                                          \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                        8. lower-/.f6492.4

                                          \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
                                      4. Applied rewrites92.4%

                                        \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                      5. Taylor expanded in z around inf

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

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

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

                                          \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \color{blue}{\frac{-1 \cdot \left(a \cdot \left(t - x\right)\right)}{z}}\right) \]
                                        4. mul-1-negN/A

                                          \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \frac{\color{blue}{\mathsf{neg}\left(a \cdot \left(t - x\right)\right)}}{z}\right) \]
                                        5. div-subN/A

                                          \[\leadsto t + \color{blue}{\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \left(\mathsf{neg}\left(a \cdot \left(t - x\right)\right)\right)}{z}} \]
                                        6. mul-1-negN/A

                                          \[\leadsto t + \frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \color{blue}{-1 \cdot \left(a \cdot \left(t - x\right)\right)}}{z} \]
                                        7. distribute-lft-out--N/A

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

                                          \[\leadsto t + \color{blue}{-1 \cdot \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                        9. mul-1-negN/A

                                          \[\leadsto t + \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} \]
                                        10. unsub-negN/A

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

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

                                          \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                      7. Applied rewrites41.8%

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

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

                                          \[\leadsto \frac{t - x}{z} \cdot \color{blue}{\left(-y\right)} \]
                                        2. Taylor expanded in x around inf

                                          \[\leadsto \frac{x \cdot y}{z} \]
                                        3. Step-by-step derivation
                                          1. Applied rewrites32.6%

                                            \[\leadsto \frac{y \cdot x}{z} \]
                                        4. Recombined 3 regimes into one program.
                                        5. Final simplification33.4%

                                          \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -8.5 \cdot 10^{+95}:\\ \;\;\;\;\left(-y\right) \cdot \frac{t}{z}\\ \mathbf{elif}\;y \leq 6.4 \cdot 10^{+16}:\\ \;\;\;\;\left(t - x\right) + x\\ \mathbf{elif}\;y \leq 3.4 \cdot 10^{+237}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{else}:\\ \;\;\;\;\left(-y\right) \cdot \frac{t}{z}\\ \end{array} \]
                                        6. Add Preprocessing

                                        Alternative 13: 24.9% accurate, 0.8× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{-y}{z} \cdot t\\ \mathbf{if}\;y \leq -8.5 \cdot 10^{+95}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 6.4 \cdot 10^{+16}:\\ \;\;\;\;\left(t - x\right) + x\\ \mathbf{elif}\;y \leq 3.4 \cdot 10^{+237}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a)
                                         :precision binary64
                                         (let* ((t_1 (* (/ (- y) z) t)))
                                           (if (<= y -8.5e+95)
                                             t_1
                                             (if (<= y 6.4e+16)
                                               (+ (- t x) x)
                                               (if (<= y 3.4e+237) (/ (* y x) z) t_1)))))
                                        double code(double x, double y, double z, double t, double a) {
                                        	double t_1 = (-y / z) * t;
                                        	double tmp;
                                        	if (y <= -8.5e+95) {
                                        		tmp = t_1;
                                        	} else if (y <= 6.4e+16) {
                                        		tmp = (t - x) + x;
                                        	} else if (y <= 3.4e+237) {
                                        		tmp = (y * x) / z;
                                        	} else {
                                        		tmp = t_1;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        real(8) function code(x, y, z, t, a)
                                            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) :: t_1
                                            real(8) :: tmp
                                            t_1 = (-y / z) * t
                                            if (y <= (-8.5d+95)) then
                                                tmp = t_1
                                            else if (y <= 6.4d+16) then
                                                tmp = (t - x) + x
                                            else if (y <= 3.4d+237) then
                                                tmp = (y * x) / 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 t_1 = (-y / z) * t;
                                        	double tmp;
                                        	if (y <= -8.5e+95) {
                                        		tmp = t_1;
                                        	} else if (y <= 6.4e+16) {
                                        		tmp = (t - x) + x;
                                        	} else if (y <= 3.4e+237) {
                                        		tmp = (y * x) / z;
                                        	} else {
                                        		tmp = t_1;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        def code(x, y, z, t, a):
                                        	t_1 = (-y / z) * t
                                        	tmp = 0
                                        	if y <= -8.5e+95:
                                        		tmp = t_1
                                        	elif y <= 6.4e+16:
                                        		tmp = (t - x) + x
                                        	elif y <= 3.4e+237:
                                        		tmp = (y * x) / z
                                        	else:
                                        		tmp = t_1
                                        	return tmp
                                        
                                        function code(x, y, z, t, a)
                                        	t_1 = Float64(Float64(Float64(-y) / z) * t)
                                        	tmp = 0.0
                                        	if (y <= -8.5e+95)
                                        		tmp = t_1;
                                        	elseif (y <= 6.4e+16)
                                        		tmp = Float64(Float64(t - x) + x);
                                        	elseif (y <= 3.4e+237)
                                        		tmp = Float64(Float64(y * x) / z);
                                        	else
                                        		tmp = t_1;
                                        	end
                                        	return tmp
                                        end
                                        
                                        function tmp_2 = code(x, y, z, t, a)
                                        	t_1 = (-y / z) * t;
                                        	tmp = 0.0;
                                        	if (y <= -8.5e+95)
                                        		tmp = t_1;
                                        	elseif (y <= 6.4e+16)
                                        		tmp = (t - x) + x;
                                        	elseif (y <= 3.4e+237)
                                        		tmp = (y * x) / z;
                                        	else
                                        		tmp = t_1;
                                        	end
                                        	tmp_2 = tmp;
                                        end
                                        
                                        code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[((-y) / z), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[y, -8.5e+95], t$95$1, If[LessEqual[y, 6.4e+16], N[(N[(t - x), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[y, 3.4e+237], N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision], t$95$1]]]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        t_1 := \frac{-y}{z} \cdot t\\
                                        \mathbf{if}\;y \leq -8.5 \cdot 10^{+95}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        \mathbf{elif}\;y \leq 6.4 \cdot 10^{+16}:\\
                                        \;\;\;\;\left(t - x\right) + x\\
                                        
                                        \mathbf{elif}\;y \leq 3.4 \cdot 10^{+237}:\\
                                        \;\;\;\;\frac{y \cdot x}{z}\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 3 regimes
                                        2. if y < -8.5000000000000002e95 or 3.4000000000000003e237 < y

                                          1. Initial program 81.5%

                                            \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                          2. Add Preprocessing
                                          3. Step-by-step derivation
                                            1. lift-+.f64N/A

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

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

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

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

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

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

                                              \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                            8. lower-/.f6496.8

                                              \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
                                          4. Applied rewrites96.8%

                                            \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                          5. Taylor expanded in z around inf

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

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

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

                                              \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \color{blue}{\frac{-1 \cdot \left(a \cdot \left(t - x\right)\right)}{z}}\right) \]
                                            4. mul-1-negN/A

                                              \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \frac{\color{blue}{\mathsf{neg}\left(a \cdot \left(t - x\right)\right)}}{z}\right) \]
                                            5. div-subN/A

                                              \[\leadsto t + \color{blue}{\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \left(\mathsf{neg}\left(a \cdot \left(t - x\right)\right)\right)}{z}} \]
                                            6. mul-1-negN/A

                                              \[\leadsto t + \frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \color{blue}{-1 \cdot \left(a \cdot \left(t - x\right)\right)}}{z} \]
                                            7. distribute-lft-out--N/A

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

                                              \[\leadsto t + \color{blue}{-1 \cdot \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                            9. mul-1-negN/A

                                              \[\leadsto t + \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} \]
                                            10. unsub-negN/A

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

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

                                              \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                          7. Applied rewrites52.7%

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

                                            \[\leadsto -1 \cdot \color{blue}{\frac{y \cdot \left(t - x\right)}{z}} \]
                                          9. Step-by-step derivation
                                            1. Applied rewrites54.0%

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

                                              \[\leadsto -1 \cdot \frac{t \cdot y}{\color{blue}{z}} \]
                                            3. Step-by-step derivation
                                              1. Applied rewrites41.1%

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

                                              if -8.5000000000000002e95 < y < 6.4e16

                                              1. Initial program 63.4%

                                                \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                              2. Add Preprocessing
                                              3. Taylor expanded in z around inf

                                                \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                              4. Step-by-step derivation
                                                1. lower--.f6430.1

                                                  \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                              5. Applied rewrites30.1%

                                                \[\leadsto x + \color{blue}{\left(t - x\right)} \]

                                              if 6.4e16 < y < 3.4000000000000003e237

                                              1. Initial program 77.4%

                                                \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                              2. Add Preprocessing
                                              3. Step-by-step derivation
                                                1. lift-+.f64N/A

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

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

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

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

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

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

                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                                8. lower-/.f6492.4

                                                  \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
                                              4. Applied rewrites92.4%

                                                \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                              5. Taylor expanded in z around inf

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

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

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

                                                  \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \color{blue}{\frac{-1 \cdot \left(a \cdot \left(t - x\right)\right)}{z}}\right) \]
                                                4. mul-1-negN/A

                                                  \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \frac{\color{blue}{\mathsf{neg}\left(a \cdot \left(t - x\right)\right)}}{z}\right) \]
                                                5. div-subN/A

                                                  \[\leadsto t + \color{blue}{\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \left(\mathsf{neg}\left(a \cdot \left(t - x\right)\right)\right)}{z}} \]
                                                6. mul-1-negN/A

                                                  \[\leadsto t + \frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \color{blue}{-1 \cdot \left(a \cdot \left(t - x\right)\right)}}{z} \]
                                                7. distribute-lft-out--N/A

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

                                                  \[\leadsto t + \color{blue}{-1 \cdot \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                                9. mul-1-negN/A

                                                  \[\leadsto t + \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} \]
                                                10. unsub-negN/A

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

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

                                                  \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                              7. Applied rewrites41.8%

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

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

                                                  \[\leadsto \frac{t - x}{z} \cdot \color{blue}{\left(-y\right)} \]
                                                2. Taylor expanded in x around inf

                                                  \[\leadsto \frac{x \cdot y}{z} \]
                                                3. Step-by-step derivation
                                                  1. Applied rewrites32.6%

                                                    \[\leadsto \frac{y \cdot x}{z} \]
                                                4. Recombined 3 regimes into one program.
                                                5. Final simplification33.4%

                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -8.5 \cdot 10^{+95}:\\ \;\;\;\;\frac{-y}{z} \cdot t\\ \mathbf{elif}\;y \leq 6.4 \cdot 10^{+16}:\\ \;\;\;\;\left(t - x\right) + x\\ \mathbf{elif}\;y \leq 3.4 \cdot 10^{+237}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{else}:\\ \;\;\;\;\frac{-y}{z} \cdot t\\ \end{array} \]
                                                6. Add Preprocessing

                                                Alternative 14: 63.2% accurate, 0.9× speedup?

                                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.25 \cdot 10^{+128}:\\ \;\;\;\;\frac{z}{z - a} \cdot t\\ \mathbf{elif}\;z \leq 5 \cdot 10^{+62}:\\ \;\;\;\;\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \end{array} \end{array} \]
                                                (FPCore (x y z t a)
                                                 :precision binary64
                                                 (if (<= z -1.25e+128)
                                                   (* (/ z (- z a)) t)
                                                   (if (<= z 5e+62) (fma (- t x) (/ y a) x) (fma a (/ (- t x) z) t))))
                                                double code(double x, double y, double z, double t, double a) {
                                                	double tmp;
                                                	if (z <= -1.25e+128) {
                                                		tmp = (z / (z - a)) * t;
                                                	} else if (z <= 5e+62) {
                                                		tmp = fma((t - x), (y / a), x);
                                                	} else {
                                                		tmp = fma(a, ((t - x) / z), t);
                                                	}
                                                	return tmp;
                                                }
                                                
                                                function code(x, y, z, t, a)
                                                	tmp = 0.0
                                                	if (z <= -1.25e+128)
                                                		tmp = Float64(Float64(z / Float64(z - a)) * t);
                                                	elseif (z <= 5e+62)
                                                		tmp = fma(Float64(t - x), Float64(y / a), x);
                                                	else
                                                		tmp = fma(a, Float64(Float64(t - x) / z), t);
                                                	end
                                                	return tmp
                                                end
                                                
                                                code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.25e+128], N[(N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, 5e+62], N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision] + x), $MachinePrecision], N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision]]]
                                                
                                                \begin{array}{l}
                                                
                                                \\
                                                \begin{array}{l}
                                                \mathbf{if}\;z \leq -1.25 \cdot 10^{+128}:\\
                                                \;\;\;\;\frac{z}{z - a} \cdot t\\
                                                
                                                \mathbf{elif}\;z \leq 5 \cdot 10^{+62}:\\
                                                \;\;\;\;\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 3 regimes
                                                2. if z < -1.25e128

                                                  1. Initial program 42.3%

                                                    \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                                  2. Add Preprocessing
                                                  3. Step-by-step derivation
                                                    1. lift-+.f64N/A

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

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

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

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

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

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

                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                                    8. lower-/.f6472.2

                                                      \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
                                                  4. Applied rewrites72.2%

                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                                  5. Taylor expanded in x around 0

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

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

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

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

                                                      \[\leadsto \frac{\color{blue}{\left(y - z\right)} \cdot t}{a - z} \]
                                                    5. lower--.f6442.1

                                                      \[\leadsto \frac{\left(y - z\right) \cdot t}{\color{blue}{a - z}} \]
                                                  7. Applied rewrites42.1%

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

                                                    \[\leadsto -1 \cdot \color{blue}{\frac{t \cdot z}{a - z}} \]
                                                  9. Step-by-step derivation
                                                    1. Applied rewrites66.7%

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

                                                    if -1.25e128 < z < 5.00000000000000029e62

                                                    1. Initial program 88.2%

                                                      \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                                    2. Add Preprocessing
                                                    3. Step-by-step derivation
                                                      1. lift-+.f64N/A

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

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

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

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

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

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

                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                                      8. lower-/.f6493.9

                                                        \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
                                                    4. Applied rewrites93.9%

                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                                    5. Taylor expanded in z around 0

                                                      \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y}{a}}, x\right) \]
                                                    6. Step-by-step derivation
                                                      1. lower-/.f6469.6

                                                        \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y}{a}}, x\right) \]
                                                    7. Applied rewrites69.6%

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

                                                    if 5.00000000000000029e62 < z

                                                    1. Initial program 35.2%

                                                      \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                                    2. Add Preprocessing
                                                    3. Step-by-step derivation
                                                      1. lift-+.f64N/A

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

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

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

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

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

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

                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                                      8. lower-/.f6462.9

                                                        \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
                                                    4. Applied rewrites62.9%

                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                                    5. Taylor expanded in z around inf

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

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

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

                                                        \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \color{blue}{\frac{-1 \cdot \left(a \cdot \left(t - x\right)\right)}{z}}\right) \]
                                                      4. mul-1-negN/A

                                                        \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \frac{\color{blue}{\mathsf{neg}\left(a \cdot \left(t - x\right)\right)}}{z}\right) \]
                                                      5. div-subN/A

                                                        \[\leadsto t + \color{blue}{\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \left(\mathsf{neg}\left(a \cdot \left(t - x\right)\right)\right)}{z}} \]
                                                      6. mul-1-negN/A

                                                        \[\leadsto t + \frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \color{blue}{-1 \cdot \left(a \cdot \left(t - x\right)\right)}}{z} \]
                                                      7. distribute-lft-out--N/A

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

                                                        \[\leadsto t + \color{blue}{-1 \cdot \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                                      9. mul-1-negN/A

                                                        \[\leadsto t + \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} \]
                                                      10. unsub-negN/A

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

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

                                                        \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                                    7. Applied rewrites73.4%

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

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

                                                        \[\leadsto \mathsf{fma}\left(a, \color{blue}{\frac{t - x}{z}}, t\right) \]
                                                    10. Recombined 3 regimes into one program.
                                                    11. Final simplification68.8%

                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.25 \cdot 10^{+128}:\\ \;\;\;\;\frac{z}{z - a} \cdot t\\ \mathbf{elif}\;z \leq 5 \cdot 10^{+62}:\\ \;\;\;\;\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \end{array} \]
                                                    12. Add Preprocessing

                                                    Alternative 15: 63.8% accurate, 0.9× speedup?

                                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \mathbf{if}\;z \leq -6.2 \cdot 10^{+127}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 5 \cdot 10^{+62}:\\ \;\;\;\;\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                    (FPCore (x y z t a)
                                                     :precision binary64
                                                     (let* ((t_1 (fma a (/ (- t x) z) t)))
                                                       (if (<= z -6.2e+127) t_1 (if (<= z 5e+62) (fma (- t x) (/ y a) x) t_1))))
                                                    double code(double x, double y, double z, double t, double a) {
                                                    	double t_1 = fma(a, ((t - x) / z), t);
                                                    	double tmp;
                                                    	if (z <= -6.2e+127) {
                                                    		tmp = t_1;
                                                    	} else if (z <= 5e+62) {
                                                    		tmp = fma((t - x), (y / a), x);
                                                    	} else {
                                                    		tmp = t_1;
                                                    	}
                                                    	return tmp;
                                                    }
                                                    
                                                    function code(x, y, z, t, a)
                                                    	t_1 = fma(a, Float64(Float64(t - x) / z), t)
                                                    	tmp = 0.0
                                                    	if (z <= -6.2e+127)
                                                    		tmp = t_1;
                                                    	elseif (z <= 5e+62)
                                                    		tmp = fma(Float64(t - x), Float64(y / a), x);
                                                    	else
                                                    		tmp = t_1;
                                                    	end
                                                    	return tmp
                                                    end
                                                    
                                                    code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision]}, If[LessEqual[z, -6.2e+127], t$95$1, If[LessEqual[z, 5e+62], N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
                                                    
                                                    \begin{array}{l}
                                                    
                                                    \\
                                                    \begin{array}{l}
                                                    t_1 := \mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\
                                                    \mathbf{if}\;z \leq -6.2 \cdot 10^{+127}:\\
                                                    \;\;\;\;t\_1\\
                                                    
                                                    \mathbf{elif}\;z \leq 5 \cdot 10^{+62}:\\
                                                    \;\;\;\;\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)\\
                                                    
                                                    \mathbf{else}:\\
                                                    \;\;\;\;t\_1\\
                                                    
                                                    
                                                    \end{array}
                                                    \end{array}
                                                    
                                                    Derivation
                                                    1. Split input into 2 regimes
                                                    2. if z < -6.2000000000000005e127 or 5.00000000000000029e62 < z

                                                      1. Initial program 38.3%

                                                        \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                                      2. Add Preprocessing
                                                      3. Step-by-step derivation
                                                        1. lift-+.f64N/A

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

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

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

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

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

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

                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                                        8. lower-/.f6466.9

                                                          \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
                                                      4. Applied rewrites66.9%

                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                                      5. Taylor expanded in z around inf

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

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

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

                                                          \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \color{blue}{\frac{-1 \cdot \left(a \cdot \left(t - x\right)\right)}{z}}\right) \]
                                                        4. mul-1-negN/A

                                                          \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \frac{\color{blue}{\mathsf{neg}\left(a \cdot \left(t - x\right)\right)}}{z}\right) \]
                                                        5. div-subN/A

                                                          \[\leadsto t + \color{blue}{\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \left(\mathsf{neg}\left(a \cdot \left(t - x\right)\right)\right)}{z}} \]
                                                        6. mul-1-negN/A

                                                          \[\leadsto t + \frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \color{blue}{-1 \cdot \left(a \cdot \left(t - x\right)\right)}}{z} \]
                                                        7. distribute-lft-out--N/A

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

                                                          \[\leadsto t + \color{blue}{-1 \cdot \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                                        9. mul-1-negN/A

                                                          \[\leadsto t + \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} \]
                                                        10. unsub-negN/A

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

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

                                                          \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                                      7. Applied rewrites72.6%

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

                                                        \[\leadsto t - \color{blue}{-1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                                                      9. Step-by-step derivation
                                                        1. Applied rewrites65.0%

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

                                                        if -6.2000000000000005e127 < z < 5.00000000000000029e62

                                                        1. Initial program 88.2%

                                                          \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                                        2. Add Preprocessing
                                                        3. Step-by-step derivation
                                                          1. lift-+.f64N/A

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

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

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

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

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

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

                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                                          8. lower-/.f6493.9

                                                            \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
                                                        4. Applied rewrites93.9%

                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                                        5. Taylor expanded in z around 0

                                                          \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y}{a}}, x\right) \]
                                                        6. Step-by-step derivation
                                                          1. lower-/.f6469.6

                                                            \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y}{a}}, x\right) \]
                                                        7. Applied rewrites69.6%

                                                          \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y}{a}}, x\right) \]
                                                      10. Recombined 2 regimes into one program.
                                                      11. Add Preprocessing

                                                      Alternative 16: 62.7% accurate, 0.9× speedup?

                                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \mathbf{if}\;z \leq -1.12 \cdot 10^{+124}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 5 \cdot 10^{+62}:\\ \;\;\;\;\mathsf{fma}\left(\frac{t - x}{a}, y, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                      (FPCore (x y z t a)
                                                       :precision binary64
                                                       (let* ((t_1 (fma a (/ (- t x) z) t)))
                                                         (if (<= z -1.12e+124) t_1 (if (<= z 5e+62) (fma (/ (- t x) a) y x) t_1))))
                                                      double code(double x, double y, double z, double t, double a) {
                                                      	double t_1 = fma(a, ((t - x) / z), t);
                                                      	double tmp;
                                                      	if (z <= -1.12e+124) {
                                                      		tmp = t_1;
                                                      	} else if (z <= 5e+62) {
                                                      		tmp = fma(((t - x) / a), y, x);
                                                      	} else {
                                                      		tmp = t_1;
                                                      	}
                                                      	return tmp;
                                                      }
                                                      
                                                      function code(x, y, z, t, a)
                                                      	t_1 = fma(a, Float64(Float64(t - x) / z), t)
                                                      	tmp = 0.0
                                                      	if (z <= -1.12e+124)
                                                      		tmp = t_1;
                                                      	elseif (z <= 5e+62)
                                                      		tmp = fma(Float64(Float64(t - x) / a), y, x);
                                                      	else
                                                      		tmp = t_1;
                                                      	end
                                                      	return tmp
                                                      end
                                                      
                                                      code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision]}, If[LessEqual[z, -1.12e+124], t$95$1, If[LessEqual[z, 5e+62], N[(N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision] * y + x), $MachinePrecision], t$95$1]]]
                                                      
                                                      \begin{array}{l}
                                                      
                                                      \\
                                                      \begin{array}{l}
                                                      t_1 := \mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\
                                                      \mathbf{if}\;z \leq -1.12 \cdot 10^{+124}:\\
                                                      \;\;\;\;t\_1\\
                                                      
                                                      \mathbf{elif}\;z \leq 5 \cdot 10^{+62}:\\
                                                      \;\;\;\;\mathsf{fma}\left(\frac{t - x}{a}, y, x\right)\\
                                                      
                                                      \mathbf{else}:\\
                                                      \;\;\;\;t\_1\\
                                                      
                                                      
                                                      \end{array}
                                                      \end{array}
                                                      
                                                      Derivation
                                                      1. Split input into 2 regimes
                                                      2. if z < -1.12000000000000005e124 or 5.00000000000000029e62 < z

                                                        1. Initial program 38.9%

                                                          \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                                        2. Add Preprocessing
                                                        3. Step-by-step derivation
                                                          1. lift-+.f64N/A

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

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

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

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

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

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

                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                                          8. lower-/.f6467.2

                                                            \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
                                                        4. Applied rewrites67.2%

                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                                        5. Taylor expanded in z around inf

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

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

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

                                                            \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \color{blue}{\frac{-1 \cdot \left(a \cdot \left(t - x\right)\right)}{z}}\right) \]
                                                          4. mul-1-negN/A

                                                            \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \frac{\color{blue}{\mathsf{neg}\left(a \cdot \left(t - x\right)\right)}}{z}\right) \]
                                                          5. div-subN/A

                                                            \[\leadsto t + \color{blue}{\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \left(\mathsf{neg}\left(a \cdot \left(t - x\right)\right)\right)}{z}} \]
                                                          6. mul-1-negN/A

                                                            \[\leadsto t + \frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \color{blue}{-1 \cdot \left(a \cdot \left(t - x\right)\right)}}{z} \]
                                                          7. distribute-lft-out--N/A

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

                                                            \[\leadsto t + \color{blue}{-1 \cdot \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                                          9. mul-1-negN/A

                                                            \[\leadsto t + \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} \]
                                                          10. unsub-negN/A

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

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

                                                            \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                                        7. Applied rewrites71.9%

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

                                                          \[\leadsto t - \color{blue}{-1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                                                        9. Step-by-step derivation
                                                          1. Applied rewrites64.4%

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

                                                          if -1.12000000000000005e124 < z < 5.00000000000000029e62

                                                          1. Initial program 88.2%

                                                            \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                                          2. Add Preprocessing
                                                          3. Taylor expanded in z around 0

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

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

                                                              \[\leadsto \color{blue}{y \cdot \frac{t - x}{a}} + x \]
                                                            3. *-commutativeN/A

                                                              \[\leadsto \color{blue}{\frac{t - x}{a} \cdot y} + x \]
                                                            4. lower-fma.f64N/A

                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{t - x}{a}, y, x\right)} \]
                                                            5. lower-/.f64N/A

                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a}}, y, x\right) \]
                                                            6. lower--.f6468.4

                                                              \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{t - x}}{a}, y, x\right) \]
                                                          5. Applied rewrites68.4%

                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{t - x}{a}, y, x\right)} \]
                                                        10. Recombined 2 regimes into one program.
                                                        11. Add Preprocessing

                                                        Alternative 17: 45.8% accurate, 0.9× speedup?

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

                                                          1. Initial program 33.9%

                                                            \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                                          2. Add Preprocessing
                                                          3. Taylor expanded in z around inf

                                                            \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                          4. Step-by-step derivation
                                                            1. lower--.f6443.7

                                                              \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                          5. Applied rewrites43.7%

                                                            \[\leadsto x + \color{blue}{\left(t - x\right)} \]

                                                          if -1.4799999999999999e203 < z < 8.5000000000000004e63

                                                          1. Initial program 85.6%

                                                            \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                                          2. Add Preprocessing
                                                          3. Taylor expanded in z around 0

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

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

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

                                                              \[\leadsto x + \frac{\color{blue}{\left(t - x\right) \cdot y}}{a} \]
                                                            4. lower--.f6460.3

                                                              \[\leadsto x + \frac{\color{blue}{\left(t - x\right)} \cdot y}{a} \]
                                                          5. Applied rewrites60.3%

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

                                                            \[\leadsto x + \frac{t \cdot y}{a} \]
                                                          7. Step-by-step derivation
                                                            1. Applied rewrites45.6%

                                                              \[\leadsto x + \frac{y \cdot t}{a} \]
                                                          8. Recombined 2 regimes into one program.
                                                          9. Final simplification45.1%

                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.48 \cdot 10^{+203}:\\ \;\;\;\;\left(t - x\right) + x\\ \mathbf{elif}\;z \leq 8.5 \cdot 10^{+63}:\\ \;\;\;\;\frac{t \cdot y}{a} + x\\ \mathbf{else}:\\ \;\;\;\;\left(t - x\right) + x\\ \end{array} \]
                                                          10. Add Preprocessing

                                                          Alternative 18: 28.3% accurate, 0.9× speedup?

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

                                                            1. Initial program 63.4%

                                                              \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                                            2. Add Preprocessing
                                                            3. Step-by-step derivation
                                                              1. lift-+.f64N/A

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

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

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

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

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

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

                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                                              8. lower-/.f6479.4

                                                                \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
                                                            4. Applied rewrites79.4%

                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                                            5. Taylor expanded in z around inf

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

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

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

                                                                \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \color{blue}{\frac{-1 \cdot \left(a \cdot \left(t - x\right)\right)}{z}}\right) \]
                                                              4. mul-1-negN/A

                                                                \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \frac{\color{blue}{\mathsf{neg}\left(a \cdot \left(t - x\right)\right)}}{z}\right) \]
                                                              5. div-subN/A

                                                                \[\leadsto t + \color{blue}{\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \left(\mathsf{neg}\left(a \cdot \left(t - x\right)\right)\right)}{z}} \]
                                                              6. mul-1-negN/A

                                                                \[\leadsto t + \frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \color{blue}{-1 \cdot \left(a \cdot \left(t - x\right)\right)}}{z} \]
                                                              7. distribute-lft-out--N/A

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

                                                                \[\leadsto t + \color{blue}{-1 \cdot \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                                              9. mul-1-negN/A

                                                                \[\leadsto t + \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} \]
                                                              10. unsub-negN/A

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

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

                                                                \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                                            7. Applied rewrites47.2%

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

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

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

                                                              if -7.69999999999999994e-82 < x < 2.90000000000000029e39

                                                              1. Initial program 80.1%

                                                                \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                                              2. Add Preprocessing
                                                              3. Taylor expanded in z around inf

                                                                \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                              4. Step-by-step derivation
                                                                1. lower--.f6432.1

                                                                  \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                              5. Applied rewrites32.1%

                                                                \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                            10. Recombined 2 regimes into one program.
                                                            11. Final simplification33.3%

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

                                                            Alternative 19: 24.8% accurate, 1.0× speedup?

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

                                                              1. Initial program 79.7%

                                                                \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                                              2. Add Preprocessing
                                                              3. Step-by-step derivation
                                                                1. lift-+.f64N/A

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

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

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

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

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

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

                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                                                8. lower-/.f6494.8

                                                                  \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y - z}{a - z}}, x\right) \]
                                                              4. Applied rewrites94.8%

                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)} \]
                                                              5. Taylor expanded in z around inf

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

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

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

                                                                  \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \color{blue}{\frac{-1 \cdot \left(a \cdot \left(t - x\right)\right)}{z}}\right) \]
                                                                4. mul-1-negN/A

                                                                  \[\leadsto t + \left(\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right)}{z} - \frac{\color{blue}{\mathsf{neg}\left(a \cdot \left(t - x\right)\right)}}{z}\right) \]
                                                                5. div-subN/A

                                                                  \[\leadsto t + \color{blue}{\frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \left(\mathsf{neg}\left(a \cdot \left(t - x\right)\right)\right)}{z}} \]
                                                                6. mul-1-negN/A

                                                                  \[\leadsto t + \frac{-1 \cdot \left(y \cdot \left(t - x\right)\right) - \color{blue}{-1 \cdot \left(a \cdot \left(t - x\right)\right)}}{z} \]
                                                                7. distribute-lft-out--N/A

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

                                                                  \[\leadsto t + \color{blue}{-1 \cdot \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                                                9. mul-1-negN/A

                                                                  \[\leadsto t + \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} \]
                                                                10. unsub-negN/A

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

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

                                                                  \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                                              7. Applied rewrites48.0%

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

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

                                                                  \[\leadsto \frac{t - x}{z} \cdot \color{blue}{\left(-y\right)} \]
                                                                2. Taylor expanded in x around inf

                                                                  \[\leadsto \frac{x \cdot y}{z} \]
                                                                3. Step-by-step derivation
                                                                  1. Applied rewrites29.8%

                                                                    \[\leadsto \frac{y \cdot x}{z} \]

                                                                  if -1.90000000000000018e97 < y < 6.4e16

                                                                  1. Initial program 63.4%

                                                                    \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                                                  2. Add Preprocessing
                                                                  3. Taylor expanded in z around inf

                                                                    \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                  4. Step-by-step derivation
                                                                    1. lower--.f6430.1

                                                                      \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                  5. Applied rewrites30.1%

                                                                    \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                4. Recombined 2 regimes into one program.
                                                                5. Final simplification30.0%

                                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.9 \cdot 10^{+97}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{elif}\;y \leq 6.4 \cdot 10^{+16}:\\ \;\;\;\;\left(t - x\right) + x\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \end{array} \]
                                                                6. Add Preprocessing

                                                                Alternative 20: 19.6% accurate, 4.1× speedup?

                                                                \[\begin{array}{l} \\ \left(t - x\right) + x \end{array} \]
                                                                (FPCore (x y z t a) :precision binary64 (+ (- t x) x))
                                                                double code(double x, double y, double z, double t, double a) {
                                                                	return (t - x) + x;
                                                                }
                                                                
                                                                real(8) function code(x, y, z, t, a)
                                                                    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
                                                                    code = (t - x) + x
                                                                end function
                                                                
                                                                public static double code(double x, double y, double z, double t, double a) {
                                                                	return (t - x) + x;
                                                                }
                                                                
                                                                def code(x, y, z, t, a):
                                                                	return (t - x) + x
                                                                
                                                                function code(x, y, z, t, a)
                                                                	return Float64(Float64(t - x) + x)
                                                                end
                                                                
                                                                function tmp = code(x, y, z, t, a)
                                                                	tmp = (t - x) + x;
                                                                end
                                                                
                                                                code[x_, y_, z_, t_, a_] := N[(N[(t - x), $MachinePrecision] + x), $MachinePrecision]
                                                                
                                                                \begin{array}{l}
                                                                
                                                                \\
                                                                \left(t - x\right) + x
                                                                \end{array}
                                                                
                                                                Derivation
                                                                1. Initial program 70.9%

                                                                  \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                                                2. Add Preprocessing
                                                                3. Taylor expanded in z around inf

                                                                  \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                4. Step-by-step derivation
                                                                  1. lower--.f6420.0

                                                                    \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                5. Applied rewrites20.0%

                                                                  \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                6. Final simplification20.0%

                                                                  \[\leadsto \left(t - x\right) + x \]
                                                                7. Add Preprocessing

                                                                Alternative 21: 2.8% accurate, 4.8× speedup?

                                                                \[\begin{array}{l} \\ \left(-x\right) + x \end{array} \]
                                                                (FPCore (x y z t a) :precision binary64 (+ (- x) x))
                                                                double code(double x, double y, double z, double t, double a) {
                                                                	return -x + x;
                                                                }
                                                                
                                                                real(8) function code(x, y, z, t, a)
                                                                    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
                                                                    code = -x + x
                                                                end function
                                                                
                                                                public static double code(double x, double y, double z, double t, double a) {
                                                                	return -x + x;
                                                                }
                                                                
                                                                def code(x, y, z, t, a):
                                                                	return -x + x
                                                                
                                                                function code(x, y, z, t, a)
                                                                	return Float64(Float64(-x) + x)
                                                                end
                                                                
                                                                function tmp = code(x, y, z, t, a)
                                                                	tmp = -x + x;
                                                                end
                                                                
                                                                code[x_, y_, z_, t_, a_] := N[((-x) + x), $MachinePrecision]
                                                                
                                                                \begin{array}{l}
                                                                
                                                                \\
                                                                \left(-x\right) + x
                                                                \end{array}
                                                                
                                                                Derivation
                                                                1. Initial program 70.9%

                                                                  \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                                                2. Add Preprocessing
                                                                3. Taylor expanded in z around inf

                                                                  \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                4. Step-by-step derivation
                                                                  1. lower--.f6420.0

                                                                    \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                5. Applied rewrites20.0%

                                                                  \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                6. Taylor expanded in x around inf

                                                                  \[\leadsto x + -1 \cdot \color{blue}{x} \]
                                                                7. Step-by-step derivation
                                                                  1. Applied rewrites2.9%

                                                                    \[\leadsto x + \left(-x\right) \]
                                                                  2. Final simplification2.9%

                                                                    \[\leadsto \left(-x\right) + x \]
                                                                  3. Add Preprocessing

                                                                  Developer Target 1: 83.9% accurate, 0.6× speedup?

                                                                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := t - \frac{y}{z} \cdot \left(t - x\right)\\ \mathbf{if}\;z < -1.2536131056095036 \cdot 10^{+188}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z < 4.446702369113811 \cdot 10^{+64}:\\ \;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                  (FPCore (x y z t a)
                                                                   :precision binary64
                                                                   (let* ((t_1 (- t (* (/ y z) (- t x)))))
                                                                     (if (< z -1.2536131056095036e+188)
                                                                       t_1
                                                                       (if (< z 4.446702369113811e+64)
                                                                         (+ x (/ (- y z) (/ (- a z) (- t x))))
                                                                         t_1))))
                                                                  double code(double x, double y, double z, double t, double a) {
                                                                  	double t_1 = t - ((y / z) * (t - x));
                                                                  	double tmp;
                                                                  	if (z < -1.2536131056095036e+188) {
                                                                  		tmp = t_1;
                                                                  	} else if (z < 4.446702369113811e+64) {
                                                                  		tmp = x + ((y - z) / ((a - z) / (t - x)));
                                                                  	} else {
                                                                  		tmp = t_1;
                                                                  	}
                                                                  	return tmp;
                                                                  }
                                                                  
                                                                  real(8) function code(x, y, z, t, a)
                                                                      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) :: t_1
                                                                      real(8) :: tmp
                                                                      t_1 = t - ((y / z) * (t - x))
                                                                      if (z < (-1.2536131056095036d+188)) then
                                                                          tmp = t_1
                                                                      else if (z < 4.446702369113811d+64) then
                                                                          tmp = x + ((y - z) / ((a - z) / (t - 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 t_1 = t - ((y / z) * (t - x));
                                                                  	double tmp;
                                                                  	if (z < -1.2536131056095036e+188) {
                                                                  		tmp = t_1;
                                                                  	} else if (z < 4.446702369113811e+64) {
                                                                  		tmp = x + ((y - z) / ((a - z) / (t - x)));
                                                                  	} else {
                                                                  		tmp = t_1;
                                                                  	}
                                                                  	return tmp;
                                                                  }
                                                                  
                                                                  def code(x, y, z, t, a):
                                                                  	t_1 = t - ((y / z) * (t - x))
                                                                  	tmp = 0
                                                                  	if z < -1.2536131056095036e+188:
                                                                  		tmp = t_1
                                                                  	elif z < 4.446702369113811e+64:
                                                                  		tmp = x + ((y - z) / ((a - z) / (t - x)))
                                                                  	else:
                                                                  		tmp = t_1
                                                                  	return tmp
                                                                  
                                                                  function code(x, y, z, t, a)
                                                                  	t_1 = Float64(t - Float64(Float64(y / z) * Float64(t - x)))
                                                                  	tmp = 0.0
                                                                  	if (z < -1.2536131056095036e+188)
                                                                  		tmp = t_1;
                                                                  	elseif (z < 4.446702369113811e+64)
                                                                  		tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / Float64(t - x))));
                                                                  	else
                                                                  		tmp = t_1;
                                                                  	end
                                                                  	return tmp
                                                                  end
                                                                  
                                                                  function tmp_2 = code(x, y, z, t, a)
                                                                  	t_1 = t - ((y / z) * (t - x));
                                                                  	tmp = 0.0;
                                                                  	if (z < -1.2536131056095036e+188)
                                                                  		tmp = t_1;
                                                                  	elseif (z < 4.446702369113811e+64)
                                                                  		tmp = x + ((y - z) / ((a - z) / (t - x)));
                                                                  	else
                                                                  		tmp = t_1;
                                                                  	end
                                                                  	tmp_2 = tmp;
                                                                  end
                                                                  
                                                                  code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(y / z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -1.2536131056095036e+188], t$95$1, If[Less[z, 4.446702369113811e+64], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                                                  
                                                                  \begin{array}{l}
                                                                  
                                                                  \\
                                                                  \begin{array}{l}
                                                                  t_1 := t - \frac{y}{z} \cdot \left(t - x\right)\\
                                                                  \mathbf{if}\;z < -1.2536131056095036 \cdot 10^{+188}:\\
                                                                  \;\;\;\;t\_1\\
                                                                  
                                                                  \mathbf{elif}\;z < 4.446702369113811 \cdot 10^{+64}:\\
                                                                  \;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\
                                                                  
                                                                  \mathbf{else}:\\
                                                                  \;\;\;\;t\_1\\
                                                                  
                                                                  
                                                                  \end{array}
                                                                  \end{array}
                                                                  

                                                                  Reproduce

                                                                  ?
                                                                  herbie shell --seed 2024298 
                                                                  (FPCore (x y z t a)
                                                                    :name "Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3"
                                                                    :precision binary64
                                                                  
                                                                    :alt
                                                                    (! :herbie-platform default (if (< z -125361310560950360000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- t (* (/ y z) (- t x))) (if (< z 44467023691138110000000000000000000000000000000000000000000000000) (+ x (/ (- y z) (/ (- a z) (- t x)))) (- t (* (/ y z) (- t x))))))
                                                                  
                                                                    (+ x (/ (* (- y z) (- t x)) (- a z))))