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

Percentage Accurate: 68.4% → 89.1%
Time: 12.7s
Alternatives: 21
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 21 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: 89.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^{-304}:\\ \;\;\;\;\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)\\ \mathbf{elif}\;t\_1 \leq 0:\\ \;\;\;\;t - \frac{x \cdot \left(a - y\right)}{z}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{t - x}{a - z}, y - z, 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-304)
     (fma (- t x) (/ (- y z) (- a z)) x)
     (if (<= t_1 0.0)
       (- t (/ (* x (- a y)) z))
       (fma (/ (- t x) (- a z)) (- y z) 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-304) {
		tmp = fma((t - x), ((y - z) / (a - z)), x);
	} else if (t_1 <= 0.0) {
		tmp = t - ((x * (a - y)) / z);
	} else {
		tmp = fma(((t - x) / (a - z)), (y - z), 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-304)
		tmp = fma(Float64(t - x), Float64(Float64(y - z) / Float64(a - z)), x);
	elseif (t_1 <= 0.0)
		tmp = Float64(t - Float64(Float64(x * Float64(a - y)) / z));
	else
		tmp = fma(Float64(Float64(t - x) / Float64(a - z)), Float64(y - z), 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-304], N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[t$95$1, 0.0], N[(t - N[(N[(x * N[(a - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(y - z), $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^{-304}:\\
\;\;\;\;\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)\\

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

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{t - x}{a - z}, y - z, 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.99999999999999971e-305

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        1. Initial program 74.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. 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-/.f6490.3

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

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

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

      Alternative 2: 90.9% accurate, 0.3× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 3: 80.6% accurate, 0.8× speedup?

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

            1. Initial program 44.1%

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

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

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

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

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

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

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

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

              if -5.19999999999999968e62 < z < 6.99999999999999993e-4

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

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

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

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

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

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

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

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

            Alternative 4: 76.4% accurate, 0.8× speedup?

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

              1. Initial program 44.1%

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

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

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

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

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

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

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

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

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

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

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

                    if -8.00000000000000028e62 < z < 0.048000000000000001

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

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

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

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

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

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

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

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

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

                  Alternative 5: 76.9% accurate, 0.8× speedup?

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

                    1. Initial program 44.1%

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

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

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

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

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

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

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

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

                        \[\leadsto t - \left(t - x\right) \cdot \frac{y}{z} \]
                      3. Step-by-step derivation
                        1. Applied rewrites69.0%

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

                        if -5.19999999999999968e62 < z < 6.99999999999999993e-4

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

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

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

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

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

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

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

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

                      Alternative 6: 73.3% accurate, 0.8× speedup?

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

                        1. Initial program 74.4%

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

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

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

                        if -1.65e14 < a < 7.00000000000000007e-20

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

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

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

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

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

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

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

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

                        Alternative 7: 70.7% accurate, 0.8× speedup?

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

                          1. Initial program 54.1%

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

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

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

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

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

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

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

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

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

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

                              if -7.50000000000000042e-48 < z < 6.8e-4

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

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

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

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

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

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

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

                            Alternative 8: 68.9% accurate, 0.8× speedup?

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

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

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

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

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

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

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

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

                              if -1.4999999999999999e41 < a < 5.1999999999999999e-34

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

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

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

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

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

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

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

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

                                if 5.1999999999999999e-34 < a

                                1. Initial program 73.0%

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

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

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

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

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

                                Alternative 9: 66.8% accurate, 0.9× speedup?

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

                                  1. Initial program 44.1%

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto t - -1 \cdot \frac{x \cdot y}{z} \]
                                      3. Step-by-step derivation
                                        1. Applied rewrites65.3%

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

                                        if -2.20000000000000015e62 < z < 6.8e-4

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

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

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

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

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

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

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

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

                                      Alternative 10: 66.5% accurate, 0.9× speedup?

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

                                        1. Initial program 44.1%

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

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

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

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

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

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

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

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

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

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

                                            if -2.20000000000000015e62 < z < 6.8e-4

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

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

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

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

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

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

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

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

                                          Alternative 11: 62.9% accurate, 0.9× speedup?

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

                                            1. Initial program 43.0%

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

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

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

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

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

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

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

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

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

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

                                                  \[\leadsto t - \frac{a \cdot x}{z} \]
                                                3. Step-by-step derivation
                                                  1. Applied rewrites58.2%

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

                                                  if -1.86000000000000011e87 < z < 6.99999999999999993e-4

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

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

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

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

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

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

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

                                                Alternative 12: 61.9% accurate, 0.9× speedup?

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

                                                  1. Initial program 44.1%

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

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

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

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

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

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

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

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

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

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

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

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

                                                        if -5.19999999999999968e62 < z < 6.99999999999999993e-4

                                                        1. Initial program 92.8%

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

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

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

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

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

                                                      Alternative 13: 51.2% accurate, 0.9× speedup?

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

                                                        1. Initial program 43.0%

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

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

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

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

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

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

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

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

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

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

                                                              \[\leadsto t - \frac{a \cdot x}{z} \]
                                                            3. Step-by-step derivation
                                                              1. Applied rewrites58.2%

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

                                                              if -1.85000000000000001e87 < z < 6.99999999999999993e-4

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

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

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

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

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

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

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

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

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

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

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

                                                            Alternative 14: 44.0% accurate, 0.9× speedup?

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

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

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

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

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

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

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

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

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

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

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

                                                                    \[\leadsto t - \frac{a \cdot x}{z} \]
                                                                  3. Step-by-step derivation
                                                                    1. Applied rewrites52.5%

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

                                                                    if -2.35e52 < z < 2.4999999999999998e-97

                                                                    1. Initial program 94.1%

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

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

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

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

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

                                                                    Alternative 15: 45.7% accurate, 0.9× speedup?

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

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

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

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

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

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

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

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

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

                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(y\right), \frac{t}{z}, t\right) \]
                                                                        3. Step-by-step derivation
                                                                          1. Applied rewrites46.7%

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

                                                                          if -5.20000000000000004e-54 < z < 1.99999999999999996e-120

                                                                          1. Initial program 94.3%

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

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

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

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

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

                                                                          Alternative 16: 46.3% accurate, 0.9× speedup?

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

                                                                            1. Initial program 56.2%

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

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

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

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

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

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

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

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

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

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

                                                                                if -5.20000000000000004e-54 < z < 6.80000000000000026e-102

                                                                                1. Initial program 94.5%

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

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

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

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

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

                                                                                Alternative 17: 35.3% accurate, 0.9× speedup?

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

                                                                                  1. Initial program 44.0%

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

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

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

                                                                                  if -6.49999999999999999e92 < z < 4.6999999999999998e-48

                                                                                  1. Initial program 91.9%

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

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

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

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

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

                                                                                  Alternative 18: 27.4% accurate, 1.0× speedup?

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

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

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

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

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

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

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

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

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

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

                                                                                          \[\leadsto \frac{x \cdot y}{z} \]
                                                                                        2. Step-by-step derivation
                                                                                          1. Applied rewrites33.6%

                                                                                            \[\leadsto \frac{y}{z} \cdot x \]

                                                                                          if -1.15000000000000001e76 < x < 2.3e94

                                                                                          1. Initial program 78.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--.f6428.6

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

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

                                                                                          if 2.3e94 < x

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

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

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

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

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

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

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

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

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

                                                                                                \[\leadsto \frac{x \cdot y}{z} \]
                                                                                              2. Step-by-step derivation
                                                                                                1. Applied rewrites32.5%

                                                                                                  \[\leadsto y \cdot \frac{x}{z} \]
                                                                                              3. Recombined 3 regimes into one program.
                                                                                              4. Final simplification30.1%

                                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.15 \cdot 10^{+76}:\\ \;\;\;\;x \cdot \frac{y}{z}\\ \mathbf{elif}\;x \leq 2.3 \cdot 10^{+94}:\\ \;\;\;\;x + \left(t - x\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{x}{z}\\ \end{array} \]
                                                                                              5. Add Preprocessing

                                                                                              Alternative 19: 27.2% accurate, 1.0× speedup?

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

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

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

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

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

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

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

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

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

                                                                                                    \[\leadsto \frac{x \cdot y}{z} \]
                                                                                                  3. Step-by-step derivation
                                                                                                    1. Applied rewrites27.7%

                                                                                                      \[\leadsto \frac{x \cdot y}{z} \]
                                                                                                    2. Step-by-step derivation
                                                                                                      1. Applied rewrites32.8%

                                                                                                        \[\leadsto y \cdot \frac{x}{z} \]

                                                                                                      if -1.15000000000000001e76 < x < 2.3e94

                                                                                                      1. Initial program 78.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--.f6428.6

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

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

                                                                                                    Alternative 20: 19.4% 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 72.1%

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

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

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

                                                                                                    Alternative 21: 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 72.1%

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

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

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

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

                                                                                                        \[\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 2024221 
                                                                                                      (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))))