Numeric.Signal:interpolate from hsignal-0.2.7.1

Percentage Accurate: 80.4% → 89.8%
Time: 4.2s
Alternatives: 15
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 15 alternatives:

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

Initial Program: 80.4% 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: 89.8% accurate, 0.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\ \mathbf{if}\;t\_1 \leq -\infty:\\ \;\;\;\;\left(-x\right) \cdot \left(\left(\left(-\frac{\left(y - z\right) \cdot t}{\left(a - z\right) \cdot x}\right) + \frac{y}{a - z}\right) - \left(\frac{z}{a - z} + 1\right)\right)\\ \mathbf{elif}\;t\_1 \leq -5 \cdot 10^{-248}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_1 \leq 0:\\ \;\;\;\;\left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
   (if (<= t_1 (- INFINITY))
     (*
      (- x)
      (-
       (+ (- (/ (* (- y z) t) (* (- a z) x))) (/ y (- a z)))
       (+ (/ z (- a z)) 1.0)))
     (if (<= t_1 -5e-248)
       t_1
       (if (<= t_1 0.0) (+ (- (/ (* (- t x) (- y a)) z)) t) t_1)))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = x + ((y - z) * ((t - x) / (a - z)));
	double tmp;
	if (t_1 <= -((double) INFINITY)) {
		tmp = -x * ((-(((y - z) * t) / ((a - z) * x)) + (y / (a - z))) - ((z / (a - z)) + 1.0));
	} else if (t_1 <= -5e-248) {
		tmp = t_1;
	} else if (t_1 <= 0.0) {
		tmp = -(((t - x) * (y - a)) / z) + t;
	} else {
		tmp = t_1;
	}
	return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
	double t_1 = x + ((y - z) * ((t - x) / (a - z)));
	double tmp;
	if (t_1 <= -Double.POSITIVE_INFINITY) {
		tmp = -x * ((-(((y - z) * t) / ((a - z) * x)) + (y / (a - z))) - ((z / (a - z)) + 1.0));
	} else if (t_1 <= -5e-248) {
		tmp = t_1;
	} else if (t_1 <= 0.0) {
		tmp = -(((t - x) * (y - a)) / z) + t;
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a):
	t_1 = x + ((y - z) * ((t - x) / (a - z)))
	tmp = 0
	if t_1 <= -math.inf:
		tmp = -x * ((-(((y - z) * t) / ((a - z) * x)) + (y / (a - z))) - ((z / (a - z)) + 1.0))
	elif t_1 <= -5e-248:
		tmp = t_1
	elif t_1 <= 0.0:
		tmp = -(((t - x) * (y - a)) / z) + t
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a)
	t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z))))
	tmp = 0.0
	if (t_1 <= Float64(-Inf))
		tmp = Float64(Float64(-x) * Float64(Float64(Float64(-Float64(Float64(Float64(y - z) * t) / Float64(Float64(a - z) * x))) + Float64(y / Float64(a - z))) - Float64(Float64(z / Float64(a - z)) + 1.0)));
	elseif (t_1 <= -5e-248)
		tmp = t_1;
	elseif (t_1 <= 0.0)
		tmp = Float64(Float64(-Float64(Float64(Float64(t - x) * Float64(y - a)) / z)) + t);
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	t_1 = x + ((y - z) * ((t - x) / (a - z)));
	tmp = 0.0;
	if (t_1 <= -Inf)
		tmp = -x * ((-(((y - z) * t) / ((a - z) * x)) + (y / (a - z))) - ((z / (a - z)) + 1.0));
	elseif (t_1 <= -5e-248)
		tmp = t_1;
	elseif (t_1 <= 0.0)
		tmp = -(((t - x) * (y - a)) / z) + t;
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[((-x) * N[(N[((-N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]) + 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$1, -5e-248], t$95$1, If[LessEqual[t$95$1, 0.0], N[((-N[(N[(N[(t - x), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]) + t), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

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

\mathbf{elif}\;t\_1 \leq -5 \cdot 10^{-248}:\\
\;\;\;\;t\_1\\

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

\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

    1. Initial program 84.7%

      \[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 rewrites82.8%

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

    if -inf.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -5.0000000000000001e-248 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z))))

    1. Initial program 91.7%

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

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

    1. Initial program 8.5%

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

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

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

Alternative 2: 89.8% accurate, 0.3× speedup?

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

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

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

\mathbf{else}:\\
\;\;\;\;t\_1\\


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

    1. Initial program 91.0%

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

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

    1. Initial program 8.5%

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

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

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

Alternative 3: 89.6% accurate, 0.3× 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^{-248}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_3 \leq 0:\\ \;\;\;\;\left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \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-248)
     t_2
     (if (<= t_3 0.0) (+ (- (/ (* (- t x) (- y a)) z)) t) t_2))))
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-248) {
		tmp = t_2;
	} else if (t_3 <= 0.0) {
		tmp = -(((t - x) * (y - a)) / z) + t;
	} else {
		tmp = t_2;
	}
	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-248)
		tmp = t_2;
	elseif (t_3 <= 0.0)
		tmp = Float64(Float64(-Float64(Float64(Float64(t - x) * Float64(y - a)) / z)) + t);
	else
		tmp = t_2;
	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-248], t$95$2, If[LessEqual[t$95$3, 0.0], N[((-N[(N[(N[(t - x), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]) + t), $MachinePrecision], t$95$2]]]]]
\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^{-248}:\\
\;\;\;\;t\_2\\

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

\mathbf{else}:\\
\;\;\;\;t\_2\\


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

    1. Initial program 91.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--.f6491.0

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

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

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

    1. Initial program 8.5%

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

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

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

Alternative 4: 84.5% accurate, 0.3× 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^{-248}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_3 \leq 0:\\ \;\;\;\;t\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \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-248) t_2 (if (<= t_3 0.0) t t_2))))
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-248) {
		tmp = t_2;
	} else if (t_3 <= 0.0) {
		tmp = t;
	} else {
		tmp = t_2;
	}
	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-248)
		tmp = t_2;
	elseif (t_3 <= 0.0)
		tmp = t;
	else
		tmp = t_2;
	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-248], t$95$2, If[LessEqual[t$95$3, 0.0], t, t$95$2]]]]]
\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^{-248}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t\_3 \leq 0:\\
\;\;\;\;t\\

\mathbf{else}:\\
\;\;\;\;t\_2\\


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

    1. Initial program 91.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--.f6491.0

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

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

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

    1. Initial program 8.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 rewrites40.2%

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

    Alternative 5: 73.1% accurate, 0.2× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -9.99999999999999988e254 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -5.0000000000000001e-248 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 1.9999999999999999e304

      1. Initial program 92.1%

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

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

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

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

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

        1. Initial program 8.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 rewrites40.2%

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

        Alternative 6: 72.2% accurate, 0.8× speedup?

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

          1. Initial program 88.1%

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

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

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

            if -1.15e27 < y < 2.3000000000000001e-4

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

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

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

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

            Alternative 7: 66.4% accurate, 0.7× speedup?

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

              1. Initial program 86.6%

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

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

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

              if -4.40000000000000001e-16 < a < -3.00000000000000024e-237

              1. Initial program 73.3%

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \frac{t - x}{a - z} \cdot y \]
                10. lift--.f64N/A

                  \[\leadsto \frac{t - x}{a - z} \cdot y \]
                11. lift--.f6454.1

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

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

              if -3.00000000000000024e-237 < a < 2.2000000000000001e-74

              1. Initial program 71.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto t \cdot \color{blue}{\frac{y - z}{a - z}} \]
                7. sub-divN/A

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

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

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

                  \[\leadsto \frac{y - z}{a - z} \cdot t \]
                11. lower-/.f64N/A

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

                  \[\leadsto \frac{y - z}{a - z} \cdot t \]
                13. lift--.f6463.5

                  \[\leadsto \frac{y - z}{a - z} \cdot t \]
              6. Applied rewrites63.5%

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

            Alternative 8: 62.1% accurate, 0.7× speedup?

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

              1. Initial program 87.3%

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

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

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

              if -2.5e50 < a < -3.00000000000000024e-237

              1. Initial program 75.0%

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \frac{t - x}{a - z} \cdot y \]
                10. lift--.f64N/A

                  \[\leadsto \frac{t - x}{a - z} \cdot y \]
                11. lift--.f6451.3

                  \[\leadsto \frac{t - x}{a - z} \cdot y \]
              6. Applied rewrites51.3%

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

              if -3.00000000000000024e-237 < a < 2.2999999999999998e-74

              1. Initial program 71.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto t \cdot \color{blue}{\frac{y - z}{a - z}} \]
                7. sub-divN/A

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

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

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

                  \[\leadsto \frac{y - z}{a - z} \cdot t \]
                11. lower-/.f64N/A

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

                  \[\leadsto \frac{y - z}{a - z} \cdot t \]
                13. lift--.f6463.5

                  \[\leadsto \frac{y - z}{a - z} \cdot t \]
              6. Applied rewrites63.5%

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

            Alternative 9: 61.0% accurate, 0.7× speedup?

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

              1. Initial program 87.3%

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

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

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

              if -7.5000000000000006e48 < a < -5.99999999999999973e-213

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

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

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

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

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

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

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

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

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

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

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

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

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

              if -5.99999999999999973e-213 < a < 2.2999999999999998e-74

              1. Initial program 71.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            Alternative 10: 59.8% accurate, 0.7× speedup?

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

              1. Initial program 87.3%

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

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

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

              if -7.5000000000000006e48 < a < -1.04999999999999997e-274

              1. Initial program 74.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--.f6451.0

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

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

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

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

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

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

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

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

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

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

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

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

              if -1.04999999999999997e-274 < a < 1.99999999999999992e-74

              1. Initial program 71.5%

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

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

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

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

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

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

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

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

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

                  \[\leadsto \frac{\left(y - z\right) \cdot t}{\mathsf{neg}\left(z\right)} \]
                2. lift-neg.f6445.5

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

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

            Alternative 11: 59.1% accurate, 0.9× speedup?

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

              1. Initial program 66.0%

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

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

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

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

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

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

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

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

                \[\leadsto -1 \cdot \color{blue}{\frac{t \cdot z}{a - z}} \]
              6. Step-by-step derivation
                1. mul-1-negN/A

                  \[\leadsto \mathsf{neg}\left(\frac{t \cdot z}{a - z}\right) \]
                2. lower-neg.f64N/A

                  \[\leadsto -\frac{t \cdot z}{a - z} \]
                3. associate-/l*N/A

                  \[\leadsto -t \cdot \frac{z}{a - z} \]
                4. lower-*.f64N/A

                  \[\leadsto -t \cdot \frac{z}{a - z} \]
                5. lower-/.f64N/A

                  \[\leadsto -t \cdot \frac{z}{a - z} \]
                6. lift--.f6452.9

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

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

              if -1.75e12 < z < 1.8e91

              1. Initial program 90.5%

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

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

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

            Alternative 12: 57.2% accurate, 0.9× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -56000000000000:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq 1.8 \cdot 10^{+91}:\\ \;\;\;\;\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 -56000000000000.0) t (if (<= z 1.8e+91) (fma y (/ (- t x) a) x) t)))
            double code(double x, double y, double z, double t, double a) {
            	double tmp;
            	if (z <= -56000000000000.0) {
            		tmp = t;
            	} else if (z <= 1.8e+91) {
            		tmp = fma(y, ((t - x) / a), x);
            	} else {
            		tmp = t;
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a)
            	tmp = 0.0
            	if (z <= -56000000000000.0)
            		tmp = t;
            	elseif (z <= 1.8e+91)
            		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, -56000000000000.0], t, If[LessEqual[z, 1.8e+91], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision], t]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;z \leq -56000000000000:\\
            \;\;\;\;t\\
            
            \mathbf{elif}\;z \leq 1.8 \cdot 10^{+91}:\\
            \;\;\;\;\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 < -5.6e13 or 1.8e91 < z

              1. Initial program 66.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 rewrites47.2%

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

                if -5.6e13 < z < 1.8e91

                1. Initial program 90.5%

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

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

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

              Alternative 13: 51.9% accurate, 1.0× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -55000000000000:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq 460000000000:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{t}{a}, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \end{array} \]
              (FPCore (x y z t a)
               :precision binary64
               (if (<= z -55000000000000.0)
                 t
                 (if (<= z 460000000000.0) (fma y (/ t a) x) t)))
              double code(double x, double y, double z, double t, double a) {
              	double tmp;
              	if (z <= -55000000000000.0) {
              		tmp = t;
              	} else if (z <= 460000000000.0) {
              		tmp = fma(y, (t / a), x);
              	} else {
              		tmp = t;
              	}
              	return tmp;
              }
              
              function code(x, y, z, t, a)
              	tmp = 0.0
              	if (z <= -55000000000000.0)
              		tmp = t;
              	elseif (z <= 460000000000.0)
              		tmp = fma(y, Float64(t / a), x);
              	else
              		tmp = t;
              	end
              	return tmp
              end
              
              code[x_, y_, z_, t_, a_] := If[LessEqual[z, -55000000000000.0], t, If[LessEqual[z, 460000000000.0], N[(y * N[(t / a), $MachinePrecision] + x), $MachinePrecision], t]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              \mathbf{if}\;z \leq -55000000000000:\\
              \;\;\;\;t\\
              
              \mathbf{elif}\;z \leq 460000000000:\\
              \;\;\;\;\mathsf{fma}\left(y, \frac{t}{a}, x\right)\\
              
              \mathbf{else}:\\
              \;\;\;\;t\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 2 regimes
              2. if z < -5.5e13 or 4.6e11 < z

                1. Initial program 68.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 rewrites43.9%

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

                  if -5.5e13 < z < 4.6e11

                  1. Initial program 91.0%

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

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

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

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

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

                  Alternative 14: 37.1% accurate, 2.2× speedup?

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

                    1. Initial program 86.6%

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

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

                      if -5.60000000000000028e-15 < a < 2.2999999999999998e-74

                      1. Initial program 72.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 rewrites35.0%

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

                      Alternative 15: 25.2% 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 80.4%

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

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

                        Reproduce

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