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

Percentage Accurate: 68.0% → 90.5%
Time: 8.3s
Alternatives: 19
Speedup: 0.8×

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 19 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.5% accurate, 0.3× speedup?

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

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

\mathbf{else}:\\
\;\;\;\;y - \left(-x\right) \cdot \frac{z - a}{t}\\


\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))) < -1.0000000000000001e-293 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t)))

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

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

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

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

    1. Initial program 4.4%

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

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

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

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

        \[\leadsto \frac{\color{blue}{\left(y - x\right) \cdot \left(z - t\right)}}{a - t} + x \]
      5. 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-/.f644.4

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

      \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z - t}{a - t}, y - x, x\right)} \]
    5. 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}} \]
    6. Step-by-step derivation
      1. fp-cancel-sub-sign-invN/A

        \[\leadsto \color{blue}{\left(y + -1 \cdot \frac{z \cdot \left(y - x\right)}{t}\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \frac{a \cdot \left(y - x\right)}{t}} \]
      2. fp-cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 2: 77.2% accurate, 0.6× speedup?

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

      1. Initial program 40.3%

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

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

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

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

          \[\leadsto \frac{\color{blue}{\left(y - x\right) \cdot \left(z - t\right)}}{a - t} + x \]
        5. 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-/.f6476.9

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z - t}{a - t}, y - x, x\right)} \]
      5. 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}} \]
      6. Step-by-step derivation
        1. fp-cancel-sub-sign-invN/A

          \[\leadsto \color{blue}{\left(y + -1 \cdot \frac{z \cdot \left(y - x\right)}{t}\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \frac{a \cdot \left(y - x\right)}{t}} \]
        2. fp-cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -8.1999999999999998e108 < t < -5.49999999999999965e-91

      1. Initial program 80.4%

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

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

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

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

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

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

      if -5.49999999999999965e-91 < t < 9.49999999999999989e55

      1. Initial program 93.4%

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

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

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

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

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

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

      if 9.49999999999999989e55 < t

      1. Initial program 39.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 rewrites84.4%

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

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

    Alternative 3: 77.2% accurate, 0.7× speedup?

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

      1. Initial program 39.7%

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

          \[\leadsto \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-/.f6471.8

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z - t}{a - t}, y - x, x\right)} \]
      5. 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}} \]
      6. Step-by-step derivation
        1. fp-cancel-sub-sign-invN/A

          \[\leadsto \color{blue}{\left(y + -1 \cdot \frac{z \cdot \left(y - x\right)}{t}\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \frac{a \cdot \left(y - x\right)}{t}} \]
        2. fp-cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -8.1999999999999998e108 < t < -5.49999999999999965e-91

      1. Initial program 80.4%

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

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

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

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

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

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

      if -5.49999999999999965e-91 < t < 9.49999999999999989e55

      1. Initial program 93.4%

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

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

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

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

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

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

      \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -8.2 \cdot 10^{+108}:\\ \;\;\;\;y - \frac{y - x}{t} \cdot \left(z - a\right)\\ \mathbf{elif}\;t \leq -5.5 \cdot 10^{-91}:\\ \;\;\;\;x + \frac{\left(z - t\right) \cdot y}{a - t}\\ \mathbf{elif}\;t \leq 9.5 \cdot 10^{+55}:\\ \;\;\;\;x + \frac{\left(y - x\right) \cdot z}{a - t}\\ \mathbf{else}:\\ \;\;\;\;y - \frac{y - x}{t} \cdot \left(z - a\right)\\ \end{array} \]
    5. Add Preprocessing

    Alternative 4: 76.6% accurate, 0.7× speedup?

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

      1. Initial program 47.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-/.f6476.1

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z - t}{a - t}, y - x, x\right)} \]
      5. 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}} \]
      6. Step-by-step derivation
        1. fp-cancel-sub-sign-invN/A

          \[\leadsto \color{blue}{\left(y + -1 \cdot \frac{z \cdot \left(y - x\right)}{t}\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \frac{a \cdot \left(y - x\right)}{t}} \]
        2. fp-cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -115000 < t < 1.55000000000000008e-247

      1. Initial program 89.4%

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

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

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

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

          \[\leadsto \frac{\color{blue}{\left(y - x\right) \cdot \left(z - t\right)}}{a - t} + x \]
        5. 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-/.f6494.6

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

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

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

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

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

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

      if 1.55000000000000008e-247 < t < 9.49999999999999989e55

      1. Initial program 94.5%

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

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

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

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

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

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

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

    Alternative 5: 66.6% accurate, 0.7× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{z - t}{a - t} \cdot y\\ \mathbf{if}\;t \leq -8.5 \cdot 10^{-25}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 4.2 \cdot 10^{-93}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{a}, y - x, x\right)\\ \mathbf{elif}\;t \leq 1.8 \cdot 10^{-5}:\\ \;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
    (FPCore (x y z t a)
     :precision binary64
     (let* ((t_1 (* (/ (- z t) (- a t)) y)))
       (if (<= t -8.5e-25)
         t_1
         (if (<= t 4.2e-93)
           (fma (/ z a) (- y x) x)
           (if (<= t 1.8e-5) (* (- y x) (/ z (- a t))) t_1)))))
    double code(double x, double y, double z, double t, double a) {
    	double t_1 = ((z - t) / (a - t)) * y;
    	double tmp;
    	if (t <= -8.5e-25) {
    		tmp = t_1;
    	} else if (t <= 4.2e-93) {
    		tmp = fma((z / a), (y - x), x);
    	} else if (t <= 1.8e-5) {
    		tmp = (y - x) * (z / (a - t));
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a)
    	t_1 = Float64(Float64(Float64(z - t) / Float64(a - t)) * y)
    	tmp = 0.0
    	if (t <= -8.5e-25)
    		tmp = t_1;
    	elseif (t <= 4.2e-93)
    		tmp = fma(Float64(z / a), Float64(y - x), x);
    	elseif (t <= 1.8e-5)
    		tmp = Float64(Float64(y - x) * Float64(z / Float64(a - t)));
    	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] * y), $MachinePrecision]}, If[LessEqual[t, -8.5e-25], t$95$1, If[LessEqual[t, 4.2e-93], N[(N[(z / a), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[t, 1.8e-5], N[(N[(y - x), $MachinePrecision] * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \frac{z - t}{a - t} \cdot y\\
    \mathbf{if}\;t \leq -8.5 \cdot 10^{-25}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;t \leq 4.2 \cdot 10^{-93}:\\
    \;\;\;\;\mathsf{fma}\left(\frac{z}{a}, y - x, x\right)\\
    
    \mathbf{elif}\;t \leq 1.8 \cdot 10^{-5}:\\
    \;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if t < -8.49999999999999981e-25 or 1.80000000000000005e-5 < t

      1. Initial program 51.9%

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

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

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

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

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

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

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

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

        if -8.49999999999999981e-25 < t < 4.2000000000000002e-93

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

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

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

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

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

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

        if 4.2000000000000002e-93 < t < 1.80000000000000005e-5

        1. Initial program 99.8%

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 6: 47.2% accurate, 0.8× speedup?

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

        1. Initial program 32.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 \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-/.f6473.0

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

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

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

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

          if -2.6e132 < t < 4.2999999999999999e-75

          1. Initial program 87.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.8

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

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

            if 4.2999999999999999e-75 < t < 5.5e132

            1. Initial program 79.7%

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

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

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

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

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

            Alternative 7: 74.9% accurate, 0.8× speedup?

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

              1. Initial program 75.7%

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

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

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

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

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

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

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

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

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

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

              if -3.5e31 < a < 1.54999999999999994e-60

              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 \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-/.f6477.7

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

                \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z - t}{a - t}, y - x, x\right)} \]
              5. 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}} \]
              6. Step-by-step derivation
                1. fp-cancel-sub-sign-invN/A

                  \[\leadsto \color{blue}{\left(y + -1 \cdot \frac{z \cdot \left(y - x\right)}{t}\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \frac{a \cdot \left(y - x\right)}{t}} \]
                2. fp-cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if 1.54999999999999994e-60 < a

              1. Initial program 80.5%

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

                  \[\leadsto \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-/.f6494.9

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

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

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

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

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

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

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

            Alternative 8: 71.7% accurate, 0.8× speedup?

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

              1. Initial program 77.5%

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

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

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

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

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

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

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

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

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

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

              if -19000 < a < 1.1500000000000001e-60

              1. Initial program 69.5%

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

                  \[\leadsto \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-/.f6478.2

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

                \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z - t}{a - t}, y - x, x\right)} \]
              5. 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}} \]
              6. Step-by-step derivation
                1. fp-cancel-sub-sign-invN/A

                  \[\leadsto \color{blue}{\left(y + -1 \cdot \frac{z \cdot \left(y - x\right)}{t}\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \frac{a \cdot \left(y - x\right)}{t}} \]
                2. fp-cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              Alternative 9: 72.1% accurate, 0.8× speedup?

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

                1. Initial program 73.3%

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

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

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

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

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

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

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

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

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

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

                if -19000 < a < 3.5000000000000003e-61

                1. Initial program 69.5%

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

                    \[\leadsto \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-/.f6478.2

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

                  \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z - t}{a - t}, y - x, x\right)} \]
                5. 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}} \]
                6. Step-by-step derivation
                  1. fp-cancel-sub-sign-invN/A

                    \[\leadsto \color{blue}{\left(y + -1 \cdot \frac{z \cdot \left(y - x\right)}{t}\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \frac{a \cdot \left(y - x\right)}{t}} \]
                  2. fp-cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if 3.5000000000000003e-61 < a

                  1. Initial program 80.5%

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

                      \[\leadsto \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-/.f6494.9

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

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

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

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

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

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

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

                Alternative 10: 68.2% accurate, 0.8× speedup?

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

                  1. Initial program 73.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--.f6475.2

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

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

                  if -2.69999999999999981e-32 < a < 1.45e-60

                  1. Initial program 69.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 \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-/.f6477.5

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

                    \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z - t}{a - t}, y - x, x\right)} \]
                  5. 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}} \]
                  6. Step-by-step derivation
                    1. fp-cancel-sub-sign-invN/A

                      \[\leadsto \color{blue}{\left(y + -1 \cdot \frac{z \cdot \left(y - x\right)}{t}\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \frac{a \cdot \left(y - x\right)}{t}} \]
                    2. fp-cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if 1.45e-60 < a

                    1. Initial program 80.5%

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

                        \[\leadsto \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-/.f6494.9

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

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

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

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

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

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

                  Alternative 11: 62.7% accurate, 0.9× speedup?

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

                    1. Initial program 35.7%

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

                        \[\leadsto \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-/.f6471.9

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

                      \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z - t}{a - t}, y - x, x\right)} \]
                    5. 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}} \]
                    6. Step-by-step derivation
                      1. fp-cancel-sub-sign-invN/A

                        \[\leadsto \color{blue}{\left(y + -1 \cdot \frac{z \cdot \left(y - x\right)}{t}\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \frac{a \cdot \left(y - x\right)}{t}} \]
                      2. fp-cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if -3.3999999999999997e107 < t < 4.49999999999999972e132

                      1. Initial program 87.4%

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

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

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

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

                          \[\leadsto \frac{\color{blue}{\left(y - x\right) \cdot \left(z - t\right)}}{a - t} + x \]
                        5. 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-/.f6491.9

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

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

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

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

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

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

                    Alternative 12: 61.8% accurate, 0.9× speedup?

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

                      1. Initial program 35.7%

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

                          \[\leadsto \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-/.f6471.9

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

                        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z - t}{a - t}, y - x, x\right)} \]
                      5. 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}} \]
                      6. Step-by-step derivation
                        1. fp-cancel-sub-sign-invN/A

                          \[\leadsto \color{blue}{\left(y + -1 \cdot \frac{z \cdot \left(y - x\right)}{t}\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \frac{a \cdot \left(y - x\right)}{t}} \]
                        2. fp-cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        if -3.3999999999999997e107 < t < 4.49999999999999972e132

                        1. Initial program 87.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--.f6470.4

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

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

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

                      Alternative 13: 54.7% accurate, 0.9× speedup?

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

                        1. Initial program 32.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 \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-/.f6473.0

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

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

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

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

                          if -2.7e132 < t < 5.7999999999999997e132

                          1. Initial program 85.8%

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

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

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

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

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

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

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

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

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

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

                        Alternative 14: 62.2% accurate, 0.9× speedup?

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

                          1. Initial program 56.4%

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

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

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

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

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

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

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

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

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

                          if -4.2999999999999997e-15 < t < 4.49999999999999972e132

                          1. Initial program 88.4%

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

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

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

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

                              \[\leadsto \frac{\color{blue}{\left(y - x\right) \cdot \left(z - t\right)}}{a - t} + x \]
                            5. 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-/.f6491.3

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

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

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

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

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

                          if 4.49999999999999972e132 < t

                          1. Initial program 28.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 \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-/.f6464.9

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

                            \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z - t}{a - t}, y - x, x\right)} \]
                          5. 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}} \]
                          6. Step-by-step derivation
                            1. fp-cancel-sub-sign-invN/A

                              \[\leadsto \color{blue}{\left(y + -1 \cdot \frac{z \cdot \left(y - x\right)}{t}\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \frac{a \cdot \left(y - x\right)}{t}} \]
                            2. fp-cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          Alternative 15: 47.8% accurate, 1.0× speedup?

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

                            1. Initial program 32.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 \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-/.f6473.0

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

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

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

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

                              if -2.6e132 < t < 4.29999999999999982e132

                              1. Initial program 85.8%

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

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

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

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

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

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

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

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

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

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

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

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

                              Alternative 16: 31.6% accurate, 1.0× speedup?

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

                                1. Initial program 32.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 \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-/.f6473.0

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

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

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

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

                                  if -2.6e132 < t < 3.99999999999999996e132

                                  1. Initial program 85.8%

                                    \[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-/.f6490.5

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

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

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

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

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

                                    \[\leadsto \frac{x}{y} \cdot y \]
                                  9. Step-by-step derivation
                                    1. Applied rewrites31.9%

                                      \[\leadsto \frac{x}{y} \cdot y \]
                                  10. Recombined 2 regimes into one program.
                                  11. Final simplification37.0%

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

                                  Alternative 17: 29.2% accurate, 1.0× speedup?

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

                                    1. Initial program 48.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 \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-/.f6476.1

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

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

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

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

                                      if -1.65e12 < t < 1.1e21

                                      1. Initial program 91.2%

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

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

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

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

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

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

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

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

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

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

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

                                            \[\leadsto z \cdot \frac{y}{\color{blue}{a}} \]
                                        3. Recombined 2 regimes into one program.
                                        4. Final simplification31.1%

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

                                        Alternative 18: 26.7% accurate, 1.0× speedup?

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

                                          1. Initial program 75.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--.f6460.8

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

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

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

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

                                              if -2.8000000000000001e-26 < z < 3.19999999999999985e69

                                              1. Initial program 72.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 \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-/.f6484.5

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

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

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

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

                                                if 3.19999999999999985e69 < z

                                                1. Initial program 76.2%

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

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

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

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

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

                                                  Alternative 19: 19.3% accurate, 2.9× speedup?

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

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

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

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

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

                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{1}, y - x, x\right) \]
                                                    2. Add Preprocessing

                                                    Developer Target 1: 86.7% 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 2024326 
                                                    (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))))