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

Percentage Accurate: 67.6% → 90.6%
Time: 13.3s
Alternatives: 19
Speedup: 0.9×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

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

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

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

Alternative 1: 90.6% accurate, 0.2× speedup?

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

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

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

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


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

    1. Initial program 67.8%

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

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

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

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

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

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

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

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

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

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

    1. Initial program 4.1%

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

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

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

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

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

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

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

    1. Initial program 70.0%

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 90.6% accurate, 0.3× speedup?

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

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

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

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


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

    1. Initial program 67.8%

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

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

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

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

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

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

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

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

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

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

    1. Initial program 4.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      1. Initial program 70.0%

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

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

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

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

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

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

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

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

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

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

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

    Alternative 3: 90.6% accurate, 0.3× speedup?

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

      1. Initial program 68.9%

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

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

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

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

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

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

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

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

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

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

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

      1. Initial program 4.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 4: 70.0% accurate, 0.7× speedup?

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

        1. Initial program 32.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -2.10000000000000011e124 < t < -7.59999999999999984e-115

          1. Initial program 73.9%

            \[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. /-lowering-/.f64N/A

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

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

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

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

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

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

              \[\leadsto \color{blue}{\frac{z - t}{a - t} \cdot y} \]
            3. *-lowering-*.f64N/A

              \[\leadsto \color{blue}{\frac{z - t}{a - t} \cdot y} \]
            4. /-lowering-/.f64N/A

              \[\leadsto \color{blue}{\frac{z - t}{a - t}} \cdot y \]
            5. --lowering--.f64N/A

              \[\leadsto \frac{\color{blue}{z - t}}{a - t} \cdot y \]
            6. --lowering--.f6463.9

              \[\leadsto \frac{z - t}{\color{blue}{a - t}} \cdot y \]
          7. Applied egg-rr63.9%

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

          if -7.59999999999999984e-115 < t < 1.85e14

          1. Initial program 86.5%

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(\frac{z - t}{a - t}, \color{blue}{y - x}, x\right) \]
          4. Applied egg-rr98.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. /-lowering-/.f6477.5

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

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

          if 1.85e14 < t

          1. Initial program 45.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        Alternative 5: 85.5% accurate, 0.7× speedup?

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

          1. Initial program 65.1%

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

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

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

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

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

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

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

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

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

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

          if -1.7500000000000001e-160 < a < 2.85e-117

          1. Initial program 63.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

        Alternative 6: 76.5% accurate, 0.8× speedup?

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

          1. Initial program 54.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. accelerator-lowering-fma.f64N/A

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

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

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

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

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

          if -1.6e52 < a < 6.5000000000000001e-117

          1. Initial program 64.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

          if 6.5000000000000001e-117 < a

          1. Initial program 71.5%

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 7: 74.6% accurate, 0.8× speedup?

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

            1. Initial program 54.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. accelerator-lowering-fma.f64N/A

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

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

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

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

            if -4.5000000000000002e53 < a < 3.40000000000000035e-117

            1. Initial program 64.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

            if 3.40000000000000035e-117 < a

            1. Initial program 71.5%

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

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

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

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

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

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

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

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

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

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

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

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

            Alternative 8: 72.5% accurate, 0.8× speedup?

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

              1. Initial program 52.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

              if -1.1800000000000001e-116 < t < 1.6500000000000001e-18

              1. Initial program 87.0%

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

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

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

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

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

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

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

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

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

                \[\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. /-lowering-/.f6480.7

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

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

            Alternative 9: 70.9% accurate, 0.9× speedup?

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

              1. Initial program 55.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. accelerator-lowering-fma.f64N/A

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

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

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

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

              if -1.1000000000000001e-25 < a < 2.0500000000000002e29

              1. Initial program 66.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{fma}\left(\color{blue}{x - y}, \frac{z}{t}, y\right) \]
                6. /-lowering-/.f6481.1

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

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

              if 2.0500000000000002e29 < a

              1. Initial program 73.3%

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

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

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

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

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

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

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

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

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

                \[\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. /-lowering-/.f6461.7

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

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

            Alternative 10: 70.8% accurate, 0.9× speedup?

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

              1. Initial program 62.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. accelerator-lowering-fma.f64N/A

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

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

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

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

              if -2.35e-23 < a < 1.16e29

              1. Initial program 66.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{fma}\left(\color{blue}{x - y}, \frac{z}{t}, y\right) \]
                6. /-lowering-/.f6481.1

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

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

            Alternative 11: 69.8% accurate, 0.9× speedup?

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

              1. Initial program 46.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                if -2.2e17 < t < 7.3000000000000002e-13

                1. Initial program 85.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. accelerator-lowering-fma.f64N/A

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

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

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

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

              Alternative 12: 60.1% accurate, 0.9× speedup?

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

                1. Initial program 46.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if -2.35e17 < t < 2.19999999999999992e-12

                  1. Initial program 85.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 x + \color{blue}{\frac{z \cdot \left(y - x\right)}{a}} \]
                  4. Step-by-step derivation
                    1. /-lowering-/.f64N/A

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

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

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

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

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

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

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

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

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

                      \[\leadsto \mathsf{fma}\left(x, \color{blue}{\mathsf{neg}\left(\frac{z}{a}\right)}, x\right) \]
                    6. distribute-neg-frac2N/A

                      \[\leadsto \mathsf{fma}\left(x, \color{blue}{\frac{z}{\mathsf{neg}\left(a\right)}}, x\right) \]
                    7. mul-1-negN/A

                      \[\leadsto \mathsf{fma}\left(x, \frac{z}{\color{blue}{-1 \cdot a}}, x\right) \]
                    8. /-lowering-/.f64N/A

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

                      \[\leadsto \mathsf{fma}\left(x, \frac{z}{\color{blue}{\mathsf{neg}\left(a\right)}}, x\right) \]
                    10. neg-lowering-neg.f6454.4

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

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

                Alternative 13: 43.6% accurate, 0.9× speedup?

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

                  1. Initial program 65.9%

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

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

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

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

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

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

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

                      \[\leadsto z \cdot \color{blue}{\frac{y - x}{a}} \]
                    2. *-lowering-*.f64N/A

                      \[\leadsto \color{blue}{z \cdot \frac{y - x}{a}} \]
                    3. /-lowering-/.f64N/A

                      \[\leadsto z \cdot \color{blue}{\frac{y - x}{a}} \]
                    4. --lowering--.f6455.0

                      \[\leadsto z \cdot \frac{\color{blue}{y - x}}{a} \]
                  8. Simplified55.0%

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

                  if -4.9999999999999998e106 < z < 3.9999999999999999e147

                  1. Initial program 64.1%

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

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

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

                    \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                  6. Taylor expanded in y around inf

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

                      \[\leadsto x + \color{blue}{y} \]
                  8. Recombined 2 regimes into one program.
                  9. Add Preprocessing

                  Alternative 14: 41.8% accurate, 0.9× speedup?

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

                    1. Initial program 63.7%

                      \[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. /-lowering-/.f64N/A

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

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

                        \[\leadsto \frac{y \cdot \color{blue}{\left(z - t\right)}}{a - t} \]
                      4. --lowering--.f6440.6

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

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

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

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

                        \[\leadsto \color{blue}{z \cdot \frac{y}{a - t}} \]
                      3. *-lowering-*.f64N/A

                        \[\leadsto \color{blue}{z \cdot \frac{y}{a - t}} \]
                      4. /-lowering-/.f64N/A

                        \[\leadsto z \cdot \color{blue}{\frac{y}{a - t}} \]
                      5. --lowering--.f6452.7

                        \[\leadsto z \cdot \frac{y}{\color{blue}{a - t}} \]
                    8. Simplified52.7%

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

                    if -1.2e95 < z < 2.09999999999999997e160

                    1. Initial program 64.9%

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

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

                        \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                    5. Simplified31.6%

                      \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                    6. Taylor expanded in y around inf

                      \[\leadsto x + \color{blue}{y} \]
                    7. Step-by-step derivation
                      1. Simplified50.9%

                        \[\leadsto x + \color{blue}{y} \]
                    8. Recombined 2 regimes into one program.
                    9. Add Preprocessing

                    Alternative 15: 38.6% accurate, 1.0× speedup?

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

                      1. Initial program 54.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} \]
                      4. Step-by-step derivation
                        1. Simplified49.4%

                          \[\leadsto \color{blue}{x} \]

                        if -2.49999999999999987e60 < a < 2.3999999999999998e-189

                        1. Initial program 64.1%

                          \[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. /-lowering-/.f64N/A

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

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

                            \[\leadsto \frac{y \cdot \color{blue}{\left(z - t\right)}}{a - t} \]
                          4. --lowering--.f6450.0

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

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

                          \[\leadsto \color{blue}{-1 \cdot \frac{t \cdot y}{a - t}} \]
                        7. Step-by-step derivation
                          1. mul-1-negN/A

                            \[\leadsto \color{blue}{\mathsf{neg}\left(\frac{t \cdot y}{a - t}\right)} \]
                          2. neg-lowering-neg.f64N/A

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

                            \[\leadsto \mathsf{neg}\left(\color{blue}{t \cdot \frac{y}{a - t}}\right) \]
                          4. *-lowering-*.f64N/A

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

                            \[\leadsto \mathsf{neg}\left(t \cdot \color{blue}{\frac{y}{a - t}}\right) \]
                          6. --lowering--.f6437.8

                            \[\leadsto -t \cdot \frac{y}{\color{blue}{a - t}} \]
                        8. Simplified37.8%

                          \[\leadsto \color{blue}{-t \cdot \frac{y}{a - t}} \]
                        9. Taylor expanded in t around inf

                          \[\leadsto \color{blue}{\frac{a \cdot y}{t} - -1 \cdot y} \]
                        10. Step-by-step derivation
                          1. sub-negN/A

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

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

                            \[\leadsto a \cdot \frac{y}{t} + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(y\right)\right)}\right)\right) \]
                          4. remove-double-negN/A

                            \[\leadsto a \cdot \frac{y}{t} + \color{blue}{y} \]
                          5. accelerator-lowering-fma.f64N/A

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

                            \[\leadsto \mathsf{fma}\left(a, \color{blue}{\frac{y}{t}}, y\right) \]
                        11. Simplified43.8%

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

                        if 2.3999999999999998e-189 < a

                        1. Initial program 70.7%

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

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

                            \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                        5. Simplified25.0%

                          \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                        6. Taylor expanded in y around inf

                          \[\leadsto x + \color{blue}{y} \]
                        7. Step-by-step derivation
                          1. Simplified44.4%

                            \[\leadsto x + \color{blue}{y} \]
                        8. Recombined 3 regimes into one program.
                        9. Add Preprocessing

                        Alternative 16: 37.1% accurate, 1.0× speedup?

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

                          1. Initial program 65.4%

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

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

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

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

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

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

                            \[\leadsto \color{blue}{\frac{y \cdot z}{a}} \]
                          7. Step-by-step derivation
                            1. /-lowering-/.f64N/A

                              \[\leadsto \color{blue}{\frac{y \cdot z}{a}} \]
                            2. *-lowering-*.f6430.3

                              \[\leadsto \frac{\color{blue}{y \cdot z}}{a} \]
                          8. Simplified30.3%

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

                          if -4.7000000000000001e107 < z < 3.4000000000000003e160

                          1. Initial program 64.3%

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

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

                              \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                          5. Simplified31.3%

                            \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                          6. Taylor expanded in y around inf

                            \[\leadsto x + \color{blue}{y} \]
                          7. Step-by-step derivation
                            1. Simplified50.4%

                              \[\leadsto x + \color{blue}{y} \]
                          8. Recombined 2 regimes into one program.
                          9. Add Preprocessing

                          Alternative 17: 37.7% accurate, 1.8× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -1.9 \cdot 10^{+60}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 2.4 \cdot 10^{-189}:\\ \;\;\;\;y\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \end{array} \]
                          (FPCore (x y z t a)
                           :precision binary64
                           (if (<= a -1.9e+60) x (if (<= a 2.4e-189) y (+ x y))))
                          double code(double x, double y, double z, double t, double a) {
                          	double tmp;
                          	if (a <= -1.9e+60) {
                          		tmp = x;
                          	} else if (a <= 2.4e-189) {
                          		tmp = y;
                          	} else {
                          		tmp = x + y;
                          	}
                          	return tmp;
                          }
                          
                          real(8) function code(x, y, z, t, a)
                              real(8), intent (in) :: x
                              real(8), intent (in) :: y
                              real(8), intent (in) :: z
                              real(8), intent (in) :: t
                              real(8), intent (in) :: a
                              real(8) :: tmp
                              if (a <= (-1.9d+60)) then
                                  tmp = x
                              else if (a <= 2.4d-189) then
                                  tmp = y
                              else
                                  tmp = x + y
                              end if
                              code = tmp
                          end function
                          
                          public static double code(double x, double y, double z, double t, double a) {
                          	double tmp;
                          	if (a <= -1.9e+60) {
                          		tmp = x;
                          	} else if (a <= 2.4e-189) {
                          		tmp = y;
                          	} else {
                          		tmp = x + y;
                          	}
                          	return tmp;
                          }
                          
                          def code(x, y, z, t, a):
                          	tmp = 0
                          	if a <= -1.9e+60:
                          		tmp = x
                          	elif a <= 2.4e-189:
                          		tmp = y
                          	else:
                          		tmp = x + y
                          	return tmp
                          
                          function code(x, y, z, t, a)
                          	tmp = 0.0
                          	if (a <= -1.9e+60)
                          		tmp = x;
                          	elseif (a <= 2.4e-189)
                          		tmp = y;
                          	else
                          		tmp = Float64(x + y);
                          	end
                          	return tmp
                          end
                          
                          function tmp_2 = code(x, y, z, t, a)
                          	tmp = 0.0;
                          	if (a <= -1.9e+60)
                          		tmp = x;
                          	elseif (a <= 2.4e-189)
                          		tmp = y;
                          	else
                          		tmp = x + y;
                          	end
                          	tmp_2 = tmp;
                          end
                          
                          code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.9e+60], x, If[LessEqual[a, 2.4e-189], y, N[(x + y), $MachinePrecision]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          \mathbf{if}\;a \leq -1.9 \cdot 10^{+60}:\\
                          \;\;\;\;x\\
                          
                          \mathbf{elif}\;a \leq 2.4 \cdot 10^{-189}:\\
                          \;\;\;\;y\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;x + y\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 3 regimes
                          2. if a < -1.90000000000000005e60

                            1. Initial program 54.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} \]
                            4. Step-by-step derivation
                              1. Simplified49.4%

                                \[\leadsto \color{blue}{x} \]

                              if -1.90000000000000005e60 < a < 2.3999999999999998e-189

                              1. Initial program 64.1%

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

                                \[\leadsto \color{blue}{y} \]
                              4. Step-by-step derivation
                                1. Simplified41.9%

                                  \[\leadsto \color{blue}{y} \]

                                if 2.3999999999999998e-189 < a

                                1. Initial program 70.7%

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

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

                                    \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                                5. Simplified25.0%

                                  \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                                6. Taylor expanded in y around inf

                                  \[\leadsto x + \color{blue}{y} \]
                                7. Step-by-step derivation
                                  1. Simplified44.4%

                                    \[\leadsto x + \color{blue}{y} \]
                                8. Recombined 3 regimes into one program.
                                9. Add Preprocessing

                                Alternative 18: 36.6% accurate, 2.2× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.4 \cdot 10^{-114}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq 3.7 \cdot 10^{+14}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \end{array} \]
                                (FPCore (x y z t a)
                                 :precision binary64
                                 (if (<= t -1.4e-114) y (if (<= t 3.7e+14) x y)))
                                double code(double x, double y, double z, double t, double a) {
                                	double tmp;
                                	if (t <= -1.4e-114) {
                                		tmp = y;
                                	} else if (t <= 3.7e+14) {
                                		tmp = x;
                                	} else {
                                		tmp = y;
                                	}
                                	return tmp;
                                }
                                
                                real(8) function code(x, y, z, t, a)
                                    real(8), intent (in) :: x
                                    real(8), intent (in) :: y
                                    real(8), intent (in) :: z
                                    real(8), intent (in) :: t
                                    real(8), intent (in) :: a
                                    real(8) :: tmp
                                    if (t <= (-1.4d-114)) then
                                        tmp = y
                                    else if (t <= 3.7d+14) then
                                        tmp = x
                                    else
                                        tmp = y
                                    end if
                                    code = tmp
                                end function
                                
                                public static double code(double x, double y, double z, double t, double a) {
                                	double tmp;
                                	if (t <= -1.4e-114) {
                                		tmp = y;
                                	} else if (t <= 3.7e+14) {
                                		tmp = x;
                                	} else {
                                		tmp = y;
                                	}
                                	return tmp;
                                }
                                
                                def code(x, y, z, t, a):
                                	tmp = 0
                                	if t <= -1.4e-114:
                                		tmp = y
                                	elif t <= 3.7e+14:
                                		tmp = x
                                	else:
                                		tmp = y
                                	return tmp
                                
                                function code(x, y, z, t, a)
                                	tmp = 0.0
                                	if (t <= -1.4e-114)
                                		tmp = y;
                                	elseif (t <= 3.7e+14)
                                		tmp = x;
                                	else
                                		tmp = y;
                                	end
                                	return tmp
                                end
                                
                                function tmp_2 = code(x, y, z, t, a)
                                	tmp = 0.0;
                                	if (t <= -1.4e-114)
                                		tmp = y;
                                	elseif (t <= 3.7e+14)
                                		tmp = x;
                                	else
                                		tmp = y;
                                	end
                                	tmp_2 = tmp;
                                end
                                
                                code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.4e-114], y, If[LessEqual[t, 3.7e+14], x, y]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                \mathbf{if}\;t \leq -1.4 \cdot 10^{-114}:\\
                                \;\;\;\;y\\
                                
                                \mathbf{elif}\;t \leq 3.7 \cdot 10^{+14}:\\
                                \;\;\;\;x\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;y\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 2 regimes
                                2. if t < -1.4000000000000001e-114 or 3.7e14 < t

                                  1. Initial program 51.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}{y} \]
                                  4. Step-by-step derivation
                                    1. Simplified46.2%

                                      \[\leadsto \color{blue}{y} \]

                                    if -1.4000000000000001e-114 < t < 3.7e14

                                    1. Initial program 86.5%

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

                                      \[\leadsto \color{blue}{x} \]
                                    4. Step-by-step derivation
                                      1. Simplified39.1%

                                        \[\leadsto \color{blue}{x} \]
                                    5. Recombined 2 regimes into one program.
                                    6. Add Preprocessing

                                    Alternative 19: 25.4% accurate, 29.0× speedup?

                                    \[\begin{array}{l} \\ x \end{array} \]
                                    (FPCore (x y z t a) :precision binary64 x)
                                    double code(double x, double y, double z, double t, double a) {
                                    	return x;
                                    }
                                    
                                    real(8) function code(x, y, z, t, a)
                                        real(8), intent (in) :: x
                                        real(8), intent (in) :: y
                                        real(8), intent (in) :: z
                                        real(8), intent (in) :: t
                                        real(8), intent (in) :: a
                                        code = x
                                    end function
                                    
                                    public static double code(double x, double y, double z, double t, double a) {
                                    	return x;
                                    }
                                    
                                    def code(x, y, z, t, a):
                                    	return x
                                    
                                    function code(x, y, z, t, a)
                                    	return x
                                    end
                                    
                                    function tmp = code(x, y, z, t, a)
                                    	tmp = x;
                                    end
                                    
                                    code[x_, y_, z_, t_, a_] := x
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    x
                                    \end{array}
                                    
                                    Derivation
                                    1. Initial program 64.6%

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

                                      \[\leadsto \color{blue}{x} \]
                                    4. Step-by-step derivation
                                      1. Simplified23.4%

                                        \[\leadsto \color{blue}{x} \]
                                      2. Add Preprocessing

                                      Developer Target 1: 86.5% 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 2024204 
                                      (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))))