Numeric.Signal:interpolate from hsignal-0.2.7.1

Percentage Accurate: 79.1% → 90.7%
Time: 5.2s
Alternatives: 19
Speedup: 0.3×

Specification

?
\[\begin{array}{l} \\ x + \left(y - z\right) \cdot \frac{t - x}{a - z} \end{array} \]
(FPCore (x y z t a) :precision binary64 (+ x (* (- y z) (/ (- t x) (- a z)))))
double code(double x, double y, double z, double t, double a) {
	return x + ((y - z) * ((t - x) / (a - z)));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

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

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

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 19 alternatives:

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

Initial Program: 79.1% 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: 90.7% accurate, 0.3× speedup?

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

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

\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{-215}:\\
\;\;\;\;\left(-\left(t - x\right) \cdot \frac{y - a}{z}\right) + t\\

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


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

    1. Initial program 79.1%

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

    if -9.99999999999999945e-228 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 2.00000000000000008e-215

    1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t \]
      9. lower--.f6446.9

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 2.00000000000000008e-215 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z))))

    1. Initial program 79.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--.f6479.2

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

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

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

\mathbf{elif}\;t\_3 \leq 2 \cdot 10^{-215}:\\
\;\;\;\;\left(-\left(t - x\right) \cdot \frac{y - a}{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)))) < -9.99999999999999945e-228 or 2.00000000000000008e-215 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z))))

    1. Initial program 79.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--.f6479.2

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

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

    if -9.99999999999999945e-228 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 2.00000000000000008e-215

    1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t \]
      9. lower--.f6446.9

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 3: 78.1% accurate, 0.2× speedup?

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

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

\mathbf{elif}\;t\_1 \leq -1 \cdot 10^{-227}:\\
\;\;\;\;t\_2\\

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

\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+302}:\\
\;\;\;\;t\_2\\

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


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

    1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

    if -1.99999999999999994e224 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -9.99999999999999945e-228 or 2.00000000000000008e-215 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 2.0000000000000002e302

    1. Initial program 79.1%

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

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

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

      if -9.99999999999999945e-228 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 2.00000000000000008e-215

      1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

          \[\leadsto \left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t \]
        9. lower--.f6446.9

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      1. Initial program 79.1%

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

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

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

    Alternative 4: 76.1% accurate, 0.2× speedup?

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

      1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

      if -1.99999999999999994e224 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -9.99999999999999945e-228 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 2.0000000000000002e302

      1. Initial program 79.1%

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

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

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

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

        1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

            \[\leadsto \left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t \]
          9. lower--.f6446.9

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

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

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

            \[\leadsto \left(-\frac{\left(\mathsf{neg}\left(x\right)\right) \cdot \left(y - a\right)}{z}\right) + t \]
          2. lower-neg.f6441.9

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

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

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

        1. Initial program 79.1%

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

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

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

      Alternative 5: 71.3% accurate, 0.7× speedup?

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

        1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

        if -2.70000000000000001e109 < a < -8.19999999999999947e-51

        1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

            \[\leadsto \left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t \]
          9. lower--.f6446.9

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

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

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

            \[\leadsto \left(-\frac{\left(\mathsf{neg}\left(x\right)\right) \cdot \left(y - a\right)}{z}\right) + t \]
          2. lower-neg.f6441.9

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

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

        if -8.19999999999999947e-51 < a < 9.7999999999999999e-15

        1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

            \[\leadsto \left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t \]
          9. lower--.f6446.9

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

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

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

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

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

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

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

            \[\leadsto t - \left(\frac{t}{z} - \frac{x}{z}\right) \cdot y \]
          6. sub-divN/A

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

            \[\leadsto t - \frac{t - x}{z} \cdot y \]
          8. lift--.f6447.4

            \[\leadsto t - \frac{t - x}{z} \cdot y \]
        7. Applied rewrites47.4%

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

        if 9.7999999999999999e-15 < a

        1. Initial program 79.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--.f6479.2

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

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

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

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

        Alternative 6: 71.2% accurate, 0.7× speedup?

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

          1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

          if -7.99999999999999955e58 < a < -3.6999999999999998e-48

          1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

              \[\leadsto \left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t \]
            9. lower--.f6446.9

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

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

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

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

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

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

              \[\leadsto \frac{a - y}{z} \cdot t + t \]
            5. lower--.f6436.1

              \[\leadsto \frac{a - y}{z} \cdot t + t \]
          7. Applied rewrites36.1%

            \[\leadsto \frac{a - y}{z} \cdot t + t \]
          8. Taylor expanded in y around 0

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

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

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

              \[\leadsto a \cdot \frac{t - x}{z} + t \]
            4. lift--.f6432.8

              \[\leadsto a \cdot \frac{t - x}{z} + t \]
          10. Applied rewrites32.8%

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

          if -3.6999999999999998e-48 < a < 9.7999999999999999e-15

          1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

              \[\leadsto \left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t \]
            9. lower--.f6446.9

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

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

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

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

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

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

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

              \[\leadsto t - \left(\frac{t}{z} - \frac{x}{z}\right) \cdot y \]
            6. sub-divN/A

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

              \[\leadsto t - \frac{t - x}{z} \cdot y \]
            8. lift--.f6447.4

              \[\leadsto t - \frac{t - x}{z} \cdot y \]
          7. Applied rewrites47.4%

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

          if 9.7999999999999999e-15 < a

          1. Initial program 79.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--.f6479.2

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

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

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

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

          Alternative 7: 70.5% accurate, 0.7× speedup?

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

            1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

            if -7.99999999999999955e58 < a < -3.6999999999999998e-48

            1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

                \[\leadsto \left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t \]
              9. lower--.f6446.9

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

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

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

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

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

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

                \[\leadsto \frac{a - y}{z} \cdot t + t \]
              5. lower--.f6436.1

                \[\leadsto \frac{a - y}{z} \cdot t + t \]
            7. Applied rewrites36.1%

              \[\leadsto \frac{a - y}{z} \cdot t + t \]
            8. Taylor expanded in y around 0

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

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

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

                \[\leadsto a \cdot \frac{t - x}{z} + t \]
              4. lift--.f6432.8

                \[\leadsto a \cdot \frac{t - x}{z} + t \]
            10. Applied rewrites32.8%

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

            if -3.6999999999999998e-48 < a < 9.5000000000000005e-15

            1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

                \[\leadsto \left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t \]
              9. lower--.f6446.9

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

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

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

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

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

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

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

                \[\leadsto t - \left(\frac{t}{z} - \frac{x}{z}\right) \cdot y \]
              6. sub-divN/A

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

                \[\leadsto t - \frac{t - x}{z} \cdot y \]
              8. lift--.f6447.4

                \[\leadsto t - \frac{t - x}{z} \cdot y \]
            7. Applied rewrites47.4%

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

          Alternative 8: 67.8% accurate, 0.9× speedup?

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

            1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

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

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

              if -2.70000000000000001e109 < a < 9.7999999999999999e-15

              1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

                  \[\leadsto \left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t \]
                9. lower--.f6446.9

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

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

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

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

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

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

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

                  \[\leadsto t - \left(\frac{t}{z} - \frac{x}{z}\right) \cdot y \]
                6. sub-divN/A

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

                  \[\leadsto t - \frac{t - x}{z} \cdot y \]
                8. lift--.f6447.4

                  \[\leadsto t - \frac{t - x}{z} \cdot y \]
              7. Applied rewrites47.4%

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

              if 9.7999999999999999e-15 < a

              1. Initial program 79.1%

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

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

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

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

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

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

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

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

            Alternative 9: 64.4% accurate, 0.9× speedup?

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

              1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

                  \[\leadsto \left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t \]
                9. lower--.f6446.9

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

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

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

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

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

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

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

                  \[\leadsto t - \left(\frac{t}{z} - \frac{x}{z}\right) \cdot y \]
                6. sub-divN/A

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

                  \[\leadsto t - \frac{t - x}{z} \cdot y \]
                8. lift--.f6447.4

                  \[\leadsto t - \frac{t - x}{z} \cdot y \]
              7. Applied rewrites47.4%

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

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

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

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

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

                  \[\leadsto t - \left(-\frac{y \cdot x}{z}\right) \]
                5. lower-*.f6438.5

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

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

              if -2.4e18 < z < 8.20000000000000011e30

              1. Initial program 79.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--.f6479.2

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

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

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

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

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

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

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

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

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

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

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

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

            Alternative 10: 63.4% accurate, 0.9× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := t - \left(-\frac{y \cdot x}{z}\right)\\ \mathbf{if}\;z \leq -2.4 \cdot 10^{+18}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 8.2 \cdot 10^{+30}:\\ \;\;\;\;\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 (- (/ (* y x) z)))))
               (if (<= z -2.4e+18) t_1 (if (<= z 8.2e+30) (fma y (/ (- t x) a) x) t_1))))
            double code(double x, double y, double z, double t, double a) {
            	double t_1 = t - -((y * x) / z);
            	double tmp;
            	if (z <= -2.4e+18) {
            		tmp = t_1;
            	} else if (z <= 8.2e+30) {
            		tmp = fma(y, ((t - x) / a), x);
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a)
            	t_1 = Float64(t - Float64(-Float64(Float64(y * x) / z)))
            	tmp = 0.0
            	if (z <= -2.4e+18)
            		tmp = t_1;
            	elseif (z <= 8.2e+30)
            		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[(N[(y * x), $MachinePrecision] / z), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[z, -2.4e+18], t$95$1, If[LessEqual[z, 8.2e+30], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := t - \left(-\frac{y \cdot x}{z}\right)\\
            \mathbf{if}\;z \leq -2.4 \cdot 10^{+18}:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;z \leq 8.2 \cdot 10^{+30}:\\
            \;\;\;\;\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 < -2.4e18 or 8.20000000000000011e30 < z

              1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

                  \[\leadsto \left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t \]
                9. lower--.f6446.9

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

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

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

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

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

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

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

                  \[\leadsto t - \left(\frac{t}{z} - \frac{x}{z}\right) \cdot y \]
                6. sub-divN/A

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

                  \[\leadsto t - \frac{t - x}{z} \cdot y \]
                8. lift--.f6447.4

                  \[\leadsto t - \frac{t - x}{z} \cdot y \]
              7. Applied rewrites47.4%

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

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

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

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

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

                  \[\leadsto t - \left(-\frac{y \cdot x}{z}\right) \]
                5. lower-*.f6438.5

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

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

              if -2.4e18 < z < 8.20000000000000011e30

              1. Initial program 79.1%

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

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

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

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

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

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

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

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

            Alternative 11: 55.2% accurate, 1.0× speedup?

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

              1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

                  \[\leadsto \left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t \]
                9. lower--.f6446.9

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

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

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

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

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

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

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

                  \[\leadsto t - \left(\frac{t}{z} - \frac{x}{z}\right) \cdot y \]
                6. sub-divN/A

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

                  \[\leadsto t - \frac{t - x}{z} \cdot y \]
                8. lift--.f6447.4

                  \[\leadsto t - \frac{t - x}{z} \cdot y \]
              7. Applied rewrites47.4%

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

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

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

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

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

                  \[\leadsto t - \left(-\frac{y \cdot x}{z}\right) \]
                5. lower-*.f6438.5

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

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

              if -1.75e18 < z < 2.79999999999999983e30

              1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

              Alternative 12: 52.7% accurate, 1.0× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \frac{t \cdot y}{a}\\ \mathbf{if}\;a \leq -5.8 \cdot 10^{+72}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 10^{-14}:\\ \;\;\;\;\left(1 - \frac{y}{z}\right) \cdot t\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
              (FPCore (x y z t a)
               :precision binary64
               (let* ((t_1 (+ x (/ (* t y) a))))
                 (if (<= a -5.8e+72) t_1 (if (<= a 1e-14) (* (- 1.0 (/ y z)) t) t_1))))
              double code(double x, double y, double z, double t, double a) {
              	double t_1 = x + ((t * y) / a);
              	double tmp;
              	if (a <= -5.8e+72) {
              		tmp = t_1;
              	} else if (a <= 1e-14) {
              		tmp = (1.0 - (y / 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 + ((t * y) / a)
                  if (a <= (-5.8d+72)) then
                      tmp = t_1
                  else if (a <= 1d-14) then
                      tmp = (1.0d0 - (y / 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 + ((t * y) / a);
              	double tmp;
              	if (a <= -5.8e+72) {
              		tmp = t_1;
              	} else if (a <= 1e-14) {
              		tmp = (1.0 - (y / z)) * t;
              	} else {
              		tmp = t_1;
              	}
              	return tmp;
              }
              
              def code(x, y, z, t, a):
              	t_1 = x + ((t * y) / a)
              	tmp = 0
              	if a <= -5.8e+72:
              		tmp = t_1
              	elif a <= 1e-14:
              		tmp = (1.0 - (y / z)) * t
              	else:
              		tmp = t_1
              	return tmp
              
              function code(x, y, z, t, a)
              	t_1 = Float64(x + Float64(Float64(t * y) / a))
              	tmp = 0.0
              	if (a <= -5.8e+72)
              		tmp = t_1;
              	elseif (a <= 1e-14)
              		tmp = Float64(Float64(1.0 - Float64(y / z)) * t);
              	else
              		tmp = t_1;
              	end
              	return tmp
              end
              
              function tmp_2 = code(x, y, z, t, a)
              	t_1 = x + ((t * y) / a);
              	tmp = 0.0;
              	if (a <= -5.8e+72)
              		tmp = t_1;
              	elseif (a <= 1e-14)
              		tmp = (1.0 - (y / 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[(t * y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5.8e+72], t$95$1, If[LessEqual[a, 1e-14], N[(N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              t_1 := x + \frac{t \cdot y}{a}\\
              \mathbf{if}\;a \leq -5.8 \cdot 10^{+72}:\\
              \;\;\;\;t\_1\\
              
              \mathbf{elif}\;a \leq 10^{-14}:\\
              \;\;\;\;\left(1 - \frac{y}{z}\right) \cdot t\\
              
              \mathbf{else}:\\
              \;\;\;\;t\_1\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 2 regimes
              2. if a < -5.80000000000000034e72 or 9.99999999999999999e-15 < a

                1. Initial program 79.1%

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

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

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

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

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

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

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

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

                    \[\leadsto x + \frac{t \cdot y}{a} \]

                  if -5.80000000000000034e72 < a < 9.99999999999999999e-15

                  1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

                      \[\leadsto \left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t \]
                    9. lower--.f6446.9

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

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

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

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

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

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

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

                      \[\leadsto t - \left(\frac{t}{z} - \frac{x}{z}\right) \cdot y \]
                    6. sub-divN/A

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

                      \[\leadsto t - \frac{t - x}{z} \cdot y \]
                    8. lift--.f6447.4

                      \[\leadsto t - \frac{t - x}{z} \cdot y \]
                  7. Applied rewrites47.4%

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

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

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

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

                      \[\leadsto \left(1 - \frac{y}{z}\right) \cdot t \]
                    4. lower-/.f6436.2

                      \[\leadsto \left(1 - \frac{y}{z}\right) \cdot t \]
                  10. Applied rewrites36.2%

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

                Alternative 13: 46.2% accurate, 0.7× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(1 - \frac{y}{z}\right) \cdot t\\ \mathbf{if}\;z \leq -2.2 \cdot 10^{+55}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -1.4 \cdot 10^{-111}:\\ \;\;\;\;\frac{x - t}{z} \cdot y\\ \mathbf{elif}\;z \leq 8 \cdot 10^{-47}:\\ \;\;\;\;\frac{t - x}{a} \cdot y\\ \mathbf{elif}\;z \leq 1.85 \cdot 10^{+33}:\\ \;\;\;\;\frac{\left(y - a\right) \cdot x}{z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                (FPCore (x y z t a)
                 :precision binary64
                 (let* ((t_1 (* (- 1.0 (/ y z)) t)))
                   (if (<= z -2.2e+55)
                     t_1
                     (if (<= z -1.4e-111)
                       (* (/ (- x t) z) y)
                       (if (<= z 8e-47)
                         (* (/ (- t x) a) y)
                         (if (<= z 1.85e+33) (/ (* (- y a) x) z) t_1))))))
                double code(double x, double y, double z, double t, double a) {
                	double t_1 = (1.0 - (y / z)) * t;
                	double tmp;
                	if (z <= -2.2e+55) {
                		tmp = t_1;
                	} else if (z <= -1.4e-111) {
                		tmp = ((x - t) / z) * y;
                	} else if (z <= 8e-47) {
                		tmp = ((t - x) / a) * y;
                	} else if (z <= 1.85e+33) {
                		tmp = ((y - a) * x) / z;
                	} 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 = (1.0d0 - (y / z)) * t
                    if (z <= (-2.2d+55)) then
                        tmp = t_1
                    else if (z <= (-1.4d-111)) then
                        tmp = ((x - t) / z) * y
                    else if (z <= 8d-47) then
                        tmp = ((t - x) / a) * y
                    else if (z <= 1.85d+33) then
                        tmp = ((y - a) * x) / z
                    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 = (1.0 - (y / z)) * t;
                	double tmp;
                	if (z <= -2.2e+55) {
                		tmp = t_1;
                	} else if (z <= -1.4e-111) {
                		tmp = ((x - t) / z) * y;
                	} else if (z <= 8e-47) {
                		tmp = ((t - x) / a) * y;
                	} else if (z <= 1.85e+33) {
                		tmp = ((y - a) * x) / z;
                	} else {
                		tmp = t_1;
                	}
                	return tmp;
                }
                
                def code(x, y, z, t, a):
                	t_1 = (1.0 - (y / z)) * t
                	tmp = 0
                	if z <= -2.2e+55:
                		tmp = t_1
                	elif z <= -1.4e-111:
                		tmp = ((x - t) / z) * y
                	elif z <= 8e-47:
                		tmp = ((t - x) / a) * y
                	elif z <= 1.85e+33:
                		tmp = ((y - a) * x) / z
                	else:
                		tmp = t_1
                	return tmp
                
                function code(x, y, z, t, a)
                	t_1 = Float64(Float64(1.0 - Float64(y / z)) * t)
                	tmp = 0.0
                	if (z <= -2.2e+55)
                		tmp = t_1;
                	elseif (z <= -1.4e-111)
                		tmp = Float64(Float64(Float64(x - t) / z) * y);
                	elseif (z <= 8e-47)
                		tmp = Float64(Float64(Float64(t - x) / a) * y);
                	elseif (z <= 1.85e+33)
                		tmp = Float64(Float64(Float64(y - a) * x) / z);
                	else
                		tmp = t_1;
                	end
                	return tmp
                end
                
                function tmp_2 = code(x, y, z, t, a)
                	t_1 = (1.0 - (y / z)) * t;
                	tmp = 0.0;
                	if (z <= -2.2e+55)
                		tmp = t_1;
                	elseif (z <= -1.4e-111)
                		tmp = ((x - t) / z) * y;
                	elseif (z <= 8e-47)
                		tmp = ((t - x) / a) * y;
                	elseif (z <= 1.85e+33)
                		tmp = ((y - a) * x) / z;
                	else
                		tmp = t_1;
                	end
                	tmp_2 = tmp;
                end
                
                code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[z, -2.2e+55], t$95$1, If[LessEqual[z, -1.4e-111], N[(N[(N[(x - t), $MachinePrecision] / z), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[z, 8e-47], N[(N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[z, 1.85e+33], N[(N[(N[(y - a), $MachinePrecision] * x), $MachinePrecision] / z), $MachinePrecision], t$95$1]]]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := \left(1 - \frac{y}{z}\right) \cdot t\\
                \mathbf{if}\;z \leq -2.2 \cdot 10^{+55}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;z \leq -1.4 \cdot 10^{-111}:\\
                \;\;\;\;\frac{x - t}{z} \cdot y\\
                
                \mathbf{elif}\;z \leq 8 \cdot 10^{-47}:\\
                \;\;\;\;\frac{t - x}{a} \cdot y\\
                
                \mathbf{elif}\;z \leq 1.85 \cdot 10^{+33}:\\
                \;\;\;\;\frac{\left(y - a\right) \cdot x}{z}\\
                
                \mathbf{else}:\\
                \;\;\;\;t\_1\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 4 regimes
                2. if z < -2.2000000000000001e55 or 1.8499999999999999e33 < z

                  1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

                      \[\leadsto \left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t \]
                    9. lower--.f6446.9

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

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

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

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

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

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

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

                      \[\leadsto t - \left(\frac{t}{z} - \frac{x}{z}\right) \cdot y \]
                    6. sub-divN/A

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

                      \[\leadsto t - \frac{t - x}{z} \cdot y \]
                    8. lift--.f6447.4

                      \[\leadsto t - \frac{t - x}{z} \cdot y \]
                  7. Applied rewrites47.4%

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

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

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

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

                      \[\leadsto \left(1 - \frac{y}{z}\right) \cdot t \]
                    4. lower-/.f6436.2

                      \[\leadsto \left(1 - \frac{y}{z}\right) \cdot t \]
                  10. Applied rewrites36.2%

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

                  if -2.2000000000000001e55 < z < -1.39999999999999998e-111

                  1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

                      \[\leadsto \left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t \]
                    9. lower--.f6446.9

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

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

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

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

                      \[\leadsto \left(\frac{x}{z} - \frac{t}{z}\right) \cdot y \]
                    3. sub-divN/A

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

                      \[\leadsto \frac{x - t}{z} \cdot y \]
                    5. lower--.f6425.7

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

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

                  if -1.39999999999999998e-111 < z < 7.9999999999999998e-47

                  1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \left(\frac{t}{a} - \frac{x}{a}\right) \cdot y \]
                    3. sub-divN/A

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

                      \[\leadsto \frac{t - x}{a} \cdot y \]
                    5. lift--.f6426.0

                      \[\leadsto \frac{t - x}{a} \cdot y \]
                  7. Applied rewrites26.0%

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

                  if 7.9999999999999998e-47 < z < 1.8499999999999999e33

                  1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

                      \[\leadsto \left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t \]
                    9. lower--.f6446.9

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

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

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

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

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

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

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

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

                Alternative 14: 46.0% accurate, 1.0× speedup?

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

                  1. Initial program 79.1%

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

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

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

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

                    \[\leadsto x + t \]
                  6. Step-by-step derivation
                    1. Applied rewrites33.9%

                      \[\leadsto x + t \]

                    if -9.2e9 < a < 9.5000000000000005e-6

                    1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

                        \[\leadsto \left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t \]
                      9. lower--.f6446.9

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

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

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

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

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

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

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

                        \[\leadsto t - \left(\frac{t}{z} - \frac{x}{z}\right) \cdot y \]
                      6. sub-divN/A

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

                        \[\leadsto t - \frac{t - x}{z} \cdot y \]
                      8. lift--.f6447.4

                        \[\leadsto t - \frac{t - x}{z} \cdot y \]
                    7. Applied rewrites47.4%

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

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

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

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

                        \[\leadsto \left(1 - \frac{y}{z}\right) \cdot t \]
                      4. lower-/.f6436.2

                        \[\leadsto \left(1 - \frac{y}{z}\right) \cdot t \]
                    10. Applied rewrites36.2%

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

                  Alternative 15: 43.0% accurate, 0.2× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\ \mathbf{if}\;t\_1 \leq -\infty:\\ \;\;\;\;-\frac{t \cdot y}{z}\\ \mathbf{elif}\;t\_1 \leq -1 \cdot 10^{-227}:\\ \;\;\;\;x + t\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{-119}:\\ \;\;\;\;1 \cdot t\\ \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+291}:\\ \;\;\;\;x + t\\ \mathbf{else}:\\ \;\;\;\;\frac{-y}{z} \cdot t\\ \end{array} \end{array} \]
                  (FPCore (x y z t a)
                   :precision binary64
                   (let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
                     (if (<= t_1 (- INFINITY))
                       (- (/ (* t y) z))
                       (if (<= t_1 -1e-227)
                         (+ x t)
                         (if (<= t_1 5e-119)
                           (* 1.0 t)
                           (if (<= t_1 2e+291) (+ x t) (* (/ (- y) z) t)))))))
                  double code(double x, double y, double z, double t, double a) {
                  	double t_1 = x + ((y - z) * ((t - x) / (a - z)));
                  	double tmp;
                  	if (t_1 <= -((double) INFINITY)) {
                  		tmp = -((t * y) / z);
                  	} else if (t_1 <= -1e-227) {
                  		tmp = x + t;
                  	} else if (t_1 <= 5e-119) {
                  		tmp = 1.0 * t;
                  	} else if (t_1 <= 2e+291) {
                  		tmp = x + t;
                  	} else {
                  		tmp = (-y / z) * t;
                  	}
                  	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 = -((t * y) / z);
                  	} else if (t_1 <= -1e-227) {
                  		tmp = x + t;
                  	} else if (t_1 <= 5e-119) {
                  		tmp = 1.0 * t;
                  	} else if (t_1 <= 2e+291) {
                  		tmp = x + t;
                  	} else {
                  		tmp = (-y / z) * t;
                  	}
                  	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 = -((t * y) / z)
                  	elif t_1 <= -1e-227:
                  		tmp = x + t
                  	elif t_1 <= 5e-119:
                  		tmp = 1.0 * t
                  	elif t_1 <= 2e+291:
                  		tmp = x + t
                  	else:
                  		tmp = (-y / z) * t
                  	return tmp
                  
                  function code(x, y, z, t, a)
                  	t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z))))
                  	tmp = 0.0
                  	if (t_1 <= Float64(-Inf))
                  		tmp = Float64(-Float64(Float64(t * y) / z));
                  	elseif (t_1 <= -1e-227)
                  		tmp = Float64(x + t);
                  	elseif (t_1 <= 5e-119)
                  		tmp = Float64(1.0 * t);
                  	elseif (t_1 <= 2e+291)
                  		tmp = Float64(x + t);
                  	else
                  		tmp = Float64(Float64(Float64(-y) / z) * t);
                  	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 = -((t * y) / z);
                  	elseif (t_1 <= -1e-227)
                  		tmp = x + t;
                  	elseif (t_1 <= 5e-119)
                  		tmp = 1.0 * t;
                  	elseif (t_1 <= 2e+291)
                  		tmp = x + t;
                  	else
                  		tmp = (-y / z) * t;
                  	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[(N[(t * y), $MachinePrecision] / z), $MachinePrecision]), If[LessEqual[t$95$1, -1e-227], N[(x + t), $MachinePrecision], If[LessEqual[t$95$1, 5e-119], N[(1.0 * t), $MachinePrecision], If[LessEqual[t$95$1, 2e+291], N[(x + t), $MachinePrecision], N[(N[((-y) / z), $MachinePrecision] * t), $MachinePrecision]]]]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
                  \mathbf{if}\;t\_1 \leq -\infty:\\
                  \;\;\;\;-\frac{t \cdot y}{z}\\
                  
                  \mathbf{elif}\;t\_1 \leq -1 \cdot 10^{-227}:\\
                  \;\;\;\;x + t\\
                  
                  \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{-119}:\\
                  \;\;\;\;1 \cdot t\\
                  
                  \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+291}:\\
                  \;\;\;\;x + t\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;\frac{-y}{z} \cdot t\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 4 regimes
                  2. if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -inf.0

                    1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

                        \[\leadsto \left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t \]
                      9. lower--.f6446.9

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

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

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

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

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

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

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

                        \[\leadsto t - \left(\frac{t}{z} - \frac{x}{z}\right) \cdot y \]
                      6. sub-divN/A

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

                        \[\leadsto t - \frac{t - x}{z} \cdot y \]
                      8. lift--.f6447.4

                        \[\leadsto t - \frac{t - x}{z} \cdot y \]
                    7. Applied rewrites47.4%

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

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

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

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

                        \[\leadsto \left(1 - \frac{y}{z}\right) \cdot t \]
                      4. lower-/.f6436.2

                        \[\leadsto \left(1 - \frac{y}{z}\right) \cdot t \]
                    10. Applied rewrites36.2%

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

                      \[\leadsto -1 \cdot \frac{t \cdot y}{z} \]
                    12. Step-by-step derivation
                      1. mul-1-negN/A

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

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

                        \[\leadsto -\frac{t \cdot y}{z} \]
                      4. lower-*.f6412.7

                        \[\leadsto -\frac{t \cdot y}{z} \]
                    13. Applied rewrites12.7%

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

                    if -inf.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -9.99999999999999945e-228 or 4.99999999999999993e-119 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 1.9999999999999999e291

                    1. Initial program 79.1%

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

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

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

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

                      \[\leadsto x + t \]
                    6. Step-by-step derivation
                      1. Applied rewrites33.9%

                        \[\leadsto x + t \]

                      if -9.99999999999999945e-228 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 4.99999999999999993e-119

                      1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

                          \[\leadsto \left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t \]
                        9. lower--.f6446.9

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

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

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

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

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

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

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

                          \[\leadsto t - \left(\frac{t}{z} - \frac{x}{z}\right) \cdot y \]
                        6. sub-divN/A

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

                          \[\leadsto t - \frac{t - x}{z} \cdot y \]
                        8. lift--.f6447.4

                          \[\leadsto t - \frac{t - x}{z} \cdot y \]
                      7. Applied rewrites47.4%

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

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

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

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

                          \[\leadsto \left(1 - \frac{y}{z}\right) \cdot t \]
                        4. lower-/.f6436.2

                          \[\leadsto \left(1 - \frac{y}{z}\right) \cdot t \]
                      10. Applied rewrites36.2%

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

                        \[\leadsto 1 \cdot t \]
                      12. Step-by-step derivation
                        1. Applied rewrites25.1%

                          \[\leadsto 1 \cdot t \]

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

                        1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

                            \[\leadsto \left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t \]
                          9. lower--.f6446.9

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

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

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

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

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

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

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

                            \[\leadsto t - \left(\frac{t}{z} - \frac{x}{z}\right) \cdot y \]
                          6. sub-divN/A

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

                            \[\leadsto t - \frac{t - x}{z} \cdot y \]
                          8. lift--.f6447.4

                            \[\leadsto t - \frac{t - x}{z} \cdot y \]
                        7. Applied rewrites47.4%

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

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

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

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

                            \[\leadsto \left(1 - \frac{y}{z}\right) \cdot t \]
                          4. lower-/.f6436.2

                            \[\leadsto \left(1 - \frac{y}{z}\right) \cdot t \]
                        10. Applied rewrites36.2%

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

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

                            \[\leadsto \frac{-1 \cdot y}{z} \cdot t \]
                          2. mul-1-negN/A

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

                            \[\leadsto \frac{\mathsf{neg}\left(y\right)}{z} \cdot t \]
                          4. lower-neg.f6414.2

                            \[\leadsto \frac{-y}{z} \cdot t \]
                        13. Applied rewrites14.2%

                          \[\leadsto \frac{-y}{z} \cdot t \]
                      13. Recombined 4 regimes into one program.
                      14. Add Preprocessing

                      Alternative 16: 42.8% accurate, 0.2× speedup?

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

                        1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

                            \[\leadsto \left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t \]
                          9. lower--.f6446.9

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

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

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

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

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

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

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

                            \[\leadsto t - \left(\frac{t}{z} - \frac{x}{z}\right) \cdot y \]
                          6. sub-divN/A

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

                            \[\leadsto t - \frac{t - x}{z} \cdot y \]
                          8. lift--.f6447.4

                            \[\leadsto t - \frac{t - x}{z} \cdot y \]
                        7. Applied rewrites47.4%

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

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

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

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

                            \[\leadsto \left(1 - \frac{y}{z}\right) \cdot t \]
                          4. lower-/.f6436.2

                            \[\leadsto \left(1 - \frac{y}{z}\right) \cdot t \]
                        10. Applied rewrites36.2%

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

                          \[\leadsto -1 \cdot \frac{t \cdot y}{z} \]
                        12. Step-by-step derivation
                          1. mul-1-negN/A

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

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

                            \[\leadsto -\frac{t \cdot y}{z} \]
                          4. lower-*.f6412.7

                            \[\leadsto -\frac{t \cdot y}{z} \]
                        13. Applied rewrites12.7%

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

                        if -inf.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -9.99999999999999945e-228 or 4.99999999999999993e-119 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 1.9999999999999999e291

                        1. Initial program 79.1%

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

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

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

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

                          \[\leadsto x + t \]
                        6. Step-by-step derivation
                          1. Applied rewrites33.9%

                            \[\leadsto x + t \]

                          if -9.99999999999999945e-228 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 4.99999999999999993e-119

                          1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

                              \[\leadsto \left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t \]
                            9. lower--.f6446.9

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

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

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

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

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

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

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

                              \[\leadsto t - \left(\frac{t}{z} - \frac{x}{z}\right) \cdot y \]
                            6. sub-divN/A

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

                              \[\leadsto t - \frac{t - x}{z} \cdot y \]
                            8. lift--.f6447.4

                              \[\leadsto t - \frac{t - x}{z} \cdot y \]
                          7. Applied rewrites47.4%

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

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

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

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

                              \[\leadsto \left(1 - \frac{y}{z}\right) \cdot t \]
                            4. lower-/.f6436.2

                              \[\leadsto \left(1 - \frac{y}{z}\right) \cdot t \]
                          10. Applied rewrites36.2%

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

                            \[\leadsto 1 \cdot t \]
                          12. Step-by-step derivation
                            1. Applied rewrites25.1%

                              \[\leadsto 1 \cdot t \]
                          13. Recombined 3 regimes into one program.
                          14. Add Preprocessing

                          Alternative 17: 42.8% accurate, 0.2× speedup?

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

                            1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

                                \[\leadsto \left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t \]
                              9. lower--.f6446.9

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

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

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

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

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

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

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

                                \[\leadsto t - \left(\frac{t}{z} - \frac{x}{z}\right) \cdot y \]
                              6. sub-divN/A

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

                                \[\leadsto t - \frac{t - x}{z} \cdot y \]
                              8. lift--.f6447.4

                                \[\leadsto t - \frac{t - x}{z} \cdot y \]
                            7. Applied rewrites47.4%

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

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

                                \[\leadsto \frac{x \cdot y}{z} \]
                              2. *-commutativeN/A

                                \[\leadsto \frac{y \cdot x}{z} \]
                              3. lower-*.f6416.9

                                \[\leadsto \frac{y \cdot x}{z} \]
                            10. Applied rewrites16.9%

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

                            if -inf.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -9.99999999999999945e-228 or 4.99999999999999993e-119 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 1.9999999999999999e291

                            1. Initial program 79.1%

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

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

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

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

                              \[\leadsto x + t \]
                            6. Step-by-step derivation
                              1. Applied rewrites33.9%

                                \[\leadsto x + t \]

                              if -9.99999999999999945e-228 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 4.99999999999999993e-119

                              1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t \]
                                9. lower--.f6446.9

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

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

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

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

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

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

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

                                  \[\leadsto t - \left(\frac{t}{z} - \frac{x}{z}\right) \cdot y \]
                                6. sub-divN/A

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

                                  \[\leadsto t - \frac{t - x}{z} \cdot y \]
                                8. lift--.f6447.4

                                  \[\leadsto t - \frac{t - x}{z} \cdot y \]
                              7. Applied rewrites47.4%

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

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

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

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

                                  \[\leadsto \left(1 - \frac{y}{z}\right) \cdot t \]
                                4. lower-/.f6436.2

                                  \[\leadsto \left(1 - \frac{y}{z}\right) \cdot t \]
                              10. Applied rewrites36.2%

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

                                \[\leadsto 1 \cdot t \]
                              12. Step-by-step derivation
                                1. Applied rewrites25.1%

                                  \[\leadsto 1 \cdot t \]
                              13. Recombined 3 regimes into one program.
                              14. Add Preprocessing

                              Alternative 18: 37.2% accurate, 1.5× speedup?

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

                                1. Initial program 79.1%

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

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

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

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

                                  \[\leadsto x + t \]
                                6. Step-by-step derivation
                                  1. Applied rewrites33.9%

                                    \[\leadsto x + t \]

                                  if -2.55e-34 < a < 2.80000000000000019e-7

                                  1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \left(-\frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\right) + t \]
                                    9. lower--.f6446.9

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

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

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

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

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

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

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

                                      \[\leadsto t - \left(\frac{t}{z} - \frac{x}{z}\right) \cdot y \]
                                    6. sub-divN/A

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

                                      \[\leadsto t - \frac{t - x}{z} \cdot y \]
                                    8. lift--.f6447.4

                                      \[\leadsto t - \frac{t - x}{z} \cdot y \]
                                  7. Applied rewrites47.4%

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

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

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

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

                                      \[\leadsto \left(1 - \frac{y}{z}\right) \cdot t \]
                                    4. lower-/.f6436.2

                                      \[\leadsto \left(1 - \frac{y}{z}\right) \cdot t \]
                                  10. Applied rewrites36.2%

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

                                    \[\leadsto 1 \cdot t \]
                                  12. Step-by-step derivation
                                    1. Applied rewrites25.1%

                                      \[\leadsto 1 \cdot t \]
                                  13. Recombined 2 regimes into one program.
                                  14. Add Preprocessing

                                  Alternative 19: 33.9% accurate, 4.8× speedup?

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

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

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

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

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

                                    \[\leadsto x + t \]
                                  6. Step-by-step derivation
                                    1. Applied rewrites33.9%

                                      \[\leadsto x + t \]
                                    2. Add Preprocessing

                                    Reproduce

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