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

Percentage Accurate: 68.3% → 90.2%
Time: 9.2s
Alternatives: 17
Speedup: 0.9×

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 17 alternatives:

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

Initial Program: 68.3% accurate, 1.0× speedup?

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

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

Alternative 1: 90.2% 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 := \frac{\left(t - x\right) \cdot \left(y - z\right)}{a - z} + x\\ \mathbf{if}\;t\_2 \leq -2 \cdot 10^{-257}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq 0:\\ \;\;\;\;\mathsf{fma}\left(x - t, \frac{1}{\frac{z}{y - a}}, t\right)\\ \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 (+ (/ (* (- t x) (- y z)) (- a z)) x)))
   (if (<= t_2 -2e-257)
     t_1
     (if (<= t_2 0.0) (fma (- x t) (/ 1.0 (/ z (- y a))) t) 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 = (((t - x) * (y - z)) / (a - z)) + x;
	double tmp;
	if (t_2 <= -2e-257) {
		tmp = t_1;
	} else if (t_2 <= 0.0) {
		tmp = fma((x - t), (1.0 / (z / (y - a))), t);
	} 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(Float64(Float64(Float64(t - x) * Float64(y - z)) / Float64(a - z)) + x)
	tmp = 0.0
	if (t_2 <= -2e-257)
		tmp = t_1;
	elseif (t_2 <= 0.0)
		tmp = fma(Float64(x - t), Float64(1.0 / Float64(z / Float64(y - a))), t);
	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[(N[(N[(N[(t - x), $MachinePrecision] * N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[t$95$2, -2e-257], t$95$1, If[LessEqual[t$95$2, 0.0], N[(N[(x - t), $MachinePrecision] * N[(1.0 / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t), $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 := \frac{\left(t - x\right) \cdot \left(y - z\right)}{a - z} + x\\
\mathbf{if}\;t\_2 \leq -2 \cdot 10^{-257}:\\
\;\;\;\;t\_1\\

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

\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))) < -2e-257 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z)))

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

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

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

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

    1. Initial program 3.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 2: 90.2% 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 := \frac{\left(t - x\right) \cdot \left(y - z\right)}{a - z} + x\\ \mathbf{if}\;t\_2 \leq -2 \cdot 10^{-257}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq 0:\\ \;\;\;\;\mathsf{fma}\left(x - t, \frac{y - a}{z}, t\right)\\ \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 (+ (/ (* (- t x) (- y z)) (- a z)) x)))
       (if (<= t_2 -2e-257)
         t_1
         (if (<= t_2 0.0) (fma (- x t) (/ (- y a) z) t) 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 = (((t - x) * (y - z)) / (a - z)) + x;
    	double tmp;
    	if (t_2 <= -2e-257) {
    		tmp = t_1;
    	} else if (t_2 <= 0.0) {
    		tmp = fma((x - t), ((y - a) / z), t);
    	} 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(Float64(Float64(Float64(t - x) * Float64(y - z)) / Float64(a - z)) + x)
    	tmp = 0.0
    	if (t_2 <= -2e-257)
    		tmp = t_1;
    	elseif (t_2 <= 0.0)
    		tmp = fma(Float64(x - t), Float64(Float64(y - a) / z), t);
    	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[(N[(N[(N[(t - x), $MachinePrecision] * N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[t$95$2, -2e-257], t$95$1, If[LessEqual[t$95$2, 0.0], N[(N[(x - t), $MachinePrecision] * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision] + t), $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 := \frac{\left(t - x\right) \cdot \left(y - z\right)}{a - z} + x\\
    \mathbf{if}\;t\_2 \leq -2 \cdot 10^{-257}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;t\_2 \leq 0:\\
    \;\;\;\;\mathsf{fma}\left(x - t, \frac{y - a}{z}, t\right)\\
    
    \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))) < -2e-257 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z)))

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

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

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

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

      1. Initial program 3.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 3: 41.1% accurate, 0.6× speedup?

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

      1. Initial program 35.4%

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

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

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

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

      if -3.99999999999999973e146 < z < -1.6200000000000001

      1. Initial program 62.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if -1.6200000000000001 < z < -9.49999999999999939e-247

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

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

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

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

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

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

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

            if -9.49999999999999939e-247 < z < 6.50000000000000022e-84

            1. Initial program 93.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--.f6482.4

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

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

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

              if 6.50000000000000022e-84 < z < 6.39999999999999994e133

              1. Initial program 80.8%

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

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

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

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

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

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

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

                  \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -4 \cdot 10^{+146}:\\ \;\;\;\;\left(t - x\right) + x\\ \mathbf{elif}\;z \leq -1.62:\\ \;\;\;\;\frac{y}{z} \cdot \left(x - t\right)\\ \mathbf{elif}\;z \leq -9.5 \cdot 10^{-247}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x - t}{a}, z, x\right)\\ \mathbf{elif}\;z \leq 6.5 \cdot 10^{-84}:\\ \;\;\;\;\frac{t - x}{a} \cdot y\\ \mathbf{elif}\;z \leq 6.4 \cdot 10^{+133}:\\ \;\;\;\;\mathsf{fma}\left(-z, \frac{t}{a}, x\right)\\ \mathbf{else}:\\ \;\;\;\;\left(t - x\right) + x\\ \end{array} \]
                6. Add Preprocessing

                Alternative 4: 40.8% accurate, 0.6× speedup?

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

                  1. Initial program 35.4%

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

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

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

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

                  if -3.99999999999999973e146 < z < -1.45e-18

                  1. Initial program 65.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if -1.45e-18 < z < -9.49999999999999939e-247 or 6.50000000000000022e-84 < z < 6.39999999999999994e133

                    1. Initial program 76.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--.f6466.9

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

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

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

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

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

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

                        if -9.49999999999999939e-247 < z < 6.50000000000000022e-84

                        1. Initial program 93.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--.f6482.4

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

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

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

                          \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -4 \cdot 10^{+146}:\\ \;\;\;\;\left(t - x\right) + x\\ \mathbf{elif}\;z \leq -1.45 \cdot 10^{-18}:\\ \;\;\;\;\frac{y}{z} \cdot \left(x - t\right)\\ \mathbf{elif}\;z \leq -9.5 \cdot 10^{-247}:\\ \;\;\;\;\mathsf{fma}\left(-z, \frac{t}{a}, x\right)\\ \mathbf{elif}\;z \leq 6.5 \cdot 10^{-84}:\\ \;\;\;\;\frac{t - x}{a} \cdot y\\ \mathbf{elif}\;z \leq 6.4 \cdot 10^{+133}:\\ \;\;\;\;\mathsf{fma}\left(-z, \frac{t}{a}, x\right)\\ \mathbf{else}:\\ \;\;\;\;\left(t - x\right) + x\\ \end{array} \]
                        10. Add Preprocessing

                        Alternative 5: 62.1% accurate, 0.6× speedup?

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

                          1. Initial program 36.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-/.f6469.6

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            if -4.6999999999999996e68 < z < -1.25999999999999992e-120 or 1.16000000000000008e-83 < z < 6.39999999999999994e133

                            1. Initial program 79.8%

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

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

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

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

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

                              if -1.25999999999999992e-120 < z < 1.16000000000000008e-83

                              1. Initial program 86.5%

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

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

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

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

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

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

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

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

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

                            Alternative 6: 54.6% accurate, 0.6× speedup?

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

                              1. Initial program 35.4%

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

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

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

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

                              if -3.99999999999999973e146 < z < -1.49999999999999991e-31

                              1. Initial program 67.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-/.f6480.0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                if -1.49999999999999991e-31 < z < 1.16000000000000008e-83

                                1. Initial program 83.6%

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

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

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

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

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

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

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

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

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

                                if 1.16000000000000008e-83 < z < 2.6000000000000001e138

                                1. Initial program 80.8%

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

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

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

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

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

                                  \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -4 \cdot 10^{+146}:\\ \;\;\;\;\left(t - x\right) + x\\ \mathbf{elif}\;z \leq -1.5 \cdot 10^{-31}:\\ \;\;\;\;\frac{y}{z} \cdot \left(x - t\right)\\ \mathbf{elif}\;z \leq 1.16 \cdot 10^{-83}:\\ \;\;\;\;\mathsf{fma}\left(\frac{t - x}{a}, y, x\right)\\ \mathbf{elif}\;z \leq 2.6 \cdot 10^{+138}:\\ \;\;\;\;\mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\ \mathbf{else}:\\ \;\;\;\;\left(t - x\right) + x\\ \end{array} \]
                                10. Add Preprocessing

                                Alternative 7: 40.4% accurate, 0.7× speedup?

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

                                  1. Initial program 35.6%

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

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

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

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

                                  if -1.60000000000000002e117 < z < -9.49999999999999939e-247 or 6.50000000000000022e-84 < z < 6.39999999999999994e133

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

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

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

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

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

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

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

                                      if -9.49999999999999939e-247 < z < 6.50000000000000022e-84

                                      1. Initial program 93.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--.f6482.4

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

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

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

                                        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.6 \cdot 10^{+117}:\\ \;\;\;\;\left(t - x\right) + x\\ \mathbf{elif}\;z \leq -9.5 \cdot 10^{-247}:\\ \;\;\;\;\mathsf{fma}\left(-z, \frac{t}{a}, x\right)\\ \mathbf{elif}\;z \leq 6.5 \cdot 10^{-84}:\\ \;\;\;\;\frac{t - x}{a} \cdot y\\ \mathbf{elif}\;z \leq 6.4 \cdot 10^{+133}:\\ \;\;\;\;\mathsf{fma}\left(-z, \frac{t}{a}, x\right)\\ \mathbf{else}:\\ \;\;\;\;\left(t - x\right) + x\\ \end{array} \]
                                      10. Add Preprocessing

                                      Alternative 8: 50.1% accurate, 0.7× speedup?

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

                                        1. Initial program 35.4%

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

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

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

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

                                        if -3.99999999999999973e146 < z < -2.65000000000000015e-18

                                        1. Initial program 65.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          if -2.65000000000000015e-18 < z < 2.6000000000000001e138

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

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

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

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

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

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

                                          Alternative 9: 36.8% accurate, 0.8× speedup?

                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(t - x\right) + x\\ \mathbf{if}\;z \leq -2.5 \cdot 10^{+61}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -9.5 \cdot 10^{-247}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{a}, x, x\right)\\ \mathbf{elif}\;z \leq 5.2 \cdot 10^{+17}:\\ \;\;\;\;\frac{t - x}{a} \cdot y\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                          (FPCore (x y z t a)
                                           :precision binary64
                                           (let* ((t_1 (+ (- t x) x)))
                                             (if (<= z -2.5e+61)
                                               t_1
                                               (if (<= z -9.5e-247)
                                                 (fma (/ z a) x x)
                                                 (if (<= z 5.2e+17) (* (/ (- t x) a) y) t_1)))))
                                          double code(double x, double y, double z, double t, double a) {
                                          	double t_1 = (t - x) + x;
                                          	double tmp;
                                          	if (z <= -2.5e+61) {
                                          		tmp = t_1;
                                          	} else if (z <= -9.5e-247) {
                                          		tmp = fma((z / a), x, x);
                                          	} else if (z <= 5.2e+17) {
                                          		tmp = ((t - x) / a) * y;
                                          	} else {
                                          		tmp = t_1;
                                          	}
                                          	return tmp;
                                          }
                                          
                                          function code(x, y, z, t, a)
                                          	t_1 = Float64(Float64(t - x) + x)
                                          	tmp = 0.0
                                          	if (z <= -2.5e+61)
                                          		tmp = t_1;
                                          	elseif (z <= -9.5e-247)
                                          		tmp = fma(Float64(z / a), x, x);
                                          	elseif (z <= 5.2e+17)
                                          		tmp = Float64(Float64(Float64(t - x) / a) * y);
                                          	else
                                          		tmp = t_1;
                                          	end
                                          	return tmp
                                          end
                                          
                                          code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t - x), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[z, -2.5e+61], t$95$1, If[LessEqual[z, -9.5e-247], N[(N[(z / a), $MachinePrecision] * x + x), $MachinePrecision], If[LessEqual[z, 5.2e+17], N[(N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]]
                                          
                                          \begin{array}{l}
                                          
                                          \\
                                          \begin{array}{l}
                                          t_1 := \left(t - x\right) + x\\
                                          \mathbf{if}\;z \leq -2.5 \cdot 10^{+61}:\\
                                          \;\;\;\;t\_1\\
                                          
                                          \mathbf{elif}\;z \leq -9.5 \cdot 10^{-247}:\\
                                          \;\;\;\;\mathsf{fma}\left(\frac{z}{a}, x, x\right)\\
                                          
                                          \mathbf{elif}\;z \leq 5.2 \cdot 10^{+17}:\\
                                          \;\;\;\;\frac{t - x}{a} \cdot y\\
                                          
                                          \mathbf{else}:\\
                                          \;\;\;\;t\_1\\
                                          
                                          
                                          \end{array}
                                          \end{array}
                                          
                                          Derivation
                                          1. Split input into 3 regimes
                                          2. if z < -2.50000000000000009e61 or 5.2e17 < 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 x + \color{blue}{\left(t - x\right)} \]
                                            4. Step-by-step derivation
                                              1. lower--.f6438.1

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

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

                                            if -2.50000000000000009e61 < z < -9.49999999999999939e-247

                                            1. Initial program 75.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--.f6459.5

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

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

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

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

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

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

                                                  \[\leadsto x \cdot \left(1 + \color{blue}{\frac{z}{a}}\right) \]
                                                3. Step-by-step derivation
                                                  1. Applied rewrites40.2%

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

                                                  if -9.49999999999999939e-247 < z < 5.2e17

                                                  1. Initial program 93.7%

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

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

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

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

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

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

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

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

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

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

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

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

                                                  Alternative 10: 75.9% accurate, 0.8× speedup?

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

                                                    1. Initial program 72.6%

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

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

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

                                                    if -7.20000000000000022e51 < a < 6.4e19

                                                    1. Initial program 65.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-/.f6479.1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                    if 6.4e19 < a

                                                    1. Initial program 68.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-/.f6489.3

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

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

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

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

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

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

                                                  Alternative 11: 75.6% 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 -7.2 \cdot 10^{+51}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 6.4 \cdot 10^{+19}:\\ \;\;\;\;\mathsf{fma}\left(x - t, \frac{y - a}{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 -7.2e+51)
                                                       t_1
                                                       (if (<= a 6.4e+19) (fma (- x t) (/ (- y a) 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 <= -7.2e+51) {
                                                  		tmp = t_1;
                                                  	} else if (a <= 6.4e+19) {
                                                  		tmp = fma((x - t), ((y - a) / 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 <= -7.2e+51)
                                                  		tmp = t_1;
                                                  	elseif (a <= 6.4e+19)
                                                  		tmp = fma(Float64(x - t), Float64(Float64(y - a) / 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, -7.2e+51], t$95$1, If[LessEqual[a, 6.4e+19], N[(N[(x - t), $MachinePrecision] * N[(N[(y - a), $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 -7.2 \cdot 10^{+51}:\\
                                                  \;\;\;\;t\_1\\
                                                  
                                                  \mathbf{elif}\;a \leq 6.4 \cdot 10^{+19}:\\
                                                  \;\;\;\;\mathsf{fma}\left(x - t, \frac{y - a}{z}, t\right)\\
                                                  
                                                  \mathbf{else}:\\
                                                  \;\;\;\;t\_1\\
                                                  
                                                  
                                                  \end{array}
                                                  \end{array}
                                                  
                                                  Derivation
                                                  1. Split input into 2 regimes
                                                  2. if a < -7.20000000000000022e51 or 6.4e19 < a

                                                    1. Initial program 70.6%

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

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

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

                                                    if -7.20000000000000022e51 < a < 6.4e19

                                                    1. Initial program 65.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-/.f6479.1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                  Alternative 12: 73.5% 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 -7.2 \cdot 10^{+51}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 1.46 \cdot 10^{-18}:\\ \;\;\;\;\mathsf{fma}\left(x - t, \frac{y}{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 -7.2e+51) t_1 (if (<= a 1.46e-18) (fma (- x t) (/ y 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 <= -7.2e+51) {
                                                  		tmp = t_1;
                                                  	} else if (a <= 1.46e-18) {
                                                  		tmp = fma((x - t), (y / 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 <= -7.2e+51)
                                                  		tmp = t_1;
                                                  	elseif (a <= 1.46e-18)
                                                  		tmp = fma(Float64(x - t), Float64(y / 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, -7.2e+51], t$95$1, If[LessEqual[a, 1.46e-18], N[(N[(x - t), $MachinePrecision] * N[(y / 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 -7.2 \cdot 10^{+51}:\\
                                                  \;\;\;\;t\_1\\
                                                  
                                                  \mathbf{elif}\;a \leq 1.46 \cdot 10^{-18}:\\
                                                  \;\;\;\;\mathsf{fma}\left(x - t, \frac{y}{z}, t\right)\\
                                                  
                                                  \mathbf{else}:\\
                                                  \;\;\;\;t\_1\\
                                                  
                                                  
                                                  \end{array}
                                                  \end{array}
                                                  
                                                  Derivation
                                                  1. Split input into 2 regimes
                                                  2. if a < -7.20000000000000022e51 or 1.4599999999999999e-18 < a

                                                    1. Initial program 69.6%

                                                      \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                                    2. Add Preprocessing
                                                    3. Taylor expanded in 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.8

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

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

                                                    if -7.20000000000000022e51 < a < 1.4599999999999999e-18

                                                    1. Initial program 66.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                    Alternative 13: 32.9% accurate, 0.8× speedup?

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

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

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

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

                                                      if -2.50000000000000009e61 < z < -9.49999999999999939e-247

                                                      1. Initial program 75.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--.f6459.5

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

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

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

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

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

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

                                                            \[\leadsto x \cdot \left(1 + \color{blue}{\frac{z}{a}}\right) \]
                                                          3. Step-by-step derivation
                                                            1. Applied rewrites40.2%

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

                                                            if -9.49999999999999939e-247 < z < 5.2e10

                                                            1. Initial program 93.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-/.f6498.3

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

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

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

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

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

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

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

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

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

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

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

                                                                \[\leadsto t \cdot \color{blue}{\frac{y}{a}} \]
                                                            10. Recombined 3 regimes into one program.
                                                            11. Final simplification39.9%

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

                                                            Alternative 14: 69.9% accurate, 0.9× speedup?

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

                                                              1. Initial program 70.7%

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

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

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

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

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

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

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

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

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

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

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

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

                                                                if -7.99999999999999986e73 < a < 9.4999999999999993e50

                                                                1. Initial program 66.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                Alternative 15: 30.3% accurate, 1.0× speedup?

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

                                                                  1. Initial program 46.6%

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

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

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

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

                                                                  if -6.00000000000000047e46 < z < 5.2e10

                                                                  1. Initial program 84.6%

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

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

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

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

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

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

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

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

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

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

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

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

                                                                      \[\leadsto t \cdot \color{blue}{\frac{y}{a}} \]
                                                                  10. Recombined 2 regimes into one program.
                                                                  11. Final simplification34.7%

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

                                                                  Alternative 16: 19.6% accurate, 4.1× speedup?

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

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

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

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

                                                                    \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                  6. Final simplification19.0%

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

                                                                  Alternative 17: 2.8% accurate, 4.8× speedup?

                                                                  \[\begin{array}{l} \\ \left(-x\right) + x \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(Float64(-x) + 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}
                                                                  
                                                                  \\
                                                                  \left(-x\right) + x
                                                                  \end{array}
                                                                  
                                                                  Derivation
                                                                  1. Initial program 67.8%

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

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

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

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

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

                                                                      \[\leadsto x + \left(-x\right) \]
                                                                    2. Final simplification2.7%

                                                                      \[\leadsto \left(-x\right) + x \]
                                                                    3. 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 2024296 
                                                                    (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))))