Numeric.Signal:interpolate from hsignal-0.2.7.1

Percentage Accurate: 79.8% → 91.2%
Time: 5.2s
Alternatives: 19
Speedup: 0.3×

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}

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 19 alternatives:

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

Initial Program: 79.8% 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.2% 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 -2 \cdot 10^{-83}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-254}:\\ \;\;\;\;\left(-x\right) \cdot \left(\mathsf{fma}\left(\frac{\frac{\left(y - z\right) \cdot t}{x}}{a - z}, -1, \frac{y}{a - z}\right) - \left(\frac{z}{a - z} + 1\right)\right)\\ \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{-260}:\\ \;\;\;\;-1 \cdot \left(x \cdot \mathsf{fma}\left(-1, \frac{t}{x}, -1 \cdot \frac{\left(y + -1 \cdot \frac{t \cdot y - a \cdot t}{x}\right) - a}{z}\right)\right)\\ \mathbf{elif}\;t\_2 \leq 10^{+305}:\\ \;\;\;\;\mathsf{fma}\left(t\_1, y - z, x\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(t - x\right) \cdot y}{a - z}\\ \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 -2e-83)
     t_2
     (if (<= t_2 -5e-254)
       (*
        (- x)
        (-
         (fma (/ (/ (* (- y z) t) x) (- a z)) -1.0 (/ y (- a z)))
         (+ (/ z (- a z)) 1.0)))
       (if (<= t_2 5e-260)
         (*
          -1.0
          (*
           x
           (fma
            -1.0
            (/ t x)
            (* -1.0 (/ (- (+ y (* -1.0 (/ (- (* t y) (* a t)) x))) a) z)))))
         (if (<= t_2 1e+305)
           (fma t_1 (- y z) x)
           (/ (* (- t x) y) (- a z))))))))
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 <= -2e-83) {
		tmp = t_2;
	} else if (t_2 <= -5e-254) {
		tmp = -x * (fma(((((y - z) * t) / x) / (a - z)), -1.0, (y / (a - z))) - ((z / (a - z)) + 1.0));
	} else if (t_2 <= 5e-260) {
		tmp = -1.0 * (x * fma(-1.0, (t / x), (-1.0 * (((y + (-1.0 * (((t * y) - (a * t)) / x))) - a) / z))));
	} else if (t_2 <= 1e+305) {
		tmp = fma(t_1, (y - z), x);
	} else {
		tmp = ((t - x) * y) / (a - z);
	}
	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 <= -2e-83)
		tmp = t_2;
	elseif (t_2 <= -5e-254)
		tmp = Float64(Float64(-x) * Float64(fma(Float64(Float64(Float64(Float64(y - z) * t) / x) / Float64(a - z)), -1.0, Float64(y / Float64(a - z))) - Float64(Float64(z / Float64(a - z)) + 1.0)));
	elseif (t_2 <= 5e-260)
		tmp = Float64(-1.0 * Float64(x * fma(-1.0, Float64(t / x), Float64(-1.0 * Float64(Float64(Float64(y + Float64(-1.0 * Float64(Float64(Float64(t * y) - Float64(a * t)) / x))) - a) / z)))));
	elseif (t_2 <= 1e+305)
		tmp = fma(t_1, Float64(y - z), x);
	else
		tmp = Float64(Float64(Float64(t - x) * y) / Float64(a - z));
	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, -2e-83], t$95$2, If[LessEqual[t$95$2, -5e-254], N[((-x) * N[(N[(N[(N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] * -1.0 + N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(z / N[(a - z), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 5e-260], N[(-1.0 * N[(x * N[(-1.0 * N[(t / x), $MachinePrecision] + N[(-1.0 * N[(N[(N[(y + N[(-1.0 * N[(N[(N[(t * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+305], N[(t$95$1 * N[(y - z), $MachinePrecision] + x), $MachinePrecision], N[(N[(N[(t - x), $MachinePrecision] * y), $MachinePrecision] / N[(a - z), $MachinePrecision]), $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 -2 \cdot 10^{-83}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-254}:\\
\;\;\;\;\left(-x\right) \cdot \left(\mathsf{fma}\left(\frac{\frac{\left(y - z\right) \cdot t}{x}}{a - z}, -1, \frac{y}{a - z}\right) - \left(\frac{z}{a - z} + 1\right)\right)\\

\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{-260}:\\
\;\;\;\;-1 \cdot \left(x \cdot \mathsf{fma}\left(-1, \frac{t}{x}, -1 \cdot \frac{\left(y + -1 \cdot \frac{t \cdot y - a \cdot t}{x}\right) - a}{z}\right)\right)\\

\mathbf{elif}\;t\_2 \leq 10^{+305}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, y - z, x\right)\\

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


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

    1. Initial program 93.3%

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

    if -2.0000000000000001e-83 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -5.0000000000000003e-254

    1. Initial program 76.6%

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

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

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

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

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

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

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

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

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

    1. Initial program 9.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto -1 \cdot \left(x \cdot \mathsf{fma}\left(-1, \frac{t}{x}, -1 \cdot \frac{\left(y + -1 \cdot \left(\frac{t \cdot y}{x} - \frac{a \cdot t}{x}\right)\right) - a}{z}\right)\right) \]
    9. Applied rewrites85.4%

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

    if 5.0000000000000003e-260 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 9.9999999999999994e304

    1. Initial program 92.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    1. Initial program 86.7%

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

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

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

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

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

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

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

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

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

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

Alternative 2: 76.3% accurate, 0.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(t - x\right) \cdot y}{a - z}\\ t_2 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\ t_3 := \mathsf{fma}\left(\frac{t}{a - z}, y - z, x\right)\\ \mathbf{if}\;t\_2 \leq -\infty:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-254}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{-260}:\\ \;\;\;\;\frac{y - a}{z} \cdot x\\ \mathbf{elif}\;t\_2 \leq 10^{+305}:\\ \;\;\;\;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 (fma (/ t (- a z)) (- y z) x)))
   (if (<= t_2 (- INFINITY))
     t_1
     (if (<= t_2 -5e-254)
       t_3
       (if (<= t_2 5e-260)
         (* (/ (- y a) z) x)
         (if (<= t_2 1e+305) 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 = fma((t / (a - z)), (y - z), x);
	double tmp;
	if (t_2 <= -((double) INFINITY)) {
		tmp = t_1;
	} else if (t_2 <= -5e-254) {
		tmp = t_3;
	} else if (t_2 <= 5e-260) {
		tmp = ((y - a) / z) * x;
	} else if (t_2 <= 1e+305) {
		tmp = t_3;
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a)
	t_1 = Float64(Float64(Float64(t - x) * y) / Float64(a - z))
	t_2 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z))))
	t_3 = fma(Float64(t / Float64(a - z)), Float64(y - z), x)
	tmp = 0.0
	if (t_2 <= Float64(-Inf))
		tmp = t_1;
	elseif (t_2 <= -5e-254)
		tmp = t_3;
	elseif (t_2 <= 5e-260)
		tmp = Float64(Float64(Float64(y - a) / z) * x);
	elseif (t_2 <= 1e+305)
		tmp = t_3;
	else
		tmp = t_1;
	end
	return tmp
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(t - x), $MachinePrecision] * y), $MachinePrecision] / N[(a - z), $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[(N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(y - z), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], t$95$1, If[LessEqual[t$95$2, -5e-254], t$95$3, If[LessEqual[t$95$2, 5e-260], N[(N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[t$95$2, 1e+305], t$95$3, t$95$1]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-254}:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{-260}:\\
\;\;\;\;\frac{y - a}{z} \cdot x\\

\mathbf{elif}\;t\_2 \leq 10^{+305}:\\
\;\;\;\;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 9.9999999999999994e304 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z))))

    1. Initial program 85.5%

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

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

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

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

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

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

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

        \[\leadsto \frac{\left(t - x\right) \cdot y}{a - z} \]
      7. lift--.f6489.4

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

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

    if -inf.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -5.0000000000000003e-254 or 5.0000000000000003e-260 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 9.9999999999999994e304

    1. Initial program 92.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      1. Initial program 9.8%

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

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

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

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

          \[\leadsto \left(-1 \cdot \frac{y - z}{a - z} + 1\right) \cdot x \]
        4. sub-divN/A

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

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

          \[\leadsto \mathsf{fma}\left(\frac{y}{a - z} - \frac{z}{a - z}, -1, 1\right) \cdot x \]
        7. sub-divN/A

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

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

          \[\leadsto \mathsf{fma}\left(\frac{y - z}{a - z}, -1, 1\right) \cdot x \]
        10. lift--.f649.2

          \[\leadsto \mathsf{fma}\left(\frac{y - z}{a - z}, -1, 1\right) \cdot x \]
      4. Applied rewrites9.2%

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

        \[\leadsto \frac{y - a}{z} \cdot x \]
      6. Step-by-step derivation
        1. lower-/.f64N/A

          \[\leadsto \frac{y - a}{z} \cdot x \]
        2. lower--.f6452.7

          \[\leadsto \frac{y - a}{z} \cdot x \]
      7. Applied rewrites52.7%

        \[\leadsto \frac{y - a}{z} \cdot x \]
    6. Recombined 3 regimes into one program.
    7. Add Preprocessing

    Alternative 3: 90.7% 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 -5 \cdot 10^{-254}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{-260}:\\ \;\;\;\;-1 \cdot \left(x \cdot \mathsf{fma}\left(-1, \frac{t}{x}, -1 \cdot \frac{\left(y + -1 \cdot \frac{t \cdot y - a \cdot t}{x}\right) - a}{z}\right)\right)\\ \mathbf{elif}\;t\_2 \leq 10^{+305}:\\ \;\;\;\;\mathsf{fma}\left(t\_1, y - z, x\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(t - x\right) \cdot y}{a - z}\\ \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 -5e-254)
         t_2
         (if (<= t_2 5e-260)
           (*
            -1.0
            (*
             x
             (fma
              -1.0
              (/ t x)
              (* -1.0 (/ (- (+ y (* -1.0 (/ (- (* t y) (* a t)) x))) a) z)))))
           (if (<= t_2 1e+305) (fma t_1 (- y z) x) (/ (* (- t x) y) (- a z)))))))
    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 <= -5e-254) {
    		tmp = t_2;
    	} else if (t_2 <= 5e-260) {
    		tmp = -1.0 * (x * fma(-1.0, (t / x), (-1.0 * (((y + (-1.0 * (((t * y) - (a * t)) / x))) - a) / z))));
    	} else if (t_2 <= 1e+305) {
    		tmp = fma(t_1, (y - z), x);
    	} else {
    		tmp = ((t - x) * y) / (a - z);
    	}
    	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 <= -5e-254)
    		tmp = t_2;
    	elseif (t_2 <= 5e-260)
    		tmp = Float64(-1.0 * Float64(x * fma(-1.0, Float64(t / x), Float64(-1.0 * Float64(Float64(Float64(y + Float64(-1.0 * Float64(Float64(Float64(t * y) - Float64(a * t)) / x))) - a) / z)))));
    	elseif (t_2 <= 1e+305)
    		tmp = fma(t_1, Float64(y - z), x);
    	else
    		tmp = Float64(Float64(Float64(t - x) * y) / Float64(a - z));
    	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, -5e-254], t$95$2, If[LessEqual[t$95$2, 5e-260], N[(-1.0 * N[(x * N[(-1.0 * N[(t / x), $MachinePrecision] + N[(-1.0 * N[(N[(N[(y + N[(-1.0 * N[(N[(N[(t * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+305], N[(t$95$1 * N[(y - z), $MachinePrecision] + x), $MachinePrecision], N[(N[(N[(t - x), $MachinePrecision] * y), $MachinePrecision] / N[(a - z), $MachinePrecision]), $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 -5 \cdot 10^{-254}:\\
    \;\;\;\;t\_2\\
    
    \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{-260}:\\
    \;\;\;\;-1 \cdot \left(x \cdot \mathsf{fma}\left(-1, \frac{t}{x}, -1 \cdot \frac{\left(y + -1 \cdot \frac{t \cdot y - a \cdot t}{x}\right) - a}{z}\right)\right)\\
    
    \mathbf{elif}\;t\_2 \leq 10^{+305}:\\
    \;\;\;\;\mathsf{fma}\left(t\_1, y - z, x\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{\left(t - x\right) \cdot y}{a - z}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 4 regimes
    2. if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -5.0000000000000003e-254

      1. Initial program 91.1%

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

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

      1. Initial program 9.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto -1 \cdot \left(x \cdot \mathsf{fma}\left(-1, \frac{t}{x}, -1 \cdot \frac{\left(y + -1 \cdot \left(\frac{t \cdot y}{x} - \frac{a \cdot t}{x}\right)\right) - a}{z}\right)\right) \]
      9. Applied rewrites85.4%

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

      if 5.0000000000000003e-260 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 9.9999999999999994e304

      1. Initial program 92.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      1. Initial program 86.7%

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

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

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

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

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

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

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

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

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

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

    Alternative 4: 89.6% 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 -5 \cdot 10^{-254}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{-260}:\\ \;\;\;\;\mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}, -1, t\right)\\ \mathbf{elif}\;t\_2 \leq 10^{+305}:\\ \;\;\;\;\mathsf{fma}\left(t\_1, y - z, x\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(t - x\right) \cdot y}{a - z}\\ \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 -5e-254)
         t_2
         (if (<= t_2 5e-260)
           (fma (/ (* (- t x) (- y a)) z) -1.0 t)
           (if (<= t_2 1e+305) (fma t_1 (- y z) x) (/ (* (- t x) y) (- a z)))))))
    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 <= -5e-254) {
    		tmp = t_2;
    	} else if (t_2 <= 5e-260) {
    		tmp = fma((((t - x) * (y - a)) / z), -1.0, t);
    	} else if (t_2 <= 1e+305) {
    		tmp = fma(t_1, (y - z), x);
    	} else {
    		tmp = ((t - x) * y) / (a - z);
    	}
    	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 <= -5e-254)
    		tmp = t_2;
    	elseif (t_2 <= 5e-260)
    		tmp = fma(Float64(Float64(Float64(t - x) * Float64(y - a)) / z), -1.0, t);
    	elseif (t_2 <= 1e+305)
    		tmp = fma(t_1, Float64(y - z), x);
    	else
    		tmp = Float64(Float64(Float64(t - x) * y) / Float64(a - z));
    	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, -5e-254], t$95$2, If[LessEqual[t$95$2, 5e-260], N[(N[(N[(N[(t - x), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] * -1.0 + t), $MachinePrecision], If[LessEqual[t$95$2, 1e+305], N[(t$95$1 * N[(y - z), $MachinePrecision] + x), $MachinePrecision], N[(N[(N[(t - x), $MachinePrecision] * y), $MachinePrecision] / N[(a - z), $MachinePrecision]), $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 -5 \cdot 10^{-254}:\\
    \;\;\;\;t\_2\\
    
    \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{-260}:\\
    \;\;\;\;\mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}, -1, t\right)\\
    
    \mathbf{elif}\;t\_2 \leq 10^{+305}:\\
    \;\;\;\;\mathsf{fma}\left(t\_1, y - z, x\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{\left(t - x\right) \cdot y}{a - z}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 4 regimes
    2. if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -5.0000000000000003e-254

      1. Initial program 91.1%

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

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

      1. Initial program 9.8%

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

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

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

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

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

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

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

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

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

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

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

      if 5.0000000000000003e-260 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 9.9999999999999994e304

      1. Initial program 92.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      1. Initial program 86.7%

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

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

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

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

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

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

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

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

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

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

    Alternative 5: 89.6% accurate, 0.2× speedup?

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

      1. Initial program 91.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      1. Initial program 9.8%

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

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

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

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

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

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

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

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

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

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

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

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

      1. Initial program 86.7%

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

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

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

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

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

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

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

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

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

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

    Alternative 6: 86.2% accurate, 0.2× speedup?

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

      1. Initial program 91.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -5.0000000000000003e-254 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 2e-276

      1. Initial program 8.7%

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

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

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

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

          \[\leadsto \left(-1 \cdot \frac{y - z}{a - z} + 1\right) \cdot x \]
        4. sub-divN/A

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

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

          \[\leadsto \mathsf{fma}\left(\frac{y}{a - z} - \frac{z}{a - z}, -1, 1\right) \cdot x \]
        7. sub-divN/A

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

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

          \[\leadsto \mathsf{fma}\left(\frac{y - z}{a - z}, -1, 1\right) \cdot x \]
        10. lift--.f648.5

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

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

        \[\leadsto \frac{y - a}{z} \cdot x \]
      6. Step-by-step derivation
        1. lower-/.f64N/A

          \[\leadsto \frac{y - a}{z} \cdot x \]
        2. lower--.f6454.1

          \[\leadsto \frac{y - a}{z} \cdot x \]
      7. Applied rewrites54.1%

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

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

      1. Initial program 86.7%

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

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

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

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

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

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

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

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

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

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

    Alternative 7: 87.0% accurate, 0.3× speedup?

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

      1. Initial program 77.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -2.44999999999999976e-156 < x < 4.40000000000000002e-94

      1. Initial program 86.4%

        \[x + \left(y - z\right) \cdot \frac{t - x}{a - z} \]
    3. Recombined 2 regimes into one program.
    4. Add Preprocessing

    Alternative 8: 59.9% accurate, 0.6× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -6 \cdot 10^{+120}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq -1.8 \cdot 10^{-43}:\\ \;\;\;\;\mathsf{fma}\left(\frac{t}{a}, y - z, x\right)\\ \mathbf{elif}\;z \leq 4.3 \cdot 10^{-134}:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{t - x}{a}, x\right)\\ \mathbf{elif}\;z \leq 7 \cdot 10^{+155}:\\ \;\;\;\;\mathsf{fma}\left(\frac{t}{a - z}, y, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \end{array} \]
    (FPCore (x y z t a)
     :precision binary64
     (if (<= z -6e+120)
       t
       (if (<= z -1.8e-43)
         (fma (/ t a) (- y z) x)
         (if (<= z 4.3e-134)
           (fma y (/ (- t x) a) x)
           (if (<= z 7e+155) (fma (/ t (- a z)) y x) t)))))
    double code(double x, double y, double z, double t, double a) {
    	double tmp;
    	if (z <= -6e+120) {
    		tmp = t;
    	} else if (z <= -1.8e-43) {
    		tmp = fma((t / a), (y - z), x);
    	} else if (z <= 4.3e-134) {
    		tmp = fma(y, ((t - x) / a), x);
    	} else if (z <= 7e+155) {
    		tmp = fma((t / (a - z)), y, x);
    	} else {
    		tmp = t;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a)
    	tmp = 0.0
    	if (z <= -6e+120)
    		tmp = t;
    	elseif (z <= -1.8e-43)
    		tmp = fma(Float64(t / a), Float64(y - z), x);
    	elseif (z <= 4.3e-134)
    		tmp = fma(y, Float64(Float64(t - x) / a), x);
    	elseif (z <= 7e+155)
    		tmp = fma(Float64(t / Float64(a - z)), y, x);
    	else
    		tmp = t;
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_, a_] := If[LessEqual[z, -6e+120], t, If[LessEqual[z, -1.8e-43], N[(N[(t / a), $MachinePrecision] * N[(y - z), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 4.3e-134], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 7e+155], N[(N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision], t]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;z \leq -6 \cdot 10^{+120}:\\
    \;\;\;\;t\\
    
    \mathbf{elif}\;z \leq -1.8 \cdot 10^{-43}:\\
    \;\;\;\;\mathsf{fma}\left(\frac{t}{a}, y - z, x\right)\\
    
    \mathbf{elif}\;z \leq 4.3 \cdot 10^{-134}:\\
    \;\;\;\;\mathsf{fma}\left(y, \frac{t - x}{a}, x\right)\\
    
    \mathbf{elif}\;z \leq 7 \cdot 10^{+155}:\\
    \;\;\;\;\mathsf{fma}\left(\frac{t}{a - z}, y, x\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;t\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 4 regimes
    2. if z < -6e120 or 6.99999999999999969e155 < z

      1. Initial program 58.1%

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

        \[\leadsto \color{blue}{t} \]
      3. Step-by-step derivation
        1. Applied rewrites55.3%

          \[\leadsto \color{blue}{t} \]

        if -6e120 < z < -1.7999999999999999e-43

        1. Initial program 84.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -1.7999999999999999e-43 < z < 4.29999999999999987e-134

            1. Initial program 92.1%

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

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

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

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

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

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

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

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

            if 4.29999999999999987e-134 < z < 6.99999999999999969e155

            1. Initial program 84.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              Alternative 9: 59.0% accurate, 0.7× speedup?

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

                1. Initial program 58.1%

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

                  \[\leadsto \color{blue}{t} \]
                3. Step-by-step derivation
                  1. Applied rewrites55.3%

                    \[\leadsto \color{blue}{t} \]

                  if -6e120 < z < -1.7999999999999999e-43

                  1. Initial program 84.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if -1.7999999999999999e-43 < z < 6.50000000000000046e155

                      1. Initial program 88.9%

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

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

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

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

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

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

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

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

                    Alternative 10: 68.9% accurate, 0.8× speedup?

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

                      1. Initial program 69.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto t \cdot \color{blue}{\frac{y - z}{a - z}} \]
                        3. lift-/.f64N/A

                          \[\leadsto t \cdot \frac{y - z}{\color{blue}{a - z}} \]
                        4. lift--.f64N/A

                          \[\leadsto t \cdot \frac{y - z}{\color{blue}{a} - z} \]
                        5. lift--.f6460.9

                          \[\leadsto t \cdot \frac{y - z}{a - \color{blue}{z}} \]
                      6. Applied rewrites60.9%

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

                      if -3.19999999999999982e59 < z < 2.40000000000000026e-66

                      1. Initial program 91.1%

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

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

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

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

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

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

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

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

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

                    Alternative 11: 36.9% accurate, 0.8× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -8.4 \cdot 10^{+124}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq -1.95 \cdot 10^{-118}:\\ \;\;\;\;t\\ \mathbf{elif}\;a \leq -4 \cdot 10^{-294}:\\ \;\;\;\;\frac{y}{z} \cdot x\\ \mathbf{elif}\;a \leq 1.62 \cdot 10^{+122}:\\ \;\;\;\;t\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
                    (FPCore (x y z t a)
                     :precision binary64
                     (if (<= a -8.4e+124)
                       x
                       (if (<= a -1.95e-118)
                         t
                         (if (<= a -4e-294) (* (/ y z) x) (if (<= a 1.62e+122) t x)))))
                    double code(double x, double y, double z, double t, double a) {
                    	double tmp;
                    	if (a <= -8.4e+124) {
                    		tmp = x;
                    	} else if (a <= -1.95e-118) {
                    		tmp = t;
                    	} else if (a <= -4e-294) {
                    		tmp = (y / z) * x;
                    	} else if (a <= 1.62e+122) {
                    		tmp = t;
                    	} else {
                    		tmp = 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 (a <= (-8.4d+124)) then
                            tmp = x
                        else if (a <= (-1.95d-118)) then
                            tmp = t
                        else if (a <= (-4d-294)) then
                            tmp = (y / z) * x
                        else if (a <= 1.62d+122) then
                            tmp = t
                        else
                            tmp = x
                        end if
                        code = tmp
                    end function
                    
                    public static double code(double x, double y, double z, double t, double a) {
                    	double tmp;
                    	if (a <= -8.4e+124) {
                    		tmp = x;
                    	} else if (a <= -1.95e-118) {
                    		tmp = t;
                    	} else if (a <= -4e-294) {
                    		tmp = (y / z) * x;
                    	} else if (a <= 1.62e+122) {
                    		tmp = t;
                    	} else {
                    		tmp = x;
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y, z, t, a):
                    	tmp = 0
                    	if a <= -8.4e+124:
                    		tmp = x
                    	elif a <= -1.95e-118:
                    		tmp = t
                    	elif a <= -4e-294:
                    		tmp = (y / z) * x
                    	elif a <= 1.62e+122:
                    		tmp = t
                    	else:
                    		tmp = x
                    	return tmp
                    
                    function code(x, y, z, t, a)
                    	tmp = 0.0
                    	if (a <= -8.4e+124)
                    		tmp = x;
                    	elseif (a <= -1.95e-118)
                    		tmp = t;
                    	elseif (a <= -4e-294)
                    		tmp = Float64(Float64(y / z) * x);
                    	elseif (a <= 1.62e+122)
                    		tmp = t;
                    	else
                    		tmp = x;
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y, z, t, a)
                    	tmp = 0.0;
                    	if (a <= -8.4e+124)
                    		tmp = x;
                    	elseif (a <= -1.95e-118)
                    		tmp = t;
                    	elseif (a <= -4e-294)
                    		tmp = (y / z) * x;
                    	elseif (a <= 1.62e+122)
                    		tmp = t;
                    	else
                    		tmp = x;
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[x_, y_, z_, t_, a_] := If[LessEqual[a, -8.4e+124], x, If[LessEqual[a, -1.95e-118], t, If[LessEqual[a, -4e-294], N[(N[(y / z), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[a, 1.62e+122], t, x]]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    \mathbf{if}\;a \leq -8.4 \cdot 10^{+124}:\\
                    \;\;\;\;x\\
                    
                    \mathbf{elif}\;a \leq -1.95 \cdot 10^{-118}:\\
                    \;\;\;\;t\\
                    
                    \mathbf{elif}\;a \leq -4 \cdot 10^{-294}:\\
                    \;\;\;\;\frac{y}{z} \cdot x\\
                    
                    \mathbf{elif}\;a \leq 1.62 \cdot 10^{+122}:\\
                    \;\;\;\;t\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;x\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 3 regimes
                    2. if a < -8.40000000000000046e124 or 1.61999999999999994e122 < a

                      1. Initial program 89.7%

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

                        \[\leadsto \color{blue}{x} \]
                      3. Step-by-step derivation
                        1. Applied rewrites51.3%

                          \[\leadsto \color{blue}{x} \]

                        if -8.40000000000000046e124 < a < -1.95e-118 or -4.00000000000000007e-294 < a < 1.61999999999999994e122

                        1. Initial program 77.2%

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

                          \[\leadsto \color{blue}{t} \]
                        3. Step-by-step derivation
                          1. Applied rewrites30.4%

                            \[\leadsto \color{blue}{t} \]

                          if -1.95e-118 < a < -4.00000000000000007e-294

                          1. Initial program 69.6%

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

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

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

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

                              \[\leadsto \left(-1 \cdot \frac{y - z}{a - z} + 1\right) \cdot x \]
                            4. sub-divN/A

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

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

                              \[\leadsto \mathsf{fma}\left(\frac{y}{a - z} - \frac{z}{a - z}, -1, 1\right) \cdot x \]
                            7. sub-divN/A

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

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

                              \[\leadsto \mathsf{fma}\left(\frac{y - z}{a - z}, -1, 1\right) \cdot x \]
                            10. lift--.f6431.3

                              \[\leadsto \mathsf{fma}\left(\frac{y - z}{a - z}, -1, 1\right) \cdot x \]
                          4. Applied rewrites31.3%

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

                            \[\leadsto \frac{y}{z} \cdot x \]
                          6. Step-by-step derivation
                            1. lower-/.f6432.7

                              \[\leadsto \frac{y}{z} \cdot x \]
                          7. Applied rewrites32.7%

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

                        Alternative 12: 63.6% accurate, 0.8× speedup?

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

                          1. Initial program 89.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              if -8.40000000000000046e124 < a < 3.79999999999999989e110

                              1. Initial program 75.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto t \cdot \color{blue}{\frac{y - z}{a - z}} \]
                                3. lift-/.f64N/A

                                  \[\leadsto t \cdot \frac{y - z}{\color{blue}{a - z}} \]
                                4. lift--.f64N/A

                                  \[\leadsto t \cdot \frac{y - z}{\color{blue}{a} - z} \]
                                5. lift--.f6458.6

                                  \[\leadsto t \cdot \frac{y - z}{a - \color{blue}{z}} \]
                              6. Applied rewrites58.6%

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

                            Alternative 13: 58.1% accurate, 0.8× speedup?

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

                              1. Initial program 87.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  if -4.50000000000000012e42 < a < 2.2999999999999999e-25

                                  1. Initial program 72.7%

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

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

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

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

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

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

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

                                      \[\leadsto \frac{\left(t - x\right) \cdot y}{a - z} \]
                                    7. lift--.f6451.4

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

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

                                Alternative 14: 59.0% accurate, 0.9× speedup?

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

                                  1. Initial program 58.1%

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

                                    \[\leadsto \color{blue}{t} \]
                                  3. Step-by-step derivation
                                    1. Applied rewrites55.3%

                                      \[\leadsto \color{blue}{t} \]

                                    if -4.69999999999999993e120 < z < 6.50000000000000046e155

                                    1. Initial program 88.1%

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

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

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

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

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

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

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

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

                                  Alternative 15: 50.3% accurate, 0.9× speedup?

                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.12 \cdot 10^{+73}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq 7 \cdot 10^{+155}:\\ \;\;\;\;x + \frac{t \cdot y}{a}\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \end{array} \]
                                  (FPCore (x y z t a)
                                   :precision binary64
                                   (if (<= z -1.12e+73) t (if (<= z 7e+155) (+ x (/ (* t y) a)) t)))
                                  double code(double x, double y, double z, double t, double a) {
                                  	double tmp;
                                  	if (z <= -1.12e+73) {
                                  		tmp = t;
                                  	} else if (z <= 7e+155) {
                                  		tmp = x + ((t * y) / a);
                                  	} else {
                                  		tmp = t;
                                  	}
                                  	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 (z <= (-1.12d+73)) then
                                          tmp = t
                                      else if (z <= 7d+155) then
                                          tmp = x + ((t * y) / a)
                                      else
                                          tmp = t
                                      end if
                                      code = tmp
                                  end function
                                  
                                  public static double code(double x, double y, double z, double t, double a) {
                                  	double tmp;
                                  	if (z <= -1.12e+73) {
                                  		tmp = t;
                                  	} else if (z <= 7e+155) {
                                  		tmp = x + ((t * y) / a);
                                  	} else {
                                  		tmp = t;
                                  	}
                                  	return tmp;
                                  }
                                  
                                  def code(x, y, z, t, a):
                                  	tmp = 0
                                  	if z <= -1.12e+73:
                                  		tmp = t
                                  	elif z <= 7e+155:
                                  		tmp = x + ((t * y) / a)
                                  	else:
                                  		tmp = t
                                  	return tmp
                                  
                                  function code(x, y, z, t, a)
                                  	tmp = 0.0
                                  	if (z <= -1.12e+73)
                                  		tmp = t;
                                  	elseif (z <= 7e+155)
                                  		tmp = Float64(x + Float64(Float64(t * y) / a));
                                  	else
                                  		tmp = t;
                                  	end
                                  	return tmp
                                  end
                                  
                                  function tmp_2 = code(x, y, z, t, a)
                                  	tmp = 0.0;
                                  	if (z <= -1.12e+73)
                                  		tmp = t;
                                  	elseif (z <= 7e+155)
                                  		tmp = x + ((t * y) / a);
                                  	else
                                  		tmp = t;
                                  	end
                                  	tmp_2 = tmp;
                                  end
                                  
                                  code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.12e+73], t, If[LessEqual[z, 7e+155], N[(x + N[(N[(t * y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], t]]
                                  
                                  \begin{array}{l}
                                  
                                  \\
                                  \begin{array}{l}
                                  \mathbf{if}\;z \leq -1.12 \cdot 10^{+73}:\\
                                  \;\;\;\;t\\
                                  
                                  \mathbf{elif}\;z \leq 7 \cdot 10^{+155}:\\
                                  \;\;\;\;x + \frac{t \cdot y}{a}\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;t\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 2 regimes
                                  2. if z < -1.12e73 or 6.99999999999999969e155 < z

                                    1. Initial program 60.5%

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

                                      \[\leadsto \color{blue}{t} \]
                                    3. Step-by-step derivation
                                      1. Applied rewrites52.5%

                                        \[\leadsto \color{blue}{t} \]

                                      if -1.12e73 < z < 6.99999999999999969e155

                                      1. Initial program 88.6%

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

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

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

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

                                          \[\leadsto x + \frac{\left(t - x\right) \cdot y}{a} \]
                                        4. lift--.f6458.4

                                          \[\leadsto x + \frac{\left(t - x\right) \cdot y}{a} \]
                                      4. Applied rewrites58.4%

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

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

                                          \[\leadsto x + \frac{t \cdot y}{a} \]
                                      7. Recombined 2 regimes into one program.
                                      8. Add Preprocessing

                                      Alternative 16: 35.4% accurate, 0.9× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -2.45 \cdot 10^{+120}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq 1.15 \cdot 10^{-295}:\\ \;\;\;\;\frac{t \cdot \left(y - z\right)}{a}\\ \mathbf{elif}\;z \leq 6.5 \cdot 10^{+155}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \end{array} \]
                                      (FPCore (x y z t a)
                                       :precision binary64
                                       (if (<= z -2.45e+120)
                                         t
                                         (if (<= z 1.15e-295) (/ (* t (- y z)) a) (if (<= z 6.5e+155) x t))))
                                      double code(double x, double y, double z, double t, double a) {
                                      	double tmp;
                                      	if (z <= -2.45e+120) {
                                      		tmp = t;
                                      	} else if (z <= 1.15e-295) {
                                      		tmp = (t * (y - z)) / a;
                                      	} else if (z <= 6.5e+155) {
                                      		tmp = x;
                                      	} else {
                                      		tmp = t;
                                      	}
                                      	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 (z <= (-2.45d+120)) then
                                              tmp = t
                                          else if (z <= 1.15d-295) then
                                              tmp = (t * (y - z)) / a
                                          else if (z <= 6.5d+155) then
                                              tmp = x
                                          else
                                              tmp = t
                                          end if
                                          code = tmp
                                      end function
                                      
                                      public static double code(double x, double y, double z, double t, double a) {
                                      	double tmp;
                                      	if (z <= -2.45e+120) {
                                      		tmp = t;
                                      	} else if (z <= 1.15e-295) {
                                      		tmp = (t * (y - z)) / a;
                                      	} else if (z <= 6.5e+155) {
                                      		tmp = x;
                                      	} else {
                                      		tmp = t;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      def code(x, y, z, t, a):
                                      	tmp = 0
                                      	if z <= -2.45e+120:
                                      		tmp = t
                                      	elif z <= 1.15e-295:
                                      		tmp = (t * (y - z)) / a
                                      	elif z <= 6.5e+155:
                                      		tmp = x
                                      	else:
                                      		tmp = t
                                      	return tmp
                                      
                                      function code(x, y, z, t, a)
                                      	tmp = 0.0
                                      	if (z <= -2.45e+120)
                                      		tmp = t;
                                      	elseif (z <= 1.15e-295)
                                      		tmp = Float64(Float64(t * Float64(y - z)) / a);
                                      	elseif (z <= 6.5e+155)
                                      		tmp = x;
                                      	else
                                      		tmp = t;
                                      	end
                                      	return tmp
                                      end
                                      
                                      function tmp_2 = code(x, y, z, t, a)
                                      	tmp = 0.0;
                                      	if (z <= -2.45e+120)
                                      		tmp = t;
                                      	elseif (z <= 1.15e-295)
                                      		tmp = (t * (y - z)) / a;
                                      	elseif (z <= 6.5e+155)
                                      		tmp = x;
                                      	else
                                      		tmp = t;
                                      	end
                                      	tmp_2 = tmp;
                                      end
                                      
                                      code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.45e+120], t, If[LessEqual[z, 1.15e-295], N[(N[(t * N[(y - z), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[z, 6.5e+155], x, t]]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      \mathbf{if}\;z \leq -2.45 \cdot 10^{+120}:\\
                                      \;\;\;\;t\\
                                      
                                      \mathbf{elif}\;z \leq 1.15 \cdot 10^{-295}:\\
                                      \;\;\;\;\frac{t \cdot \left(y - z\right)}{a}\\
                                      
                                      \mathbf{elif}\;z \leq 6.5 \cdot 10^{+155}:\\
                                      \;\;\;\;x\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;t\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 3 regimes
                                      2. if z < -2.45000000000000005e120 or 6.50000000000000046e155 < z

                                        1. Initial program 58.1%

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

                                          \[\leadsto \color{blue}{t} \]
                                        3. Step-by-step derivation
                                          1. Applied rewrites55.3%

                                            \[\leadsto \color{blue}{t} \]

                                          if -2.45000000000000005e120 < z < 1.15e-295

                                          1. Initial program 89.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                              \[\leadsto \frac{t \cdot \left(y - z\right)}{a - z} \]
                                            4. lift--.f6440.9

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

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

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

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

                                            if 1.15e-295 < z < 6.50000000000000046e155

                                            1. Initial program 86.9%

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

                                              \[\leadsto \color{blue}{x} \]
                                            3. Step-by-step derivation
                                              1. Applied rewrites28.7%

                                                \[\leadsto \color{blue}{x} \]
                                            4. Recombined 3 regimes into one program.
                                            5. Add Preprocessing

                                            Alternative 17: 37.1% accurate, 0.9× speedup?

                                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -1.6 \cdot 10^{+47}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq -2 \cdot 10^{-295}:\\ \;\;\;\;\frac{y - a}{z} \cdot x\\ \mathbf{elif}\;a \leq 1.62 \cdot 10^{+122}:\\ \;\;\;\;t\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
                                            (FPCore (x y z t a)
                                             :precision binary64
                                             (if (<= a -1.6e+47)
                                               x
                                               (if (<= a -2e-295) (* (/ (- y a) z) x) (if (<= a 1.62e+122) t x))))
                                            double code(double x, double y, double z, double t, double a) {
                                            	double tmp;
                                            	if (a <= -1.6e+47) {
                                            		tmp = x;
                                            	} else if (a <= -2e-295) {
                                            		tmp = ((y - a) / z) * x;
                                            	} else if (a <= 1.62e+122) {
                                            		tmp = t;
                                            	} else {
                                            		tmp = 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 (a <= (-1.6d+47)) then
                                                    tmp = x
                                                else if (a <= (-2d-295)) then
                                                    tmp = ((y - a) / z) * x
                                                else if (a <= 1.62d+122) then
                                                    tmp = t
                                                else
                                                    tmp = x
                                                end if
                                                code = tmp
                                            end function
                                            
                                            public static double code(double x, double y, double z, double t, double a) {
                                            	double tmp;
                                            	if (a <= -1.6e+47) {
                                            		tmp = x;
                                            	} else if (a <= -2e-295) {
                                            		tmp = ((y - a) / z) * x;
                                            	} else if (a <= 1.62e+122) {
                                            		tmp = t;
                                            	} else {
                                            		tmp = x;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            def code(x, y, z, t, a):
                                            	tmp = 0
                                            	if a <= -1.6e+47:
                                            		tmp = x
                                            	elif a <= -2e-295:
                                            		tmp = ((y - a) / z) * x
                                            	elif a <= 1.62e+122:
                                            		tmp = t
                                            	else:
                                            		tmp = x
                                            	return tmp
                                            
                                            function code(x, y, z, t, a)
                                            	tmp = 0.0
                                            	if (a <= -1.6e+47)
                                            		tmp = x;
                                            	elseif (a <= -2e-295)
                                            		tmp = Float64(Float64(Float64(y - a) / z) * x);
                                            	elseif (a <= 1.62e+122)
                                            		tmp = t;
                                            	else
                                            		tmp = x;
                                            	end
                                            	return tmp
                                            end
                                            
                                            function tmp_2 = code(x, y, z, t, a)
                                            	tmp = 0.0;
                                            	if (a <= -1.6e+47)
                                            		tmp = x;
                                            	elseif (a <= -2e-295)
                                            		tmp = ((y - a) / z) * x;
                                            	elseif (a <= 1.62e+122)
                                            		tmp = t;
                                            	else
                                            		tmp = x;
                                            	end
                                            	tmp_2 = tmp;
                                            end
                                            
                                            code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.6e+47], x, If[LessEqual[a, -2e-295], N[(N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[a, 1.62e+122], t, x]]]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            \begin{array}{l}
                                            \mathbf{if}\;a \leq -1.6 \cdot 10^{+47}:\\
                                            \;\;\;\;x\\
                                            
                                            \mathbf{elif}\;a \leq -2 \cdot 10^{-295}:\\
                                            \;\;\;\;\frac{y - a}{z} \cdot x\\
                                            
                                            \mathbf{elif}\;a \leq 1.62 \cdot 10^{+122}:\\
                                            \;\;\;\;t\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;x\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            
                                            Derivation
                                            1. Split input into 3 regimes
                                            2. if a < -1.6e47 or 1.61999999999999994e122 < a

                                              1. Initial program 89.1%

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

                                                \[\leadsto \color{blue}{x} \]
                                              3. Step-by-step derivation
                                                1. Applied rewrites47.5%

                                                  \[\leadsto \color{blue}{x} \]

                                                if -1.6e47 < a < -2.00000000000000012e-295

                                                1. Initial program 73.0%

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

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

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

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

                                                    \[\leadsto \left(-1 \cdot \frac{y - z}{a - z} + 1\right) \cdot x \]
                                                  4. sub-divN/A

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

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

                                                    \[\leadsto \mathsf{fma}\left(\frac{y}{a - z} - \frac{z}{a - z}, -1, 1\right) \cdot x \]
                                                  7. sub-divN/A

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

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

                                                    \[\leadsto \mathsf{fma}\left(\frac{y - z}{a - z}, -1, 1\right) \cdot x \]
                                                  10. lift--.f6432.9

                                                    \[\leadsto \mathsf{fma}\left(\frac{y - z}{a - z}, -1, 1\right) \cdot x \]
                                                4. Applied rewrites32.9%

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

                                                  \[\leadsto \frac{y - a}{z} \cdot x \]
                                                6. Step-by-step derivation
                                                  1. lower-/.f64N/A

                                                    \[\leadsto \frac{y - a}{z} \cdot x \]
                                                  2. lower--.f6430.3

                                                    \[\leadsto \frac{y - a}{z} \cdot x \]
                                                7. Applied rewrites30.3%

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

                                                if -2.00000000000000012e-295 < a < 1.61999999999999994e122

                                                1. Initial program 76.0%

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

                                                  \[\leadsto \color{blue}{t} \]
                                                3. Step-by-step derivation
                                                  1. Applied rewrites32.1%

                                                    \[\leadsto \color{blue}{t} \]
                                                4. Recombined 3 regimes into one program.
                                                5. Add Preprocessing

                                                Alternative 18: 37.4% accurate, 2.2× speedup?

                                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -8.4 \cdot 10^{+124}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 1.62 \cdot 10^{+122}:\\ \;\;\;\;t\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
                                                (FPCore (x y z t a)
                                                 :precision binary64
                                                 (if (<= a -8.4e+124) x (if (<= a 1.62e+122) t x)))
                                                double code(double x, double y, double z, double t, double a) {
                                                	double tmp;
                                                	if (a <= -8.4e+124) {
                                                		tmp = x;
                                                	} else if (a <= 1.62e+122) {
                                                		tmp = t;
                                                	} else {
                                                		tmp = 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 (a <= (-8.4d+124)) then
                                                        tmp = x
                                                    else if (a <= 1.62d+122) then
                                                        tmp = t
                                                    else
                                                        tmp = x
                                                    end if
                                                    code = tmp
                                                end function
                                                
                                                public static double code(double x, double y, double z, double t, double a) {
                                                	double tmp;
                                                	if (a <= -8.4e+124) {
                                                		tmp = x;
                                                	} else if (a <= 1.62e+122) {
                                                		tmp = t;
                                                	} else {
                                                		tmp = x;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                def code(x, y, z, t, a):
                                                	tmp = 0
                                                	if a <= -8.4e+124:
                                                		tmp = x
                                                	elif a <= 1.62e+122:
                                                		tmp = t
                                                	else:
                                                		tmp = x
                                                	return tmp
                                                
                                                function code(x, y, z, t, a)
                                                	tmp = 0.0
                                                	if (a <= -8.4e+124)
                                                		tmp = x;
                                                	elseif (a <= 1.62e+122)
                                                		tmp = t;
                                                	else
                                                		tmp = x;
                                                	end
                                                	return tmp
                                                end
                                                
                                                function tmp_2 = code(x, y, z, t, a)
                                                	tmp = 0.0;
                                                	if (a <= -8.4e+124)
                                                		tmp = x;
                                                	elseif (a <= 1.62e+122)
                                                		tmp = t;
                                                	else
                                                		tmp = x;
                                                	end
                                                	tmp_2 = tmp;
                                                end
                                                
                                                code[x_, y_, z_, t_, a_] := If[LessEqual[a, -8.4e+124], x, If[LessEqual[a, 1.62e+122], t, x]]
                                                
                                                \begin{array}{l}
                                                
                                                \\
                                                \begin{array}{l}
                                                \mathbf{if}\;a \leq -8.4 \cdot 10^{+124}:\\
                                                \;\;\;\;x\\
                                                
                                                \mathbf{elif}\;a \leq 1.62 \cdot 10^{+122}:\\
                                                \;\;\;\;t\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;x\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 2 regimes
                                                2. if a < -8.40000000000000046e124 or 1.61999999999999994e122 < a

                                                  1. Initial program 89.7%

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

                                                    \[\leadsto \color{blue}{x} \]
                                                  3. Step-by-step derivation
                                                    1. Applied rewrites51.3%

                                                      \[\leadsto \color{blue}{x} \]

                                                    if -8.40000000000000046e124 < a < 1.61999999999999994e122

                                                    1. Initial program 75.6%

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

                                                      \[\leadsto \color{blue}{t} \]
                                                    3. Step-by-step derivation
                                                      1. Applied rewrites31.5%

                                                        \[\leadsto \color{blue}{t} \]
                                                    4. Recombined 2 regimes into one program.
                                                    5. Add Preprocessing

                                                    Alternative 19: 25.7% accurate, 29.0× speedup?

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

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

                                                      \[\leadsto \color{blue}{t} \]
                                                    3. Step-by-step derivation
                                                      1. Applied rewrites25.7%

                                                        \[\leadsto \color{blue}{t} \]
                                                      2. Add Preprocessing

                                                      Reproduce

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