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

Percentage Accurate: 68.7% → 90.6%
Time: 12.7s
Alternatives: 20
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 20 alternatives:

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

Initial Program: 68.7% accurate, 1.0× speedup?

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

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

Alternative 1: 90.6% accurate, 0.3× speedup?

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

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

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

\mathbf{else}:\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\


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

    1. Initial program 76.7%

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

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

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

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

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

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

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

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

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

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

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

    1. Initial program 3.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    1. Initial program 68.0%

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

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

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

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

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

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

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

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

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

Alternative 2: 90.6% accurate, 0.3× speedup?

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

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

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

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


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

    1. Initial program 72.9%

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

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

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

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

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

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

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

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

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

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

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

    1. Initial program 3.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 3: 59.0% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -3.2 \cdot 10^{+24}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{a}, y - x, x\right)\\ \mathbf{elif}\;a \leq 2.6 \cdot 10^{-201}:\\ \;\;\;\;\frac{y \cdot \left(z - t\right)}{a - t}\\ \mathbf{elif}\;a \leq 0.34:\\ \;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\ \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 -3.2e+24)
   (fma (/ z a) (- y x) x)
   (if (<= a 2.6e-201)
     (/ (* y (- z t)) (- a t))
     (if (<= a 0.34) (* (- y x) (/ z (- a t))) (fma (- z t) (/ y a) x)))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (a <= -3.2e+24) {
		tmp = fma((z / a), (y - x), x);
	} else if (a <= 2.6e-201) {
		tmp = (y * (z - t)) / (a - t);
	} else if (a <= 0.34) {
		tmp = (y - x) * (z / (a - t));
	} else {
		tmp = fma((z - t), (y / a), x);
	}
	return tmp;
}
function code(x, y, z, t, a)
	tmp = 0.0
	if (a <= -3.2e+24)
		tmp = fma(Float64(z / a), Float64(y - x), x);
	elseif (a <= 2.6e-201)
		tmp = Float64(Float64(y * Float64(z - t)) / Float64(a - t));
	elseif (a <= 0.34)
		tmp = Float64(Float64(y - x) * Float64(z / Float64(a - t)));
	else
		tmp = fma(Float64(z - t), Float64(y / a), x);
	end
	return tmp
end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.2e+24], N[(N[(z / a), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[a, 2.6e-201], N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 0.34], N[(N[(y - x), $MachinePrecision] * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z - t), $MachinePrecision] * N[(y / a), $MachinePrecision] + x), $MachinePrecision]]]]
\begin{array}{l}

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

\mathbf{elif}\;a \leq 2.6 \cdot 10^{-201}:\\
\;\;\;\;\frac{y \cdot \left(z - t\right)}{a - t}\\

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

\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 < -3.1999999999999997e24

    1. Initial program 71.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -3.1999999999999997e24 < a < 2.59999999999999982e-201

    1. Initial program 64.6%

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

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

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

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

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

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

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

    if 2.59999999999999982e-201 < a < 0.340000000000000024

    1. Initial program 55.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if 0.340000000000000024 < a

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

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

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

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

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

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

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

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

        \[\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, \frac{y}{\color{blue}{a}}, x\right) \]
      7. Step-by-step derivation
        1. Applied rewrites67.7%

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

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

      Alternative 4: 58.9% accurate, 0.7× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -3.2 \cdot 10^{+24}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{a}, y - x, x\right)\\ \mathbf{elif}\;a \leq 9 \cdot 10^{-205}:\\ \;\;\;\;\frac{y \cdot \left(z - t\right)}{a - t}\\ \mathbf{elif}\;a \leq 0.34:\\ \;\;\;\;z \cdot \frac{y - x}{a - t}\\ \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 -3.2e+24)
         (fma (/ z a) (- y x) x)
         (if (<= a 9e-205)
           (/ (* y (- z t)) (- a t))
           (if (<= a 0.34) (* z (/ (- y x) (- a t))) (fma (- z t) (/ y a) x)))))
      double code(double x, double y, double z, double t, double a) {
      	double tmp;
      	if (a <= -3.2e+24) {
      		tmp = fma((z / a), (y - x), x);
      	} else if (a <= 9e-205) {
      		tmp = (y * (z - t)) / (a - t);
      	} else if (a <= 0.34) {
      		tmp = z * ((y - x) / (a - t));
      	} else {
      		tmp = fma((z - t), (y / a), x);
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a)
      	tmp = 0.0
      	if (a <= -3.2e+24)
      		tmp = fma(Float64(z / a), Float64(y - x), x);
      	elseif (a <= 9e-205)
      		tmp = Float64(Float64(y * Float64(z - t)) / Float64(a - t));
      	elseif (a <= 0.34)
      		tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t)));
      	else
      		tmp = fma(Float64(z - t), Float64(y / a), x);
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.2e+24], N[(N[(z / a), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[a, 9e-205], N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 0.34], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z - t), $MachinePrecision] * N[(y / a), $MachinePrecision] + x), $MachinePrecision]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;a \leq -3.2 \cdot 10^{+24}:\\
      \;\;\;\;\mathsf{fma}\left(\frac{z}{a}, y - x, x\right)\\
      
      \mathbf{elif}\;a \leq 9 \cdot 10^{-205}:\\
      \;\;\;\;\frac{y \cdot \left(z - t\right)}{a - t}\\
      
      \mathbf{elif}\;a \leq 0.34:\\
      \;\;\;\;z \cdot \frac{y - x}{a - t}\\
      
      \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 < -3.1999999999999997e24

        1. Initial program 71.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

        if -3.1999999999999997e24 < a < 8.99999999999999912e-205

        1. Initial program 64.2%

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

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

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

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

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

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

        if 8.99999999999999912e-205 < a < 0.340000000000000024

        1. Initial program 57.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if 0.340000000000000024 < a

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

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

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

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

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

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

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

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

            \[\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, \frac{y}{\color{blue}{a}}, x\right) \]
          7. Step-by-step derivation
            1. Applied rewrites67.7%

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

          Alternative 5: 58.5% accurate, 0.7× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -3.2 \cdot 10^{+24}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{a}, y - x, x\right)\\ \mathbf{elif}\;a \leq 1.05 \cdot 10^{-203}:\\ \;\;\;\;\frac{y \cdot \left(z - t\right)}{a - t}\\ \mathbf{elif}\;a \leq 0.29:\\ \;\;\;\;\frac{\left(y - x\right) \cdot z}{a - t}\\ \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 -3.2e+24)
             (fma (/ z a) (- y x) x)
             (if (<= a 1.05e-203)
               (/ (* y (- z t)) (- a t))
               (if (<= a 0.29) (/ (* (- y x) z) (- a t)) (fma (- z t) (/ y a) x)))))
          double code(double x, double y, double z, double t, double a) {
          	double tmp;
          	if (a <= -3.2e+24) {
          		tmp = fma((z / a), (y - x), x);
          	} else if (a <= 1.05e-203) {
          		tmp = (y * (z - t)) / (a - t);
          	} else if (a <= 0.29) {
          		tmp = ((y - x) * z) / (a - t);
          	} else {
          		tmp = fma((z - t), (y / a), x);
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a)
          	tmp = 0.0
          	if (a <= -3.2e+24)
          		tmp = fma(Float64(z / a), Float64(y - x), x);
          	elseif (a <= 1.05e-203)
          		tmp = Float64(Float64(y * Float64(z - t)) / Float64(a - t));
          	elseif (a <= 0.29)
          		tmp = Float64(Float64(Float64(y - x) * z) / Float64(a - t));
          	else
          		tmp = fma(Float64(z - t), Float64(y / a), x);
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.2e+24], N[(N[(z / a), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[a, 1.05e-203], N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 0.29], N[(N[(N[(y - x), $MachinePrecision] * z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision], N[(N[(z - t), $MachinePrecision] * N[(y / a), $MachinePrecision] + x), $MachinePrecision]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;a \leq -3.2 \cdot 10^{+24}:\\
          \;\;\;\;\mathsf{fma}\left(\frac{z}{a}, y - x, x\right)\\
          
          \mathbf{elif}\;a \leq 1.05 \cdot 10^{-203}:\\
          \;\;\;\;\frac{y \cdot \left(z - t\right)}{a - t}\\
          
          \mathbf{elif}\;a \leq 0.29:\\
          \;\;\;\;\frac{\left(y - x\right) \cdot z}{a - t}\\
          
          \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 < -3.1999999999999997e24

            1. Initial program 71.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -3.1999999999999997e24 < a < 1.05000000000000001e-203

            1. Initial program 64.2%

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

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

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

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

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

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

            if 1.05000000000000001e-203 < a < 0.28999999999999998

            1. Initial program 57.1%

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

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

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

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

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

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

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

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

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

            if 0.28999999999999998 < a

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

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

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

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

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

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

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

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

              \[\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, \frac{y}{\color{blue}{a}}, x\right) \]
            7. Step-by-step derivation
              1. Applied rewrites67.7%

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

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

            Alternative 6: 57.2% accurate, 0.7× speedup?

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

              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 x around 0

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

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

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

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

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

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

              if -2.5999999999999998e24 < t < 1.84999999999999997e-83

              1. Initial program 92.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

              if 7.60000000000000001e143 < t

              1. Initial program 19.1%

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

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

                  \[\leadsto x + \color{blue}{\left(y - x\right)} \]
              5. Applied rewrites45.9%

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

            Alternative 7: 53.7% accurate, 0.7× speedup?

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

              1. Initial program 32.3%

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

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

                  \[\leadsto x + \color{blue}{\left(y - x\right)} \]
              5. Applied rewrites46.1%

                \[\leadsto x + \color{blue}{\left(y - x\right)} \]

              if -1.8999999999999999e91 < t < 2.3500000000000001e-102

              1. Initial program 88.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

              if 2.3500000000000001e-102 < t < 3.89999999999999993e126

              1. Initial program 72.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \frac{\left(y - x\right) \cdot z}{-t} \]
              10. Recombined 3 regimes into one program.
              11. Add Preprocessing

              Alternative 8: 46.7% accurate, 0.8× speedup?

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

                1. Initial program 32.3%

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

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

                    \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                5. Applied rewrites46.1%

                  \[\leadsto x + \color{blue}{\left(y - x\right)} \]

                if -8.1e90 < t < 1.95000000000000006e-49

                1. Initial program 88.3%

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

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

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

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

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

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

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

                  \[\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, \frac{y}{\color{blue}{a}}, x\right) \]
                7. Step-by-step derivation
                  1. Applied rewrites55.9%

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

                  if 1.95000000000000006e-49 < t < 3.9999999999999997e126

                  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. lift-+.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto z \cdot \color{blue}{\frac{y}{a - t}} \]
                  10. Recombined 3 regimes into one program.
                  11. Add Preprocessing

                  Alternative 9: 46.8% accurate, 0.8× speedup?

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

                    1. Initial program 32.3%

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

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

                        \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                    5. Applied rewrites46.1%

                      \[\leadsto x + \color{blue}{\left(y - x\right)} \]

                    if -8.1e90 < t < 1.95000000000000006e-49

                    1. Initial program 88.3%

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

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

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

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

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

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

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

                      \[\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, \frac{y}{\color{blue}{a}}, x\right) \]
                    7. Step-by-step derivation
                      1. Applied rewrites55.9%

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

                      if 1.95000000000000006e-49 < t < 1.1500000000000001e127

                      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. lift-+.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        Alternative 10: 81.2% accurate, 0.8× speedup?

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

                          1. Initial program 37.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

                          if -2.5999999999999998e24 < t < 8.0000000000000004e47

                          1. Initial program 90.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        Alternative 11: 76.6% 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 -3.5 \cdot 10^{+19}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 7.8 \cdot 10^{+19}:\\ \;\;\;\;\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 -3.5e+19)
                             t_1
                             (if (<= a 7.8e+19) (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 <= -3.5e+19) {
                        		tmp = t_1;
                        	} else if (a <= 7.8e+19) {
                        		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 <= -3.5e+19)
                        		tmp = t_1;
                        	elseif (a <= 7.8e+19)
                        		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, -3.5e+19], t$95$1, If[LessEqual[a, 7.8e+19], 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 -3.5 \cdot 10^{+19}:\\
                        \;\;\;\;t\_1\\
                        
                        \mathbf{elif}\;a \leq 7.8 \cdot 10^{+19}:\\
                        \;\;\;\;\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 < -3.5e19 or 7.8e19 < a

                          1. Initial program 73.2%

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

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

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

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

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

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

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

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

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

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

                          if -3.5e19 < a < 7.8e19

                          1. Initial program 61.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. lower-fma.f64N/A

                              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(y - x\right), \frac{z - a}{t}, y\right)} \]
                          5. Applied rewrites82.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 12: 73.3% accurate, 0.8× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(x - y, \frac{z - a}{t}, y\right)\\ \mathbf{if}\;t \leq -4.8 \cdot 10^{-35}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 2.35 \cdot 10^{-102}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{a}, y - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                        (FPCore (x y z t a)
                         :precision binary64
                         (let* ((t_1 (fma (- x y) (/ (- z a) t) y)))
                           (if (<= t -4.8e-35) t_1 (if (<= t 2.35e-102) (fma (/ z a) (- y x) x) t_1))))
                        double code(double x, double y, double z, double t, double a) {
                        	double t_1 = fma((x - y), ((z - a) / t), y);
                        	double tmp;
                        	if (t <= -4.8e-35) {
                        		tmp = t_1;
                        	} else if (t <= 2.35e-102) {
                        		tmp = fma((z / a), (y - x), x);
                        	} else {
                        		tmp = t_1;
                        	}
                        	return tmp;
                        }
                        
                        function code(x, y, z, t, a)
                        	t_1 = fma(Float64(x - y), Float64(Float64(z - a) / t), y)
                        	tmp = 0.0
                        	if (t <= -4.8e-35)
                        		tmp = t_1;
                        	elseif (t <= 2.35e-102)
                        		tmp = fma(Float64(z / a), Float64(y - x), x);
                        	else
                        		tmp = t_1;
                        	end
                        	return tmp
                        end
                        
                        code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x - y), $MachinePrecision] * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision] + y), $MachinePrecision]}, If[LessEqual[t, -4.8e-35], t$95$1, If[LessEqual[t, 2.35e-102], N[(N[(z / a), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        t_1 := \mathsf{fma}\left(x - y, \frac{z - a}{t}, y\right)\\
                        \mathbf{if}\;t \leq -4.8 \cdot 10^{-35}:\\
                        \;\;\;\;t\_1\\
                        
                        \mathbf{elif}\;t \leq 2.35 \cdot 10^{-102}:\\
                        \;\;\;\;\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 < -4.8000000000000003e-35 or 2.3500000000000001e-102 < t

                          1. Initial program 48.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

                          if -4.8000000000000003e-35 < t < 2.3500000000000001e-102

                          1. Initial program 93.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

                        Alternative 13: 68.5% accurate, 0.8× speedup?

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

                          1. Initial program 71.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            if -4e19 < z < 1.8499999999999999e22

                            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 z around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          Alternative 14: 56.8% accurate, 0.9× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \left(y - x\right)\\ \mathbf{if}\;t \leq -1.9 \cdot 10^{+91}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 1.3 \cdot 10^{+127}:\\ \;\;\;\;\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 (+ x (- y x))))
                             (if (<= t -1.9e+91) t_1 (if (<= t 1.3e+127) (fma (/ z a) (- y x) x) t_1))))
                          double code(double x, double y, double z, double t, double a) {
                          	double t_1 = x + (y - x);
                          	double tmp;
                          	if (t <= -1.9e+91) {
                          		tmp = t_1;
                          	} else if (t <= 1.3e+127) {
                          		tmp = fma((z / a), (y - x), x);
                          	} else {
                          		tmp = t_1;
                          	}
                          	return tmp;
                          }
                          
                          function code(x, y, z, t, a)
                          	t_1 = Float64(x + Float64(y - x))
                          	tmp = 0.0
                          	if (t <= -1.9e+91)
                          		tmp = t_1;
                          	elseif (t <= 1.3e+127)
                          		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[(x + N[(y - x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.9e+91], t$95$1, If[LessEqual[t, 1.3e+127], N[(N[(z / a), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          t_1 := x + \left(y - x\right)\\
                          \mathbf{if}\;t \leq -1.9 \cdot 10^{+91}:\\
                          \;\;\;\;t\_1\\
                          
                          \mathbf{elif}\;t \leq 1.3 \cdot 10^{+127}:\\
                          \;\;\;\;\mathsf{fma}\left(\frac{z}{a}, y - x, x\right)\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;t\_1\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 2 regimes
                          2. if t < -1.8999999999999999e91 or 1.3000000000000001e127 < t

                            1. Initial program 32.3%

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

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

                                \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                            5. Applied rewrites46.1%

                              \[\leadsto x + \color{blue}{\left(y - x\right)} \]

                            if -1.8999999999999999e91 < t < 1.3000000000000001e127

                            1. Initial program 84.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

                          Alternative 15: 55.6% accurate, 0.9× speedup?

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

                            1. Initial program 32.3%

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

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

                                \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                            5. Applied rewrites46.1%

                              \[\leadsto x + \color{blue}{\left(y - x\right)} \]

                            if -1.8999999999999999e91 < t < 1.3000000000000001e127

                            1. Initial program 84.1%

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

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

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

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

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

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

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

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

                          Alternative 16: 48.4% accurate, 1.0× speedup?

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

                            1. Initial program 32.7%

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

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

                                \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                            5. Applied rewrites45.2%

                              \[\leadsto x + \color{blue}{\left(y - x\right)} \]

                            if -8.1e90 < t < 9.0000000000000001e114

                            1. Initial program 84.5%

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

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

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

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

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

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

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

                              \[\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, \frac{y}{\color{blue}{a}}, x\right) \]
                            7. Step-by-step derivation
                              1. Applied rewrites51.3%

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

                            Alternative 17: 30.2% accurate, 1.0× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \left(y - x\right)\\ \mathbf{if}\;t \leq -2.7 \cdot 10^{+60}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 3.8 \cdot 10^{+46}:\\ \;\;\;\;y \cdot \frac{z}{a}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                            (FPCore (x y z t a)
                             :precision binary64
                             (let* ((t_1 (+ x (- y x))))
                               (if (<= t -2.7e+60) t_1 (if (<= t 3.8e+46) (* y (/ z a)) t_1))))
                            double code(double x, double y, double z, double t, double a) {
                            	double t_1 = x + (y - x);
                            	double tmp;
                            	if (t <= -2.7e+60) {
                            		tmp = t_1;
                            	} else if (t <= 3.8e+46) {
                            		tmp = y * (z / a);
                            	} 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)
                                if (t <= (-2.7d+60)) then
                                    tmp = t_1
                                else if (t <= 3.8d+46) then
                                    tmp = y * (z / a)
                                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);
                            	double tmp;
                            	if (t <= -2.7e+60) {
                            		tmp = t_1;
                            	} else if (t <= 3.8e+46) {
                            		tmp = y * (z / a);
                            	} else {
                            		tmp = t_1;
                            	}
                            	return tmp;
                            }
                            
                            def code(x, y, z, t, a):
                            	t_1 = x + (y - x)
                            	tmp = 0
                            	if t <= -2.7e+60:
                            		tmp = t_1
                            	elif t <= 3.8e+46:
                            		tmp = y * (z / a)
                            	else:
                            		tmp = t_1
                            	return tmp
                            
                            function code(x, y, z, t, a)
                            	t_1 = Float64(x + Float64(y - x))
                            	tmp = 0.0
                            	if (t <= -2.7e+60)
                            		tmp = t_1;
                            	elseif (t <= 3.8e+46)
                            		tmp = Float64(y * Float64(z / a));
                            	else
                            		tmp = t_1;
                            	end
                            	return tmp
                            end
                            
                            function tmp_2 = code(x, y, z, t, a)
                            	t_1 = x + (y - x);
                            	tmp = 0.0;
                            	if (t <= -2.7e+60)
                            		tmp = t_1;
                            	elseif (t <= 3.8e+46)
                            		tmp = y * (z / a);
                            	else
                            		tmp = t_1;
                            	end
                            	tmp_2 = tmp;
                            end
                            
                            code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y - x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.7e+60], t$95$1, If[LessEqual[t, 3.8e+46], N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            t_1 := x + \left(y - x\right)\\
                            \mathbf{if}\;t \leq -2.7 \cdot 10^{+60}:\\
                            \;\;\;\;t\_1\\
                            
                            \mathbf{elif}\;t \leq 3.8 \cdot 10^{+46}:\\
                            \;\;\;\;y \cdot \frac{z}{a}\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;t\_1\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 2 regimes
                            2. if t < -2.6999999999999999e60 or 3.7999999999999999e46 < t

                              1. Initial program 37.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 x + \color{blue}{\left(y - x\right)} \]
                              4. Step-by-step derivation
                                1. lower--.f6440.6

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

                                \[\leadsto x + \color{blue}{\left(y - x\right)} \]

                              if -2.6999999999999999e60 < t < 3.7999999999999999e46

                              1. Initial program 87.2%

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto y \cdot \frac{z}{a} \]
                                3. Step-by-step derivation
                                  1. Applied rewrites24.9%

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

                                Alternative 18: 28.7% accurate, 1.0× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \left(y - x\right)\\ \mathbf{if}\;t \leq -1.55 \cdot 10^{-41}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 2.8 \cdot 10^{+40}:\\ \;\;\;\;\frac{y \cdot z}{a}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                (FPCore (x y z t a)
                                 :precision binary64
                                 (let* ((t_1 (+ x (- y x))))
                                   (if (<= t -1.55e-41) t_1 (if (<= t 2.8e+40) (/ (* y z) a) t_1))))
                                double code(double x, double y, double z, double t, double a) {
                                	double t_1 = x + (y - x);
                                	double tmp;
                                	if (t <= -1.55e-41) {
                                		tmp = t_1;
                                	} else if (t <= 2.8e+40) {
                                		tmp = (y * z) / a;
                                	} 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)
                                    if (t <= (-1.55d-41)) then
                                        tmp = t_1
                                    else if (t <= 2.8d+40) then
                                        tmp = (y * z) / a
                                    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);
                                	double tmp;
                                	if (t <= -1.55e-41) {
                                		tmp = t_1;
                                	} else if (t <= 2.8e+40) {
                                		tmp = (y * z) / a;
                                	} else {
                                		tmp = t_1;
                                	}
                                	return tmp;
                                }
                                
                                def code(x, y, z, t, a):
                                	t_1 = x + (y - x)
                                	tmp = 0
                                	if t <= -1.55e-41:
                                		tmp = t_1
                                	elif t <= 2.8e+40:
                                		tmp = (y * z) / a
                                	else:
                                		tmp = t_1
                                	return tmp
                                
                                function code(x, y, z, t, a)
                                	t_1 = Float64(x + Float64(y - x))
                                	tmp = 0.0
                                	if (t <= -1.55e-41)
                                		tmp = t_1;
                                	elseif (t <= 2.8e+40)
                                		tmp = Float64(Float64(y * z) / a);
                                	else
                                		tmp = t_1;
                                	end
                                	return tmp
                                end
                                
                                function tmp_2 = code(x, y, z, t, a)
                                	t_1 = x + (y - x);
                                	tmp = 0.0;
                                	if (t <= -1.55e-41)
                                		tmp = t_1;
                                	elseif (t <= 2.8e+40)
                                		tmp = (y * z) / a;
                                	else
                                		tmp = t_1;
                                	end
                                	tmp_2 = tmp;
                                end
                                
                                code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y - x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.55e-41], t$95$1, If[LessEqual[t, 2.8e+40], N[(N[(y * z), $MachinePrecision] / a), $MachinePrecision], t$95$1]]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                t_1 := x + \left(y - x\right)\\
                                \mathbf{if}\;t \leq -1.55 \cdot 10^{-41}:\\
                                \;\;\;\;t\_1\\
                                
                                \mathbf{elif}\;t \leq 2.8 \cdot 10^{+40}:\\
                                \;\;\;\;\frac{y \cdot z}{a}\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;t\_1\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 2 regimes
                                2. if t < -1.55e-41 or 2.8000000000000001e40 < t

                                  1. Initial program 41.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 x + \color{blue}{\left(y - x\right)} \]
                                  4. Step-by-step derivation
                                    1. lower--.f6436.0

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

                                    \[\leadsto x + \color{blue}{\left(y - x\right)} \]

                                  if -1.55e-41 < t < 2.8000000000000001e40

                                  1. Initial program 92.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    Alternative 19: 19.4% accurate, 4.1× speedup?

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

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

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

                                        \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                                    5. Applied rewrites21.8%

                                      \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                                    6. Add Preprocessing

                                    Alternative 20: 2.8% accurate, 4.8× speedup?

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

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

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

                                        \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                                    5. Applied rewrites21.8%

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

                                      \[\leadsto x + -1 \cdot \color{blue}{x} \]
                                    7. Step-by-step derivation
                                      1. Applied rewrites2.8%

                                        \[\leadsto x + \left(-x\right) \]
                                      2. Add Preprocessing

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

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

                                      Reproduce

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