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

Percentage Accurate: 67.4% → 88.8%
Time: 13.0s
Alternatives: 17
Speedup: 0.8×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 17 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.4% accurate, 1.0× speedup?

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

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

Alternative 1: 88.8% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(x - y, \frac{z - a}{t}, y\right)\\ \mathbf{if}\;t \leq -2.9 \cdot 10^{+209}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 4 \cdot 10^{+156}:\\ \;\;\;\;\mathsf{fma}\left(\frac{-1}{t - a} \cdot \left(z - t\right), 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 -2.9e+209)
     t_1
     (if (<= t 4e+156) (fma (* (/ -1.0 (- t a)) (- z t)) (- 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 <= -2.9e+209) {
		tmp = t_1;
	} else if (t <= 4e+156) {
		tmp = fma(((-1.0 / (t - a)) * (z - t)), (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 <= -2.9e+209)
		tmp = t_1;
	elseif (t <= 4e+156)
		tmp = fma(Float64(Float64(-1.0 / Float64(t - a)) * Float64(z - t)), 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, -2.9e+209], t$95$1, If[LessEqual[t, 4e+156], N[(N[(N[(-1.0 / N[(t - a), $MachinePrecision]), $MachinePrecision] * N[(z - t), $MachinePrecision]), $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 -2.9 \cdot 10^{+209}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 4 \cdot 10^{+156}:\\
\;\;\;\;\mathsf{fma}\left(\frac{-1}{t - a} \cdot \left(z - t\right), y - x, x\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -2.89999999999999999e209 or 3.9999999999999999e156 < t

    1. Initial program 35.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. Simplified93.2%

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

    if -2.89999999999999999e209 < t < 3.9999999999999999e156

    1. Initial program 75.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. clear-numN/A

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 64.8% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
t_1 := \left(z - t\right) \cdot \frac{y}{a - t}\\
\mathbf{if}\;t \leq -1.06 \cdot 10^{+205}:\\
\;\;\;\;y\\

\mathbf{elif}\;t \leq -1.55 \cdot 10^{+33}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 4 \cdot 10^{+41}:\\
\;\;\;\;\mathsf{fma}\left(\frac{z}{a}, y - x, x\right)\\

\mathbf{elif}\;t \leq 1.3 \cdot 10^{+207}:\\
\;\;\;\;t\_1\\

\mathbf{else}:\\
\;\;\;\;y\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -1.06e205 or 1.2999999999999999e207 < t

    1. Initial program 41.7%

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

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

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

      if -1.06e205 < t < -1.55e33 or 4.00000000000000002e41 < t < 1.2999999999999999e207

      1. Initial program 48.5%

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

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

        \[\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. clear-numN/A

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

          \[\leadsto \color{blue}{\frac{y \cdot 1}{\frac{a - t}{z - t}}} \]
        4. div-invN/A

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

          \[\leadsto \color{blue}{\frac{y}{a - t} \cdot \frac{1}{\frac{1}{z - t}}} \]
        6. flip--N/A

          \[\leadsto \frac{y}{a - t} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{z \cdot z - t \cdot t}{z + t}}}} \]
        7. clear-numN/A

          \[\leadsto \frac{y}{a - t} \cdot \frac{1}{\color{blue}{\frac{z + t}{z \cdot z - t \cdot t}}} \]
        8. clear-numN/A

          \[\leadsto \frac{y}{a - t} \cdot \color{blue}{\frac{z \cdot z - t \cdot t}{z + t}} \]
        9. flip--N/A

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

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

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

          \[\leadsto \frac{y}{\color{blue}{a - t}} \cdot \left(z - t\right) \]
        13. --lowering--.f6459.7

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

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

      if -1.55e33 < t < 4.00000000000000002e41

      1. Initial program 84.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--.f6494.7

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

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

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

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

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

      \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.06 \cdot 10^{+205}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq -1.55 \cdot 10^{+33}:\\ \;\;\;\;\left(z - t\right) \cdot \frac{y}{a - t}\\ \mathbf{elif}\;t \leq 4 \cdot 10^{+41}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{a}, y - x, x\right)\\ \mathbf{elif}\;t \leq 1.3 \cdot 10^{+207}:\\ \;\;\;\;\left(z - t\right) \cdot \frac{y}{a - t}\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \]
    7. Add Preprocessing

    Alternative 3: 72.1% accurate, 0.7× speedup?

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

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

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

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

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

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

      if -2.8000000000000001e55 < a < -2.69999999999999988e-89

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

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

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

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

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

      if -2.69999999999999988e-89 < a < 2.8e19

      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. Simplified84.6%

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

      if 2.8e19 < a

      1. Initial program 73.7%

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

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

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

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

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

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

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

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

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

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

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

    Alternative 4: 60.5% accurate, 0.7× speedup?

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

      1. Initial program 37.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}{y} \]
      4. Step-by-step derivation
        1. Simplified53.6%

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

        if -8.49999999999999923e199 < t < -2.4999999999999999e59

        1. Initial program 53.4%

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

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

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

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

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

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

        if -2.4999999999999999e59 < t < 1.04e68

        1. Initial program 83.2%

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

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

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

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

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

      Alternative 5: 59.3% accurate, 0.7× speedup?

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

        1. Initial program 37.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}{y} \]
        4. Step-by-step derivation
          1. Simplified53.6%

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

          if -8.9999999999999994e199 < t < -6.4999999999999997e57

          1. Initial program 53.4%

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

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

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

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

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

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

          if -6.4999999999999997e57 < t < 2.15e70

          1. Initial program 83.2%

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

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

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

              \[\leadsto \color{blue}{z \cdot \frac{y - x}{a}} + x \]
            3. 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--.f6469.5

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

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

        Alternative 6: 88.9% accurate, 0.7× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(x - y, \frac{z - a}{t}, y\right)\\ \mathbf{if}\;t \leq -3.5 \cdot 10^{+205}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 8 \cdot 10^{+156}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z - t}{a - t}, 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 -3.5e+205)
             t_1
             (if (<= t 8e+156) (fma (/ (- z t) (- a t)) (- 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 <= -3.5e+205) {
        		tmp = t_1;
        	} else if (t <= 8e+156) {
        		tmp = fma(((z - t) / (a - t)), (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 <= -3.5e+205)
        		tmp = t_1;
        	elseif (t <= 8e+156)
        		tmp = fma(Float64(Float64(z - t) / Float64(a - t)), 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, -3.5e+205], t$95$1, If[LessEqual[t, 8e+156], N[(N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $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 -3.5 \cdot 10^{+205}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;t \leq 8 \cdot 10^{+156}:\\
        \;\;\;\;\mathsf{fma}\left(\frac{z - t}{a - t}, y - x, x\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if t < -3.4999999999999998e205 or 7.9999999999999999e156 < t

          1. Initial program 35.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. Simplified93.2%

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

          if -3.4999999999999998e205 < t < 7.9999999999999999e156

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

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

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

        Alternative 7: 86.3% accurate, 0.7× speedup?

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

          1. Initial program 39.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. 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--.f6463.3

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

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

            \[\leadsto \color{blue}{\left(y + -1 \cdot \frac{z \cdot \left(y - x\right)}{t}\right) - -1 \cdot \frac{a \cdot \left(y - x\right)}{t}} \]
          6. Step-by-step derivation
            1. 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. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

          if -1.40000000000000008e202 < t < 8.00000000000000006e155

          1. Initial program 75.8%

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

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

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

          if 8.00000000000000006e155 < t

          1. Initial program 34.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        Alternative 8: 38.4% accurate, 0.8× speedup?

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

          1. Initial program 66.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(z - t, \frac{x}{\color{blue}{t + \left(\mathsf{neg}\left(a\right)\right)}}, x\right) \]
            20. neg-lowering-neg.f6458.7

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

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

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

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

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

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

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

              \[\leadsto x - \color{blue}{t \cdot \frac{x}{t - a}} \]
            6. /-lowering-/.f64N/A

              \[\leadsto x - t \cdot \color{blue}{\frac{x}{t - a}} \]
            7. --lowering--.f6446.3

              \[\leadsto x - t \cdot \frac{x}{\color{blue}{t - a}} \]
          8. Simplified46.3%

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

            \[\leadsto \color{blue}{x + \frac{t \cdot x}{a}} \]
          10. Step-by-step derivation
            1. +-commutativeN/A

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

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

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

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

              \[\leadsto \mathsf{fma}\left(x, \color{blue}{\frac{t}{a}}, x\right) \]
          11. Simplified44.3%

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

          if -5.60000000000000003e39 < a < -9.99999999999999947e-284 or 2.94999999999999998e-173 < a < 8.50000000000000016e108

          1. Initial program 68.7%

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

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

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

            if -9.99999999999999947e-284 < a < 2.94999999999999998e-173

            1. Initial program 58.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(z - t, \frac{x}{\color{blue}{t + \left(\mathsf{neg}\left(a\right)\right)}}, x\right) \]
              20. neg-lowering-neg.f6431.2

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

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

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

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

                \[\leadsto \color{blue}{x \cdot \frac{z - t}{t}} + x \]
              3. div-subN/A

                \[\leadsto x \cdot \color{blue}{\left(\frac{z}{t} - \frac{t}{t}\right)} + x \]
              4. sub-negN/A

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

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

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

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

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

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

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

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

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

                \[\leadsto x \cdot \frac{z}{t} + \color{blue}{0} \cdot x \]
              14. mul0-lftN/A

                \[\leadsto x \cdot \frac{z}{t} + \color{blue}{0} \]
              15. accelerator-lowering-fma.f64N/A

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

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

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

            if 8.50000000000000016e108 < a

            1. Initial program 73.6%

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

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

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

            Alternative 9: 76.2% accurate, 0.8× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(z - t, \frac{y - x}{a}, x\right)\\ \mathbf{if}\;a \leq -8800000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 1.8 \cdot 10^{-29}:\\ \;\;\;\;\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) x)))
               (if (<= a -8800000.0)
                 t_1
                 (if (<= a 1.8e-29) (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), x);
            	double tmp;
            	if (a <= -8800000.0) {
            		tmp = t_1;
            	} else if (a <= 1.8e-29) {
            		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) / a), x)
            	tmp = 0.0
            	if (a <= -8800000.0)
            		tmp = t_1;
            	elseif (a <= 1.8e-29)
            		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] / a), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[a, -8800000.0], t$95$1, If[LessEqual[a, 1.8e-29], 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}, x\right)\\
            \mathbf{if}\;a \leq -8800000:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;a \leq 1.8 \cdot 10^{-29}:\\
            \;\;\;\;\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 < -8.8e6 or 1.79999999999999987e-29 < a

              1. Initial program 69.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--.f6472.9

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

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

              if -8.8e6 < a < 1.79999999999999987e-29

              1. Initial program 64.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. Simplified84.0%

                \[\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 10: 37.9% accurate, 0.8× speedup?

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

              1. Initial program 66.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{fma}\left(z - t, \frac{x}{\color{blue}{t + \left(\mathsf{neg}\left(a\right)\right)}}, x\right) \]
                20. neg-lowering-neg.f6458.7

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

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

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

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

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

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

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

                  \[\leadsto x - \color{blue}{t \cdot \frac{x}{t - a}} \]
                6. /-lowering-/.f64N/A

                  \[\leadsto x - t \cdot \color{blue}{\frac{x}{t - a}} \]
                7. --lowering--.f6446.3

                  \[\leadsto x - t \cdot \frac{x}{\color{blue}{t - a}} \]
              8. Simplified46.3%

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

                \[\leadsto \color{blue}{x + \frac{t \cdot x}{a}} \]
              10. Step-by-step derivation
                1. +-commutativeN/A

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

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

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

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

                  \[\leadsto \mathsf{fma}\left(x, \color{blue}{\frac{t}{a}}, x\right) \]
              11. Simplified44.3%

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

              if -1.6500000000000001e43 < a < -1.05000000000000006e-282 or 2.60000000000000003e-173 < a < 8.50000000000000016e108

              1. Initial program 68.7%

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

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

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

                if -1.05000000000000006e-282 < a < 2.60000000000000003e-173

                1. Initial program 58.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \mathsf{fma}\left(z - t, \frac{x}{\color{blue}{t + \left(\mathsf{neg}\left(a\right)\right)}}, x\right) \]
                  20. neg-lowering-neg.f6431.2

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

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

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

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

                    \[\leadsto \color{blue}{\frac{x \cdot z}{t}} \]
                  3. Step-by-step derivation
                    1. /-lowering-/.f64N/A

                      \[\leadsto \color{blue}{\frac{x \cdot z}{t}} \]
                    2. *-lowering-*.f6450.7

                      \[\leadsto \frac{\color{blue}{x \cdot z}}{t} \]
                  4. Simplified50.7%

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

                  if 8.50000000000000016e108 < a

                  1. Initial program 73.6%

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

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

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

                  Alternative 11: 37.9% accurate, 0.8× speedup?

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

                    1. Initial program 69.3%

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

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

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

                      if -2.20000000000000001e43 < a < -3.7e-284 or 2.40000000000000017e-173 < a < 3.40000000000000006e109

                      1. Initial program 68.7%

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

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

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

                        if -3.7e-284 < a < 2.40000000000000017e-173

                        1. Initial program 58.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \mathsf{fma}\left(z - t, \frac{x}{\color{blue}{t + \left(\mathsf{neg}\left(a\right)\right)}}, x\right) \]
                          20. neg-lowering-neg.f6431.2

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

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

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

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

                            \[\leadsto \color{blue}{\frac{x \cdot z}{t}} \]
                          3. Step-by-step derivation
                            1. /-lowering-/.f64N/A

                              \[\leadsto \color{blue}{\frac{x \cdot z}{t}} \]
                            2. *-lowering-*.f6450.7

                              \[\leadsto \frac{\color{blue}{x \cdot z}}{t} \]
                          4. Simplified50.7%

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

                        Alternative 12: 67.4% accurate, 0.8× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot \frac{z - t}{a - t}\\ \mathbf{if}\;t \leq -6.5 \cdot 10^{+27}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 3.5 \cdot 10^{+40}:\\ \;\;\;\;\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 (* y (/ (- z t) (- a t)))))
                           (if (<= t -6.5e+27) t_1 (if (<= t 3.5e+40) (fma (/ z a) (- y x) x) t_1))))
                        double code(double x, double y, double z, double t, double a) {
                        	double t_1 = y * ((z - t) / (a - t));
                        	double tmp;
                        	if (t <= -6.5e+27) {
                        		tmp = t_1;
                        	} else if (t <= 3.5e+40) {
                        		tmp = fma((z / a), (y - x), x);
                        	} else {
                        		tmp = t_1;
                        	}
                        	return tmp;
                        }
                        
                        function code(x, y, z, t, a)
                        	t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t)))
                        	tmp = 0.0
                        	if (t <= -6.5e+27)
                        		tmp = t_1;
                        	elseif (t <= 3.5e+40)
                        		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[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.5e+27], t$95$1, If[LessEqual[t, 3.5e+40], N[(N[(z / a), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        t_1 := y \cdot \frac{z - t}{a - t}\\
                        \mathbf{if}\;t \leq -6.5 \cdot 10^{+27}:\\
                        \;\;\;\;t\_1\\
                        
                        \mathbf{elif}\;t \leq 3.5 \cdot 10^{+40}:\\
                        \;\;\;\;\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 < -6.5000000000000005e27 or 3.4999999999999999e40 < 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 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--.f6442.7

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

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

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

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

                          if -6.5000000000000005e27 < t < 3.4999999999999999e40

                          1. Initial program 84.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--.f6494.7

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

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

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

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

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

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

                        Alternative 13: 60.0% accurate, 0.9× speedup?

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

                          1. Initial program 40.7%

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

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

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

                            if -1.75e113 < t < 8.99999999999999946e64

                            1. Initial program 82.0%

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

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

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

                                \[\leadsto \color{blue}{z \cdot \frac{y - x}{a}} + x \]
                              3. 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--.f6466.9

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

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

                          Alternative 14: 52.1% accurate, 1.0× speedup?

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

                            1. Initial program 40.7%

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

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

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

                              if -1.5e114 < t < 2.6e70

                              1. Initial program 82.0%

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

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

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

                                  \[\leadsto \color{blue}{z \cdot \frac{y - x}{a}} + x \]
                                3. 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--.f6466.9

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

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

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

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

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

                            Alternative 15: 38.7% accurate, 2.2× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -1.5 \cdot 10^{+38}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 2.6 \cdot 10^{+108}:\\ \;\;\;\;y\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
                            (FPCore (x y z t a)
                             :precision binary64
                             (if (<= a -1.5e+38) x (if (<= a 2.6e+108) y x)))
                            double code(double x, double y, double z, double t, double a) {
                            	double tmp;
                            	if (a <= -1.5e+38) {
                            		tmp = x;
                            	} else if (a <= 2.6e+108) {
                            		tmp = y;
                            	} else {
                            		tmp = x;
                            	}
                            	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.5d+38)) then
                                    tmp = x
                                else if (a <= 2.6d+108) then
                                    tmp = y
                                else
                                    tmp = x
                                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.5e+38) {
                            		tmp = x;
                            	} else if (a <= 2.6e+108) {
                            		tmp = y;
                            	} else {
                            		tmp = x;
                            	}
                            	return tmp;
                            }
                            
                            def code(x, y, z, t, a):
                            	tmp = 0
                            	if a <= -1.5e+38:
                            		tmp = x
                            	elif a <= 2.6e+108:
                            		tmp = y
                            	else:
                            		tmp = x
                            	return tmp
                            
                            function code(x, y, z, t, a)
                            	tmp = 0.0
                            	if (a <= -1.5e+38)
                            		tmp = x;
                            	elseif (a <= 2.6e+108)
                            		tmp = y;
                            	else
                            		tmp = x;
                            	end
                            	return tmp
                            end
                            
                            function tmp_2 = code(x, y, z, t, a)
                            	tmp = 0.0;
                            	if (a <= -1.5e+38)
                            		tmp = x;
                            	elseif (a <= 2.6e+108)
                            		tmp = y;
                            	else
                            		tmp = x;
                            	end
                            	tmp_2 = tmp;
                            end
                            
                            code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.5e+38], x, If[LessEqual[a, 2.6e+108], y, x]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            \mathbf{if}\;a \leq -1.5 \cdot 10^{+38}:\\
                            \;\;\;\;x\\
                            
                            \mathbf{elif}\;a \leq 2.6 \cdot 10^{+108}:\\
                            \;\;\;\;y\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;x\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 2 regimes
                            2. if a < -1.5000000000000001e38 or 2.6000000000000002e108 < a

                              1. Initial program 69.3%

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

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

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

                                if -1.5000000000000001e38 < a < 2.6000000000000002e108

                                1. Initial program 66.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. Simplified33.0%

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

                                Alternative 16: 25.1% 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 67.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. Simplified24.4%

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

                                  Alternative 17: 2.8% accurate, 29.0× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \mathsf{fma}\left(z - t, \frac{x}{\color{blue}{t + \left(\mathsf{neg}\left(a\right)\right)}}, x\right) \]
                                    20. neg-lowering-neg.f6439.1

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

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

                                    \[\leadsto \color{blue}{x + -1 \cdot x} \]
                                  7. Step-by-step derivation
                                    1. distribute-rgt1-inN/A

                                      \[\leadsto \color{blue}{\left(-1 + 1\right) \cdot x} \]
                                    2. metadata-evalN/A

                                      \[\leadsto \color{blue}{0} \cdot x \]
                                    3. mul0-lft2.9

                                      \[\leadsto \color{blue}{0} \]
                                  8. Simplified2.9%

                                    \[\leadsto \color{blue}{0} \]
                                  9. Add Preprocessing

                                  Developer Target 1: 86.7% accurate, 0.6× speedup?

                                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \frac{y - x}{1} \cdot \frac{z - t}{a - t}\\ \mathbf{if}\;a < -1.6153062845442575 \cdot 10^{-142}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a < 3.774403170083174 \cdot 10^{-182}:\\ \;\;\;\;y - \frac{z}{t} \cdot \left(y - x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                  (FPCore (x y z t a)
                                   :precision binary64
                                   (let* ((t_1 (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t))))))
                                     (if (< a -1.6153062845442575e-142)
                                       t_1
                                       (if (< a 3.774403170083174e-182) (- y (* (/ z t) (- y x))) t_1))))
                                  double code(double x, double y, double z, double t, double a) {
                                  	double t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
                                  	double tmp;
                                  	if (a < -1.6153062845442575e-142) {
                                  		tmp = t_1;
                                  	} else if (a < 3.774403170083174e-182) {
                                  		tmp = y - ((z / t) * (y - x));
                                  	} else {
                                  		tmp = t_1;
                                  	}
                                  	return tmp;
                                  }
                                  
                                  real(8) function code(x, y, z, t, a)
                                      real(8), intent (in) :: x
                                      real(8), intent (in) :: y
                                      real(8), intent (in) :: z
                                      real(8), intent (in) :: t
                                      real(8), intent (in) :: a
                                      real(8) :: t_1
                                      real(8) :: tmp
                                      t_1 = x + (((y - x) / 1.0d0) * ((z - t) / (a - t)))
                                      if (a < (-1.6153062845442575d-142)) then
                                          tmp = t_1
                                      else if (a < 3.774403170083174d-182) then
                                          tmp = y - ((z / t) * (y - x))
                                      else
                                          tmp = t_1
                                      end if
                                      code = tmp
                                  end function
                                  
                                  public static double code(double x, double y, double z, double t, double a) {
                                  	double t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
                                  	double tmp;
                                  	if (a < -1.6153062845442575e-142) {
                                  		tmp = t_1;
                                  	} else if (a < 3.774403170083174e-182) {
                                  		tmp = y - ((z / t) * (y - x));
                                  	} else {
                                  		tmp = t_1;
                                  	}
                                  	return tmp;
                                  }
                                  
                                  def code(x, y, z, t, a):
                                  	t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)))
                                  	tmp = 0
                                  	if a < -1.6153062845442575e-142:
                                  		tmp = t_1
                                  	elif a < 3.774403170083174e-182:
                                  		tmp = y - ((z / t) * (y - x))
                                  	else:
                                  		tmp = t_1
                                  	return tmp
                                  
                                  function code(x, y, z, t, a)
                                  	t_1 = Float64(x + Float64(Float64(Float64(y - x) / 1.0) * Float64(Float64(z - t) / Float64(a - t))))
                                  	tmp = 0.0
                                  	if (a < -1.6153062845442575e-142)
                                  		tmp = t_1;
                                  	elseif (a < 3.774403170083174e-182)
                                  		tmp = Float64(y - Float64(Float64(z / t) * Float64(y - x)));
                                  	else
                                  		tmp = t_1;
                                  	end
                                  	return tmp
                                  end
                                  
                                  function tmp_2 = code(x, y, z, t, a)
                                  	t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
                                  	tmp = 0.0;
                                  	if (a < -1.6153062845442575e-142)
                                  		tmp = t_1;
                                  	elseif (a < 3.774403170083174e-182)
                                  		tmp = y - ((z / t) * (y - x));
                                  	else
                                  		tmp = t_1;
                                  	end
                                  	tmp_2 = tmp;
                                  end
                                  
                                  code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] / 1.0), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[a, -1.6153062845442575e-142], t$95$1, If[Less[a, 3.774403170083174e-182], N[(y - N[(N[(z / t), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                  
                                  \begin{array}{l}
                                  
                                  \\
                                  \begin{array}{l}
                                  t_1 := x + \frac{y - x}{1} \cdot \frac{z - t}{a - t}\\
                                  \mathbf{if}\;a < -1.6153062845442575 \cdot 10^{-142}:\\
                                  \;\;\;\;t\_1\\
                                  
                                  \mathbf{elif}\;a < 3.774403170083174 \cdot 10^{-182}:\\
                                  \;\;\;\;y - \frac{z}{t} \cdot \left(y - x\right)\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;t\_1\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  

                                  Reproduce

                                  ?
                                  herbie shell --seed 2024205 
                                  (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))))