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

Percentage Accurate: 68.4% → 90.8%
Time: 13.8s
Alternatives: 19
Speedup: 0.8×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 19 alternatives:

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

Initial Program: 68.4% accurate, 1.0× speedup?

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

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

Alternative 1: 90.8% accurate, 0.3× speedup?

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

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

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

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


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

    1. Initial program 76.0%

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

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

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

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

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

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

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

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

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

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

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

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

    1. Initial program 3.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    1. Initial program 75.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 90.8% accurate, 0.3× speedup?

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

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

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


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

    1. Initial program 75.9%

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

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

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

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

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

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

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

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

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

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

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

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

    1. Initial program 3.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 3: 90.1% accurate, 0.3× speedup?

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

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

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


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

    1. Initial program 75.9%

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

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

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

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

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

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

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

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

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

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

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

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

    1. Initial program 3.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 4: 41.5% accurate, 0.6× speedup?

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

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

\mathbf{elif}\;z \leq -8.5 \cdot 10^{-225}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq 4.3 \cdot 10^{-29}:\\
\;\;\;\;t \cdot \frac{y}{a - z}\\

\mathbf{elif}\;z \leq 7.5 \cdot 10^{+33}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -3.9000000000000002e86 or 7.50000000000000046e33 < z

    1. Initial program 45.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -3.9000000000000002e86 < z < -8.4999999999999998e-225 or 4.2999999999999998e-29 < z < 7.50000000000000046e33

      1. Initial program 83.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if -8.4999999999999998e-225 < z < 4.2999999999999998e-29

        1. Initial program 85.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.9 \cdot 10^{+86}:\\ \;\;\;\;\mathsf{fma}\left(0, x, t\right)\\ \mathbf{elif}\;z \leq -8.5 \cdot 10^{-225}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x - t}{a}, z, x\right)\\ \mathbf{elif}\;z \leq 4.3 \cdot 10^{-29}:\\ \;\;\;\;t \cdot \frac{y}{a - z}\\ \mathbf{elif}\;z \leq 7.5 \cdot 10^{+33}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x - t}{a}, z, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(0, x, t\right)\\ \end{array} \]
        10. Add Preprocessing

        Alternative 5: 83.7% accurate, 0.7× speedup?

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

          1. Initial program 73.5%

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

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

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

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

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

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

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

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

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

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

          if -2.35000000000000023e-156 < a < 7.5000000000000002e-112

          1. Initial program 60.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        Alternative 6: 79.2% accurate, 0.8× speedup?

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

          1. Initial program 50.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -3.3999999999999998e86 < z < 1.1999999999999999e-13

          1. Initial program 85.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        Alternative 7: 69.8% accurate, 0.8× speedup?

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

          1. Initial program 49.1%

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

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

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

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

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

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

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

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

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

          if -4.24999999999999997e52 < z < 5.1e14

          1. Initial program 83.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        Alternative 8: 63.6% accurate, 0.8× speedup?

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

          1. Initial program 74.7%

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

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

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

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

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

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

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

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

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

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

          if -4.9000000000000004 < a < 1.06000000000000004e66

          1. Initial program 66.3%

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

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

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

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

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

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

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

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

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

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

        Alternative 9: 60.6% accurate, 0.8× speedup?

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

          1. Initial program 61.1%

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

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

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

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

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

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

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

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

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

          if -4.5000000000000003e-80 < z < 4.9999999999999999e-122

          1. Initial program 85.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        Alternative 10: 59.4% accurate, 0.9× speedup?

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

          1. Initial program 74.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -1.75 < a < 1.06000000000000004e66

          1. Initial program 66.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 11: 61.9% accurate, 0.9× speedup?

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

            1. Initial program 49.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if -4.3e52 < z < 5.1e14

              1. Initial program 83.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            Alternative 12: 59.6% accurate, 0.9× speedup?

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

              1. Initial program 48.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                if -3.9000000000000002e86 < z < 5.1e14

                1. Initial program 83.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              Alternative 13: 58.5% accurate, 0.9× speedup?

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

                1. Initial program 48.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if -3.9000000000000002e86 < z < 5.1e14

                  1. Initial program 83.7%

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

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

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

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

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

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

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

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

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

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

                Alternative 14: 37.6% accurate, 0.9× speedup?

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

                  1. Initial program 52.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if -1.8000000000000001e30 < z < 2.0999999999999999e-14

                    1. Initial program 86.2%

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto t \cdot \color{blue}{\frac{y}{a - z}} \]
                    8. Recombined 2 regimes into one program.
                    9. Final simplification46.1%

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

                    Alternative 15: 36.1% accurate, 1.0× speedup?

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

                      1. Initial program 63.4%

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

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

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

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

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

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

                          \[\leadsto x + -1 \cdot \left(-t\right) \]
                        3. Step-by-step derivation
                          1. Applied rewrites37.0%

                            \[\leadsto x + -1 \cdot \left(-t\right) \]

                          if -1.05000000000000005e-149 < z < 1.6199999999999999e-43

                          1. Initial program 86.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            if 1.6199999999999999e-43 < z

                            1. Initial program 58.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \mathsf{fma}\left(0, \color{blue}{x}, 1 \cdot t\right) \]
                            8. Recombined 3 regimes into one program.
                            9. Final simplification39.9%

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

                            Alternative 16: 37.2% accurate, 1.3× speedup?

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

                              1. Initial program 76.5%

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

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

                                  \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                              5. Applied rewrites16.3%

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

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

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

                                  \[\leadsto x + -1 \cdot \left(-t\right) \]
                                3. Step-by-step derivation
                                  1. Applied rewrites36.8%

                                    \[\leadsto x + -1 \cdot \left(-t\right) \]

                                  if -2.89999999999999983e-90 < a < 1.55e-58

                                  1. Initial program 58.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \mathsf{fma}\left(0, \color{blue}{x}, 1 \cdot t\right) \]
                                  8. Recombined 2 regimes into one program.
                                  9. Final simplification37.4%

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

                                  Alternative 17: 34.2% accurate, 2.6× speedup?

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

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

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

                                      \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                  5. Applied rewrites19.7%

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

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

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

                                      \[\leadsto x + -1 \cdot \left(-t\right) \]
                                    3. Step-by-step derivation
                                      1. Applied rewrites31.3%

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

                                      Alternative 18: 18.9% accurate, 4.1× speedup?

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

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

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

                                          \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                      5. Applied rewrites19.7%

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

                                      Alternative 19: 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 69.6%

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

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

                                          \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                      5. Applied rewrites19.7%

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

                                        \[\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: 83.9% accurate, 0.6× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := t - \frac{y}{z} \cdot \left(t - x\right)\\ \mathbf{if}\;z < -1.2536131056095036 \cdot 10^{+188}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z < 4.446702369113811 \cdot 10^{+64}:\\ \;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a)
                                         :precision binary64
                                         (let* ((t_1 (- t (* (/ y z) (- t x)))))
                                           (if (< z -1.2536131056095036e+188)
                                             t_1
                                             (if (< z 4.446702369113811e+64)
                                               (+ x (/ (- y z) (/ (- a z) (- t x))))
                                               t_1))))
                                        double code(double x, double y, double z, double t, double a) {
                                        	double t_1 = t - ((y / z) * (t - x));
                                        	double tmp;
                                        	if (z < -1.2536131056095036e+188) {
                                        		tmp = t_1;
                                        	} else if (z < 4.446702369113811e+64) {
                                        		tmp = x + ((y - z) / ((a - z) / (t - 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 = t - ((y / z) * (t - x))
                                            if (z < (-1.2536131056095036d+188)) then
                                                tmp = t_1
                                            else if (z < 4.446702369113811d+64) then
                                                tmp = x + ((y - z) / ((a - z) / (t - 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 = t - ((y / z) * (t - x));
                                        	double tmp;
                                        	if (z < -1.2536131056095036e+188) {
                                        		tmp = t_1;
                                        	} else if (z < 4.446702369113811e+64) {
                                        		tmp = x + ((y - z) / ((a - z) / (t - x)));
                                        	} else {
                                        		tmp = t_1;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        def code(x, y, z, t, a):
                                        	t_1 = t - ((y / z) * (t - x))
                                        	tmp = 0
                                        	if z < -1.2536131056095036e+188:
                                        		tmp = t_1
                                        	elif z < 4.446702369113811e+64:
                                        		tmp = x + ((y - z) / ((a - z) / (t - x)))
                                        	else:
                                        		tmp = t_1
                                        	return tmp
                                        
                                        function code(x, y, z, t, a)
                                        	t_1 = Float64(t - Float64(Float64(y / z) * Float64(t - x)))
                                        	tmp = 0.0
                                        	if (z < -1.2536131056095036e+188)
                                        		tmp = t_1;
                                        	elseif (z < 4.446702369113811e+64)
                                        		tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / Float64(t - x))));
                                        	else
                                        		tmp = t_1;
                                        	end
                                        	return tmp
                                        end
                                        
                                        function tmp_2 = code(x, y, z, t, a)
                                        	t_1 = t - ((y / z) * (t - x));
                                        	tmp = 0.0;
                                        	if (z < -1.2536131056095036e+188)
                                        		tmp = t_1;
                                        	elseif (z < 4.446702369113811e+64)
                                        		tmp = x + ((y - z) / ((a - z) / (t - x)));
                                        	else
                                        		tmp = t_1;
                                        	end
                                        	tmp_2 = tmp;
                                        end
                                        
                                        code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(y / z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -1.2536131056095036e+188], t$95$1, If[Less[z, 4.446702369113811e+64], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        t_1 := t - \frac{y}{z} \cdot \left(t - x\right)\\
                                        \mathbf{if}\;z < -1.2536131056095036 \cdot 10^{+188}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        \mathbf{elif}\;z < 4.446702369113811 \cdot 10^{+64}:\\
                                        \;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        

                                        Reproduce

                                        ?
                                        herbie shell --seed 2024337 
                                        (FPCore (x y z t a)
                                          :name "Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3"
                                          :precision binary64
                                        
                                          :alt
                                          (! :herbie-platform default (if (< z -125361310560950360000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- t (* (/ y z) (- t x))) (if (< z 44467023691138110000000000000000000000000000000000000000000000000) (+ x (/ (- y z) (/ (- a z) (- t x)))) (- t (* (/ y z) (- t x))))))
                                        
                                          (+ x (/ (* (- y z) (- t x)) (- a z))))