Numeric.Signal:interpolate from hsignal-0.2.7.1

Percentage Accurate: 80.6% → 91.4%
Time: 7.0s
Alternatives: 16
Speedup: 0.2×

Specification

?
\[\begin{array}{l} \\ x + \left(y - z\right) \cdot \frac{t - x}{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)));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(x, y, z, t, a)
use fmin_fmax_functions
    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(y - z) * Float64(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[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
x + \left(y - z\right) \cdot \frac{t - x}{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 16 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: 80.6% accurate, 1.0× speedup?

\[\begin{array}{l} \\ x + \left(y - z\right) \cdot \frac{t - x}{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)));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(x, y, z, t, a)
use fmin_fmax_functions
    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(y - z) * Float64(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[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Alternative 1: 91.4% accurate, 0.2× speedup?

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

\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;x + \frac{\left(t - x\right) \cdot \left(y - z\right)}{a - z}\\

\mathbf{elif}\;t\_1 \leq -1 \cdot 10^{-182} \lor \neg \left(t\_1 \leq 2 \cdot 10^{-224}\right):\\
\;\;\;\;t\_1\\

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


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

    1. Initial program 68.8%

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

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

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

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

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

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

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

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

    if -inf.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -1e-182 or 2e-224 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z))))

    1. Initial program 92.1%

      \[x + \left(y - z\right) \cdot \frac{t - x}{a - z} \]
    2. Add Preprocessing

    if -1e-182 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 2e-224

    1. Initial program 13.4%

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} + t \]
      6. 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)} \]
    5. Applied rewrites92.3%

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

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

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

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

    Alternative 2: 81.1% accurate, 0.2× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(t - x\right) \cdot \frac{y}{a - z}\\ t_2 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\ t_3 := x + \left(y - z\right) \cdot \frac{t}{a - z}\\ \mathbf{if}\;t\_2 \leq -\infty:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq -1 \cdot 10^{-182}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{-224}:\\ \;\;\;\;\mathsf{fma}\left(x - t, \frac{y - a}{z}, t\right)\\ \mathbf{elif}\;t\_2 \leq 10^{+308}:\\ \;\;\;\;t\_3\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
    (FPCore (x y z t a)
     :precision binary64
     (let* ((t_1 (* (- t x) (/ y (- a z))))
            (t_2 (+ x (* (- y z) (/ (- t x) (- a z)))))
            (t_3 (+ x (* (- y z) (/ t (- a z))))))
       (if (<= t_2 (- INFINITY))
         t_1
         (if (<= t_2 -1e-182)
           t_3
           (if (<= t_2 2e-224)
             (fma (- x t) (/ (- y a) z) t)
             (if (<= t_2 1e+308) t_3 t_1))))))
    double code(double x, double y, double z, double t, double a) {
    	double t_1 = (t - x) * (y / (a - z));
    	double t_2 = x + ((y - z) * ((t - x) / (a - z)));
    	double t_3 = x + ((y - z) * (t / (a - z)));
    	double tmp;
    	if (t_2 <= -((double) INFINITY)) {
    		tmp = t_1;
    	} else if (t_2 <= -1e-182) {
    		tmp = t_3;
    	} else if (t_2 <= 2e-224) {
    		tmp = fma((x - t), ((y - a) / z), t);
    	} else if (t_2 <= 1e+308) {
    		tmp = t_3;
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a)
    	t_1 = Float64(Float64(t - x) * Float64(y / Float64(a - z)))
    	t_2 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z))))
    	t_3 = Float64(x + Float64(Float64(y - z) * Float64(t / Float64(a - z))))
    	tmp = 0.0
    	if (t_2 <= Float64(-Inf))
    		tmp = t_1;
    	elseif (t_2 <= -1e-182)
    		tmp = t_3;
    	elseif (t_2 <= 2e-224)
    		tmp = fma(Float64(x - t), Float64(Float64(y - a) / z), t);
    	elseif (t_2 <= 1e+308)
    		tmp = t_3;
    	else
    		tmp = t_1;
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], t$95$1, If[LessEqual[t$95$2, -1e-182], t$95$3, If[LessEqual[t$95$2, 2e-224], N[(N[(x - t), $MachinePrecision] * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision], If[LessEqual[t$95$2, 1e+308], t$95$3, t$95$1]]]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \left(t - x\right) \cdot \frac{y}{a - z}\\
    t_2 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
    t_3 := x + \left(y - z\right) \cdot \frac{t}{a - z}\\
    \mathbf{if}\;t\_2 \leq -\infty:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;t\_2 \leq -1 \cdot 10^{-182}:\\
    \;\;\;\;t\_3\\
    
    \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{-224}:\\
    \;\;\;\;\mathsf{fma}\left(x - t, \frac{y - a}{z}, t\right)\\
    
    \mathbf{elif}\;t\_2 \leq 10^{+308}:\\
    \;\;\;\;t\_3\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -inf.0 or 1e308 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z))))

      1. Initial program 75.6%

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

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

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

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

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

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

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

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

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

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

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

      if -inf.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -1e-182 or 2e-224 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 1e308

      1. Initial program 92.9%

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

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

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

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

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

      if -1e-182 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 2e-224

      1. Initial program 13.4%

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

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

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

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

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

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

          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} + t \]
        6. 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)} \]
      5. Applied rewrites92.3%

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

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

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

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

      Alternative 3: 91.0% accurate, 0.2× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\ \mathbf{if}\;t\_1 \leq -\infty:\\ \;\;\;\;\left(t - x\right) \cdot \frac{y}{a - z}\\ \mathbf{elif}\;t\_1 \leq -1 \cdot 10^{-182} \lor \neg \left(t\_1 \leq 2 \cdot 10^{-224}\right):\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x - t, \frac{y - a}{z}, t\right)\\ \end{array} \end{array} \]
      (FPCore (x y z t a)
       :precision binary64
       (let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
         (if (<= t_1 (- INFINITY))
           (* (- t x) (/ y (- a z)))
           (if (or (<= t_1 -1e-182) (not (<= t_1 2e-224)))
             t_1
             (fma (- x t) (/ (- y a) z) t)))))
      double code(double x, double y, double z, double t, double a) {
      	double t_1 = x + ((y - z) * ((t - x) / (a - z)));
      	double tmp;
      	if (t_1 <= -((double) INFINITY)) {
      		tmp = (t - x) * (y / (a - z));
      	} else if ((t_1 <= -1e-182) || !(t_1 <= 2e-224)) {
      		tmp = t_1;
      	} else {
      		tmp = fma((x - t), ((y - a) / z), t);
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a)
      	t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z))))
      	tmp = 0.0
      	if (t_1 <= Float64(-Inf))
      		tmp = Float64(Float64(t - x) * Float64(y / Float64(a - z)));
      	elseif ((t_1 <= -1e-182) || !(t_1 <= 2e-224))
      		tmp = t_1;
      	else
      		tmp = fma(Float64(x - t), Float64(Float64(y - a) / z), t);
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t$95$1, -1e-182], N[Not[LessEqual[t$95$1, 2e-224]], $MachinePrecision]], t$95$1, N[(N[(x - t), $MachinePrecision] * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
      \mathbf{if}\;t\_1 \leq -\infty:\\
      \;\;\;\;\left(t - x\right) \cdot \frac{y}{a - z}\\
      
      \mathbf{elif}\;t\_1 \leq -1 \cdot 10^{-182} \lor \neg \left(t\_1 \leq 2 \cdot 10^{-224}\right):\\
      \;\;\;\;t\_1\\
      
      \mathbf{else}:\\
      \;\;\;\;\mathsf{fma}\left(x - t, \frac{y - a}{z}, t\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -inf.0

        1. Initial program 68.8%

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

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

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

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

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

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

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

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

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

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

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

        if -inf.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -1e-182 or 2e-224 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z))))

        1. Initial program 92.1%

          \[x + \left(y - z\right) \cdot \frac{t - x}{a - z} \]
        2. Add Preprocessing

        if -1e-182 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 2e-224

        1. Initial program 13.4%

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

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

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

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

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

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

            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} + t \]
          6. 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)} \]
        5. Applied rewrites92.3%

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

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

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

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

        Alternative 4: 91.0% accurate, 0.2× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t - x}{a - z}\\ t_2 := x + \left(y - z\right) \cdot t\_1\\ \mathbf{if}\;t\_2 \leq -\infty:\\ \;\;\;\;\left(t - x\right) \cdot \frac{y}{a - z}\\ \mathbf{elif}\;t\_2 \leq -1 \cdot 10^{-182} \lor \neg \left(t\_2 \leq 2 \cdot 10^{-224}\right):\\ \;\;\;\;\mathsf{fma}\left(t\_1, y - z, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x - t, \frac{y - a}{z}, t\right)\\ \end{array} \end{array} \]
        (FPCore (x y z t a)
         :precision binary64
         (let* ((t_1 (/ (- t x) (- a z))) (t_2 (+ x (* (- y z) t_1))))
           (if (<= t_2 (- INFINITY))
             (* (- t x) (/ y (- a z)))
             (if (or (<= t_2 -1e-182) (not (<= t_2 2e-224)))
               (fma t_1 (- y z) x)
               (fma (- x t) (/ (- y a) z) t)))))
        double code(double x, double y, double z, double t, double a) {
        	double t_1 = (t - x) / (a - z);
        	double t_2 = x + ((y - z) * t_1);
        	double tmp;
        	if (t_2 <= -((double) INFINITY)) {
        		tmp = (t - x) * (y / (a - z));
        	} else if ((t_2 <= -1e-182) || !(t_2 <= 2e-224)) {
        		tmp = fma(t_1, (y - z), x);
        	} else {
        		tmp = fma((x - t), ((y - a) / z), t);
        	}
        	return tmp;
        }
        
        function code(x, y, z, t, a)
        	t_1 = Float64(Float64(t - x) / Float64(a - z))
        	t_2 = Float64(x + Float64(Float64(y - z) * t_1))
        	tmp = 0.0
        	if (t_2 <= Float64(-Inf))
        		tmp = Float64(Float64(t - x) * Float64(y / Float64(a - z)));
        	elseif ((t_2 <= -1e-182) || !(t_2 <= 2e-224))
        		tmp = fma(t_1, Float64(y - z), x);
        	else
        		tmp = fma(Float64(x - t), Float64(Float64(y - a) / z), t);
        	end
        	return tmp
        end
        
        code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(y - z), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t$95$2, -1e-182], N[Not[LessEqual[t$95$2, 2e-224]], $MachinePrecision]], N[(t$95$1 * N[(y - z), $MachinePrecision] + x), $MachinePrecision], N[(N[(x - t), $MachinePrecision] * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision]]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := \frac{t - x}{a - z}\\
        t_2 := x + \left(y - z\right) \cdot t\_1\\
        \mathbf{if}\;t\_2 \leq -\infty:\\
        \;\;\;\;\left(t - x\right) \cdot \frac{y}{a - z}\\
        
        \mathbf{elif}\;t\_2 \leq -1 \cdot 10^{-182} \lor \neg \left(t\_2 \leq 2 \cdot 10^{-224}\right):\\
        \;\;\;\;\mathsf{fma}\left(t\_1, y - z, x\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;\mathsf{fma}\left(x - t, \frac{y - a}{z}, t\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -inf.0

          1. Initial program 68.8%

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

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

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

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

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

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

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

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

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

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

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

          if -inf.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -1e-182 or 2e-224 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z))))

          1. Initial program 92.1%

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

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

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

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

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

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

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

          if -1e-182 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 2e-224

          1. Initial program 13.4%

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

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

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

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

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

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

              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} + t \]
            6. 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)} \]
          5. Applied rewrites92.3%

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

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

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

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

          Alternative 5: 47.7% accurate, 0.8× speedup?

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

            1. Initial program 68.4%

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

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

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

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

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

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

                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} + t \]
              6. 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)} \]
            5. Applied rewrites73.4%

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

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

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

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

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

                if -3e-37 < z < 1.3e-266

                1. Initial program 88.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if 1.3e-266 < z < 4.10000000000000016e-73

                    1. Initial program 91.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3 \cdot 10^{-37}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x}{z}, y, t\right)\\ \mathbf{elif}\;z \leq 1.3 \cdot 10^{-266}:\\ \;\;\;\;\frac{\left(t - x\right) \cdot y}{a}\\ \mathbf{elif}\;z \leq 4.1 \cdot 10^{-73}:\\ \;\;\;\;\frac{y}{a - z} \cdot t\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x}{z}, y, t\right)\\ \end{array} \]
                      6. Add Preprocessing

                      Alternative 6: 76.4% accurate, 0.8× speedup?

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

                        1. Initial program 92.3%

                          \[x + \left(y - z\right) \cdot \frac{t - x}{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.9

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

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

                        if -3.5000000000000001e72 < a < 5.29999999999999974e-30

                        1. Initial program 66.9%

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

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

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

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

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

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

                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} + t \]
                          6. 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)} \]
                        5. Applied rewrites78.8%

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

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

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

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

                        Alternative 7: 71.5% accurate, 0.8× speedup?

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

                          1. Initial program 68.9%

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

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

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

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

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

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

                              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} + t \]
                            6. 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)} \]
                          5. Applied rewrites73.0%

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

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

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

                            if -4.00000000000000027e-37 < z < 1.02e-116

                            1. Initial program 89.8%

                              \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6479.0

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

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

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

                          Alternative 8: 69.6% accurate, 0.9× speedup?

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

                            1. Initial program 88.4%

                              \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6466.7

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

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

                            if -1.45e-45 < a < 3.5000000000000003e-30

                            1. Initial program 65.7%

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

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

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

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

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

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

                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} + t \]
                              6. 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)} \]
                            5. Applied rewrites84.0%

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

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

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

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

                            Alternative 9: 62.5% accurate, 0.9× speedup?

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

                              1. Initial program 67.9%

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

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

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

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

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

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

                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} + t \]
                                6. 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)} \]
                              5. Applied rewrites75.7%

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

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

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

                                if -3.6499999999999998e-37 < z < 2.9e-19

                                1. Initial program 88.1%

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto x + \frac{y}{a} \cdot t \]
                                  4. Recombined 2 regimes into one program.
                                  5. Final simplification68.3%

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

                                  Alternative 10: 57.8% accurate, 0.9× speedup?

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

                                    1. Initial program 67.9%

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

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

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

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

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

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

                                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} + t \]
                                      6. 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)} \]
                                    5. Applied rewrites75.7%

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

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

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

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

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

                                        if -4.7000000000000003e-37 < z < 2.99999999999999993e-19

                                        1. Initial program 88.1%

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

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

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

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

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

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

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

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

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

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

                                              \[\leadsto x + \frac{y}{a} \cdot t \]
                                          4. Recombined 2 regimes into one program.
                                          5. Final simplification64.6%

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

                                          Alternative 11: 45.5% accurate, 0.9× speedup?

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

                                            1. Initial program 67.7%

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

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

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

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

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

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

                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} + t \]
                                              6. 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)} \]
                                            5. Applied rewrites73.6%

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

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

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

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

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

                                                if -2.39999999999999995e-15 < z < 4.10000000000000016e-73

                                                1. Initial program 89.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                      \[\leadsto \frac{y}{a - z} \cdot \color{blue}{t} \]
                                                  4. Recombined 2 regimes into one program.
                                                  5. Final simplification52.7%

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

                                                  Alternative 12: 42.0% accurate, 0.9× speedup?

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

                                                    1. Initial program 87.0%

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

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

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

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

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

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

                                                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} + t \]
                                                      6. 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)} \]
                                                    5. Applied rewrites51.1%

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

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

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

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

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

                                                        if -1.24000000000000007e39 < t < 5.2000000000000003e-192

                                                        1. Initial program 64.7%

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

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

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

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

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

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

                                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} + t \]
                                                          6. 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)} \]
                                                        5. Applied rewrites56.8%

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

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

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

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

                                                              \[\leadsto \mathsf{fma}\left(\frac{x}{z}, y, t\right) \]
                                                          4. Recombined 2 regimes into one program.
                                                          5. Final simplification46.6%

                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.24 \cdot 10^{+39} \lor \neg \left(t \leq 5.2 \cdot 10^{-192}\right):\\ \;\;\;\;\mathsf{fma}\left(-t, \frac{y}{z}, t\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x}{z}, y, t\right)\\ \end{array} \]
                                                          6. Add Preprocessing

                                                          Alternative 13: 26.6% accurate, 1.0× speedup?

                                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -0.000435 \lor \neg \left(y \leq 2.15 \cdot 10^{+80}\right):\\ \;\;\;\;x \cdot \frac{y}{z}\\ \mathbf{else}:\\ \;\;\;\;x + \left(t - x\right)\\ \end{array} \end{array} \]
                                                          (FPCore (x y z t a)
                                                           :precision binary64
                                                           (if (or (<= y -0.000435) (not (<= y 2.15e+80))) (* x (/ y z)) (+ x (- t x))))
                                                          double code(double x, double y, double z, double t, double a) {
                                                          	double tmp;
                                                          	if ((y <= -0.000435) || !(y <= 2.15e+80)) {
                                                          		tmp = x * (y / z);
                                                          	} else {
                                                          		tmp = x + (t - x);
                                                          	}
                                                          	return tmp;
                                                          }
                                                          
                                                          module fmin_fmax_functions
                                                              implicit none
                                                              private
                                                              public fmax
                                                              public fmin
                                                          
                                                              interface fmax
                                                                  module procedure fmax88
                                                                  module procedure fmax44
                                                                  module procedure fmax84
                                                                  module procedure fmax48
                                                              end interface
                                                              interface fmin
                                                                  module procedure fmin88
                                                                  module procedure fmin44
                                                                  module procedure fmin84
                                                                  module procedure fmin48
                                                              end interface
                                                          contains
                                                              real(8) function fmax88(x, y) result (res)
                                                                  real(8), intent (in) :: x
                                                                  real(8), intent (in) :: y
                                                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                              end function
                                                              real(4) function fmax44(x, y) result (res)
                                                                  real(4), intent (in) :: x
                                                                  real(4), intent (in) :: y
                                                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                              end function
                                                              real(8) function fmax84(x, y) result(res)
                                                                  real(8), intent (in) :: x
                                                                  real(4), intent (in) :: y
                                                                  res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                              end function
                                                              real(8) function fmax48(x, y) result(res)
                                                                  real(4), intent (in) :: x
                                                                  real(8), intent (in) :: y
                                                                  res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                              end function
                                                              real(8) function fmin88(x, y) result (res)
                                                                  real(8), intent (in) :: x
                                                                  real(8), intent (in) :: y
                                                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                              end function
                                                              real(4) function fmin44(x, y) result (res)
                                                                  real(4), intent (in) :: x
                                                                  real(4), intent (in) :: y
                                                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                              end function
                                                              real(8) function fmin84(x, y) result(res)
                                                                  real(8), intent (in) :: x
                                                                  real(4), intent (in) :: y
                                                                  res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                              end function
                                                              real(8) function fmin48(x, y) result(res)
                                                                  real(4), intent (in) :: x
                                                                  real(8), intent (in) :: y
                                                                  res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                              end function
                                                          end module
                                                          
                                                          real(8) function code(x, y, z, t, a)
                                                          use fmin_fmax_functions
                                                              real(8), intent (in) :: x
                                                              real(8), intent (in) :: y
                                                              real(8), intent (in) :: z
                                                              real(8), intent (in) :: t
                                                              real(8), intent (in) :: a
                                                              real(8) :: tmp
                                                              if ((y <= (-0.000435d0)) .or. (.not. (y <= 2.15d+80))) then
                                                                  tmp = x * (y / z)
                                                              else
                                                                  tmp = x + (t - x)
                                                              end if
                                                              code = tmp
                                                          end function
                                                          
                                                          public static double code(double x, double y, double z, double t, double a) {
                                                          	double tmp;
                                                          	if ((y <= -0.000435) || !(y <= 2.15e+80)) {
                                                          		tmp = x * (y / z);
                                                          	} else {
                                                          		tmp = x + (t - x);
                                                          	}
                                                          	return tmp;
                                                          }
                                                          
                                                          def code(x, y, z, t, a):
                                                          	tmp = 0
                                                          	if (y <= -0.000435) or not (y <= 2.15e+80):
                                                          		tmp = x * (y / z)
                                                          	else:
                                                          		tmp = x + (t - x)
                                                          	return tmp
                                                          
                                                          function code(x, y, z, t, a)
                                                          	tmp = 0.0
                                                          	if ((y <= -0.000435) || !(y <= 2.15e+80))
                                                          		tmp = Float64(x * Float64(y / z));
                                                          	else
                                                          		tmp = Float64(x + Float64(t - x));
                                                          	end
                                                          	return tmp
                                                          end
                                                          
                                                          function tmp_2 = code(x, y, z, t, a)
                                                          	tmp = 0.0;
                                                          	if ((y <= -0.000435) || ~((y <= 2.15e+80)))
                                                          		tmp = x * (y / z);
                                                          	else
                                                          		tmp = x + (t - x);
                                                          	end
                                                          	tmp_2 = tmp;
                                                          end
                                                          
                                                          code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -0.000435], N[Not[LessEqual[y, 2.15e+80]], $MachinePrecision]], N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision], N[(x + N[(t - x), $MachinePrecision]), $MachinePrecision]]
                                                          
                                                          \begin{array}{l}
                                                          
                                                          \\
                                                          \begin{array}{l}
                                                          \mathbf{if}\;y \leq -0.000435 \lor \neg \left(y \leq 2.15 \cdot 10^{+80}\right):\\
                                                          \;\;\;\;x \cdot \frac{y}{z}\\
                                                          
                                                          \mathbf{else}:\\
                                                          \;\;\;\;x + \left(t - x\right)\\
                                                          
                                                          
                                                          \end{array}
                                                          \end{array}
                                                          
                                                          Derivation
                                                          1. Split input into 2 regimes
                                                          2. if y < -4.35000000000000003e-4 or 2.15000000000000002e80 < y

                                                            1. Initial program 84.8%

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

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

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

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

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

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

                                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} + t \]
                                                              6. 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)} \]
                                                            5. Applied rewrites56.1%

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

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

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

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

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

                                                                if -4.35000000000000003e-4 < y < 2.15000000000000002e80

                                                                1. Initial program 73.3%

                                                                  \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6426.5

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

                                                                  \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                              4. Recombined 2 regimes into one program.
                                                              5. Final simplification27.4%

                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -0.000435 \lor \neg \left(y \leq 2.15 \cdot 10^{+80}\right):\\ \;\;\;\;x \cdot \frac{y}{z}\\ \mathbf{else}:\\ \;\;\;\;x + \left(t - x\right)\\ \end{array} \]
                                                              6. Add Preprocessing

                                                              Alternative 14: 39.0% accurate, 1.6× speedup?

                                                              \[\begin{array}{l} \\ \mathsf{fma}\left(\frac{x}{z}, y, t\right) \end{array} \]
                                                              (FPCore (x y z t a) :precision binary64 (fma (/ x z) y t))
                                                              double code(double x, double y, double z, double t, double a) {
                                                              	return fma((x / z), y, t);
                                                              }
                                                              
                                                              function code(x, y, z, t, a)
                                                              	return fma(Float64(x / z), y, t)
                                                              end
                                                              
                                                              code[x_, y_, z_, t_, a_] := N[(N[(x / z), $MachinePrecision] * y + t), $MachinePrecision]
                                                              
                                                              \begin{array}{l}
                                                              
                                                              \\
                                                              \mathsf{fma}\left(\frac{x}{z}, y, t\right)
                                                              \end{array}
                                                              
                                                              Derivation
                                                              1. Initial program 77.9%

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

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

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

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

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

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

                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right)} + t \]
                                                                6. 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)} \]
                                                              5. Applied rewrites53.4%

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

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

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

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

                                                                    \[\leadsto \mathsf{fma}\left(\frac{x}{z}, y, t\right) \]
                                                                  2. Final simplification38.0%

                                                                    \[\leadsto \mathsf{fma}\left(\frac{x}{z}, y, t\right) \]
                                                                  3. Add Preprocessing

                                                                  Alternative 15: 19.2% accurate, 4.1× speedup?

                                                                  \[\begin{array}{l} \\ x + \left(t - x\right) \end{array} \]
                                                                  (FPCore (x y z t a) :precision binary64 (+ x (- t x)))
                                                                  double code(double x, double y, double z, double t, double a) {
                                                                  	return x + (t - x);
                                                                  }
                                                                  
                                                                  module fmin_fmax_functions
                                                                      implicit none
                                                                      private
                                                                      public fmax
                                                                      public fmin
                                                                  
                                                                      interface fmax
                                                                          module procedure fmax88
                                                                          module procedure fmax44
                                                                          module procedure fmax84
                                                                          module procedure fmax48
                                                                      end interface
                                                                      interface fmin
                                                                          module procedure fmin88
                                                                          module procedure fmin44
                                                                          module procedure fmin84
                                                                          module procedure fmin48
                                                                      end interface
                                                                  contains
                                                                      real(8) function fmax88(x, y) result (res)
                                                                          real(8), intent (in) :: x
                                                                          real(8), intent (in) :: y
                                                                          res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                      end function
                                                                      real(4) function fmax44(x, y) result (res)
                                                                          real(4), intent (in) :: x
                                                                          real(4), intent (in) :: y
                                                                          res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                      end function
                                                                      real(8) function fmax84(x, y) result(res)
                                                                          real(8), intent (in) :: x
                                                                          real(4), intent (in) :: y
                                                                          res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                      end function
                                                                      real(8) function fmax48(x, y) result(res)
                                                                          real(4), intent (in) :: x
                                                                          real(8), intent (in) :: y
                                                                          res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                      end function
                                                                      real(8) function fmin88(x, y) result (res)
                                                                          real(8), intent (in) :: x
                                                                          real(8), intent (in) :: y
                                                                          res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                      end function
                                                                      real(4) function fmin44(x, y) result (res)
                                                                          real(4), intent (in) :: x
                                                                          real(4), intent (in) :: y
                                                                          res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                      end function
                                                                      real(8) function fmin84(x, y) result(res)
                                                                          real(8), intent (in) :: x
                                                                          real(4), intent (in) :: y
                                                                          res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                      end function
                                                                      real(8) function fmin48(x, y) result(res)
                                                                          real(4), intent (in) :: x
                                                                          real(8), intent (in) :: y
                                                                          res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                      end function
                                                                  end module
                                                                  
                                                                  real(8) function code(x, y, z, t, a)
                                                                  use fmin_fmax_functions
                                                                      real(8), intent (in) :: x
                                                                      real(8), intent (in) :: y
                                                                      real(8), intent (in) :: z
                                                                      real(8), intent (in) :: t
                                                                      real(8), intent (in) :: a
                                                                      code = x + (t - x)
                                                                  end function
                                                                  
                                                                  public static double code(double x, double y, double z, double t, double a) {
                                                                  	return x + (t - x);
                                                                  }
                                                                  
                                                                  def code(x, y, z, t, a):
                                                                  	return x + (t - x)
                                                                  
                                                                  function code(x, y, z, t, a)
                                                                  	return Float64(x + Float64(t - x))
                                                                  end
                                                                  
                                                                  function tmp = code(x, y, z, t, a)
                                                                  	tmp = x + (t - x);
                                                                  end
                                                                  
                                                                  code[x_, y_, z_, t_, a_] := N[(x + N[(t - x), $MachinePrecision]), $MachinePrecision]
                                                                  
                                                                  \begin{array}{l}
                                                                  
                                                                  \\
                                                                  x + \left(t - x\right)
                                                                  \end{array}
                                                                  
                                                                  Derivation
                                                                  1. Initial program 77.9%

                                                                    \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6420.0

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

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

                                                                  Alternative 16: 2.8% accurate, 4.8× speedup?

                                                                  \[\begin{array}{l} \\ x + \left(-x\right) \end{array} \]
                                                                  (FPCore (x y z t a) :precision binary64 (+ x (- x)))
                                                                  double code(double x, double y, double z, double t, double a) {
                                                                  	return x + -x;
                                                                  }
                                                                  
                                                                  module fmin_fmax_functions
                                                                      implicit none
                                                                      private
                                                                      public fmax
                                                                      public fmin
                                                                  
                                                                      interface fmax
                                                                          module procedure fmax88
                                                                          module procedure fmax44
                                                                          module procedure fmax84
                                                                          module procedure fmax48
                                                                      end interface
                                                                      interface fmin
                                                                          module procedure fmin88
                                                                          module procedure fmin44
                                                                          module procedure fmin84
                                                                          module procedure fmin48
                                                                      end interface
                                                                  contains
                                                                      real(8) function fmax88(x, y) result (res)
                                                                          real(8), intent (in) :: x
                                                                          real(8), intent (in) :: y
                                                                          res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                      end function
                                                                      real(4) function fmax44(x, y) result (res)
                                                                          real(4), intent (in) :: x
                                                                          real(4), intent (in) :: y
                                                                          res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                      end function
                                                                      real(8) function fmax84(x, y) result(res)
                                                                          real(8), intent (in) :: x
                                                                          real(4), intent (in) :: y
                                                                          res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                      end function
                                                                      real(8) function fmax48(x, y) result(res)
                                                                          real(4), intent (in) :: x
                                                                          real(8), intent (in) :: y
                                                                          res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                      end function
                                                                      real(8) function fmin88(x, y) result (res)
                                                                          real(8), intent (in) :: x
                                                                          real(8), intent (in) :: y
                                                                          res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                      end function
                                                                      real(4) function fmin44(x, y) result (res)
                                                                          real(4), intent (in) :: x
                                                                          real(4), intent (in) :: y
                                                                          res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                      end function
                                                                      real(8) function fmin84(x, y) result(res)
                                                                          real(8), intent (in) :: x
                                                                          real(4), intent (in) :: y
                                                                          res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                      end function
                                                                      real(8) function fmin48(x, y) result(res)
                                                                          real(4), intent (in) :: x
                                                                          real(8), intent (in) :: y
                                                                          res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                      end function
                                                                  end module
                                                                  
                                                                  real(8) function code(x, y, z, t, a)
                                                                  use fmin_fmax_functions
                                                                      real(8), intent (in) :: x
                                                                      real(8), intent (in) :: y
                                                                      real(8), intent (in) :: z
                                                                      real(8), intent (in) :: t
                                                                      real(8), intent (in) :: a
                                                                      code = x + -x
                                                                  end function
                                                                  
                                                                  public static double code(double x, double y, double z, double t, double a) {
                                                                  	return x + -x;
                                                                  }
                                                                  
                                                                  def code(x, y, z, t, a):
                                                                  	return x + -x
                                                                  
                                                                  function code(x, y, z, t, a)
                                                                  	return Float64(x + Float64(-x))
                                                                  end
                                                                  
                                                                  function tmp = code(x, y, z, t, a)
                                                                  	tmp = x + -x;
                                                                  end
                                                                  
                                                                  code[x_, y_, z_, t_, a_] := N[(x + (-x)), $MachinePrecision]
                                                                  
                                                                  \begin{array}{l}
                                                                  
                                                                  \\
                                                                  x + \left(-x\right)
                                                                  \end{array}
                                                                  
                                                                  Derivation
                                                                  1. Initial program 77.9%

                                                                    \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6420.0

                                                                      \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                  5. Applied rewrites20.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. Add Preprocessing

                                                                    Reproduce

                                                                    ?
                                                                    herbie shell --seed 2025017 
                                                                    (FPCore (x y z t a)
                                                                      :name "Numeric.Signal:interpolate   from hsignal-0.2.7.1"
                                                                      :precision binary64
                                                                      (+ x (* (- y z) (/ (- t x) (- a z)))))