Graphics.Rendering.Chart.Axis.Types:linMap from Chart-1.5.3

Percentage Accurate: 68.5% → 90.0%
Time: 4.0s
Alternatives: 18
Speedup: 0.8×

Specification

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

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

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

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

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

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

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

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

Alternative 1: 90.0% accurate, 0.3× speedup?

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

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

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

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


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

    1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\frac{t - z}{\mathsf{neg}\left(\color{blue}{\left(a - t\right)}\right)}, y - x, x\right) \]
      14. sub-negate-revN/A

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

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

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

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

    1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 90.0% accurate, 0.3× speedup?

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

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

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

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


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

    1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\frac{t - z}{\mathsf{neg}\left(\color{blue}{\left(a - t\right)}\right)}, y - x, x\right) \]
      14. sub-negate-revN/A

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

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

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

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

    1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\mathsf{neg}\left(\left(z \cdot \left(y - x\right) - a \cdot \left(y - x\right)\right)\right)}{t} + y \]
      8. sub-negate-revN/A

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

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

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

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

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

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

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

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

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

Alternative 3: 75.9% accurate, 0.7× speedup?

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

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

\mathbf{elif}\;a \leq 3.8 \cdot 10^{-151}:\\
\;\;\;\;\mathsf{fma}\left(y - x, \frac{a - z}{t}, y\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -5.00000000000000024e25 or 1.20000000000000001e-22 < a

    1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \color{blue}{\frac{z - t}{a} \cdot \left(y - x\right)} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(x\right)\right)\right)\right) \]
        9. remove-double-negN/A

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

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

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

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

      if -5.00000000000000024e25 < a < 3.7999999999999997e-151

      1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \frac{\mathsf{neg}\left(\left(z \cdot \left(y - x\right) - a \cdot \left(y - x\right)\right)\right)}{t} + y \]
        8. sub-negate-revN/A

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

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

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

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

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

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

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

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

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

      if 3.7999999999999997e-151 < a < 1.20000000000000001e-22

      1. Initial program 68.5%

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

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

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

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

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

    Alternative 4: 74.8% accurate, 0.8× speedup?

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

      1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \color{blue}{\frac{z - t}{a} \cdot \left(y - x\right)} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(x\right)\right)\right)\right) \]
          9. remove-double-negN/A

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

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

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

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

        if -5.00000000000000024e25 < a < 2.20000000000000009e-52

        1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \frac{\mathsf{neg}\left(\left(z \cdot \left(y - x\right) - a \cdot \left(y - x\right)\right)\right)}{t} + y \]
          8. sub-negate-revN/A

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

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

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

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

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

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

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

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

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

      Alternative 5: 71.6% accurate, 0.8× speedup?

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

        1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \color{blue}{\frac{z - t}{a} \cdot \left(y - x\right)} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(x\right)\right)\right)\right) \]
            9. remove-double-negN/A

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

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

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

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

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

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

            if -5.00000000000000024e25 < a < 2.20000000000000009e-52

            1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \frac{\mathsf{neg}\left(\left(z \cdot \left(y - x\right) - a \cdot \left(y - x\right)\right)\right)}{t} + y \]
              8. sub-negate-revN/A

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

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

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

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

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

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

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

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

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

            if 2.20000000000000009e-52 < a

            1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(\frac{t - z}{\mathsf{neg}\left(\color{blue}{\left(a - t\right)}\right)}, y - x, x\right) \]
              14. sub-negate-revN/A

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

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

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

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

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

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

          Alternative 6: 61.9% accurate, 0.9× speedup?

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

            1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \color{blue}{\frac{z - t}{a} \cdot \left(y - x\right)} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(x\right)\right)\right)\right) \]
                9. remove-double-negN/A

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

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

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

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

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

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

                if -5.00000000000000024e25 < a < 3.7999999999999997e-151

                1. Initial program 68.5%

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

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

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

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

                    \[\leadsto \frac{y \cdot \left(z - t\right)}{a - t} \]
                  4. lower--.f6439.0

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

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

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

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

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

                    \[\leadsto y \cdot \frac{z - t}{\color{blue}{a} - t} \]
                  5. sub-negate-revN/A

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

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

                    \[\leadsto y \cdot \frac{\mathsf{neg}\left(\left(t - z\right)\right)}{a - \color{blue}{t}} \]
                  8. sub-negate-revN/A

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

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

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

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

                    \[\leadsto \frac{t - z}{t - a} \cdot \color{blue}{y} \]
                  13. lower-*.f6450.9

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

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

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

                    \[\leadsto \frac{\mathsf{neg}\left(\left(t - z\right)\right)}{\mathsf{neg}\left(\left(t - a\right)\right)} \cdot y \]
                  17. sub-negate-revN/A

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

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

                    \[\leadsto \frac{z - t}{\mathsf{neg}\left(\left(t - a\right)\right)} \cdot y \]
                  20. sub-negate-revN/A

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

                    \[\leadsto \frac{z - t}{a - t} \cdot y \]
                  22. lower-/.f6450.9

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

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

                if 3.7999999999999997e-151 < a

                1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \mathsf{fma}\left(\frac{t - z}{\mathsf{neg}\left(\color{blue}{\left(a - t\right)}\right)}, y - x, x\right) \]
                  14. sub-negate-revN/A

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

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

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

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

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

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

              Alternative 7: 61.0% accurate, 0.9× speedup?

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

                1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \color{blue}{\frac{z - t}{a} \cdot \left(y - x\right)} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(x\right)\right)\right)\right) \]
                    9. remove-double-negN/A

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

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

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

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

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

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

                    if -2.7e13 < a < 6.00000000000000033e-55

                    1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

                    if 6.00000000000000033e-55 < a

                    1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \mathsf{fma}\left(\frac{t - z}{\mathsf{neg}\left(\color{blue}{\left(a - t\right)}\right)}, y - x, x\right) \]
                      14. sub-negate-revN/A

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

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

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

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

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

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

                  Alternative 8: 47.9% accurate, 0.9× speedup?

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

                    1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto \color{blue}{\frac{z - t}{a} \cdot \left(y - x\right)} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(x\right)\right)\right)\right) \]
                        9. remove-double-negN/A

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

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

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

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

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

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

                        if -3.2e22 < a < 7.60000000000000046e-153

                        1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \mathsf{fma}\left(\frac{t - z}{\mathsf{neg}\left(\color{blue}{\left(a - t\right)}\right)}, y - x, x\right) \]
                          14. sub-negate-revN/A

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

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

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

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

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

                          if 7.60000000000000046e-153 < a

                          1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \mathsf{fma}\left(\frac{t - z}{\mathsf{neg}\left(\color{blue}{\left(a - t\right)}\right)}, y - x, x\right) \]
                            14. sub-negate-revN/A

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

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

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

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

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

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

                        Alternative 9: 47.6% accurate, 0.9× speedup?

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

                          1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \color{blue}{\frac{z - t}{a} \cdot \left(y - x\right)} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(x\right)\right)\right)\right) \]
                              9. remove-double-negN/A

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

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

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

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

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

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

                                  \[\leadsto \color{blue}{\frac{z - t}{a} \cdot y + x} \]
                                2. add-flipN/A

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

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

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

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

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

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

                                  \[\leadsto \color{blue}{\left(\frac{1}{a} \cdot y\right) \cdot \left(z - t\right)} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(x\right)\right)\right)\right) \]
                                9. remove-double-negN/A

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

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

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

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

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

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

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

                              if -3.2e22 < a < 7.60000000000000046e-153

                              1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \mathsf{fma}\left(\frac{t - z}{\mathsf{neg}\left(\color{blue}{\left(a - t\right)}\right)}, y - x, x\right) \]
                                14. sub-negate-revN/A

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

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

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

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

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

                                if 7.60000000000000046e-153 < a

                                1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \mathsf{fma}\left(\frac{t - z}{\mathsf{neg}\left(\color{blue}{\left(a - t\right)}\right)}, y - x, x\right) \]
                                  14. sub-negate-revN/A

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

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

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

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

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

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

                              Alternative 10: 47.5% accurate, 0.9× speedup?

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

                                1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \mathsf{fma}\left(\frac{t - z}{\mathsf{neg}\left(\color{blue}{\left(a - t\right)}\right)}, y - x, x\right) \]
                                  14. sub-negate-revN/A

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

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

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

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

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

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

                                if -3.2e22 < a < 7.60000000000000046e-153

                                1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \mathsf{fma}\left(\frac{t - z}{\mathsf{neg}\left(\color{blue}{\left(a - t\right)}\right)}, y - x, x\right) \]
                                  14. sub-negate-revN/A

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

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

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

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

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

                                Alternative 11: 40.0% accurate, 1.0× speedup?

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

                                  1. Initial program 68.5%

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

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

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

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

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

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

                                    \[\leadsto x + \frac{y \cdot z}{a} \]
                                  6. Step-by-step derivation
                                    1. lower-*.f6438.7

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

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

                                  if -3.2e22 < a < 7.60000000000000046e-153

                                  1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \mathsf{fma}\left(\frac{t - z}{\mathsf{neg}\left(\color{blue}{\left(a - t\right)}\right)}, y - x, x\right) \]
                                    14. sub-negate-revN/A

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

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

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

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

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

                                  Alternative 12: 36.3% accurate, 0.8× speedup?

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

                                    1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \mathsf{fma}\left(\frac{t - z}{\mathsf{neg}\left(\color{blue}{\left(a - t\right)}\right)}, y - x, x\right) \]
                                      14. sub-negate-revN/A

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

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

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

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

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

                                      if -2.05000000000000006e128 < t < -7.5000000000000003e-143

                                      1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

                                          \[\leadsto z \cdot \frac{y}{a - \color{blue}{t}} \]
                                        2. lower--.f6423.4

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

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

                                      if -7.5000000000000003e-143 < t < 1.45e31

                                      1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    Alternative 13: 34.7% accurate, 0.8× speedup?

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

                                      1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \mathsf{fma}\left(\frac{t - z}{\mathsf{neg}\left(\color{blue}{\left(a - t\right)}\right)}, y - x, x\right) \]
                                        14. sub-negate-revN/A

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

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

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

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

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

                                        if -3.19999999999999976e127 < t < -5.9999999999999996e-136

                                        1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

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

                                            \[\leadsto \frac{y \cdot z}{a - t} \]
                                          3. lower--.f6421.3

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

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

                                        if -5.9999999999999996e-136 < t < 2.79999999999999983e30

                                        1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

                                            \[\leadsto z \cdot \frac{y}{a - \color{blue}{t}} \]
                                          2. lower--.f6423.4

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

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

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

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

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

                                            \[\leadsto \frac{z \cdot \left(y - x\right)}{a} \]
                                        10. Applied rewrites23.9%

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

                                      Alternative 14: 30.5% accurate, 1.0× speedup?

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

                                        1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

                                            \[\leadsto z \cdot \frac{y}{a - \color{blue}{t}} \]
                                          2. lower--.f6423.4

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

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

                                        if -4.3999999999999997e63 < z < 3.2e28

                                        1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            \[\leadsto \mathsf{fma}\left(\frac{t - z}{\mathsf{neg}\left(\color{blue}{\left(a - t\right)}\right)}, y - x, x\right) \]
                                          14. sub-negate-revN/A

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

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

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

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

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

                                        Alternative 15: 27.8% accurate, 1.0× speedup?

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

                                          1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

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

                                              \[\leadsto \frac{y \cdot z}{a - t} \]
                                            3. lower--.f6421.3

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

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

                                          if -4.3999999999999997e63 < z < 5.00000000000000004e77

                                          1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                              \[\leadsto \mathsf{fma}\left(\frac{t - z}{\mathsf{neg}\left(\color{blue}{\left(a - t\right)}\right)}, y - x, x\right) \]
                                            14. sub-negate-revN/A

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

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

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

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

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

                                          Alternative 16: 27.2% accurate, 1.1× speedup?

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

                                            1. Initial program 68.5%

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

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

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

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

                                                \[\leadsto \frac{y \cdot \left(z - t\right)}{a - t} \]
                                              4. lower--.f6439.0

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

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

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

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

                                                \[\leadsto \frac{y \cdot z}{a} \]
                                            7. Applied rewrites16.8%

                                              \[\leadsto \frac{y \cdot z}{\color{blue}{a}} \]
                                            8. Step-by-step derivation
                                              1. lift-/.f64N/A

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

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

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

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

                                                \[\leadsto \frac{z}{a} \cdot y \]
                                              6. lower-/.f6419.2

                                                \[\leadsto \frac{z}{a} \cdot y \]
                                            9. Applied rewrites19.2%

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

                                            if -4.3999999999999997e63 < z < 4.49999999999999979e47

                                            1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                \[\leadsto \mathsf{fma}\left(\frac{t - z}{\mathsf{neg}\left(\color{blue}{\left(a - t\right)}\right)}, y - x, x\right) \]
                                              14. sub-negate-revN/A

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

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

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

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

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

                                            Alternative 17: 21.8% accurate, 1.6× speedup?

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

                                              1. Initial program 68.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                  \[\leadsto \frac{x \cdot \left(z - a\right)}{t} \]
                                                3. lower--.f6420.5

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

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

                                                \[\leadsto \frac{x \cdot z}{t} \]
                                              9. Step-by-step derivation
                                                1. lower-*.f6416.9

                                                  \[\leadsto \frac{x \cdot z}{t} \]
                                              10. Applied rewrites16.9%

                                                \[\leadsto \frac{x \cdot z}{t} \]

                                              if -1.09999999999999999e-57 < x

                                              1. Initial program 68.5%

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

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

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

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

                                                  \[\leadsto \frac{y \cdot \left(z - t\right)}{a - t} \]
                                                4. lower--.f6439.0

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

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

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

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

                                                  \[\leadsto \frac{y \cdot z}{a} \]
                                              7. Applied rewrites16.8%

                                                \[\leadsto \frac{y \cdot z}{\color{blue}{a}} \]
                                              8. Step-by-step derivation
                                                1. lift-/.f64N/A

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

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

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

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

                                                  \[\leadsto \frac{z}{a} \cdot y \]
                                                6. lower-/.f6419.2

                                                  \[\leadsto \frac{z}{a} \cdot y \]
                                              9. Applied rewrites19.2%

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

                                            Alternative 18: 16.9% accurate, 2.4× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                \[\leadsto \frac{x \cdot \left(z - a\right)}{t} \]
                                              3. lower--.f6420.5

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

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

                                              \[\leadsto \frac{x \cdot z}{t} \]
                                            9. Step-by-step derivation
                                              1. lower-*.f6416.9

                                                \[\leadsto \frac{x \cdot z}{t} \]
                                            10. Applied rewrites16.9%

                                              \[\leadsto \frac{x \cdot z}{t} \]
                                            11. Add Preprocessing

                                            Reproduce

                                            ?
                                            herbie shell --seed 2025156 
                                            (FPCore (x y z t a)
                                              :name "Graphics.Rendering.Chart.Axis.Types:linMap from Chart-1.5.3"
                                              :precision binary64
                                              (+ x (/ (* (- y x) (- z t)) (- a t))))