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

Percentage Accurate: 67.6% → 88.3%
Time: 9.2s
Alternatives: 14
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 14 alternatives:

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

Initial Program: 67.6% 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.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.6 \cdot 10^{+101}:\\
\;\;\;\;\mathsf{fma}\left(x - y, \frac{z - a}{t}, y\right)\\

\mathbf{elif}\;t \leq 1.4 \cdot 10^{+179}:\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, z, y\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -6.60000000000000022e101

    1. Initial program 30.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. distribute-rgt-out--N/A

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

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

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

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

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

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

    if -6.60000000000000022e101 < t < 1.4e179

    1. Initial program 85.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-/.f6492.6

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

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

    if 1.4e179 < t

    1. Initial program 21.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. distribute-rgt-out--N/A

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

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

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

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

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

      \[\leadsto \color{blue}{\mathsf{fma}\left(x - y, \frac{z - a}{t}, 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 rewrites92.3%

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

    Alternative 2: 88.4% 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 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\ \mathbf{if}\;t\_2 \leq -\infty:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq -2 \cdot 10^{-257}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_2 \leq 0:\\ \;\;\;\;\mathsf{fma}\left(x - y, \frac{z - a}{t}, y\right)\\ \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 (+ x (/ (* (- y x) (- z t)) (- a t)))))
       (if (<= t_2 (- INFINITY))
         t_1
         (if (<= t_2 -2e-257)
           t_2
           (if (<= t_2 0.0) (fma (- x y) (/ (- z a) t) y) 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 = x + (((y - x) * (z - t)) / (a - t));
    	double tmp;
    	if (t_2 <= -((double) INFINITY)) {
    		tmp = t_1;
    	} else if (t_2 <= -2e-257) {
    		tmp = t_2;
    	} else if (t_2 <= 0.0) {
    		tmp = fma((x - y), ((z - a) / t), y);
    	} 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(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t)))
    	tmp = 0.0
    	if (t_2 <= Float64(-Inf))
    		tmp = t_1;
    	elseif (t_2 <= -2e-257)
    		tmp = t_2;
    	elseif (t_2 <= 0.0)
    		tmp = fma(Float64(x - y), Float64(Float64(z - a) / t), y);
    	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[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], t$95$1, If[LessEqual[t$95$2, -2e-257], t$95$2, If[LessEqual[t$95$2, 0.0], N[(N[(x - y), $MachinePrecision] * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision] + y), $MachinePrecision], 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 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
    \mathbf{if}\;t\_2 \leq -\infty:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;t\_2 \leq -2 \cdot 10^{-257}:\\
    \;\;\;\;t\_2\\
    
    \mathbf{elif}\;t\_2 \leq 0:\\
    \;\;\;\;\mathsf{fma}\left(x - y, \frac{z - a}{t}, y\right)\\
    
    \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 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t)))

      1. Initial program 62.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 \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.9

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

        \[\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))) < -2e-257

      1. Initial program 95.2%

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

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

      1. Initial program 4.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. distribute-rgt-out--N/A

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

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

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

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

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

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

    Alternative 3: 44.1% accurate, 0.7× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x - y}{t} \cdot z\\ t_2 := x + \frac{y - x}{1}\\ \mathbf{if}\;t \leq -9.2 \cdot 10^{+53}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq -2.4 \cdot 10^{-171}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 6.2 \cdot 10^{+69}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \mathbf{elif}\;t \leq 6 \cdot 10^{+130}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
    (FPCore (x y z t a)
     :precision binary64
     (let* ((t_1 (* (/ (- x y) t) z)) (t_2 (+ x (/ (- y x) 1.0))))
       (if (<= t -9.2e+53)
         t_2
         (if (<= t -2.4e-171)
           t_1
           (if (<= t 6.2e+69) (fma (/ y a) z x) (if (<= t 6e+130) t_1 t_2))))))
    double code(double x, double y, double z, double t, double a) {
    	double t_1 = ((x - y) / t) * z;
    	double t_2 = x + ((y - x) / 1.0);
    	double tmp;
    	if (t <= -9.2e+53) {
    		tmp = t_2;
    	} else if (t <= -2.4e-171) {
    		tmp = t_1;
    	} else if (t <= 6.2e+69) {
    		tmp = fma((y / a), z, x);
    	} else if (t <= 6e+130) {
    		tmp = t_1;
    	} else {
    		tmp = t_2;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a)
    	t_1 = Float64(Float64(Float64(x - y) / t) * z)
    	t_2 = Float64(x + Float64(Float64(y - x) / 1.0))
    	tmp = 0.0
    	if (t <= -9.2e+53)
    		tmp = t_2;
    	elseif (t <= -2.4e-171)
    		tmp = t_1;
    	elseif (t <= 6.2e+69)
    		tmp = fma(Float64(y / a), z, x);
    	elseif (t <= 6e+130)
    		tmp = t_1;
    	else
    		tmp = t_2;
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] * z), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(y - x), $MachinePrecision] / 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -9.2e+53], t$95$2, If[LessEqual[t, -2.4e-171], t$95$1, If[LessEqual[t, 6.2e+69], N[(N[(y / a), $MachinePrecision] * z + x), $MachinePrecision], If[LessEqual[t, 6e+130], t$95$1, t$95$2]]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \frac{x - y}{t} \cdot z\\
    t_2 := x + \frac{y - x}{1}\\
    \mathbf{if}\;t \leq -9.2 \cdot 10^{+53}:\\
    \;\;\;\;t\_2\\
    
    \mathbf{elif}\;t \leq -2.4 \cdot 10^{-171}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;t \leq 6.2 \cdot 10^{+69}:\\
    \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\
    
    \mathbf{elif}\;t \leq 6 \cdot 10^{+130}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_2\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if t < -9.20000000000000079e53 or 5.9999999999999999e130 < t

      1. Initial program 35.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-/.f6471.3

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

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

        \[\leadsto x + \frac{y - x}{\color{blue}{1}} \]
      6. Step-by-step derivation
        1. Applied rewrites49.9%

          \[\leadsto x + \frac{y - x}{\color{blue}{1}} \]

        if -9.20000000000000079e53 < t < -2.39999999999999987e-171 or 6.1999999999999997e69 < t < 5.9999999999999999e130

        1. Initial program 83.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. distribute-rgt-out--N/A

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

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

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

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

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

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

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

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

          if -2.39999999999999987e-171 < t < 6.1999999999999997e69

          1. Initial program 87.1%

            \[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--.f6468.3

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

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

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

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

          Alternative 4: 78.2% accurate, 0.7× speedup?

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

            1. Initial program 39.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. distribute-rgt-out--N/A

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

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

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

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

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

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

            if -2.3500000000000001e73 < t < -7.80000000000000038e-70

            1. Initial program 92.8%

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

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

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

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

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

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

            if -7.80000000000000038e-70 < t < 1.8e5

            1. Initial program 89.8%

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

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

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

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

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

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

          Alternative 5: 85.4% accurate, 0.7× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -3 \cdot 10^{-132} \lor \neg \left(a \leq 4 \cdot 10^{-134}\right):\\ \;\;\;\;\mathsf{fma}\left(z - t, \frac{y - x}{a - t}, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x - y, \frac{z - a}{t}, y\right)\\ \end{array} \end{array} \]
          (FPCore (x y z t a)
           :precision binary64
           (if (or (<= a -3e-132) (not (<= a 4e-134)))
             (fma (- z t) (/ (- y x) (- a t)) x)
             (fma (- x y) (/ (- z a) t) y)))
          double code(double x, double y, double z, double t, double a) {
          	double tmp;
          	if ((a <= -3e-132) || !(a <= 4e-134)) {
          		tmp = fma((z - t), ((y - x) / (a - t)), x);
          	} else {
          		tmp = fma((x - y), ((z - a) / t), y);
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a)
          	tmp = 0.0
          	if ((a <= -3e-132) || !(a <= 4e-134))
          		tmp = fma(Float64(z - t), Float64(Float64(y - x) / Float64(a - t)), x);
          	else
          		tmp = fma(Float64(x - y), Float64(Float64(z - a) / t), y);
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -3e-132], N[Not[LessEqual[a, 4e-134]], $MachinePrecision]], N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(N[(x - y), $MachinePrecision] * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision] + y), $MachinePrecision]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;a \leq -3 \cdot 10^{-132} \lor \neg \left(a \leq 4 \cdot 10^{-134}\right):\\
          \;\;\;\;\mathsf{fma}\left(z - t, \frac{y - x}{a - t}, x\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;\mathsf{fma}\left(x - y, \frac{z - a}{t}, y\right)\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if a < -3e-132 or 4.00000000000000016e-134 < a

            1. Initial program 71.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 \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-/.f6489.6

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

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

            if -3e-132 < a < 4.00000000000000016e-134

            1. Initial program 61.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. distribute-rgt-out--N/A

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

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

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

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

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

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

            \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -3 \cdot 10^{-132} \lor \neg \left(a \leq 4 \cdot 10^{-134}\right):\\ \;\;\;\;\mathsf{fma}\left(z - t, \frac{y - x}{a - t}, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x - y, \frac{z - a}{t}, y\right)\\ \end{array} \]
          5. Add Preprocessing

          Alternative 6: 73.8% accurate, 0.8× speedup?

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

            1. Initial program 71.9%

              \[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--.f6479.8

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

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

            if -7.8e62 < a < 2.7000000000000001e-21

            1. Initial program 67.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. distribute-rgt-out--N/A

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

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

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

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

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

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

            if 2.7000000000000001e-21 < a

            1. Initial program 65.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-/.f6493.5

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

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

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

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

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

          Alternative 7: 71.9% accurate, 0.8× speedup?

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

            1. Initial program 71.9%

              \[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--.f6479.8

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

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

            if -7.8e62 < a < 2.7000000000000001e-21

            1. Initial program 67.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. distribute-rgt-out--N/A

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

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

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

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

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

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

            if 2.7000000000000001e-21 < a

            1. Initial program 65.0%

              \[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--.f6469.3

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

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

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

            Alternative 8: 66.7% accurate, 0.9× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -5.5 \cdot 10^{+62} \lor \neg \left(a \leq 7.6 \cdot 10^{-18}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x - y, \frac{z}{t}, y\right)\\ \end{array} \end{array} \]
            (FPCore (x y z t a)
             :precision binary64
             (if (or (<= a -5.5e+62) (not (<= a 7.6e-18)))
               (fma (/ y a) z x)
               (fma (- x y) (/ z t) y)))
            double code(double x, double y, double z, double t, double a) {
            	double tmp;
            	if ((a <= -5.5e+62) || !(a <= 7.6e-18)) {
            		tmp = fma((y / a), z, x);
            	} else {
            		tmp = fma((x - y), (z / t), y);
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a)
            	tmp = 0.0
            	if ((a <= -5.5e+62) || !(a <= 7.6e-18))
            		tmp = fma(Float64(y / a), z, x);
            	else
            		tmp = fma(Float64(x - y), Float64(z / t), y);
            	end
            	return tmp
            end
            
            code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -5.5e+62], N[Not[LessEqual[a, 7.6e-18]], $MachinePrecision]], N[(N[(y / a), $MachinePrecision] * z + x), $MachinePrecision], N[(N[(x - y), $MachinePrecision] * N[(z / t), $MachinePrecision] + y), $MachinePrecision]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;a \leq -5.5 \cdot 10^{+62} \lor \neg \left(a \leq 7.6 \cdot 10^{-18}\right):\\
            \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\
            
            \mathbf{else}:\\
            \;\;\;\;\mathsf{fma}\left(x - y, \frac{z}{t}, y\right)\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if a < -5.4999999999999997e62 or 7.5999999999999996e-18 < a

              1. Initial program 67.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 \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--.f6466.2

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

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

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

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

                if -5.4999999999999997e62 < a < 7.5999999999999996e-18

                1. Initial program 67.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. distribute-rgt-out--N/A

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

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

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

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

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

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

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

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

                  \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -5.5 \cdot 10^{+62} \lor \neg \left(a \leq 7.6 \cdot 10^{-18}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x - y, \frac{z}{t}, y\right)\\ \end{array} \]
                10. Add Preprocessing

                Alternative 9: 61.0% accurate, 0.9× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -2.4 \cdot 10^{-171} \lor \neg \left(t \leq 1.8 \cdot 10^{-22}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, z, y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \end{array} \end{array} \]
                (FPCore (x y z t a)
                 :precision binary64
                 (if (or (<= t -2.4e-171) (not (<= t 1.8e-22)))
                   (fma (/ (- x y) t) z y)
                   (fma (/ y a) z x)))
                double code(double x, double y, double z, double t, double a) {
                	double tmp;
                	if ((t <= -2.4e-171) || !(t <= 1.8e-22)) {
                		tmp = fma(((x - y) / t), z, y);
                	} else {
                		tmp = fma((y / a), z, x);
                	}
                	return tmp;
                }
                
                function code(x, y, z, t, a)
                	tmp = 0.0
                	if ((t <= -2.4e-171) || !(t <= 1.8e-22))
                		tmp = fma(Float64(Float64(x - y) / t), z, y);
                	else
                		tmp = fma(Float64(y / a), z, x);
                	end
                	return tmp
                end
                
                code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -2.4e-171], N[Not[LessEqual[t, 1.8e-22]], $MachinePrecision]], N[(N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] * z + y), $MachinePrecision], N[(N[(y / a), $MachinePrecision] * z + x), $MachinePrecision]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                \mathbf{if}\;t \leq -2.4 \cdot 10^{-171} \lor \neg \left(t \leq 1.8 \cdot 10^{-22}\right):\\
                \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, z, y\right)\\
                
                \mathbf{else}:\\
                \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if t < -2.39999999999999987e-171 or 1.7999999999999999e-22 < t

                  1. Initial program 56.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. distribute-rgt-out--N/A

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

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

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

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

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

                    \[\leadsto \color{blue}{\mathsf{fma}\left(x - y, \frac{z - a}{t}, 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 rewrites71.4%

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

                    if -2.39999999999999987e-171 < t < 1.7999999999999999e-22

                    1. Initial program 89.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 \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--.f6472.7

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

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

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

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

                      \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -2.4 \cdot 10^{-171} \lor \neg \left(t \leq 1.8 \cdot 10^{-22}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, z, y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \end{array} \]
                    10. Add Preprocessing

                    Alternative 10: 70.1% accurate, 0.9× speedup?

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

                      1. Initial program 71.9%

                        \[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--.f6479.8

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

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

                      if -4.2e62 < a < 2.7000000000000001e-21

                      1. Initial program 67.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. distribute-rgt-out--N/A

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

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

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

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

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

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

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

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

                        if 2.7000000000000001e-21 < a

                        1. Initial program 65.0%

                          \[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--.f6469.3

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

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

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

                        Alternative 11: 69.1% accurate, 0.9× speedup?

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

                          1. Initial program 59.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. distribute-rgt-out--N/A

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

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

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

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

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

                            \[\leadsto \color{blue}{\mathsf{fma}\left(x - y, \frac{z - a}{t}, 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 rewrites73.9%

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

                            if -1.89999999999999997e-112 < t < 1.8e21

                            1. Initial program 88.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--.f6469.3

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

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

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

                              if 1.8e21 < t

                              1. Initial program 44.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. distribute-rgt-out--N/A

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

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

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

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

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

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

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

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

                              Alternative 12: 46.0% accurate, 1.0× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -45 \lor \neg \left(t \leq 1.1 \cdot 10^{+123}\right):\\ \;\;\;\;x + \frac{y - x}{1}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \end{array} \end{array} \]
                              (FPCore (x y z t a)
                               :precision binary64
                               (if (or (<= t -45.0) (not (<= t 1.1e+123)))
                                 (+ x (/ (- y x) 1.0))
                                 (fma (/ y a) z x)))
                              double code(double x, double y, double z, double t, double a) {
                              	double tmp;
                              	if ((t <= -45.0) || !(t <= 1.1e+123)) {
                              		tmp = x + ((y - x) / 1.0);
                              	} else {
                              		tmp = fma((y / a), z, x);
                              	}
                              	return tmp;
                              }
                              
                              function code(x, y, z, t, a)
                              	tmp = 0.0
                              	if ((t <= -45.0) || !(t <= 1.1e+123))
                              		tmp = Float64(x + Float64(Float64(y - x) / 1.0));
                              	else
                              		tmp = fma(Float64(y / a), z, x);
                              	end
                              	return tmp
                              end
                              
                              code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -45.0], N[Not[LessEqual[t, 1.1e+123]], $MachinePrecision]], N[(x + N[(N[(y - x), $MachinePrecision] / 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(y / a), $MachinePrecision] * z + x), $MachinePrecision]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              \mathbf{if}\;t \leq -45 \lor \neg \left(t \leq 1.1 \cdot 10^{+123}\right):\\
                              \;\;\;\;x + \frac{y - x}{1}\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 2 regimes
                              2. if t < -45 or 1.09999999999999996e123 < t

                                1. Initial program 39.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-/.f6472.4

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

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

                                  \[\leadsto x + \frac{y - x}{\color{blue}{1}} \]
                                6. Step-by-step derivation
                                  1. Applied rewrites47.7%

                                    \[\leadsto x + \frac{y - x}{\color{blue}{1}} \]

                                  if -45 < t < 1.09999999999999996e123

                                  1. Initial program 86.5%

                                    \[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--.f6457.4

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

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

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

                                      \[\leadsto \mathsf{fma}\left(\frac{y}{a}, z, x\right) \]
                                  8. Recombined 2 regimes into one program.
                                  9. Final simplification46.2%

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

                                  Alternative 13: 39.2% accurate, 1.6× speedup?

                                  \[\begin{array}{l} \\ \mathsf{fma}\left(\frac{y}{a}, z, x\right) \end{array} \]
                                  (FPCore (x y z t a) :precision binary64 (fma (/ y a) z x))
                                  double code(double x, double y, double z, double t, double a) {
                                  	return fma((y / a), z, x);
                                  }
                                  
                                  function code(x, y, z, t, a)
                                  	return fma(Float64(y / a), z, x)
                                  end
                                  
                                  code[x_, y_, z_, t_, a_] := N[(N[(y / a), $MachinePrecision] * z + x), $MachinePrecision]
                                  
                                  \begin{array}{l}
                                  
                                  \\
                                  \mathsf{fma}\left(\frac{y}{a}, z, x\right)
                                  \end{array}
                                  
                                  Derivation
                                  1. Initial program 67.8%

                                    \[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--.f6439.2

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

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

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

                                      \[\leadsto \mathsf{fma}\left(\frac{y}{a}, z, x\right) \]
                                    2. Add Preprocessing

                                    Alternative 14: 18.6% accurate, 1.7× speedup?

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

                                      \[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--.f6439.2

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

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

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

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

                                          \[\leadsto y \cdot \frac{z}{\color{blue}{a}} \]
                                        2. Add Preprocessing

                                        Developer Target 1: 87.4% 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 2024296 
                                        (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))))