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

Percentage Accurate: 66.8% → 88.3%
Time: 10.9s
Alternatives: 21
Speedup: 0.9×

Specification

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

\\
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\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: 66.8% accurate, 1.0× speedup?

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

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

Alternative 1: 88.3% accurate, 0.2× speedup?

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

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

\mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-167}:\\
\;\;\;\;t\_2\\

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

\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+269}:\\
\;\;\;\;t\_2\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -inf.0 or 2.0000000000000001e269 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t)))

    1. Initial program 45.3%

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

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

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

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

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

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

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

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

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

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

    if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -5.0000000000000002e-167 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 2.0000000000000001e269

    1. Initial program 98.0%

      \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
    2. Add Preprocessing

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

    1. Initial program 4.5%

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
      9. distribute-rgt-out--N/A

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

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

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

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

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

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

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

    Alternative 2: 69.6% accurate, 0.6× speedup?

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

      1. Initial program 61.2%

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

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

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

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

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

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

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

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

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

          \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
        9. distribute-rgt-out--N/A

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

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

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

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

      if -2.79999999999999988e-106 < t < 6.39999999999999962e-105

      1. Initial program 94.2%

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

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

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

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

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

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

          \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
        7. lower-/.f6496.7

          \[\leadsto x + \frac{y - x}{\color{blue}{\frac{a - t}{z - t}}} \]
      4. Applied rewrites96.7%

        \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
      5. Taylor expanded in a around inf

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(y - x, \frac{z}{\color{blue}{a}}, x\right) \]
      9. Step-by-step derivation
        1. Applied rewrites81.8%

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

        if 6.39999999999999962e-105 < t < 1.1600000000000001e-28

        1. Initial program 85.2%

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

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

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

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

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

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

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

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

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

            \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
          9. distribute-rgt-out--N/A

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(\frac{x - y}{t}, \color{blue}{z}, y\right) \]
          2. Step-by-step derivation
            1. Applied rewrites70.7%

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

            if 1.1600000000000001e-28 < t < 1.16e123

            1. Initial program 73.4%

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

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

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

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

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

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

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

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

                \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(y - x\right), \frac{t}{a - t}, x\right)} \]
              8. mul-1-negN/A

                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(\left(y - x\right)\right)}, \frac{t}{a - t}, x\right) \]
              9. sub-negN/A

                \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(y + \left(\mathsf{neg}\left(x\right)\right)\right)}\right), \frac{t}{a - t}, x\right) \]
              10. +-commutativeN/A

                \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(\left(\mathsf{neg}\left(x\right)\right) + y\right)}\right), \frac{t}{a - t}, x\right) \]
              11. distribute-neg-inN/A

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

                \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(x\right)\right)\right)\right) - y}, \frac{t}{a - t}, x\right) \]
              13. remove-double-negN/A

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

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

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

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

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

            if 1.16e123 < t

            1. Initial program 40.4%

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

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

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

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

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

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

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

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

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

                \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
              9. distribute-rgt-out--N/A

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

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

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

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

              \[\leadsto \mathsf{fma}\left(\frac{x}{t}, \color{blue}{z} - a, y\right) \]
            7. Step-by-step derivation
              1. Applied rewrites97.1%

                \[\leadsto \mathsf{fma}\left(\frac{x}{t}, \color{blue}{z} - a, y\right) \]
            8. Recombined 5 regimes into one program.
            9. Add Preprocessing

            Alternative 3: 87.4% accurate, 0.6× speedup?

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

              1. Initial program 42.9%

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

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

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

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

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

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

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

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

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

                  \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
                9. distribute-rgt-out--N/A

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

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

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

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

              if -2.99999999999999987e80 < t < 3.20000000000000019e137

              1. Initial program 86.0%

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

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

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

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

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

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

                  \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
                7. lower-/.f6492.9

                  \[\leadsto x + \frac{y - x}{\color{blue}{\frac{a - t}{z - t}}} \]
              4. Applied rewrites92.9%

                \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]

              if 3.20000000000000019e137 < t

              1. Initial program 38.6%

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

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

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

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

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

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

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

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

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

                  \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
                9. distribute-rgt-out--N/A

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

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

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

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

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

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

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

              Alternative 4: 55.5% accurate, 0.7× speedup?

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

                1. Initial program 71.8%

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

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

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

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

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

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

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

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

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

                    \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
                  9. distribute-rgt-out--N/A

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

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

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

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

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

                    \[\leadsto \mathsf{fma}\left(\frac{x - y}{t}, \color{blue}{z}, y\right) \]
                  2. Step-by-step derivation
                    1. Applied rewrites64.8%

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

                    if -1.47999999999999994e-180 < t < 4.30000000000000014e-92

                    1. Initial program 91.7%

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

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

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

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

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

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

                        \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
                      7. lower-/.f6494.7

                        \[\leadsto x + \frac{y - x}{\color{blue}{\frac{a - t}{z - t}}} \]
                    4. Applied rewrites94.7%

                      \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
                    5. Taylor expanded in a around inf

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

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

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

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

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

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

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

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

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

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

                      if 1.6499999999999999e22 < t

                      1. Initial program 48.6%

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

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

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

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

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

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

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

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

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

                          \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
                        9. distribute-rgt-out--N/A

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

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

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

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

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

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

                        \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.48 \cdot 10^{-180}:\\ \;\;\;\;\mathsf{fma}\left(x - y, \frac{z}{t}, y\right)\\ \mathbf{elif}\;t \leq 4.3 \cdot 10^{-92}:\\ \;\;\;\;\frac{\left(y - x\right) \cdot z}{a}\\ \mathbf{elif}\;t \leq 1.65 \cdot 10^{+22}:\\ \;\;\;\;\mathsf{fma}\left(x - y, \frac{z}{t}, y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\ \end{array} \]
                      10. Add Preprocessing

                      Alternative 5: 85.3% accurate, 0.7× speedup?

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

                        1. Initial program 43.3%

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

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

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

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

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

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

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

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

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

                            \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
                          9. distribute-rgt-out--N/A

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

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

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

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

                        if -1.6499999999999999e69 < t < 2.70000000000000017e137

                        1. Initial program 86.4%

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

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

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

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

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

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

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

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

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

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

                        if 2.70000000000000017e137 < t

                        1. Initial program 38.6%

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

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

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

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

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

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

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

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

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

                            \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
                          9. distribute-rgt-out--N/A

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

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

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

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

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

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

                        Alternative 6: 41.8% accurate, 0.8× speedup?

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

                          1. Initial program 72.3%

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

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

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

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

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

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

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

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

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

                              \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
                            9. distribute-rgt-out--N/A

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

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

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

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

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

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

                              \[\leadsto \mathsf{fma}\left(\frac{x}{t}, z, y\right) \]
                            3. Step-by-step derivation
                              1. Applied rewrites49.0%

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

                              if -3.64999999999999996e-205 < z < 9.1999999999999996e24

                              1. Initial program 73.5%

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
                                9. distribute-rgt-out--N/A

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

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

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

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

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

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

                                  \[\leadsto y + \color{blue}{-1 \cdot \frac{a \cdot \left(x - y\right)}{t}} \]
                                3. Step-by-step derivation
                                  1. Applied rewrites50.4%

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

                                    \[\leadsto \mathsf{fma}\left(a, -1 \cdot \frac{x}{\color{blue}{t}}, y\right) \]
                                  3. Step-by-step derivation
                                    1. Applied rewrites51.8%

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

                                    if 9.1999999999999996e24 < z < 1.70000000000000016e287

                                    1. Initial program 68.4%

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
                                      9. distribute-rgt-out--N/A

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

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

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

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

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

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

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

                                          \[\leadsto \frac{x - y}{t} \cdot \color{blue}{z} \]

                                        if 1.70000000000000016e287 < z

                                        1. Initial program 87.7%

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

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

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \frac{y \cdot z}{\color{blue}{a}} \]
                                        7. Step-by-step derivation
                                          1. Applied rewrites75.0%

                                            \[\leadsto \frac{z \cdot y}{\color{blue}{a}} \]
                                        8. Recombined 4 regimes into one program.
                                        9. Add Preprocessing

                                        Alternative 7: 74.0% accurate, 0.8× speedup?

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

                                          1. Initial program 55.5%

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

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

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

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

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

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

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

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

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

                                              \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
                                            9. distribute-rgt-out--N/A

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

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

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

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

                                          if -1.69999999999999986e-55 < t < 1.35000000000000007e123

                                          1. Initial program 87.9%

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

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

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

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

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

                                          if 1.35000000000000007e123 < t

                                          1. Initial program 40.4%

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

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

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

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

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

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

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

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

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

                                              \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
                                            9. distribute-rgt-out--N/A

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

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

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

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

                                            \[\leadsto \mathsf{fma}\left(\frac{x}{t}, \color{blue}{z} - a, y\right) \]
                                          7. Step-by-step derivation
                                            1. Applied rewrites97.1%

                                              \[\leadsto \mathsf{fma}\left(\frac{x}{t}, \color{blue}{z} - a, y\right) \]
                                          8. Recombined 3 regimes into one program.
                                          9. Final simplification81.0%

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

                                          Alternative 8: 74.5% accurate, 0.8× speedup?

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

                                            1. Initial program 75.6%

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

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

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

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

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

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

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

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

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

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

                                            if -2.8e9 < a < 1.34999999999999996e103

                                            1. Initial program 70.1%

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

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

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

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

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

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

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

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

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

                                                \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
                                              9. distribute-rgt-out--N/A

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

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

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

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

                                          Alternative 9: 32.7% accurate, 0.8× speedup?

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

                                            1. Initial program 68.0%

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

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

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

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

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

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

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

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

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

                                                \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
                                              9. distribute-rgt-out--N/A

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

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

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

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

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

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

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

                                                  \[\leadsto \frac{z - a}{t} \cdot \color{blue}{x} \]
                                                2. Taylor expanded in a around 0

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

                                                    \[\leadsto \frac{z}{t} \cdot x \]

                                                  if -3.80000000000000011e87 < z < 9.1999999999999996e24

                                                  1. Initial program 74.4%

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

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

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

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

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

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

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

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

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

                                                      \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
                                                    9. distribute-rgt-out--N/A

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

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

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

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

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

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

                                                      \[\leadsto y + \color{blue}{-1 \cdot \frac{a \cdot \left(x - y\right)}{t}} \]
                                                    3. Step-by-step derivation
                                                      1. Applied rewrites44.4%

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

                                                        \[\leadsto \mathsf{fma}\left(a, \frac{y}{t}, y\right) \]
                                                      3. Step-by-step derivation
                                                        1. Applied rewrites37.7%

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

                                                        if 1.15000000000000007e287 < z

                                                        1. Initial program 87.7%

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

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

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

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

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

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

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

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

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

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

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

                                                          \[\leadsto \frac{y \cdot z}{\color{blue}{a}} \]
                                                        7. Step-by-step derivation
                                                          1. Applied rewrites75.0%

                                                            \[\leadsto \frac{z \cdot y}{\color{blue}{a}} \]
                                                        8. Recombined 3 regimes into one program.
                                                        9. Add Preprocessing

                                                        Alternative 10: 27.2% accurate, 0.8× speedup?

                                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{z}{t} \cdot x\\ \mathbf{if}\;z \leq -2.2 \cdot 10^{-39}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 4.5 \cdot 10^{+24}:\\ \;\;\;\;\left(y - x\right) + x\\ \mathbf{elif}\;z \leq 1.15 \cdot 10^{+287}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\frac{z \cdot y}{a}\\ \end{array} \end{array} \]
                                                        (FPCore (x y z t a)
                                                         :precision binary64
                                                         (let* ((t_1 (* (/ z t) x)))
                                                           (if (<= z -2.2e-39)
                                                             t_1
                                                             (if (<= z 4.5e+24)
                                                               (+ (- y x) x)
                                                               (if (<= z 1.15e+287) t_1 (/ (* z y) a))))))
                                                        double code(double x, double y, double z, double t, double a) {
                                                        	double t_1 = (z / t) * x;
                                                        	double tmp;
                                                        	if (z <= -2.2e-39) {
                                                        		tmp = t_1;
                                                        	} else if (z <= 4.5e+24) {
                                                        		tmp = (y - x) + x;
                                                        	} else if (z <= 1.15e+287) {
                                                        		tmp = t_1;
                                                        	} else {
                                                        		tmp = (z * y) / a;
                                                        	}
                                                        	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 = (z / t) * x
                                                            if (z <= (-2.2d-39)) then
                                                                tmp = t_1
                                                            else if (z <= 4.5d+24) then
                                                                tmp = (y - x) + x
                                                            else if (z <= 1.15d+287) then
                                                                tmp = t_1
                                                            else
                                                                tmp = (z * y) / a
                                                            end if
                                                            code = tmp
                                                        end function
                                                        
                                                        public static double code(double x, double y, double z, double t, double a) {
                                                        	double t_1 = (z / t) * x;
                                                        	double tmp;
                                                        	if (z <= -2.2e-39) {
                                                        		tmp = t_1;
                                                        	} else if (z <= 4.5e+24) {
                                                        		tmp = (y - x) + x;
                                                        	} else if (z <= 1.15e+287) {
                                                        		tmp = t_1;
                                                        	} else {
                                                        		tmp = (z * y) / a;
                                                        	}
                                                        	return tmp;
                                                        }
                                                        
                                                        def code(x, y, z, t, a):
                                                        	t_1 = (z / t) * x
                                                        	tmp = 0
                                                        	if z <= -2.2e-39:
                                                        		tmp = t_1
                                                        	elif z <= 4.5e+24:
                                                        		tmp = (y - x) + x
                                                        	elif z <= 1.15e+287:
                                                        		tmp = t_1
                                                        	else:
                                                        		tmp = (z * y) / a
                                                        	return tmp
                                                        
                                                        function code(x, y, z, t, a)
                                                        	t_1 = Float64(Float64(z / t) * x)
                                                        	tmp = 0.0
                                                        	if (z <= -2.2e-39)
                                                        		tmp = t_1;
                                                        	elseif (z <= 4.5e+24)
                                                        		tmp = Float64(Float64(y - x) + x);
                                                        	elseif (z <= 1.15e+287)
                                                        		tmp = t_1;
                                                        	else
                                                        		tmp = Float64(Float64(z * y) / a);
                                                        	end
                                                        	return tmp
                                                        end
                                                        
                                                        function tmp_2 = code(x, y, z, t, a)
                                                        	t_1 = (z / t) * x;
                                                        	tmp = 0.0;
                                                        	if (z <= -2.2e-39)
                                                        		tmp = t_1;
                                                        	elseif (z <= 4.5e+24)
                                                        		tmp = (y - x) + x;
                                                        	elseif (z <= 1.15e+287)
                                                        		tmp = t_1;
                                                        	else
                                                        		tmp = (z * y) / a;
                                                        	end
                                                        	tmp_2 = tmp;
                                                        end
                                                        
                                                        code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(z / t), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[z, -2.2e-39], t$95$1, If[LessEqual[z, 4.5e+24], N[(N[(y - x), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 1.15e+287], t$95$1, N[(N[(z * y), $MachinePrecision] / a), $MachinePrecision]]]]]
                                                        
                                                        \begin{array}{l}
                                                        
                                                        \\
                                                        \begin{array}{l}
                                                        t_1 := \frac{z}{t} \cdot x\\
                                                        \mathbf{if}\;z \leq -2.2 \cdot 10^{-39}:\\
                                                        \;\;\;\;t\_1\\
                                                        
                                                        \mathbf{elif}\;z \leq 4.5 \cdot 10^{+24}:\\
                                                        \;\;\;\;\left(y - x\right) + x\\
                                                        
                                                        \mathbf{elif}\;z \leq 1.15 \cdot 10^{+287}:\\
                                                        \;\;\;\;t\_1\\
                                                        
                                                        \mathbf{else}:\\
                                                        \;\;\;\;\frac{z \cdot y}{a}\\
                                                        
                                                        
                                                        \end{array}
                                                        \end{array}
                                                        
                                                        Derivation
                                                        1. Split input into 3 regimes
                                                        2. if z < -2.20000000000000001e-39 or 4.50000000000000019e24 < z < 1.15000000000000007e287

                                                          1. Initial program 69.3%

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

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

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

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

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

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

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

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

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

                                                              \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
                                                            9. distribute-rgt-out--N/A

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

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

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

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

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

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

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

                                                                \[\leadsto \frac{z - a}{t} \cdot \color{blue}{x} \]
                                                              2. Taylor expanded in a around 0

                                                                \[\leadsto \frac{z}{t} \cdot x \]
                                                              3. Step-by-step derivation
                                                                1. Applied rewrites42.8%

                                                                  \[\leadsto \frac{z}{t} \cdot x \]

                                                                if -2.20000000000000001e-39 < z < 4.50000000000000019e24

                                                                1. Initial program 74.0%

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

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

                                                                    \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                                                                5. Applied rewrites31.4%

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

                                                                if 1.15000000000000007e287 < z

                                                                1. Initial program 87.7%

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

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

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

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

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

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

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

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

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

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

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

                                                                  \[\leadsto \frac{y \cdot z}{\color{blue}{a}} \]
                                                                7. Step-by-step derivation
                                                                  1. Applied rewrites75.0%

                                                                    \[\leadsto \frac{z \cdot y}{\color{blue}{a}} \]
                                                                8. Recombined 3 regimes into one program.
                                                                9. Final simplification37.9%

                                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.2 \cdot 10^{-39}:\\ \;\;\;\;\frac{z}{t} \cdot x\\ \mathbf{elif}\;z \leq 4.5 \cdot 10^{+24}:\\ \;\;\;\;\left(y - x\right) + x\\ \mathbf{elif}\;z \leq 1.15 \cdot 10^{+287}:\\ \;\;\;\;\frac{z}{t} \cdot x\\ \mathbf{else}:\\ \;\;\;\;\frac{z \cdot y}{a}\\ \end{array} \]
                                                                10. Add Preprocessing

                                                                Alternative 11: 24.7% accurate, 0.8× speedup?

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

                                                                  1. Initial program 69.3%

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

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

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

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

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

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

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

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

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

                                                                      \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
                                                                    9. distribute-rgt-out--N/A

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

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

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

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

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

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

                                                                      \[\leadsto \frac{x \cdot z}{t} \]
                                                                    3. Step-by-step derivation
                                                                      1. Applied rewrites34.7%

                                                                        \[\leadsto \frac{z \cdot x}{t} \]

                                                                      if -2.20000000000000001e-39 < z < 9.00000000000000039e24

                                                                      1. Initial program 74.0%

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

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

                                                                          \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                                                                      5. Applied rewrites31.4%

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

                                                                      if 8.5e285 < z

                                                                      1. Initial program 87.7%

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

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

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

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

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

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

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

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

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

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

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

                                                                        \[\leadsto \frac{y \cdot z}{\color{blue}{a}} \]
                                                                      7. Step-by-step derivation
                                                                        1. Applied rewrites75.0%

                                                                          \[\leadsto \frac{z \cdot y}{\color{blue}{a}} \]
                                                                      8. Recombined 3 regimes into one program.
                                                                      9. Final simplification34.1%

                                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.2 \cdot 10^{-39}:\\ \;\;\;\;\frac{z \cdot x}{t}\\ \mathbf{elif}\;z \leq 9 \cdot 10^{+24}:\\ \;\;\;\;\left(y - x\right) + x\\ \mathbf{elif}\;z \leq 8.5 \cdot 10^{+285}:\\ \;\;\;\;\frac{z \cdot x}{t}\\ \mathbf{else}:\\ \;\;\;\;\frac{z \cdot y}{a}\\ \end{array} \]
                                                                      10. Add Preprocessing

                                                                      Alternative 12: 68.1% accurate, 0.9× speedup?

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

                                                                        1. Initial program 78.4%

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

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

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

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

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

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

                                                                            \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
                                                                          7. lower-/.f6496.4

                                                                            \[\leadsto x + \frac{y - x}{\color{blue}{\frac{a - t}{z - t}}} \]
                                                                        4. Applied rewrites96.4%

                                                                          \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
                                                                        5. Taylor expanded in a around inf

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

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

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

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

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

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

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

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

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

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

                                                                          if -3.39999999999999999e120 < a < 1.34999999999999996e103

                                                                          1. Initial program 69.7%

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

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

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

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

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

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

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

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

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

                                                                              \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
                                                                            9. distribute-rgt-out--N/A

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

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

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

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

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

                                                                              \[\leadsto \mathsf{fma}\left(\frac{x - y}{t}, \color{blue}{z}, y\right) \]
                                                                            2. Step-by-step derivation
                                                                              1. Applied rewrites72.2%

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

                                                                            Alternative 13: 67.6% accurate, 0.9× speedup?

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

                                                                              1. Initial program 78.4%

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

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

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

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

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

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

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

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

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

                                                                              if -3.39999999999999999e120 < a < 1.34999999999999996e103

                                                                              1. Initial program 69.7%

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

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

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

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

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

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

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

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

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

                                                                                  \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
                                                                                9. distribute-rgt-out--N/A

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

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

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

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

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

                                                                                  \[\leadsto \mathsf{fma}\left(\frac{x - y}{t}, \color{blue}{z}, y\right) \]
                                                                                2. Step-by-step derivation
                                                                                  1. Applied rewrites72.2%

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

                                                                                Alternative 14: 55.8% accurate, 0.9× speedup?

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

                                                                                  1. Initial program 65.7%

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

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

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

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

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

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

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

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

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

                                                                                      \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
                                                                                    9. distribute-rgt-out--N/A

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

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

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

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

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

                                                                                      \[\leadsto \mathsf{fma}\left(\frac{x - y}{t}, \color{blue}{z}, y\right) \]
                                                                                    2. Step-by-step derivation
                                                                                      1. Applied rewrites65.1%

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

                                                                                      if -1.47999999999999994e-180 < t < 4.30000000000000014e-92

                                                                                      1. Initial program 91.7%

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

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

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

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

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

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

                                                                                          \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
                                                                                        7. lower-/.f6494.7

                                                                                          \[\leadsto x + \frac{y - x}{\color{blue}{\frac{a - t}{z - t}}} \]
                                                                                      4. Applied rewrites94.7%

                                                                                        \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
                                                                                      5. Taylor expanded in a around inf

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

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

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

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

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

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

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

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

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

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

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

                                                                                      Alternative 15: 48.9% accurate, 0.9× speedup?

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

                                                                                        1. Initial program 65.4%

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

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

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

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

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

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

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

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

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

                                                                                            \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
                                                                                          9. distribute-rgt-out--N/A

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

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

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

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

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

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

                                                                                            \[\leadsto \mathsf{fma}\left(\frac{x}{t}, z, y\right) \]
                                                                                          3. Step-by-step derivation
                                                                                            1. Applied rewrites55.3%

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

                                                                                            if -4.4e-175 < t < 1.60000000000000003e-86

                                                                                            1. Initial program 92.0%

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

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

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

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

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

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

                                                                                                \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
                                                                                              7. lower-/.f6494.9

                                                                                                \[\leadsto x + \frac{y - x}{\color{blue}{\frac{a - t}{z - t}}} \]
                                                                                            4. Applied rewrites94.9%

                                                                                              \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
                                                                                            5. Taylor expanded in a around inf

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

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

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

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

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

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

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

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

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

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

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

                                                                                            Alternative 16: 44.2% accurate, 0.9× speedup?

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

                                                                                              1. Initial program 73.5%

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

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

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

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

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

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

                                                                                                  \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
                                                                                                7. lower-/.f6495.6

                                                                                                  \[\leadsto x + \frac{y - x}{\color{blue}{\frac{a - t}{z - t}}} \]
                                                                                              4. Applied rewrites95.6%

                                                                                                \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
                                                                                              5. Taylor expanded in a around inf

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

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

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

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

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

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

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

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

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

                                                                                                  \[\leadsto \frac{z - t}{a} \cdot \color{blue}{y} \]

                                                                                                if -3.7000000000000002e174 < a < 2.69999999999999978e124

                                                                                                1. Initial program 71.8%

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

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

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

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

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

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

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

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

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

                                                                                                    \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
                                                                                                  9. distribute-rgt-out--N/A

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

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

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

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

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

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

                                                                                                    \[\leadsto \mathsf{fma}\left(\frac{x}{t}, z, y\right) \]
                                                                                                  3. Step-by-step derivation
                                                                                                    1. Applied rewrites58.0%

                                                                                                      \[\leadsto \mathsf{fma}\left(\frac{x}{t}, z, y\right) \]
                                                                                                  4. Recombined 2 regimes into one program.
                                                                                                  5. Add Preprocessing

                                                                                                  Alternative 17: 44.3% accurate, 0.9× speedup?

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

                                                                                                    1. Initial program 66.8%

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

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

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

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

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

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

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

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

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

                                                                                                        \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
                                                                                                      9. distribute-rgt-out--N/A

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

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

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

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

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

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

                                                                                                        \[\leadsto \mathsf{fma}\left(\frac{x}{t}, z, y\right) \]
                                                                                                      3. Step-by-step derivation
                                                                                                        1. Applied rewrites50.9%

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

                                                                                                        if -1.15e-104 < x < 1.95000000000000005e-106

                                                                                                        1. Initial program 84.6%

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

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

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

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

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

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

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

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

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

                                                                                                            \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
                                                                                                          9. distribute-rgt-out--N/A

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

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

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

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

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

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

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

                                                                                                              \[\leadsto \mathsf{fma}\left(\frac{-y}{t}, z, y\right) \]
                                                                                                          4. Recombined 2 regimes into one program.
                                                                                                          5. Add Preprocessing

                                                                                                          Alternative 18: 27.1% accurate, 1.0× speedup?

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

                                                                                                            1. Initial program 70.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                                if -6.7999999999999999e105 < z < 9e21

                                                                                                                1. Initial program 73.4%

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

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

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

                                                                                                                  \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                                                                                                              4. Recombined 2 regimes into one program.
                                                                                                              5. Final simplification30.7%

                                                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -6.8 \cdot 10^{+105}:\\ \;\;\;\;\frac{z}{a} \cdot y\\ \mathbf{elif}\;z \leq 9 \cdot 10^{+21}:\\ \;\;\;\;\left(y - x\right) + x\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{a} \cdot y\\ \end{array} \]
                                                                                                              6. Add Preprocessing

                                                                                                              Alternative 19: 41.3% accurate, 1.2× speedup?

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

                                                                                                                1. Initial program 86.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                                    if -7.4000000000000003e180 < a

                                                                                                                    1. Initial program 71.0%

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

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

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

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

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

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

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

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

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

                                                                                                                        \[\leadsto \left(\mathsf{neg}\left(\left(z \cdot \frac{y - x}{t} - \color{blue}{a \cdot \frac{y - x}{t}}\right)\right)\right) + y \]
                                                                                                                      9. distribute-rgt-out--N/A

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

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

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

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

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

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

                                                                                                                        \[\leadsto \mathsf{fma}\left(\frac{x}{t}, z, y\right) \]
                                                                                                                      3. Step-by-step derivation
                                                                                                                        1. Applied rewrites50.3%

                                                                                                                          \[\leadsto \mathsf{fma}\left(\frac{x}{t}, z, y\right) \]
                                                                                                                      4. Recombined 2 regimes into one program.
                                                                                                                      5. Final simplification49.0%

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

                                                                                                                      Alternative 20: 19.7% accurate, 4.1× speedup?

                                                                                                                      \[\begin{array}{l} \\ \left(y - x\right) + x \end{array} \]
                                                                                                                      (FPCore (x y z t a) :precision binary64 (+ (- y x) x))
                                                                                                                      double code(double x, double y, double z, double t, double a) {
                                                                                                                      	return (y - 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 = (y - x) + x
                                                                                                                      end function
                                                                                                                      
                                                                                                                      public static double code(double x, double y, double z, double t, double a) {
                                                                                                                      	return (y - x) + x;
                                                                                                                      }
                                                                                                                      
                                                                                                                      def code(x, y, z, t, a):
                                                                                                                      	return (y - x) + x
                                                                                                                      
                                                                                                                      function code(x, y, z, t, a)
                                                                                                                      	return Float64(Float64(y - x) + x)
                                                                                                                      end
                                                                                                                      
                                                                                                                      function tmp = code(x, y, z, t, a)
                                                                                                                      	tmp = (y - x) + x;
                                                                                                                      end
                                                                                                                      
                                                                                                                      code[x_, y_, z_, t_, a_] := N[(N[(y - x), $MachinePrecision] + x), $MachinePrecision]
                                                                                                                      
                                                                                                                      \begin{array}{l}
                                                                                                                      
                                                                                                                      \\
                                                                                                                      \left(y - x\right) + x
                                                                                                                      \end{array}
                                                                                                                      
                                                                                                                      Derivation
                                                                                                                      1. Initial program 72.2%

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

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

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

                                                                                                                        \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                                                                                                                      6. Final simplification20.6%

                                                                                                                        \[\leadsto \left(y - 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 72.2%

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

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

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

                                                                                                                        \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                                                                                                                      6. Taylor expanded in y around 0

                                                                                                                        \[\leadsto x + -1 \cdot \color{blue}{x} \]
                                                                                                                      7. Step-by-step derivation
                                                                                                                        1. Applied rewrites2.7%

                                                                                                                          \[\leadsto x + \left(-x\right) \]
                                                                                                                        2. Final simplification2.7%

                                                                                                                          \[\leadsto \left(-x\right) + x \]
                                                                                                                        3. Add Preprocessing

                                                                                                                        Developer Target 1: 86.3% accurate, 0.6× speedup?

                                                                                                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \frac{y - x}{1} \cdot \frac{z - t}{a - t}\\ \mathbf{if}\;a < -1.6153062845442575 \cdot 10^{-142}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a < 3.774403170083174 \cdot 10^{-182}:\\ \;\;\;\;y - \frac{z}{t} \cdot \left(y - x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                                        (FPCore (x y z t a)
                                                                                                                         :precision binary64
                                                                                                                         (let* ((t_1 (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t))))))
                                                                                                                           (if (< a -1.6153062845442575e-142)
                                                                                                                             t_1
                                                                                                                             (if (< a 3.774403170083174e-182) (- y (* (/ z t) (- y x))) t_1))))
                                                                                                                        double code(double x, double y, double z, double t, double a) {
                                                                                                                        	double t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
                                                                                                                        	double tmp;
                                                                                                                        	if (a < -1.6153062845442575e-142) {
                                                                                                                        		tmp = t_1;
                                                                                                                        	} else if (a < 3.774403170083174e-182) {
                                                                                                                        		tmp = y - ((z / t) * (y - 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 = x + (((y - x) / 1.0d0) * ((z - t) / (a - t)))
                                                                                                                            if (a < (-1.6153062845442575d-142)) then
                                                                                                                                tmp = t_1
                                                                                                                            else if (a < 3.774403170083174d-182) then
                                                                                                                                tmp = y - ((z / t) * (y - x))
                                                                                                                            else
                                                                                                                                tmp = t_1
                                                                                                                            end if
                                                                                                                            code = tmp
                                                                                                                        end function
                                                                                                                        
                                                                                                                        public static double code(double x, double y, double z, double t, double a) {
                                                                                                                        	double t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
                                                                                                                        	double tmp;
                                                                                                                        	if (a < -1.6153062845442575e-142) {
                                                                                                                        		tmp = t_1;
                                                                                                                        	} else if (a < 3.774403170083174e-182) {
                                                                                                                        		tmp = y - ((z / t) * (y - x));
                                                                                                                        	} else {
                                                                                                                        		tmp = t_1;
                                                                                                                        	}
                                                                                                                        	return tmp;
                                                                                                                        }
                                                                                                                        
                                                                                                                        def code(x, y, z, t, a):
                                                                                                                        	t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)))
                                                                                                                        	tmp = 0
                                                                                                                        	if a < -1.6153062845442575e-142:
                                                                                                                        		tmp = t_1
                                                                                                                        	elif a < 3.774403170083174e-182:
                                                                                                                        		tmp = y - ((z / t) * (y - x))
                                                                                                                        	else:
                                                                                                                        		tmp = t_1
                                                                                                                        	return tmp
                                                                                                                        
                                                                                                                        function code(x, y, z, t, a)
                                                                                                                        	t_1 = Float64(x + Float64(Float64(Float64(y - x) / 1.0) * Float64(Float64(z - t) / Float64(a - t))))
                                                                                                                        	tmp = 0.0
                                                                                                                        	if (a < -1.6153062845442575e-142)
                                                                                                                        		tmp = t_1;
                                                                                                                        	elseif (a < 3.774403170083174e-182)
                                                                                                                        		tmp = Float64(y - Float64(Float64(z / t) * Float64(y - x)));
                                                                                                                        	else
                                                                                                                        		tmp = t_1;
                                                                                                                        	end
                                                                                                                        	return tmp
                                                                                                                        end
                                                                                                                        
                                                                                                                        function tmp_2 = code(x, y, z, t, a)
                                                                                                                        	t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
                                                                                                                        	tmp = 0.0;
                                                                                                                        	if (a < -1.6153062845442575e-142)
                                                                                                                        		tmp = t_1;
                                                                                                                        	elseif (a < 3.774403170083174e-182)
                                                                                                                        		tmp = y - ((z / t) * (y - x));
                                                                                                                        	else
                                                                                                                        		tmp = t_1;
                                                                                                                        	end
                                                                                                                        	tmp_2 = tmp;
                                                                                                                        end
                                                                                                                        
                                                                                                                        code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] / 1.0), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[a, -1.6153062845442575e-142], t$95$1, If[Less[a, 3.774403170083174e-182], N[(y - N[(N[(z / t), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                                                                                                        
                                                                                                                        \begin{array}{l}
                                                                                                                        
                                                                                                                        \\
                                                                                                                        \begin{array}{l}
                                                                                                                        t_1 := x + \frac{y - x}{1} \cdot \frac{z - t}{a - t}\\
                                                                                                                        \mathbf{if}\;a < -1.6153062845442575 \cdot 10^{-142}:\\
                                                                                                                        \;\;\;\;t\_1\\
                                                                                                                        
                                                                                                                        \mathbf{elif}\;a < 3.774403170083174 \cdot 10^{-182}:\\
                                                                                                                        \;\;\;\;y - \frac{z}{t} \cdot \left(y - x\right)\\
                                                                                                                        
                                                                                                                        \mathbf{else}:\\
                                                                                                                        \;\;\;\;t\_1\\
                                                                                                                        
                                                                                                                        
                                                                                                                        \end{array}
                                                                                                                        \end{array}
                                                                                                                        

                                                                                                                        Reproduce

                                                                                                                        ?
                                                                                                                        herbie shell --seed 2024270 
                                                                                                                        (FPCore (x y z t a)
                                                                                                                          :name "Graphics.Rendering.Chart.Axis.Types:linMap from Chart-1.5.3"
                                                                                                                          :precision binary64
                                                                                                                        
                                                                                                                          :alt
                                                                                                                          (! :herbie-platform default (if (< a -646122513817703/4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ x (* (/ (- y x) 1) (/ (- z t) (- a t)))) (if (< a 1887201585041587/50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- y (* (/ z t) (- y x))) (+ x (* (/ (- y x) 1) (/ (- z t) (- a t)))))))
                                                                                                                        
                                                                                                                          (+ x (/ (* (- y x) (- z t)) (- a t))))