Numeric.Signal:interpolate from hsignal-0.2.7.1

Percentage Accurate: 80.8% → 92.3%
Time: 4.9s
Alternatives: 20
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 20 alternatives:

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

Initial Program: 80.8% accurate, 1.0× speedup?

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

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

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

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

Alternative 1: 92.3% accurate, 0.2× speedup?

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

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

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

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


\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)))) < -9.99999999999999957e110

    1. Initial program 92.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -9.99999999999999957e110 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -5.00000000000000033e-302

    1. Initial program 87.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(x, \left(1 + \frac{z}{a - z}\right) - \frac{y}{a - z}, \frac{t \cdot \left(y - z\right)}{a - z}\right) \]
      11. lift--.f6494.1

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

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

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

    1. Initial program 3.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(x, \left(1 + \frac{z}{a - z}\right) - \frac{y}{a - z}, \frac{t \cdot \left(y - z\right)}{a - z}\right) \]
      11. lift--.f6458.6

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

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

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

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

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

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

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

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

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

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

      1. Initial program 90.2%

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

    Alternative 2: 91.9% accurate, 0.2× speedup?

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

      1. Initial program 92.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -9.99999999999999977e101 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -5.00000000000000033e-302

      1. Initial program 87.2%

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

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

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

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

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

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

      1. Initial program 3.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \mathsf{fma}\left(x, \left(1 + \frac{z}{a - z}\right) - \frac{y}{a - z}, \frac{t \cdot \left(y - z\right)}{a - z}\right) \]
        11. lift--.f6458.6

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

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

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

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

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

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

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

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

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

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

        1. Initial program 90.2%

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

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

        1. Initial program 91.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        1. Initial program 8.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(x, \left(1 + \frac{z}{a - z}\right) - \frac{y}{a - z}, \frac{t \cdot \left(y - z\right)}{a - z}\right) \]
          11. lift--.f6462.0

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

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

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

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

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

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

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

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

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

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

          1. Initial program 90.2%

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

        Alternative 4: 90.9% accurate, 0.3× speedup?

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

          1. Initial program 90.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          1. Initial program 8.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(x, \left(1 + \frac{z}{a - z}\right) - \frac{y}{a - z}, \frac{t \cdot \left(y - z\right)}{a - z}\right) \]
            11. lift--.f6462.0

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

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

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

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

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

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

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

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

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

          Alternative 5: 80.4% accurate, 0.2× speedup?

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

            1. Initial program 86.0%

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

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

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

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

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

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

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

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

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

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

            if -inf.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -4.9999999999999998e-241 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 1.9999999999999998e293

            1. Initial program 92.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              1. Initial program 8.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{fma}\left(x, \left(1 + \frac{z}{a - z}\right) - \frac{y}{a - z}, \frac{t \cdot \left(y - z\right)}{a - z}\right) \]
                11. lift--.f6462.0

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

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

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

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

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

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

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

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

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

              Alternative 6: 76.9% accurate, 0.8× speedup?

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

                1. Initial program 84.8%

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

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

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

                if -9.4999999999999997e-94 < a < 4.0500000000000002e-94

                1. Initial program 72.8%

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

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

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

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

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

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

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

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

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

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

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

                if 4.0500000000000002e-94 < a

                1. Initial program 85.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                Alternative 7: 73.4% accurate, 0.8× speedup?

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

                  1. Initial program 70.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if -4.6e5 < z < 9.60000000000000037e-25

                  1. Initial program 91.5%

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

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

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

                    if 9.60000000000000037e-25 < z

                    1. Initial program 71.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \mathsf{fma}\left(x, \left(1 + \frac{z}{a - z}\right) - \frac{y}{a - z}, \frac{t \cdot \left(y - z\right)}{a - z}\right) \]
                      11. lift--.f6468.8

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

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

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

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

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

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

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

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

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

                    Alternative 8: 73.0% accurate, 0.2× speedup?

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

                      1. Initial program 86.0%

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

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

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

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

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

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

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

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

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

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

                      if -inf.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -4.9999999999999998e-241 or 4.00000000000000013e-228 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 1.9999999999999998e293

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

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

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

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

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

                        if -4.9999999999999998e-241 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 4.00000000000000013e-228

                        1. Initial program 13.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \mathsf{fma}\left(x, \left(1 + \frac{z}{a - z}\right) - \frac{y}{a - z}, \frac{t \cdot \left(y - z\right)}{a - z}\right) \]
                          11. lift--.f6466.6

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

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

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

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

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

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

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

                        Alternative 9: 67.4% accurate, 0.7× speedup?

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

                          1. Initial program 86.8%

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

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

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

                          if -9.4999999999999997e-94 < a < 2.26e-100

                          1. Initial program 72.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \mathsf{fma}\left(x, \frac{y}{z}, t\right) \]
                            3. Step-by-step derivation
                              1. lower-/.f6465.9

                                \[\leadsto \mathsf{fma}\left(x, \frac{y}{z}, t\right) \]
                            4. Applied rewrites65.9%

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

                            if 2.26e-100 < a < 2.01999999999999998e93

                            1. Initial program 79.2%

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

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

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

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

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

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

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

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

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

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

                          Alternative 10: 65.5% accurate, 0.8× speedup?

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

                            1. Initial program 71.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \mathsf{fma}\left(x, \left(1 + \frac{z}{a - z}\right) - \frac{y}{a - z}, \frac{t \cdot \left(y - z\right)}{a - z}\right) \]
                              11. lift--.f6468.1

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

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

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

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

                                \[\leadsto \mathsf{fma}\left(x, \frac{y}{z}, t\right) \]
                              3. Step-by-step derivation
                                1. lower-/.f6456.4

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

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

                              if -2.1e20 < z < -6.79999999999999973e-65

                              1. Initial program 88.6%

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

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

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

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

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

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

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

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

                              if -6.79999999999999973e-65 < z < 4.49999999999999973e-57

                              1. Initial program 91.9%

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

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

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

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

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

                              Alternative 11: 65.0% accurate, 0.9× speedup?

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

                                1. Initial program 74.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                if -6.79999999999999973e-65 < z < 4.49999999999999973e-57

                                1. Initial program 91.9%

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

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

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

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

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

                                  if 4.49999999999999973e-57 < z

                                  1. Initial program 73.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \mathsf{fma}\left(x, \frac{y}{z}, t\right) \]
                                    3. Step-by-step derivation
                                      1. lower-/.f6454.2

                                        \[\leadsto \mathsf{fma}\left(x, \frac{y}{z}, t\right) \]
                                    4. Applied rewrites54.2%

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

                                  Alternative 12: 64.7% accurate, 0.9× speedup?

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

                                    1. Initial program 72.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \mathsf{fma}\left(x, \frac{y}{z}, t\right) \]
                                      3. Step-by-step derivation
                                        1. lower-/.f6455.2

                                          \[\leadsto \mathsf{fma}\left(x, \frac{y}{z}, t\right) \]
                                      4. Applied rewrites55.2%

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

                                      if -1.3499999999999999e-28 < z < 4.49999999999999973e-57

                                      1. Initial program 91.8%

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

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

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

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

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

                                      Alternative 13: 63.9% accurate, 0.9× speedup?

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

                                        1. Initial program 72.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            \[\leadsto \mathsf{fma}\left(x, \frac{y}{z}, t\right) \]
                                          3. Step-by-step derivation
                                            1. lower-/.f6455.2

                                              \[\leadsto \mathsf{fma}\left(x, \frac{y}{z}, t\right) \]
                                          4. Applied rewrites55.2%

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

                                          if -1.3499999999999999e-28 < z < 4.49999999999999973e-57

                                          1. Initial program 91.8%

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

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

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

                                        Alternative 14: 59.1% accurate, 1.1× speedup?

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

                                          1. Initial program 89.2%

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

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

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

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

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

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

                                              if -5.60000000000000009e51 < a < 2.01999999999999998e93

                                              1. Initial program 75.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                  \[\leadsto \mathsf{fma}\left(x, \left(1 + \frac{z}{a - z}\right) - \frac{y}{a - z}, \frac{t \cdot \left(y - z\right)}{a - z}\right) \]
                                                11. lift--.f6478.7

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

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

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

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

                                                  \[\leadsto \mathsf{fma}\left(x, \frac{y}{z}, t\right) \]
                                                3. Step-by-step derivation
                                                  1. lower-/.f6456.2

                                                    \[\leadsto \mathsf{fma}\left(x, \frac{y}{z}, t\right) \]
                                                4. Applied rewrites56.2%

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

                                              Alternative 15: 53.2% accurate, 1.1× speedup?

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

                                                1. Initial program 89.2%

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

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

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

                                                  if -8.5999999999999994e51 < a < 3.30000000000000009e93

                                                  1. Initial program 75.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                      \[\leadsto \mathsf{fma}\left(x, \left(1 + \frac{z}{a - z}\right) - \frac{y}{a - z}, \frac{t \cdot \left(y - z\right)}{a - z}\right) \]
                                                    11. lift--.f6478.7

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

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

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

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

                                                      \[\leadsto \mathsf{fma}\left(x, \frac{y}{z}, t\right) \]
                                                    3. Step-by-step derivation
                                                      1. lower-/.f6456.2

                                                        \[\leadsto \mathsf{fma}\left(x, \frac{y}{z}, t\right) \]
                                                    4. Applied rewrites56.2%

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

                                                  Alternative 16: 43.5% accurate, 0.2× speedup?

                                                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x \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 -2 \cdot 10^{-207}:\\ \;\;\;\;\mathsf{fma}\left(x, 1, t\right)\\ \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{-265}:\\ \;\;\;\;t\\ \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+297}:\\ \;\;\;\;\mathsf{fma}\left(x, 1, t\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                  (FPCore (x y z t a)
                                                   :precision binary64
                                                   (let* ((t_1 (/ (* x y) z)) (t_2 (+ x (* (- y z) (/ (- t x) (- a z))))))
                                                     (if (<= t_2 (- INFINITY))
                                                       t_1
                                                       (if (<= t_2 -2e-207)
                                                         (fma x 1.0 t)
                                                         (if (<= t_2 2e-265) t (if (<= t_2 5e+297) (fma x 1.0 t) t_1))))))
                                                  double code(double x, double y, double z, double t, double a) {
                                                  	double t_1 = (x * 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 <= -2e-207) {
                                                  		tmp = fma(x, 1.0, t);
                                                  	} else if (t_2 <= 2e-265) {
                                                  		tmp = t;
                                                  	} else if (t_2 <= 5e+297) {
                                                  		tmp = fma(x, 1.0, t);
                                                  	} else {
                                                  		tmp = t_1;
                                                  	}
                                                  	return tmp;
                                                  }
                                                  
                                                  function code(x, y, z, t, a)
                                                  	t_1 = Float64(Float64(x * 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 <= -2e-207)
                                                  		tmp = fma(x, 1.0, t);
                                                  	elseif (t_2 <= 2e-265)
                                                  		tmp = t;
                                                  	elseif (t_2 <= 5e+297)
                                                  		tmp = fma(x, 1.0, t);
                                                  	else
                                                  		tmp = t_1;
                                                  	end
                                                  	return tmp
                                                  end
                                                  
                                                  code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x * 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, -2e-207], N[(x * 1.0 + t), $MachinePrecision], If[LessEqual[t$95$2, 2e-265], t, If[LessEqual[t$95$2, 5e+297], N[(x * 1.0 + t), $MachinePrecision], t$95$1]]]]]]
                                                  
                                                  \begin{array}{l}
                                                  
                                                  \\
                                                  \begin{array}{l}
                                                  t_1 := \frac{x \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 -2 \cdot 10^{-207}:\\
                                                  \;\;\;\;\mathsf{fma}\left(x, 1, t\right)\\
                                                  
                                                  \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{-265}:\\
                                                  \;\;\;\;t\\
                                                  
                                                  \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+297}:\\
                                                  \;\;\;\;\mathsf{fma}\left(x, 1, t\right)\\
                                                  
                                                  \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 4.9999999999999998e297 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z))))

                                                    1. Initial program 85.7%

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

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

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

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

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

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

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

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

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

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

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

                                                        \[\leadsto \left(\left(-\frac{y - z}{a - z}\right) + 1\right) \cdot x \]
                                                      11. lift--.f6455.9

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

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

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

                                                        \[\leadsto \frac{x \cdot y}{z} \]
                                                      2. lower-*.f6441.2

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

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

                                                    if -inf.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -1.99999999999999985e-207 or 1.99999999999999997e-265 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 4.9999999999999998e297

                                                    1. Initial program 93.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                        \[\leadsto \mathsf{fma}\left(x, \left(1 + \frac{z}{a - z}\right) - \frac{y}{a - z}, \frac{t \cdot \left(y - z\right)}{a - z}\right) \]
                                                      11. lift--.f6479.0

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

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

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

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

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

                                                          \[\leadsto \mathsf{fma}\left(x, 1, t\right) \]

                                                        if -1.99999999999999985e-207 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 1.99999999999999997e-265

                                                        1. Initial program 13.2%

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

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

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

                                                        Alternative 17: 38.5% accurate, 1.0× speedup?

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

                                                          1. Initial program 91.1%

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

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

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

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

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

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

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

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

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

                                                              \[\leadsto \frac{t \cdot y}{a} \]
                                                            2. lower-*.f6428.8

                                                              \[\leadsto \frac{t \cdot y}{a} \]
                                                          7. Applied rewrites28.8%

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

                                                          if -1.9e202 < y < 2.4999999999999999e-8

                                                          1. Initial program 76.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                \[\leadsto \mathsf{fma}\left(x, 1, t\right) \]

                                                              if 2.4999999999999999e-8 < y < 6.19999999999999973e118

                                                              1. Initial program 84.7%

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

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

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

                                                                if 6.19999999999999973e118 < y

                                                                1. Initial program 89.4%

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

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

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

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

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

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

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

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

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

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

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

                                                                    \[\leadsto \left(\left(-\frac{y - z}{a - z}\right) + 1\right) \cdot x \]
                                                                  11. lift--.f6448.6

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

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

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

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

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

                                                              Alternative 18: 38.5% accurate, 0.4× 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 -2 \cdot 10^{-207}:\\ \;\;\;\;\mathsf{fma}\left(x, 1, t\right)\\ \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{-265}:\\ \;\;\;\;t\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x, 1, t\right)\\ \end{array} \end{array} \]
                                                              (FPCore (x y z t a)
                                                               :precision binary64
                                                               (let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
                                                                 (if (<= t_1 -2e-207) (fma x 1.0 t) (if (<= t_1 2e-265) t (fma x 1.0 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 <= -2e-207) {
                                                              		tmp = fma(x, 1.0, t);
                                                              	} else if (t_1 <= 2e-265) {
                                                              		tmp = t;
                                                              	} else {
                                                              		tmp = fma(x, 1.0, 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 <= -2e-207)
                                                              		tmp = fma(x, 1.0, t);
                                                              	elseif (t_1 <= 2e-265)
                                                              		tmp = t;
                                                              	else
                                                              		tmp = fma(x, 1.0, t);
                                                              	end
                                                              	return tmp
                                                              end
                                                              
                                                              code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e-207], N[(x * 1.0 + t), $MachinePrecision], If[LessEqual[t$95$1, 2e-265], t, N[(x * 1.0 + 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 -2 \cdot 10^{-207}:\\
                                                              \;\;\;\;\mathsf{fma}\left(x, 1, t\right)\\
                                                              
                                                              \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{-265}:\\
                                                              \;\;\;\;t\\
                                                              
                                                              \mathbf{else}:\\
                                                              \;\;\;\;\mathsf{fma}\left(x, 1, t\right)\\
                                                              
                                                              
                                                              \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)))) < -1.99999999999999985e-207 or 1.99999999999999997e-265 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z))))

                                                                1. Initial program 91.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                    \[\leadsto \mathsf{fma}\left(x, \left(1 + \frac{z}{a - z}\right) - \frac{y}{a - z}, \frac{t \cdot \left(y - z\right)}{a - z}\right) \]
                                                                  11. lift--.f6480.1

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

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

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

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

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

                                                                      \[\leadsto \mathsf{fma}\left(x, 1, t\right) \]

                                                                    if -1.99999999999999985e-207 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 1.99999999999999997e-265

                                                                    1. Initial program 13.2%

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

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

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

                                                                    Alternative 19: 38.2% accurate, 2.1× speedup?

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

                                                                      1. Initial program 89.0%

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

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

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

                                                                        if -4.00000000000000019e26 < a < 2.95000000000000004e93

                                                                        1. Initial program 75.2%

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

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

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

                                                                        Alternative 20: 25.1% accurate, 17.9× speedup?

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

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

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

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

                                                                          Reproduce

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