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

Percentage Accurate: 67.3% → 89.0%
Time: 10.3s
Alternatives: 18
Speedup: 0.9×

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}

Sampling outcomes in binary64 precision:

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: 67.3% 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: 89.0% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.6 \cdot 10^{+193} \lor \neg \left(t \leq 3.8 \cdot 10^{+108}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{a}{t} + 1, \left(y - x\right) \cdot \frac{\mathsf{fma}\left(z, -1, a\right)}{t}, y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z - t}{a - t}, y - x, x\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (or (<= t -1.6e+193) (not (<= t 3.8e+108)))
   (fma (+ (/ a t) 1.0) (* (- y x) (/ (fma z -1.0 a) t)) y)
   (fma (/ (- z t) (- a t)) (- y x) x)))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if ((t <= -1.6e+193) || !(t <= 3.8e+108)) {
		tmp = fma(((a / t) + 1.0), ((y - x) * (fma(z, -1.0, a) / t)), y);
	} else {
		tmp = fma(((z - t) / (a - t)), (y - x), x);
	}
	return tmp;
}
function code(x, y, z, t, a)
	tmp = 0.0
	if ((t <= -1.6e+193) || !(t <= 3.8e+108))
		tmp = fma(Float64(Float64(a / t) + 1.0), Float64(Float64(y - x) * Float64(fma(z, -1.0, a) / t)), y);
	else
		tmp = fma(Float64(Float64(z - t) / Float64(a - t)), Float64(y - x), x);
	end
	return tmp
end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.6e+193], N[Not[LessEqual[t, 3.8e+108]], $MachinePrecision]], N[(N[(N[(a / t), $MachinePrecision] + 1.0), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] * N[(N[(z * -1.0 + a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision], N[(N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.6 \cdot 10^{+193} \lor \neg \left(t \leq 3.8 \cdot 10^{+108}\right):\\
\;\;\;\;\mathsf{fma}\left(\frac{a}{t} + 1, \left(y - x\right) \cdot \frac{\mathsf{fma}\left(z, -1, a\right)}{t}, y\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -1.60000000000000007e193 or 3.80000000000000008e108 < t

    1. Initial program 35.8%

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\frac{y - x}{t} \cdot \left(z - a\right)}\right)\right) + y \]
      10. distribute-lft-neg-inN/A

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

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

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

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

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

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

      if -1.60000000000000007e193 < t < 3.80000000000000008e108

      1. Initial program 81.0%

        \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
      2. Add Preprocessing
      3. 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. lower-/.f6492.1

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z - t}{a - t}, y - x, x\right)} \]
    9. Recombined 2 regimes into one program.
    10. Final simplification92.8%

      \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.6 \cdot 10^{+193} \lor \neg \left(t \leq 3.8 \cdot 10^{+108}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{a}{t} + 1, \left(y - x\right) \cdot \frac{\mathsf{fma}\left(z, -1, a\right)}{t}, y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z - t}{a - t}, y - x, x\right)\\ \end{array} \]
    11. Add Preprocessing

    Alternative 2: 53.2% accurate, 0.5× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(z - t, \frac{y}{a}, x\right)\\ t_2 := \mathsf{fma}\left(1, y - x, x\right)\\ t_3 := \frac{\left(x - y\right) \cdot z}{t}\\ \mathbf{if}\;t \leq -1.45 \cdot 10^{+172}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq -7.8 \cdot 10^{+21}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -1.66 \cdot 10^{-41}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;t \leq 7.2 \cdot 10^{-106}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y - x}{a}, z, x\right)\\ \mathbf{elif}\;t \leq 3.2 \cdot 10^{-41}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;t \leq 1.6 \cdot 10^{+127}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
    (FPCore (x y z t a)
     :precision binary64
     (let* ((t_1 (fma (- z t) (/ y a) x))
            (t_2 (fma 1.0 (- y x) x))
            (t_3 (/ (* (- x y) z) t)))
       (if (<= t -1.45e+172)
         t_2
         (if (<= t -7.8e+21)
           t_1
           (if (<= t -1.66e-41)
             t_3
             (if (<= t 7.2e-106)
               (fma (/ (- y x) a) z x)
               (if (<= t 3.2e-41) t_3 (if (<= t 1.6e+127) t_1 t_2))))))))
    double code(double x, double y, double z, double t, double a) {
    	double t_1 = fma((z - t), (y / a), x);
    	double t_2 = fma(1.0, (y - x), x);
    	double t_3 = ((x - y) * z) / t;
    	double tmp;
    	if (t <= -1.45e+172) {
    		tmp = t_2;
    	} else if (t <= -7.8e+21) {
    		tmp = t_1;
    	} else if (t <= -1.66e-41) {
    		tmp = t_3;
    	} else if (t <= 7.2e-106) {
    		tmp = fma(((y - x) / a), z, x);
    	} else if (t <= 3.2e-41) {
    		tmp = t_3;
    	} else if (t <= 1.6e+127) {
    		tmp = t_1;
    	} else {
    		tmp = t_2;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a)
    	t_1 = fma(Float64(z - t), Float64(y / a), x)
    	t_2 = fma(1.0, Float64(y - x), x)
    	t_3 = Float64(Float64(Float64(x - y) * z) / t)
    	tmp = 0.0
    	if (t <= -1.45e+172)
    		tmp = t_2;
    	elseif (t <= -7.8e+21)
    		tmp = t_1;
    	elseif (t <= -1.66e-41)
    		tmp = t_3;
    	elseif (t <= 7.2e-106)
    		tmp = fma(Float64(Float64(y - x) / a), z, x);
    	elseif (t <= 3.2e-41)
    		tmp = t_3;
    	elseif (t <= 1.6e+127)
    		tmp = t_1;
    	else
    		tmp = t_2;
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(z - t), $MachinePrecision] * N[(y / a), $MachinePrecision] + x), $MachinePrecision]}, Block[{t$95$2 = N[(1.0 * N[(y - x), $MachinePrecision] + x), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(x - y), $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision]}, If[LessEqual[t, -1.45e+172], t$95$2, If[LessEqual[t, -7.8e+21], t$95$1, If[LessEqual[t, -1.66e-41], t$95$3, If[LessEqual[t, 7.2e-106], N[(N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision] * z + x), $MachinePrecision], If[LessEqual[t, 3.2e-41], t$95$3, If[LessEqual[t, 1.6e+127], t$95$1, t$95$2]]]]]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \mathsf{fma}\left(z - t, \frac{y}{a}, x\right)\\
    t_2 := \mathsf{fma}\left(1, y - x, x\right)\\
    t_3 := \frac{\left(x - y\right) \cdot z}{t}\\
    \mathbf{if}\;t \leq -1.45 \cdot 10^{+172}:\\
    \;\;\;\;t\_2\\
    
    \mathbf{elif}\;t \leq -7.8 \cdot 10^{+21}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;t \leq -1.66 \cdot 10^{-41}:\\
    \;\;\;\;t\_3\\
    
    \mathbf{elif}\;t \leq 7.2 \cdot 10^{-106}:\\
    \;\;\;\;\mathsf{fma}\left(\frac{y - x}{a}, z, x\right)\\
    
    \mathbf{elif}\;t \leq 3.2 \cdot 10^{-41}:\\
    \;\;\;\;t\_3\\
    
    \mathbf{elif}\;t \leq 1.6 \cdot 10^{+127}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_2\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 4 regimes
    2. if t < -1.45e172 or 1.59999999999999988e127 < t

      1. Initial program 36.8%

        \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
      2. Add Preprocessing
      3. 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. lower-/.f6465.5

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

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

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

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

        if -1.45e172 < t < -7.8e21 or 3.20000000000000012e-41 < t < 1.59999999999999988e127

        1. Initial program 64.7%

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

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

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

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

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

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

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

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

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

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

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

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

          if -7.8e21 < t < -1.65999999999999993e-41 or 7.20000000000000025e-106 < t < 3.20000000000000012e-41

          1. Initial program 88.8%

            \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
          2. Add Preprocessing
          3. 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. lower-/.f6485.0

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

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

            \[\leadsto \color{blue}{\left(y + -1 \cdot \frac{z \cdot \left(y - x\right)}{t}\right) - -1 \cdot \frac{a \cdot \left(y - x\right)}{t}} \]
          6. Step-by-step derivation
            1. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -1.65999999999999993e-41 < t < 7.20000000000000025e-106

            1. Initial program 92.1%

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

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

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

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

                \[\leadsto \color{blue}{\frac{y - x}{a} \cdot z} + x \]
              4. lower-fma.f64N/A

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

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

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

              \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y - x}{a}, z, x\right)} \]
          10. Recombined 4 regimes into one program.
          11. Final simplification61.8%

            \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.45 \cdot 10^{+172}:\\ \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\ \mathbf{elif}\;t \leq -7.8 \cdot 10^{+21}:\\ \;\;\;\;\mathsf{fma}\left(z - t, \frac{y}{a}, x\right)\\ \mathbf{elif}\;t \leq -1.66 \cdot 10^{-41}:\\ \;\;\;\;\frac{\left(x - y\right) \cdot z}{t}\\ \mathbf{elif}\;t \leq 7.2 \cdot 10^{-106}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y - x}{a}, z, x\right)\\ \mathbf{elif}\;t \leq 3.2 \cdot 10^{-41}:\\ \;\;\;\;\frac{\left(x - y\right) \cdot z}{t}\\ \mathbf{elif}\;t \leq 1.6 \cdot 10^{+127}:\\ \;\;\;\;\mathsf{fma}\left(z - t, \frac{y}{a}, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\ \end{array} \]
          12. Add Preprocessing

          Alternative 3: 76.8% accurate, 0.7× speedup?

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

            1. Initial program 56.2%

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\frac{y - x}{t} \cdot \left(z - a\right)}\right)\right) + y \]
              10. distribute-lft-neg-inN/A

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

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

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

            if -1.1e-41 < t < 6.79999999999999965e-106

            1. Initial program 92.1%

              \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
            2. Add Preprocessing
            3. 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. lower-/.f6498.7

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

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

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

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

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

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

            if 6.79999999999999965e-106 < t < 9.99999999999999946e48

            1. Initial program 78.2%

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

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

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

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

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

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

            if 9.99999999999999946e48 < t

            1. Initial program 43.4%

              \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
            2. Add Preprocessing
            3. 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. lower-/.f6474.5

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

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

              \[\leadsto \color{blue}{\left(y + -1 \cdot \frac{z \cdot \left(y - x\right)}{t}\right) - -1 \cdot \frac{a \cdot \left(y - x\right)}{t}} \]
            6. Step-by-step derivation
              1. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.1 \cdot 10^{-41}:\\ \;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(-1, y, x\right)}{t}, z - a, y\right)\\ \mathbf{elif}\;t \leq 6.8 \cdot 10^{-106}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z - t}{a}, y - x, x\right)\\ \mathbf{elif}\;t \leq 10^{+49}:\\ \;\;\;\;x + \frac{\left(z - t\right) \cdot y}{a - t}\\ \mathbf{else}:\\ \;\;\;\;y - \frac{y - x}{t} \cdot \left(z - a\right)\\ \end{array} \]
          5. Add Preprocessing

          Alternative 4: 76.8% accurate, 0.7× speedup?

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

            1. Initial program 51.3%

              \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
            2. Add Preprocessing
            3. 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. lower-/.f6474.9

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

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

              \[\leadsto \color{blue}{\left(y + -1 \cdot \frac{z \cdot \left(y - x\right)}{t}\right) - -1 \cdot \frac{a \cdot \left(y - x\right)}{t}} \]
            6. Step-by-step derivation
              1. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -1.1e-41 < t < 6.79999999999999965e-106

            1. Initial program 92.1%

              \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
            2. Add Preprocessing
            3. 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. lower-/.f6498.7

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

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

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

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

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

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

            if 6.79999999999999965e-106 < t < 9.99999999999999946e48

            1. Initial program 78.2%

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

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

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

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

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

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

            \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.1 \cdot 10^{-41}:\\ \;\;\;\;y - \frac{y - x}{t} \cdot \left(z - a\right)\\ \mathbf{elif}\;t \leq 6.8 \cdot 10^{-106}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z - t}{a}, y - x, x\right)\\ \mathbf{elif}\;t \leq 10^{+49}:\\ \;\;\;\;x + \frac{\left(z - t\right) \cdot y}{a - t}\\ \mathbf{else}:\\ \;\;\;\;y - \frac{y - x}{t} \cdot \left(z - a\right)\\ \end{array} \]
          5. Add Preprocessing

          Alternative 5: 76.2% accurate, 0.7× speedup?

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

            1. Initial program 52.0%

              \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
            2. Add Preprocessing
            3. 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. lower-/.f6475.6

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

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

              \[\leadsto \color{blue}{\left(y + -1 \cdot \frac{z \cdot \left(y - x\right)}{t}\right) - -1 \cdot \frac{a \cdot \left(y - x\right)}{t}} \]
            6. Step-by-step derivation
              1. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -1.1e-41 < t < 9.2000000000000006e-109

            1. Initial program 91.9%

              \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
            2. Add Preprocessing
            3. 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. lower-/.f6498.6

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

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

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

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

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

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

            if 9.2000000000000006e-109 < t < 1.45e10

            1. Initial program 87.9%

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

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

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

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

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

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

            \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.1 \cdot 10^{-41}:\\ \;\;\;\;y - \frac{y - x}{t} \cdot \left(z - a\right)\\ \mathbf{elif}\;t \leq 9.2 \cdot 10^{-109}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z - t}{a}, y - x, x\right)\\ \mathbf{elif}\;t \leq 14500000000:\\ \;\;\;\;x + \frac{\left(y - x\right) \cdot z}{a - t}\\ \mathbf{else}:\\ \;\;\;\;y - \frac{y - x}{t} \cdot \left(z - a\right)\\ \end{array} \]
          5. Add Preprocessing

          Alternative 6: 88.3% accurate, 0.7× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -7.2 \cdot 10^{+225} \lor \neg \left(t \leq 3.8 \cdot 10^{+108}\right):\\ \;\;\;\;y - \frac{y - x}{t} \cdot \left(z - a\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z - t}{a - t}, y - x, x\right)\\ \end{array} \end{array} \]
          (FPCore (x y z t a)
           :precision binary64
           (if (or (<= t -7.2e+225) (not (<= t 3.8e+108)))
             (- y (* (/ (- y x) t) (- z a)))
             (fma (/ (- z t) (- a t)) (- y x) x)))
          double code(double x, double y, double z, double t, double a) {
          	double tmp;
          	if ((t <= -7.2e+225) || !(t <= 3.8e+108)) {
          		tmp = y - (((y - x) / t) * (z - a));
          	} else {
          		tmp = fma(((z - t) / (a - t)), (y - x), x);
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a)
          	tmp = 0.0
          	if ((t <= -7.2e+225) || !(t <= 3.8e+108))
          		tmp = Float64(y - Float64(Float64(Float64(y - x) / t) * Float64(z - a)));
          	else
          		tmp = fma(Float64(Float64(z - t) / Float64(a - t)), Float64(y - x), x);
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -7.2e+225], N[Not[LessEqual[t, 3.8e+108]], $MachinePrecision]], N[(y - N[(N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision] * N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;t \leq -7.2 \cdot 10^{+225} \lor \neg \left(t \leq 3.8 \cdot 10^{+108}\right):\\
          \;\;\;\;y - \frac{y - x}{t} \cdot \left(z - a\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;\mathsf{fma}\left(\frac{z - t}{a - t}, y - x, x\right)\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if t < -7.1999999999999996e225 or 3.80000000000000008e108 < t

            1. Initial program 31.7%

              \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
            2. Add Preprocessing
            3. 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. lower-/.f6460.3

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

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

              \[\leadsto \color{blue}{\left(y + -1 \cdot \frac{z \cdot \left(y - x\right)}{t}\right) - -1 \cdot \frac{a \cdot \left(y - x\right)}{t}} \]
            6. Step-by-step derivation
              1. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -7.1999999999999996e225 < t < 3.80000000000000008e108

            1. Initial program 78.8%

              \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
            2. Add Preprocessing
            3. 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. lower-/.f6491.0

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

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

            \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -7.2 \cdot 10^{+225} \lor \neg \left(t \leq 3.8 \cdot 10^{+108}\right):\\ \;\;\;\;y - \frac{y - x}{t} \cdot \left(z - a\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z - t}{a - t}, y - x, x\right)\\ \end{array} \]
          5. Add Preprocessing

          Alternative 7: 69.7% accurate, 0.7× speedup?

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

            1. Initial program 67.9%

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

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

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

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

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

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

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

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

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

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

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

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

              if -1.14999999999999994e82 < a < -4.25000000000000007e-7

              1. Initial program 73.0%

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

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

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

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

                  \[\leadsto \color{blue}{\frac{y - x}{a} \cdot z} + x \]
                4. lower-fma.f64N/A

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

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

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

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

              if -4.25000000000000007e-7 < a < 8.00000000000000024e40

              1. Initial program 67.8%

                \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
              2. Add Preprocessing
              3. 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. lower-/.f6477.4

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

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

                \[\leadsto \color{blue}{\left(y + -1 \cdot \frac{z \cdot \left(y - x\right)}{t}\right) - -1 \cdot \frac{a \cdot \left(y - x\right)}{t}} \]
              6. Step-by-step derivation
                1. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.15 \cdot 10^{+82}:\\ \;\;\;\;\mathsf{fma}\left(z - t, \frac{y}{a}, x\right)\\ \mathbf{elif}\;a \leq -4.25 \cdot 10^{-7}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y - x}{a}, z, x\right)\\ \mathbf{elif}\;a \leq 8 \cdot 10^{+40}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, z, y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(z - t, \frac{y}{a}, x\right)\\ \end{array} \]
              12. Add Preprocessing

              Alternative 8: 51.5% accurate, 0.7× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(z - t, \frac{y}{a}, x\right)\\ \mathbf{if}\;a \leq -4 \cdot 10^{-29}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 4.6 \cdot 10^{-117}:\\ \;\;\;\;\frac{\left(x - y\right) \cdot z}{t}\\ \mathbf{elif}\;a \leq 1.7 \cdot 10^{+23}:\\ \;\;\;\;\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 t) (/ y a) x)))
                 (if (<= a -4e-29)
                   t_1
                   (if (<= a 4.6e-117)
                     (/ (* (- x y) z) t)
                     (if (<= a 1.7e+23) (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 - t), (y / a), x);
              	double tmp;
              	if (a <= -4e-29) {
              		tmp = t_1;
              	} else if (a <= 4.6e-117) {
              		tmp = ((x - y) * z) / t;
              	} else if (a <= 1.7e+23) {
              		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 - t), Float64(y / a), x)
              	tmp = 0.0
              	if (a <= -4e-29)
              		tmp = t_1;
              	elseif (a <= 4.6e-117)
              		tmp = Float64(Float64(Float64(x - y) * z) / t);
              	elseif (a <= 1.7e+23)
              		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 - t), $MachinePrecision] * N[(y / a), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[a, -4e-29], t$95$1, If[LessEqual[a, 4.6e-117], N[(N[(N[(x - y), $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[a, 1.7e+23], N[(1.0 * N[(y - x), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              t_1 := \mathsf{fma}\left(z - t, \frac{y}{a}, x\right)\\
              \mathbf{if}\;a \leq -4 \cdot 10^{-29}:\\
              \;\;\;\;t\_1\\
              
              \mathbf{elif}\;a \leq 4.6 \cdot 10^{-117}:\\
              \;\;\;\;\frac{\left(x - y\right) \cdot z}{t}\\
              
              \mathbf{elif}\;a \leq 1.7 \cdot 10^{+23}:\\
              \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\
              
              \mathbf{else}:\\
              \;\;\;\;t\_1\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 3 regimes
              2. if a < -3.99999999999999977e-29 or 1.69999999999999996e23 < a

                1. Initial program 68.8%

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

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

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

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

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

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

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

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

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

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

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

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

                  if -3.99999999999999977e-29 < a < 4.59999999999999989e-117

                  1. Initial program 69.7%

                    \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
                  2. Add Preprocessing
                  3. 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. lower-/.f6478.0

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

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

                    \[\leadsto \color{blue}{\left(y + -1 \cdot \frac{z \cdot \left(y - x\right)}{t}\right) - -1 \cdot \frac{a \cdot \left(y - x\right)}{t}} \]
                  6. Step-by-step derivation
                    1. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto z \cdot \color{blue}{\left(\frac{x}{t} - \frac{y}{t}\right)} \]
                  9. Step-by-step derivation
                    1. Applied rewrites48.7%

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

                    if 4.59999999999999989e-117 < a < 1.69999999999999996e23

                    1. Initial program 59.9%

                      \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
                    2. Add Preprocessing
                    3. 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. lower-/.f6477.0

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

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

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

                        \[\leadsto \mathsf{fma}\left(\color{blue}{1}, y - x, x\right) \]
                    7. Recombined 3 regimes into one program.
                    8. Final simplification56.1%

                      \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -4 \cdot 10^{-29}:\\ \;\;\;\;\mathsf{fma}\left(z - t, \frac{y}{a}, x\right)\\ \mathbf{elif}\;a \leq 4.6 \cdot 10^{-117}:\\ \;\;\;\;\frac{\left(x - y\right) \cdot z}{t}\\ \mathbf{elif}\;a \leq 1.7 \cdot 10^{+23}:\\ \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(z - t, \frac{y}{a}, x\right)\\ \end{array} \]
                    9. Add Preprocessing

                    Alternative 9: 75.5% accurate, 0.8× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -4.4 \cdot 10^{-6} \lor \neg \left(a \leq 2.5 \cdot 10^{+23}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{z - t}{a}, y - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;y - \frac{y - x}{t} \cdot \left(z - a\right)\\ \end{array} \end{array} \]
                    (FPCore (x y z t a)
                     :precision binary64
                     (if (or (<= a -4.4e-6) (not (<= a 2.5e+23)))
                       (fma (/ (- z t) a) (- y x) x)
                       (- y (* (/ (- y x) t) (- z a)))))
                    double code(double x, double y, double z, double t, double a) {
                    	double tmp;
                    	if ((a <= -4.4e-6) || !(a <= 2.5e+23)) {
                    		tmp = fma(((z - t) / a), (y - x), x);
                    	} else {
                    		tmp = y - (((y - x) / t) * (z - a));
                    	}
                    	return tmp;
                    }
                    
                    function code(x, y, z, t, a)
                    	tmp = 0.0
                    	if ((a <= -4.4e-6) || !(a <= 2.5e+23))
                    		tmp = fma(Float64(Float64(z - t) / a), Float64(y - x), x);
                    	else
                    		tmp = Float64(y - Float64(Float64(Float64(y - x) / t) * Float64(z - a)));
                    	end
                    	return tmp
                    end
                    
                    code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -4.4e-6], N[Not[LessEqual[a, 2.5e+23]], $MachinePrecision]], N[(N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision], N[(y - N[(N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision] * N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    \mathbf{if}\;a \leq -4.4 \cdot 10^{-6} \lor \neg \left(a \leq 2.5 \cdot 10^{+23}\right):\\
                    \;\;\;\;\mathsf{fma}\left(\frac{z - t}{a}, y - x, x\right)\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;y - \frac{y - x}{t} \cdot \left(z - a\right)\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 2 regimes
                    2. if a < -4.4000000000000002e-6 or 2.5e23 < a

                      1. Initial program 68.8%

                        \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
                      2. Add Preprocessing
                      3. 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. lower-/.f6490.4

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

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

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

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

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

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

                      if -4.4000000000000002e-6 < a < 2.5e23

                      1. Initial program 67.7%

                        \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
                      2. Add Preprocessing
                      3. 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. lower-/.f6477.6

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

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

                        \[\leadsto \color{blue}{\left(y + -1 \cdot \frac{z \cdot \left(y - x\right)}{t}\right) - -1 \cdot \frac{a \cdot \left(y - x\right)}{t}} \]
                      6. Step-by-step derivation
                        1. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -4.4 \cdot 10^{-6} \lor \neg \left(a \leq 2.5 \cdot 10^{+23}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{z - t}{a}, y - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;y - \frac{y - x}{t} \cdot \left(z - a\right)\\ \end{array} \]
                    5. Add Preprocessing

                    Alternative 10: 73.7% accurate, 0.8× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -4.4 \cdot 10^{-6} \lor \neg \left(a \leq 2.45 \cdot 10^{+23}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{z - t}{a}, y - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, z, y\right)\\ \end{array} \end{array} \]
                    (FPCore (x y z t a)
                     :precision binary64
                     (if (or (<= a -4.4e-6) (not (<= a 2.45e+23)))
                       (fma (/ (- z t) a) (- y x) x)
                       (fma (/ (- x y) t) z y)))
                    double code(double x, double y, double z, double t, double a) {
                    	double tmp;
                    	if ((a <= -4.4e-6) || !(a <= 2.45e+23)) {
                    		tmp = fma(((z - t) / a), (y - x), x);
                    	} else {
                    		tmp = fma(((x - y) / t), z, y);
                    	}
                    	return tmp;
                    }
                    
                    function code(x, y, z, t, a)
                    	tmp = 0.0
                    	if ((a <= -4.4e-6) || !(a <= 2.45e+23))
                    		tmp = fma(Float64(Float64(z - t) / a), Float64(y - x), x);
                    	else
                    		tmp = fma(Float64(Float64(x - y) / t), z, y);
                    	end
                    	return tmp
                    end
                    
                    code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -4.4e-6], N[Not[LessEqual[a, 2.45e+23]], $MachinePrecision]], N[(N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision], N[(N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] * z + y), $MachinePrecision]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    \mathbf{if}\;a \leq -4.4 \cdot 10^{-6} \lor \neg \left(a \leq 2.45 \cdot 10^{+23}\right):\\
                    \;\;\;\;\mathsf{fma}\left(\frac{z - t}{a}, y - x, x\right)\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, z, y\right)\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 2 regimes
                    2. if a < -4.4000000000000002e-6 or 2.4500000000000001e23 < a

                      1. Initial program 68.8%

                        \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
                      2. Add Preprocessing
                      3. 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. lower-/.f6490.4

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

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

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

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

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

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

                      if -4.4000000000000002e-6 < a < 2.4500000000000001e23

                      1. Initial program 67.7%

                        \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
                      2. Add Preprocessing
                      3. 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. lower-/.f6477.6

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

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

                        \[\leadsto \color{blue}{\left(y + -1 \cdot \frac{z \cdot \left(y - x\right)}{t}\right) - -1 \cdot \frac{a \cdot \left(y - x\right)}{t}} \]
                      6. Step-by-step derivation
                        1. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto y - \color{blue}{\frac{z \cdot \left(y - x\right)}{t}} \]
                      9. Step-by-step derivation
                        1. Applied rewrites81.6%

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

                        \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -4.4 \cdot 10^{-6} \lor \neg \left(a \leq 2.45 \cdot 10^{+23}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{z - t}{a}, y - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, z, y\right)\\ \end{array} \]
                      12. Add Preprocessing

                      Alternative 11: 73.1% accurate, 0.8× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -4.4 \cdot 10^{-6} \lor \neg \left(a \leq 2.45 \cdot 10^{+23}\right):\\ \;\;\;\;\mathsf{fma}\left(z - t, \frac{y - x}{a}, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, z, y\right)\\ \end{array} \end{array} \]
                      (FPCore (x y z t a)
                       :precision binary64
                       (if (or (<= a -4.4e-6) (not (<= a 2.45e+23)))
                         (fma (- z t) (/ (- y x) a) x)
                         (fma (/ (- x y) t) z y)))
                      double code(double x, double y, double z, double t, double a) {
                      	double tmp;
                      	if ((a <= -4.4e-6) || !(a <= 2.45e+23)) {
                      		tmp = fma((z - t), ((y - x) / a), x);
                      	} else {
                      		tmp = fma(((x - y) / t), z, y);
                      	}
                      	return tmp;
                      }
                      
                      function code(x, y, z, t, a)
                      	tmp = 0.0
                      	if ((a <= -4.4e-6) || !(a <= 2.45e+23))
                      		tmp = fma(Float64(z - t), Float64(Float64(y - x) / a), x);
                      	else
                      		tmp = fma(Float64(Float64(x - y) / t), z, y);
                      	end
                      	return tmp
                      end
                      
                      code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -4.4e-6], N[Not[LessEqual[a, 2.45e+23]], $MachinePrecision]], N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision], N[(N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] * z + y), $MachinePrecision]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      \mathbf{if}\;a \leq -4.4 \cdot 10^{-6} \lor \neg \left(a \leq 2.45 \cdot 10^{+23}\right):\\
                      \;\;\;\;\mathsf{fma}\left(z - t, \frac{y - x}{a}, x\right)\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, z, y\right)\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 2 regimes
                      2. if a < -4.4000000000000002e-6 or 2.4500000000000001e23 < a

                        1. Initial program 68.8%

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

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

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

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

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

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

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

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

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

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

                        if -4.4000000000000002e-6 < a < 2.4500000000000001e23

                        1. Initial program 67.7%

                          \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
                        2. Add Preprocessing
                        3. 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. lower-/.f6477.6

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

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

                          \[\leadsto \color{blue}{\left(y + -1 \cdot \frac{z \cdot \left(y - x\right)}{t}\right) - -1 \cdot \frac{a \cdot \left(y - x\right)}{t}} \]
                        6. Step-by-step derivation
                          1. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto y - \color{blue}{\frac{z \cdot \left(y - x\right)}{t}} \]
                        9. Step-by-step derivation
                          1. Applied rewrites81.6%

                            \[\leadsto \mathsf{fma}\left(\frac{x - y}{t}, \color{blue}{z}, y\right) \]
                        10. Recombined 2 regimes into one program.
                        11. Final simplification77.4%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -4.4 \cdot 10^{-6} \lor \neg \left(a \leq 2.45 \cdot 10^{+23}\right):\\ \;\;\;\;\mathsf{fma}\left(z - t, \frac{y - x}{a}, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, z, y\right)\\ \end{array} \]
                        12. Add Preprocessing

                        Alternative 12: 28.5% accurate, 0.8× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(1, y - x, x\right)\\ \mathbf{if}\;t \leq -1.18 \cdot 10^{+182}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -1.65 \cdot 10^{-63}:\\ \;\;\;\;\frac{z}{t} \cdot x\\ \mathbf{elif}\;t \leq 2.1 \cdot 10^{+29}:\\ \;\;\;\;\frac{y \cdot z}{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 -1.18e+182)
                             t_1
                             (if (<= t -1.65e-63)
                               (* (/ z t) x)
                               (if (<= t 2.1e+29) (/ (* y z) 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 <= -1.18e+182) {
                        		tmp = t_1;
                        	} else if (t <= -1.65e-63) {
                        		tmp = (z / t) * x;
                        	} else if (t <= 2.1e+29) {
                        		tmp = (y * z) / 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 <= -1.18e+182)
                        		tmp = t_1;
                        	elseif (t <= -1.65e-63)
                        		tmp = Float64(Float64(z / t) * x);
                        	elseif (t <= 2.1e+29)
                        		tmp = Float64(Float64(y * z) / 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, -1.18e+182], t$95$1, If[LessEqual[t, -1.65e-63], N[(N[(z / t), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[t, 2.1e+29], N[(N[(y * z), $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 -1.18 \cdot 10^{+182}:\\
                        \;\;\;\;t\_1\\
                        
                        \mathbf{elif}\;t \leq -1.65 \cdot 10^{-63}:\\
                        \;\;\;\;\frac{z}{t} \cdot x\\
                        
                        \mathbf{elif}\;t \leq 2.1 \cdot 10^{+29}:\\
                        \;\;\;\;\frac{y \cdot z}{a}\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;t\_1\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 3 regimes
                        2. if t < -1.1799999999999999e182 or 2.1000000000000002e29 < t

                          1. Initial program 41.6%

                            \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
                          2. Add Preprocessing
                          3. 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. lower-/.f6470.1

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

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

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

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

                            if -1.1799999999999999e182 < t < -1.64999999999999997e-63

                            1. Initial program 70.1%

                              \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
                            2. Add Preprocessing
                            3. 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. lower-/.f6486.2

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

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

                              \[\leadsto \color{blue}{\left(y + -1 \cdot \frac{z \cdot \left(y - x\right)}{t}\right) - -1 \cdot \frac{a \cdot \left(y - x\right)}{t}} \]
                            6. Step-by-step derivation
                              1. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \frac{z}{t} \cdot x \]
                              3. Step-by-step derivation
                                1. Applied rewrites33.2%

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

                                if -1.64999999999999997e-63 < t < 2.1000000000000002e29

                                1. Initial program 90.2%

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

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

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

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

                                    \[\leadsto \color{blue}{\frac{y - x}{a} \cdot z} + x \]
                                  4. lower-fma.f64N/A

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

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

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

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

                                  \[\leadsto \frac{y \cdot z}{\color{blue}{a}} \]
                                7. Step-by-step derivation
                                  1. Applied rewrites25.2%

                                    \[\leadsto \frac{y \cdot z}{\color{blue}{a}} \]
                                8. Recombined 3 regimes into one program.
                                9. Final simplification32.4%

                                  \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.18 \cdot 10^{+182}:\\ \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\ \mathbf{elif}\;t \leq -1.65 \cdot 10^{-63}:\\ \;\;\;\;\frac{z}{t} \cdot x\\ \mathbf{elif}\;t \leq 2.1 \cdot 10^{+29}:\\ \;\;\;\;\frac{y \cdot z}{a}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\ \end{array} \]
                                10. Add Preprocessing

                                Alternative 13: 69.8% accurate, 0.9× speedup?

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

                                  1. Initial program 69.2%

                                    \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
                                  2. Add Preprocessing
                                  3. 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. lower-/.f6489.4

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

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

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

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

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

                                  if -4.25000000000000007e-7 < a < 8.00000000000000024e40

                                  1. Initial program 67.8%

                                    \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
                                  2. Add Preprocessing
                                  3. 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. lower-/.f6477.4

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

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

                                    \[\leadsto \color{blue}{\left(y + -1 \cdot \frac{z \cdot \left(y - x\right)}{t}\right) - -1 \cdot \frac{a \cdot \left(y - x\right)}{t}} \]
                                  6. Step-by-step derivation
                                    1. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    if 8.00000000000000024e40 < a

                                    1. Initial program 68.4%

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

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{a}}, x\right) \]
                                    8. Recombined 3 regimes into one program.
                                    9. Final simplification74.2%

                                      \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -4.25 \cdot 10^{-7}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{a}, y - x, x\right)\\ \mathbf{elif}\;a \leq 8 \cdot 10^{+40}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, z, y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(z - t, \frac{y}{a}, x\right)\\ \end{array} \]
                                    10. Add Preprocessing

                                    Alternative 14: 48.1% accurate, 0.9× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -5.2 \cdot 10^{-43} \lor \neg \left(a \leq 3.7 \cdot 10^{+15}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(x - y\right) \cdot z}{t}\\ \end{array} \end{array} \]
                                    (FPCore (x y z t a)
                                     :precision binary64
                                     (if (or (<= a -5.2e-43) (not (<= a 3.7e+15)))
                                       (fma (/ y a) z x)
                                       (/ (* (- x y) z) t)))
                                    double code(double x, double y, double z, double t, double a) {
                                    	double tmp;
                                    	if ((a <= -5.2e-43) || !(a <= 3.7e+15)) {
                                    		tmp = fma((y / a), z, x);
                                    	} else {
                                    		tmp = ((x - y) * z) / t;
                                    	}
                                    	return tmp;
                                    }
                                    
                                    function code(x, y, z, t, a)
                                    	tmp = 0.0
                                    	if ((a <= -5.2e-43) || !(a <= 3.7e+15))
                                    		tmp = fma(Float64(y / a), z, x);
                                    	else
                                    		tmp = Float64(Float64(Float64(x - y) * z) / t);
                                    	end
                                    	return tmp
                                    end
                                    
                                    code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -5.2e-43], N[Not[LessEqual[a, 3.7e+15]], $MachinePrecision]], N[(N[(y / a), $MachinePrecision] * z + x), $MachinePrecision], N[(N[(N[(x - y), $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    \mathbf{if}\;a \leq -5.2 \cdot 10^{-43} \lor \neg \left(a \leq 3.7 \cdot 10^{+15}\right):\\
                                    \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;\frac{\left(x - y\right) \cdot z}{t}\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 2 regimes
                                    2. if a < -5.2e-43 or 3.7e15 < a

                                      1. Initial program 68.7%

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

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

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

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

                                          \[\leadsto \color{blue}{\frac{y - x}{a} \cdot z} + x \]
                                        4. lower-fma.f64N/A

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

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

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

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

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

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

                                        if -5.2e-43 < a < 3.7e15

                                        1. Initial program 67.8%

                                          \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
                                        2. Add Preprocessing
                                        3. 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. lower-/.f6478.1

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

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

                                          \[\leadsto \color{blue}{\left(y + -1 \cdot \frac{z \cdot \left(y - x\right)}{t}\right) - -1 \cdot \frac{a \cdot \left(y - x\right)}{t}} \]
                                        6. Step-by-step derivation
                                          1. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            \[\leadsto \frac{\left(x - y\right) \cdot z}{\color{blue}{t}} \]
                                        10. Recombined 2 regimes into one program.
                                        11. Final simplification50.5%

                                          \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -5.2 \cdot 10^{-43} \lor \neg \left(a \leq 3.7 \cdot 10^{+15}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(x - y\right) \cdot z}{t}\\ \end{array} \]
                                        12. Add Preprocessing

                                        Alternative 15: 47.4% accurate, 1.0× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.45 \cdot 10^{+172} \lor \neg \left(t \leq 2.8 \cdot 10^{+126}\right):\\ \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a)
                                         :precision binary64
                                         (if (or (<= t -1.45e+172) (not (<= t 2.8e+126)))
                                           (fma 1.0 (- y x) x)
                                           (fma (/ y a) z x)))
                                        double code(double x, double y, double z, double t, double a) {
                                        	double tmp;
                                        	if ((t <= -1.45e+172) || !(t <= 2.8e+126)) {
                                        		tmp = fma(1.0, (y - x), x);
                                        	} else {
                                        		tmp = fma((y / a), z, x);
                                        	}
                                        	return tmp;
                                        }
                                        
                                        function code(x, y, z, t, a)
                                        	tmp = 0.0
                                        	if ((t <= -1.45e+172) || !(t <= 2.8e+126))
                                        		tmp = fma(1.0, Float64(y - x), x);
                                        	else
                                        		tmp = fma(Float64(y / a), z, x);
                                        	end
                                        	return tmp
                                        end
                                        
                                        code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.45e+172], N[Not[LessEqual[t, 2.8e+126]], $MachinePrecision]], N[(1.0 * N[(y - x), $MachinePrecision] + x), $MachinePrecision], N[(N[(y / a), $MachinePrecision] * z + x), $MachinePrecision]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        \mathbf{if}\;t \leq -1.45 \cdot 10^{+172} \lor \neg \left(t \leq 2.8 \cdot 10^{+126}\right):\\
                                        \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 2 regimes
                                        2. if t < -1.45e172 or 2.80000000000000009e126 < t

                                          1. Initial program 36.8%

                                            \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
                                          2. Add Preprocessing
                                          3. 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. lower-/.f6465.5

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

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

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

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

                                            if -1.45e172 < t < 2.80000000000000009e126

                                            1. Initial program 80.1%

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

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

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

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

                                                \[\leadsto \color{blue}{\frac{y - x}{a} \cdot z} + x \]
                                              4. lower-fma.f64N/A

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

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

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

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

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

                                                \[\leadsto \mathsf{fma}\left(\frac{y}{a}, z, x\right) \]
                                            8. Recombined 2 regimes into one program.
                                            9. Final simplification48.2%

                                              \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.45 \cdot 10^{+172} \lor \neg \left(t \leq 2.8 \cdot 10^{+126}\right):\\ \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \end{array} \]
                                            10. Add Preprocessing

                                            Alternative 16: 27.9% accurate, 1.0× speedup?

                                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.5 \cdot 10^{-118} \lor \neg \left(t \leq 2.1 \cdot 10^{+29}\right):\\ \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot z}{a}\\ \end{array} \end{array} \]
                                            (FPCore (x y z t a)
                                             :precision binary64
                                             (if (or (<= t -1.5e-118) (not (<= t 2.1e+29)))
                                               (fma 1.0 (- y x) x)
                                               (/ (* y z) a)))
                                            double code(double x, double y, double z, double t, double a) {
                                            	double tmp;
                                            	if ((t <= -1.5e-118) || !(t <= 2.1e+29)) {
                                            		tmp = fma(1.0, (y - x), x);
                                            	} else {
                                            		tmp = (y * z) / a;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            function code(x, y, z, t, a)
                                            	tmp = 0.0
                                            	if ((t <= -1.5e-118) || !(t <= 2.1e+29))
                                            		tmp = fma(1.0, Float64(y - x), x);
                                            	else
                                            		tmp = Float64(Float64(y * z) / a);
                                            	end
                                            	return tmp
                                            end
                                            
                                            code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.5e-118], N[Not[LessEqual[t, 2.1e+29]], $MachinePrecision]], N[(1.0 * N[(y - x), $MachinePrecision] + x), $MachinePrecision], N[(N[(y * z), $MachinePrecision] / a), $MachinePrecision]]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            \begin{array}{l}
                                            \mathbf{if}\;t \leq -1.5 \cdot 10^{-118} \lor \neg \left(t \leq 2.1 \cdot 10^{+29}\right):\\
                                            \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;\frac{y \cdot z}{a}\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            
                                            Derivation
                                            1. Split input into 2 regimes
                                            2. if t < -1.50000000000000009e-118 or 2.1000000000000002e29 < t

                                              1. Initial program 54.3%

                                                \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
                                              2. Add Preprocessing
                                              3. 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. lower-/.f6477.1

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

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

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

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

                                                if -1.50000000000000009e-118 < t < 2.1000000000000002e29

                                                1. Initial program 89.4%

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

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

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

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

                                                    \[\leadsto \color{blue}{\frac{y - x}{a} \cdot z} + x \]
                                                  4. lower-fma.f64N/A

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

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

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

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

                                                  \[\leadsto \frac{y \cdot z}{\color{blue}{a}} \]
                                                7. Step-by-step derivation
                                                  1. Applied rewrites26.4%

                                                    \[\leadsto \frac{y \cdot z}{\color{blue}{a}} \]
                                                8. Recombined 2 regimes into one program.
                                                9. Final simplification28.6%

                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.5 \cdot 10^{-118} \lor \neg \left(t \leq 2.1 \cdot 10^{+29}\right):\\ \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot z}{a}\\ \end{array} \]
                                                10. Add Preprocessing

                                                Alternative 17: 19.3% accurate, 2.9× speedup?

                                                \[\begin{array}{l} \\ \mathsf{fma}\left(1, y - x, x\right) \end{array} \]
                                                (FPCore (x y z t a) :precision binary64 (fma 1.0 (- y x) x))
                                                double code(double x, double y, double z, double t, double a) {
                                                	return fma(1.0, (y - x), x);
                                                }
                                                
                                                function code(x, y, z, t, a)
                                                	return fma(1.0, Float64(y - x), x)
                                                end
                                                
                                                code[x_, y_, z_, t_, a_] := N[(1.0 * N[(y - x), $MachinePrecision] + x), $MachinePrecision]
                                                
                                                \begin{array}{l}
                                                
                                                \\
                                                \mathsf{fma}\left(1, y - x, x\right)
                                                \end{array}
                                                
                                                Derivation
                                                1. Initial program 68.3%

                                                  \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
                                                2. Add Preprocessing
                                                3. 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. lower-/.f6484.1

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

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

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

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

                                                  Alternative 18: 2.8% accurate, 4.8× speedup?

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

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

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

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

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

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

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

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

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

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

                                                      \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(z - t\right) \cdot \frac{x}{a - t}}\right)\right) + 1 \cdot x \]
                                                    9. distribute-lft-neg-inN/A

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

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

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

                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(z - t\right), \frac{x}{a - t}, x\right)} \]
                                                    13. mul-1-negN/A

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

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

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

                                                      \[\leadsto \mathsf{fma}\left(-\left(z - t\right), \color{blue}{\frac{x}{a - t}}, x\right) \]
                                                    17. lower--.f6440.7

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

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

                                                    \[\leadsto x + \color{blue}{-1 \cdot x} \]
                                                  7. Step-by-step derivation
                                                    1. Applied rewrites2.8%

                                                      \[\leadsto 0 \cdot \color{blue}{x} \]
                                                    2. Add Preprocessing

                                                    Developer Target 1: 86.8% accurate, 0.6× speedup?

                                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \frac{y - x}{1} \cdot \frac{z - t}{a - t}\\ \mathbf{if}\;a < -1.6153062845442575 \cdot 10^{-142}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a < 3.774403170083174 \cdot 10^{-182}:\\ \;\;\;\;y - \frac{z}{t} \cdot \left(y - x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                    (FPCore (x y z t a)
                                                     :precision binary64
                                                     (let* ((t_1 (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t))))))
                                                       (if (< a -1.6153062845442575e-142)
                                                         t_1
                                                         (if (< a 3.774403170083174e-182) (- y (* (/ z t) (- y x))) t_1))))
                                                    double code(double x, double y, double z, double t, double a) {
                                                    	double t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
                                                    	double tmp;
                                                    	if (a < -1.6153062845442575e-142) {
                                                    		tmp = t_1;
                                                    	} else if (a < 3.774403170083174e-182) {
                                                    		tmp = y - ((z / t) * (y - x));
                                                    	} else {
                                                    		tmp = t_1;
                                                    	}
                                                    	return tmp;
                                                    }
                                                    
                                                    module fmin_fmax_functions
                                                        implicit none
                                                        private
                                                        public fmax
                                                        public fmin
                                                    
                                                        interface fmax
                                                            module procedure fmax88
                                                            module procedure fmax44
                                                            module procedure fmax84
                                                            module procedure fmax48
                                                        end interface
                                                        interface fmin
                                                            module procedure fmin88
                                                            module procedure fmin44
                                                            module procedure fmin84
                                                            module procedure fmin48
                                                        end interface
                                                    contains
                                                        real(8) function fmax88(x, y) result (res)
                                                            real(8), intent (in) :: x
                                                            real(8), intent (in) :: y
                                                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                        end function
                                                        real(4) function fmax44(x, y) result (res)
                                                            real(4), intent (in) :: x
                                                            real(4), intent (in) :: y
                                                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                        end function
                                                        real(8) function fmax84(x, y) result(res)
                                                            real(8), intent (in) :: x
                                                            real(4), intent (in) :: y
                                                            res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                        end function
                                                        real(8) function fmax48(x, y) result(res)
                                                            real(4), intent (in) :: x
                                                            real(8), intent (in) :: y
                                                            res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                        end function
                                                        real(8) function fmin88(x, y) result (res)
                                                            real(8), intent (in) :: x
                                                            real(8), intent (in) :: y
                                                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                        end function
                                                        real(4) function fmin44(x, y) result (res)
                                                            real(4), intent (in) :: x
                                                            real(4), intent (in) :: y
                                                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                        end function
                                                        real(8) function fmin84(x, y) result(res)
                                                            real(8), intent (in) :: x
                                                            real(4), intent (in) :: y
                                                            res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                        end function
                                                        real(8) function fmin48(x, y) result(res)
                                                            real(4), intent (in) :: x
                                                            real(8), intent (in) :: y
                                                            res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                        end function
                                                    end module
                                                    
                                                    real(8) function code(x, y, z, t, a)
                                                    use fmin_fmax_functions
                                                        real(8), intent (in) :: x
                                                        real(8), intent (in) :: y
                                                        real(8), intent (in) :: z
                                                        real(8), intent (in) :: t
                                                        real(8), intent (in) :: a
                                                        real(8) :: t_1
                                                        real(8) :: tmp
                                                        t_1 = x + (((y - x) / 1.0d0) * ((z - t) / (a - t)))
                                                        if (a < (-1.6153062845442575d-142)) then
                                                            tmp = t_1
                                                        else if (a < 3.774403170083174d-182) then
                                                            tmp = y - ((z / t) * (y - x))
                                                        else
                                                            tmp = t_1
                                                        end if
                                                        code = tmp
                                                    end function
                                                    
                                                    public static double code(double x, double y, double z, double t, double a) {
                                                    	double t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
                                                    	double tmp;
                                                    	if (a < -1.6153062845442575e-142) {
                                                    		tmp = t_1;
                                                    	} else if (a < 3.774403170083174e-182) {
                                                    		tmp = y - ((z / t) * (y - x));
                                                    	} else {
                                                    		tmp = t_1;
                                                    	}
                                                    	return tmp;
                                                    }
                                                    
                                                    def code(x, y, z, t, a):
                                                    	t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)))
                                                    	tmp = 0
                                                    	if a < -1.6153062845442575e-142:
                                                    		tmp = t_1
                                                    	elif a < 3.774403170083174e-182:
                                                    		tmp = y - ((z / t) * (y - x))
                                                    	else:
                                                    		tmp = t_1
                                                    	return tmp
                                                    
                                                    function code(x, y, z, t, a)
                                                    	t_1 = Float64(x + Float64(Float64(Float64(y - x) / 1.0) * Float64(Float64(z - t) / Float64(a - t))))
                                                    	tmp = 0.0
                                                    	if (a < -1.6153062845442575e-142)
                                                    		tmp = t_1;
                                                    	elseif (a < 3.774403170083174e-182)
                                                    		tmp = Float64(y - Float64(Float64(z / t) * Float64(y - x)));
                                                    	else
                                                    		tmp = t_1;
                                                    	end
                                                    	return tmp
                                                    end
                                                    
                                                    function tmp_2 = code(x, y, z, t, a)
                                                    	t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
                                                    	tmp = 0.0;
                                                    	if (a < -1.6153062845442575e-142)
                                                    		tmp = t_1;
                                                    	elseif (a < 3.774403170083174e-182)
                                                    		tmp = y - ((z / t) * (y - x));
                                                    	else
                                                    		tmp = t_1;
                                                    	end
                                                    	tmp_2 = tmp;
                                                    end
                                                    
                                                    code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] / 1.0), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[a, -1.6153062845442575e-142], t$95$1, If[Less[a, 3.774403170083174e-182], N[(y - N[(N[(z / t), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                                    
                                                    \begin{array}{l}
                                                    
                                                    \\
                                                    \begin{array}{l}
                                                    t_1 := x + \frac{y - x}{1} \cdot \frac{z - t}{a - t}\\
                                                    \mathbf{if}\;a < -1.6153062845442575 \cdot 10^{-142}:\\
                                                    \;\;\;\;t\_1\\
                                                    
                                                    \mathbf{elif}\;a < 3.774403170083174 \cdot 10^{-182}:\\
                                                    \;\;\;\;y - \frac{z}{t} \cdot \left(y - x\right)\\
                                                    
                                                    \mathbf{else}:\\
                                                    \;\;\;\;t\_1\\
                                                    
                                                    
                                                    \end{array}
                                                    \end{array}
                                                    

                                                    Reproduce

                                                    ?
                                                    herbie shell --seed 2025016 
                                                    (FPCore (x y z t a)
                                                      :name "Graphics.Rendering.Chart.Axis.Types:linMap from Chart-1.5.3"
                                                      :precision binary64
                                                    
                                                      :alt
                                                      (! :herbie-platform default (if (< a -646122513817703/4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ x (* (/ (- y x) 1) (/ (- z t) (- a t)))) (if (< a 1887201585041587/50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- y (* (/ z t) (- y x))) (+ x (* (/ (- y x) 1) (/ (- z t) (- a t)))))))
                                                    
                                                      (+ x (/ (* (- y x) (- z t)) (- a t))))