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

Percentage Accurate: 68.0% → 90.3%
Time: 9.1s
Alternatives: 15
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 15 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: 68.0% 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: 90.3% accurate, 0.3× speedup?

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

\\
\begin{array}{l}
t_1 := \frac{y - x}{\frac{a - t}{z - t}} + x\\
t_2 := \frac{\left(z - t\right) \cdot \left(y - x\right)}{a - t} + x\\
\mathbf{if}\;t\_2 \leq -5 \cdot 10^{-308}:\\
\;\;\;\;t\_1\\

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

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


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

    1. Initial program 70.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-/.f6494.0

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

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

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

    1. Initial program 5.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 2: 90.2% accurate, 0.3× speedup?

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

      1. Initial program 70.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. associate-/l*N/A

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

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

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

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

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

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

      1. Initial program 5.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 3: 51.0% accurate, 0.8× speedup?

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

        1. Initial program 68.6%

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

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

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

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

          if -175 < a < -3.10000000000000013e-282

          1. Initial program 55.0%

            \[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--.f6433.7

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

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

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

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

            if -3.10000000000000013e-282 < a < 4.30000000000000035e-46

            1. Initial program 76.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            Alternative 4: 50.4% accurate, 0.8× speedup?

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

              1. Initial program 68.6%

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

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

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

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

                if -175 < a < -3.10000000000000013e-282

                1. Initial program 55.0%

                  \[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--.f6433.7

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

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

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

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

                    \[\leadsto y - \frac{a \cdot x}{t} \]
                  3. Step-by-step derivation
                    1. Applied rewrites46.0%

                      \[\leadsto y - \frac{x \cdot a}{t} \]

                    if -3.10000000000000013e-282 < a < 4.30000000000000035e-46

                    1. Initial program 76.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \frac{x - y}{t} \cdot \color{blue}{z} \]
                    8. Recombined 3 regimes into one program.
                    9. Final simplification60.5%

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

                    Alternative 5: 47.1% accurate, 0.8× speedup?

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

                      1. Initial program 68.4%

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

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

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

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

                        if -175 < a < -4.6999999999999999e-287

                        1. Initial program 55.0%

                          \[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--.f6433.7

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

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

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

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

                            \[\leadsto y - \frac{a \cdot x}{t} \]
                          3. Step-by-step derivation
                            1. Applied rewrites46.0%

                              \[\leadsto y - \frac{x \cdot a}{t} \]

                            if -4.6999999999999999e-287 < a < 2.44999999999999982e-65

                            1. Initial program 78.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              Alternative 6: 45.4% accurate, 0.8× speedup?

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

                                1. Initial program 67.3%

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

                                    \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{y - x}}{a}, z, x\right) \]
                                5. Applied rewrites67.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 rewrites59.4%

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

                                  if -3.0000000000000002e-90 < a < -4.6999999999999999e-287

                                  1. Initial program 51.0%

                                    \[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--.f6441.0

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

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

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

                                      \[\leadsto y \]

                                    if -4.6999999999999999e-287 < a < 2.44999999999999982e-65

                                    1. Initial program 78.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \frac{z}{t} \cdot x \]
                                      4. Recombined 3 regimes into one program.
                                      5. Add Preprocessing

                                      Alternative 7: 76.1% accurate, 0.8× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y - x, \frac{z - t}{a}, x\right)\\ \mathbf{if}\;a \leq -1.7 \cdot 10^{+23}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 9 \cdot 10^{-37}:\\ \;\;\;\;\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 (- y x) (/ (- z t) a) x)))
                                         (if (<= a -1.7e+23)
                                           t_1
                                           (if (<= a 9e-37) (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((y - x), ((z - t) / a), x);
                                      	double tmp;
                                      	if (a <= -1.7e+23) {
                                      		tmp = t_1;
                                      	} else if (a <= 9e-37) {
                                      		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(y - x), Float64(Float64(z - t) / a), x)
                                      	tmp = 0.0
                                      	if (a <= -1.7e+23)
                                      		tmp = t_1;
                                      	elseif (a <= 9e-37)
                                      		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[(y - x), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[a, -1.7e+23], t$95$1, If[LessEqual[a, 9e-37], 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(y - x, \frac{z - t}{a}, x\right)\\
                                      \mathbf{if}\;a \leq -1.7 \cdot 10^{+23}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      \mathbf{elif}\;a \leq 9 \cdot 10^{-37}:\\
                                      \;\;\;\;\mathsf{fma}\left(x - y, \frac{z - a}{t}, y\right)\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 2 regimes
                                      2. if a < -1.69999999999999996e23 or 9.00000000000000081e-37 < a

                                        1. Initial program 68.6%

                                          \[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.6

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

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

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

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

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

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

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

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

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

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

                                        if -1.69999999999999996e23 < a < 9.00000000000000081e-37

                                        1. Initial program 63.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        Alternative 8: 73.4% accurate, 0.8× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y - x, \frac{z}{a}, x\right)\\ \mathbf{if}\;a \leq -4.3 \cdot 10^{+26}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 4 \cdot 10^{+47}:\\ \;\;\;\;\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 (- y x) (/ z a) x)))
                                           (if (<= a -4.3e+26)
                                             t_1
                                             (if (<= a 4e+47) (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((y - x), (z / a), x);
                                        	double tmp;
                                        	if (a <= -4.3e+26) {
                                        		tmp = t_1;
                                        	} else if (a <= 4e+47) {
                                        		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(y - x), Float64(z / a), x)
                                        	tmp = 0.0
                                        	if (a <= -4.3e+26)
                                        		tmp = t_1;
                                        	elseif (a <= 4e+47)
                                        		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[(y - x), $MachinePrecision] * N[(z / a), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[a, -4.3e+26], t$95$1, If[LessEqual[a, 4e+47], 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(y - x, \frac{z}{a}, x\right)\\
                                        \mathbf{if}\;a \leq -4.3 \cdot 10^{+26}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        \mathbf{elif}\;a \leq 4 \cdot 10^{+47}:\\
                                        \;\;\;\;\mathsf{fma}\left(x - y, \frac{z - a}{t}, y\right)\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 2 regimes
                                        2. if a < -4.2999999999999998e26 or 4.0000000000000002e47 < 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--.f6479.4

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

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

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

                                            if -4.2999999999999998e26 < a < 4.0000000000000002e47

                                            1. Initial program 64.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            Alternative 9: 29.4% accurate, 0.8× speedup?

                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{z}{t} \cdot x\\ \mathbf{if}\;z \leq -8.5 \cdot 10^{+122}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -2.3 \cdot 10^{-146}:\\ \;\;\;\;\frac{z \cdot y}{a}\\ \mathbf{elif}\;z \leq 3650:\\ \;\;\;\;y\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                            (FPCore (x y z t a)
                                             :precision binary64
                                             (let* ((t_1 (* (/ z t) x)))
                                               (if (<= z -8.5e+122)
                                                 t_1
                                                 (if (<= z -2.3e-146) (/ (* z y) a) (if (<= z 3650.0) y t_1)))))
                                            double code(double x, double y, double z, double t, double a) {
                                            	double t_1 = (z / t) * x;
                                            	double tmp;
                                            	if (z <= -8.5e+122) {
                                            		tmp = t_1;
                                            	} else if (z <= -2.3e-146) {
                                            		tmp = (z * y) / a;
                                            	} else if (z <= 3650.0) {
                                            		tmp = y;
                                            	} else {
                                            		tmp = t_1;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            real(8) function code(x, y, z, t, a)
                                                real(8), intent (in) :: x
                                                real(8), intent (in) :: y
                                                real(8), intent (in) :: z
                                                real(8), intent (in) :: t
                                                real(8), intent (in) :: a
                                                real(8) :: t_1
                                                real(8) :: tmp
                                                t_1 = (z / t) * x
                                                if (z <= (-8.5d+122)) then
                                                    tmp = t_1
                                                else if (z <= (-2.3d-146)) then
                                                    tmp = (z * y) / a
                                                else if (z <= 3650.0d0) then
                                                    tmp = y
                                                else
                                                    tmp = t_1
                                                end if
                                                code = tmp
                                            end function
                                            
                                            public static double code(double x, double y, double z, double t, double a) {
                                            	double t_1 = (z / t) * x;
                                            	double tmp;
                                            	if (z <= -8.5e+122) {
                                            		tmp = t_1;
                                            	} else if (z <= -2.3e-146) {
                                            		tmp = (z * y) / a;
                                            	} else if (z <= 3650.0) {
                                            		tmp = y;
                                            	} else {
                                            		tmp = t_1;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            def code(x, y, z, t, a):
                                            	t_1 = (z / t) * x
                                            	tmp = 0
                                            	if z <= -8.5e+122:
                                            		tmp = t_1
                                            	elif z <= -2.3e-146:
                                            		tmp = (z * y) / a
                                            	elif z <= 3650.0:
                                            		tmp = y
                                            	else:
                                            		tmp = t_1
                                            	return tmp
                                            
                                            function code(x, y, z, t, a)
                                            	t_1 = Float64(Float64(z / t) * x)
                                            	tmp = 0.0
                                            	if (z <= -8.5e+122)
                                            		tmp = t_1;
                                            	elseif (z <= -2.3e-146)
                                            		tmp = Float64(Float64(z * y) / a);
                                            	elseif (z <= 3650.0)
                                            		tmp = y;
                                            	else
                                            		tmp = t_1;
                                            	end
                                            	return tmp
                                            end
                                            
                                            function tmp_2 = code(x, y, z, t, a)
                                            	t_1 = (z / t) * x;
                                            	tmp = 0.0;
                                            	if (z <= -8.5e+122)
                                            		tmp = t_1;
                                            	elseif (z <= -2.3e-146)
                                            		tmp = (z * y) / a;
                                            	elseif (z <= 3650.0)
                                            		tmp = y;
                                            	else
                                            		tmp = t_1;
                                            	end
                                            	tmp_2 = tmp;
                                            end
                                            
                                            code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(z / t), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[z, -8.5e+122], t$95$1, If[LessEqual[z, -2.3e-146], N[(N[(z * y), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[z, 3650.0], y, t$95$1]]]]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            \begin{array}{l}
                                            t_1 := \frac{z}{t} \cdot x\\
                                            \mathbf{if}\;z \leq -8.5 \cdot 10^{+122}:\\
                                            \;\;\;\;t\_1\\
                                            
                                            \mathbf{elif}\;z \leq -2.3 \cdot 10^{-146}:\\
                                            \;\;\;\;\frac{z \cdot y}{a}\\
                                            
                                            \mathbf{elif}\;z \leq 3650:\\
                                            \;\;\;\;y\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;t\_1\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            
                                            Derivation
                                            1. Split input into 3 regimes
                                            2. if z < -8.50000000000000003e122 or 3650 < z

                                              1. Initial program 63.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                  if -8.50000000000000003e122 < z < -2.3000000000000001e-146

                                                  1. Initial program 74.0%

                                                    \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
                                                  2. Add Preprocessing
                                                  3. Taylor expanded in t around 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--.f6464.1

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

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

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

                                                    if -2.3000000000000001e-146 < z < 3650

                                                    1. Initial program 64.3%

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

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

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

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

                                                        \[\leadsto y \]
                                                    8. Recombined 3 regimes into one program.
                                                    9. Add Preprocessing

                                                    Alternative 10: 69.7% accurate, 0.9× speedup?

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

                                                      1. Initial program 70.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--.f6470.3

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

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

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

                                                        if -1.69999999999999996e23 < a < 4.50000000000000009e-90

                                                        1. Initial program 59.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                        Alternative 11: 66.7% accurate, 0.9× speedup?

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

                                                          1. Initial program 69.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--.f6480.0

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

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

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

                                                            if -2.1999999999999999e27 < a < 7.4e84

                                                            1. Initial program 63.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                            Alternative 12: 36.8% accurate, 1.0× speedup?

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

                                                              1. Initial program 42.6%

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

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

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

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

                                                                  \[\leadsto y \]

                                                                if -3.5e31 < t < 4.6e11

                                                                1. Initial program 85.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-/.f6495.8

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

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

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

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

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

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

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

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

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

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

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

                                                                  if 4.6e11 < t

                                                                  1. Initial program 44.1%

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

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

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

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

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

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

                                                                        \[\leadsto \mathsf{fma}\left(\frac{a}{t}, y, y\right) \]
                                                                    4. Recombined 3 regimes into one program.
                                                                    5. Final simplification34.9%

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

                                                                    Alternative 13: 36.8% accurate, 1.0× speedup?

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

                                                                      1. Initial program 42.9%

                                                                        \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
                                                                      2. Add Preprocessing
                                                                      3. Taylor expanded in 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--.f6449.0

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

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

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

                                                                          \[\leadsto y \]

                                                                        if -3.5e31 < t < 1.9e17

                                                                        1. Initial program 85.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                            \[\leadsto y \cdot \color{blue}{\frac{z}{a}} \]
                                                                        10. Recombined 2 regimes into one program.
                                                                        11. Final simplification34.8%

                                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -3.5 \cdot 10^{+31}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq 1.9 \cdot 10^{+17}:\\ \;\;\;\;\frac{z}{a} \cdot y\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \]
                                                                        12. Add Preprocessing

                                                                        Alternative 14: 32.6% accurate, 1.0× speedup?

                                                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{z}{t} \cdot x\\ \mathbf{if}\;z \leq -2.4 \cdot 10^{+111}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 3650:\\ \;\;\;\;y\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                        (FPCore (x y z t a)
                                                                         :precision binary64
                                                                         (let* ((t_1 (* (/ z t) x)))
                                                                           (if (<= z -2.4e+111) t_1 (if (<= z 3650.0) y t_1))))
                                                                        double code(double x, double y, double z, double t, double a) {
                                                                        	double t_1 = (z / t) * x;
                                                                        	double tmp;
                                                                        	if (z <= -2.4e+111) {
                                                                        		tmp = t_1;
                                                                        	} else if (z <= 3650.0) {
                                                                        		tmp = y;
                                                                        	} else {
                                                                        		tmp = t_1;
                                                                        	}
                                                                        	return tmp;
                                                                        }
                                                                        
                                                                        real(8) function code(x, y, z, t, a)
                                                                            real(8), intent (in) :: x
                                                                            real(8), intent (in) :: y
                                                                            real(8), intent (in) :: z
                                                                            real(8), intent (in) :: t
                                                                            real(8), intent (in) :: a
                                                                            real(8) :: t_1
                                                                            real(8) :: tmp
                                                                            t_1 = (z / t) * x
                                                                            if (z <= (-2.4d+111)) then
                                                                                tmp = t_1
                                                                            else if (z <= 3650.0d0) then
                                                                                tmp = y
                                                                            else
                                                                                tmp = t_1
                                                                            end if
                                                                            code = tmp
                                                                        end function
                                                                        
                                                                        public static double code(double x, double y, double z, double t, double a) {
                                                                        	double t_1 = (z / t) * x;
                                                                        	double tmp;
                                                                        	if (z <= -2.4e+111) {
                                                                        		tmp = t_1;
                                                                        	} else if (z <= 3650.0) {
                                                                        		tmp = y;
                                                                        	} else {
                                                                        		tmp = t_1;
                                                                        	}
                                                                        	return tmp;
                                                                        }
                                                                        
                                                                        def code(x, y, z, t, a):
                                                                        	t_1 = (z / t) * x
                                                                        	tmp = 0
                                                                        	if z <= -2.4e+111:
                                                                        		tmp = t_1
                                                                        	elif z <= 3650.0:
                                                                        		tmp = y
                                                                        	else:
                                                                        		tmp = t_1
                                                                        	return tmp
                                                                        
                                                                        function code(x, y, z, t, a)
                                                                        	t_1 = Float64(Float64(z / t) * x)
                                                                        	tmp = 0.0
                                                                        	if (z <= -2.4e+111)
                                                                        		tmp = t_1;
                                                                        	elseif (z <= 3650.0)
                                                                        		tmp = y;
                                                                        	else
                                                                        		tmp = t_1;
                                                                        	end
                                                                        	return tmp
                                                                        end
                                                                        
                                                                        function tmp_2 = code(x, y, z, t, a)
                                                                        	t_1 = (z / t) * x;
                                                                        	tmp = 0.0;
                                                                        	if (z <= -2.4e+111)
                                                                        		tmp = t_1;
                                                                        	elseif (z <= 3650.0)
                                                                        		tmp = y;
                                                                        	else
                                                                        		tmp = t_1;
                                                                        	end
                                                                        	tmp_2 = tmp;
                                                                        end
                                                                        
                                                                        code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(z / t), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[z, -2.4e+111], t$95$1, If[LessEqual[z, 3650.0], y, t$95$1]]]
                                                                        
                                                                        \begin{array}{l}
                                                                        
                                                                        \\
                                                                        \begin{array}{l}
                                                                        t_1 := \frac{z}{t} \cdot x\\
                                                                        \mathbf{if}\;z \leq -2.4 \cdot 10^{+111}:\\
                                                                        \;\;\;\;t\_1\\
                                                                        
                                                                        \mathbf{elif}\;z \leq 3650:\\
                                                                        \;\;\;\;y\\
                                                                        
                                                                        \mathbf{else}:\\
                                                                        \;\;\;\;t\_1\\
                                                                        
                                                                        
                                                                        \end{array}
                                                                        \end{array}
                                                                        
                                                                        Derivation
                                                                        1. Split input into 2 regimes
                                                                        2. if z < -2.40000000000000006e111 or 3650 < z

                                                                          1. Initial program 63.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                              if -2.40000000000000006e111 < z < 3650

                                                                              1. Initial program 68.6%

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

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

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

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

                                                                                  \[\leadsto y \]
                                                                              8. Recombined 2 regimes into one program.
                                                                              9. Add Preprocessing

                                                                              Alternative 15: 26.2% accurate, 29.0× speedup?

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

                                                                                \[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--.f6443.7

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

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

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

                                                                                  \[\leadsto y \]
                                                                                2. Add Preprocessing

                                                                                Developer Target 1: 87.0% 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 2024332 
                                                                                (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))))