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

Percentage Accurate: 67.8% → 90.8%
Time: 11.9s
Alternatives: 21
Speedup: 0.8×

Specification

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

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

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

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

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 21 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.8% accurate, 1.0× speedup?

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

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

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

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

Alternative 1: 90.8% accurate, 0.3× speedup?

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

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

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


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

    1. Initial program 77.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-/.f6490.0

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

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

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

    1. Initial program 3.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-/.f643.1

        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{z - t}{a - t}}, y - x, x\right) \]
    4. Applied rewrites3.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. 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)} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \frac{a \cdot \left(y - x\right)}{t} \]
      3. metadata-evalN/A

        \[\leadsto \left(y - \color{blue}{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} \]
      4. *-lft-identityN/A

        \[\leadsto \left(y - \color{blue}{\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} \]
      5. metadata-evalN/A

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

        \[\leadsto \left(y - \frac{z \cdot \left(y - x\right)}{t}\right) + \color{blue}{\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--.f6490.1

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

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

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

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

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

    Alternative 2: 48.0% 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.75 \cdot 10^{-98}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -2.1 \cdot 10^{-260}:\\ \;\;\;\;\frac{z \cdot y}{a - t}\\ \mathbf{elif}\;a \leq 6.2 \cdot 10^{-60}:\\ \;\;\;\;\frac{\left(z - a\right) \cdot x}{t}\\ \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.75e-98)
         t_1
         (if (<= a -2.1e-260)
           (/ (* z y) (- a t))
           (if (<= a 6.2e-60) (/ (* (- z a) x) t) 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.75e-98) {
    		tmp = t_1;
    	} else if (a <= -2.1e-260) {
    		tmp = (z * y) / (a - t);
    	} else if (a <= 6.2e-60) {
    		tmp = ((z - a) * x) / t;
    	} 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.75e-98)
    		tmp = t_1;
    	elseif (a <= -2.1e-260)
    		tmp = Float64(Float64(z * y) / Float64(a - t));
    	elseif (a <= 6.2e-60)
    		tmp = Float64(Float64(Float64(z - a) * x) / t);
    	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.75e-98], t$95$1, If[LessEqual[a, -2.1e-260], N[(N[(z * y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.2e-60], N[(N[(N[(z - a), $MachinePrecision] * x), $MachinePrecision] / t), $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.75 \cdot 10^{-98}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;a \leq -2.1 \cdot 10^{-260}:\\
    \;\;\;\;\frac{z \cdot y}{a - t}\\
    
    \mathbf{elif}\;a \leq 6.2 \cdot 10^{-60}:\\
    \;\;\;\;\frac{\left(z - a\right) \cdot x}{t}\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if a < -1.7500000000000001e-98 or 6.19999999999999976e-60 < a

      1. Initial program 77.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--.f6473.6

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

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

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

        if -1.7500000000000001e-98 < a < -2.10000000000000005e-260

        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-/.f6476.2

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \frac{y \cdot z}{\color{blue}{a - t}} \]
        9. Step-by-step derivation
          1. Applied rewrites42.8%

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

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

            if -2.10000000000000005e-260 < a < 6.19999999999999976e-60

            1. Initial program 59.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-/.f6471.2

                \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{z - t}{a - t}}, y - x, x\right) \]
            4. Applied rewrites71.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. 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)} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \frac{a \cdot \left(y - x\right)}{t} \]
              3. metadata-evalN/A

                \[\leadsto \left(y - \color{blue}{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} \]
              4. *-lft-identityN/A

                \[\leadsto \left(y - \color{blue}{\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} \]
              5. metadata-evalN/A

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

                \[\leadsto \left(y - \frac{z \cdot \left(y - x\right)}{t}\right) + \color{blue}{\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.5

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

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

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

              \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.75 \cdot 10^{-98}:\\ \;\;\;\;\mathsf{fma}\left(z - t, \frac{y}{a}, x\right)\\ \mathbf{elif}\;a \leq -2.1 \cdot 10^{-260}:\\ \;\;\;\;\frac{z \cdot y}{a - t}\\ \mathbf{elif}\;a \leq 6.2 \cdot 10^{-60}:\\ \;\;\;\;\frac{\left(z - a\right) \cdot x}{t}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(z - t, \frac{y}{a}, x\right)\\ \end{array} \]
            12. Add Preprocessing

            Alternative 3: 74.9% accurate, 0.8× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -1.98 \cdot 10^{-47} \lor \neg \left(a \leq 6.5 \cdot 10^{+50}\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 -1.98e-47) (not (<= a 6.5e+50)))
               (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 <= -1.98e-47) || !(a <= 6.5e+50)) {
            		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 <= -1.98e-47) || !(a <= 6.5e+50))
            		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, -1.98e-47], N[Not[LessEqual[a, 6.5e+50]], $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 -1.98 \cdot 10^{-47} \lor \neg \left(a \leq 6.5 \cdot 10^{+50}\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 < -1.98e-47 or 6.5000000000000003e50 < a

              1. Initial program 79.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-/.f6493.6

                  \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{z - t}{a - t}}, y - x, x\right) \]
              4. Applied rewrites93.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--.f6484.8

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

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

              if -1.98e-47 < a < 6.5000000000000003e50

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

                  \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{z - t}{a - t}}, y - x, x\right) \]
              4. Applied rewrites73.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. 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)} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \frac{a \cdot \left(y - x\right)}{t} \]
                3. metadata-evalN/A

                  \[\leadsto \left(y - \color{blue}{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} \]
                4. *-lft-identityN/A

                  \[\leadsto \left(y - \color{blue}{\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} \]
                5. metadata-evalN/A

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

                  \[\leadsto \left(y - \frac{z \cdot \left(y - x\right)}{t}\right) + \color{blue}{\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--.f6482.2

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

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

              \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.98 \cdot 10^{-47} \lor \neg \left(a \leq 6.5 \cdot 10^{+50}\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 4: 42.6% accurate, 0.8× speedup?

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

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

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

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

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

                if -6.19999999999999971e-106 < a < -2.10000000000000005e-260

                1. Initial program 67.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-/.f6475.2

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if -2.10000000000000005e-260 < a < 6.20000000000000006e50

                    1. Initial program 61.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-/.f6472.0

                        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{z - t}{a - t}}, y - x, x\right) \]
                    4. Applied rewrites72.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. 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)} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \frac{a \cdot \left(y - x\right)}{t} \]
                      3. metadata-evalN/A

                        \[\leadsto \left(y - \color{blue}{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} \]
                      4. *-lft-identityN/A

                        \[\leadsto \left(y - \color{blue}{\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} \]
                      5. metadata-evalN/A

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

                        \[\leadsto \left(y - \frac{z \cdot \left(y - x\right)}{t}\right) + \color{blue}{\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--.f6486.2

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

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

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

                      \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -6.2 \cdot 10^{-106}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \mathbf{elif}\;a \leq -2.1 \cdot 10^{-260}:\\ \;\;\;\;\frac{z \cdot y}{a - t}\\ \mathbf{elif}\;a \leq 6.2 \cdot 10^{+50}:\\ \;\;\;\;\frac{\left(z - a\right) \cdot x}{t}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \end{array} \]
                    12. Add Preprocessing

                    Alternative 5: 41.3% accurate, 0.8× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot \frac{z}{a - t}\\ \mathbf{if}\;y \leq -4.7 \cdot 10^{+36}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 55000:\\ \;\;\;\;\left(1 - \frac{z}{a}\right) \cdot x\\ \mathbf{elif}\;y \leq 7.8 \cdot 10^{+112}:\\ \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                    (FPCore (x y z t a)
                     :precision binary64
                     (let* ((t_1 (* y (/ z (- a t)))))
                       (if (<= y -4.7e+36)
                         t_1
                         (if (<= y 55000.0)
                           (* (- 1.0 (/ z a)) x)
                           (if (<= y 7.8e+112) (fma 1.0 (- y x) x) t_1)))))
                    double code(double x, double y, double z, double t, double a) {
                    	double t_1 = y * (z / (a - t));
                    	double tmp;
                    	if (y <= -4.7e+36) {
                    		tmp = t_1;
                    	} else if (y <= 55000.0) {
                    		tmp = (1.0 - (z / a)) * x;
                    	} else if (y <= 7.8e+112) {
                    		tmp = fma(1.0, (y - x), x);
                    	} else {
                    		tmp = t_1;
                    	}
                    	return tmp;
                    }
                    
                    function code(x, y, z, t, a)
                    	t_1 = Float64(y * Float64(z / Float64(a - t)))
                    	tmp = 0.0
                    	if (y <= -4.7e+36)
                    		tmp = t_1;
                    	elseif (y <= 55000.0)
                    		tmp = Float64(Float64(1.0 - Float64(z / a)) * x);
                    	elseif (y <= 7.8e+112)
                    		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[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.7e+36], t$95$1, If[LessEqual[y, 55000.0], N[(N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y, 7.8e+112], N[(1.0 * N[(y - x), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    t_1 := y \cdot \frac{z}{a - t}\\
                    \mathbf{if}\;y \leq -4.7 \cdot 10^{+36}:\\
                    \;\;\;\;t\_1\\
                    
                    \mathbf{elif}\;y \leq 55000:\\
                    \;\;\;\;\left(1 - \frac{z}{a}\right) \cdot x\\
                    
                    \mathbf{elif}\;y \leq 7.8 \cdot 10^{+112}:\\
                    \;\;\;\;\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 y < -4.69999999999999989e36 or 7.79999999999999937e112 < y

                      1. Initial program 68.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-/.f6491.5

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \frac{y \cdot z}{\color{blue}{a - t}} \]
                      9. Step-by-step derivation
                        1. Applied rewrites47.0%

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

                        if -4.69999999999999989e36 < y < 55000

                        1. Initial program 73.6%

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

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

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

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

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

                          if 55000 < y < 7.79999999999999937e112

                          1. Initial program 71.5%

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

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

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

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

                            \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -4.7 \cdot 10^{+36}:\\ \;\;\;\;y \cdot \frac{z}{a - t}\\ \mathbf{elif}\;y \leq 55000:\\ \;\;\;\;\left(1 - \frac{z}{a}\right) \cdot x\\ \mathbf{elif}\;y \leq 7.8 \cdot 10^{+112}:\\ \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{z}{a - t}\\ \end{array} \]
                          9. Add Preprocessing

                          Alternative 6: 70.8% accurate, 0.8× speedup?

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

                            1. Initial program 79.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-/.f6493.6

                                \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{z - t}{a - t}}, y - x, x\right) \]
                            4. Applied rewrites93.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--.f6484.8

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

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

                            if -9.9999999999999997e-48 < a < 3.3e50

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

                                \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{z - t}{a - t}}, y - x, x\right) \]
                            4. Applied rewrites73.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. 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)} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \frac{a \cdot \left(y - x\right)}{t} \]
                              3. metadata-evalN/A

                                \[\leadsto \left(y - \color{blue}{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} \]
                              4. *-lft-identityN/A

                                \[\leadsto \left(y - \color{blue}{\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} \]
                              5. metadata-evalN/A

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

                                \[\leadsto \left(y - \frac{z \cdot \left(y - x\right)}{t}\right) + \color{blue}{\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--.f6482.2

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

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

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

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

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

                            Alternative 7: 70.3% accurate, 0.8× speedup?

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

                              1. Initial program 79.6%

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

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

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

                              if -1.7000000000000001e-47 < a < 3.3e50

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

                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{z - t}{a - t}}, y - x, x\right) \]
                              4. Applied rewrites73.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. 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)} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \frac{a \cdot \left(y - x\right)}{t} \]
                                3. metadata-evalN/A

                                  \[\leadsto \left(y - \color{blue}{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} \]
                                4. *-lft-identityN/A

                                  \[\leadsto \left(y - \color{blue}{\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} \]
                                5. metadata-evalN/A

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

                                  \[\leadsto \left(y - \frac{z \cdot \left(y - x\right)}{t}\right) + \color{blue}{\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--.f6482.2

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

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

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

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

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

                              Alternative 8: 67.0% accurate, 0.8× speedup?

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

                                1. Initial program 79.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-/.f6493.6

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

                                  \[\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-/.f6478.7

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

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

                                if -9.9999999999999997e-48 < a < 3.3e50

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

                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{z - t}{a - t}}, y - x, x\right) \]
                                4. Applied rewrites73.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. 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)} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \frac{a \cdot \left(y - x\right)}{t} \]
                                  3. metadata-evalN/A

                                    \[\leadsto \left(y - \color{blue}{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} \]
                                  4. *-lft-identityN/A

                                    \[\leadsto \left(y - \color{blue}{\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} \]
                                  5. metadata-evalN/A

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

                                    \[\leadsto \left(y - \frac{z \cdot \left(y - x\right)}{t}\right) + \color{blue}{\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--.f6482.2

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

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

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

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

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

                                Alternative 9: 62.7% accurate, 0.8× speedup?

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

                                  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-/.f6488.5

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

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

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

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

                                    \[\leadsto \left(\frac{z}{a - t} - \frac{t}{a - t}\right) \cdot y \]
                                  8. Step-by-step derivation
                                    1. Applied rewrites82.6%

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

                                    if -8.00000000000000038e26 < y < 7.5999999999999999e-31

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

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

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

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

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

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

                                  Alternative 10: 61.8% accurate, 0.8× speedup?

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

                                    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 x around 0

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

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

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

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

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

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

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

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

                                    if -8.00000000000000038e26 < y < 7.5999999999999999e-31

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

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

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

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

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

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

                                  Alternative 11: 28.8% accurate, 0.8× speedup?

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

                                    1. Initial program 74.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-/.f6487.9

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        if -1.4e-33 < z < 1.65e-296

                                        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-/.f6480.6

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

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

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

                                          if 1.65e-296 < z < 1.65e16

                                          1. Initial program 69.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-/.f6475.7

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

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

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

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

                                            \[\leadsto \frac{x}{y} \cdot y \]
                                          8. Step-by-step derivation
                                            1. Applied rewrites36.7%

                                              \[\leadsto \frac{x}{y} \cdot y \]
                                          9. Recombined 3 regimes into one program.
                                          10. Final simplification35.7%

                                            \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.4 \cdot 10^{-33}:\\ \;\;\;\;y \cdot \frac{z}{a}\\ \mathbf{elif}\;z \leq 1.65 \cdot 10^{-296}:\\ \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\ \mathbf{elif}\;z \leq 1.65 \cdot 10^{+16}:\\ \;\;\;\;\frac{x}{y} \cdot y\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{z}{a}\\ \end{array} \]
                                          11. Add Preprocessing

                                          Alternative 12: 60.5% accurate, 0.9× speedup?

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

                                            1. Initial program 79.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-/.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)} \]
                                            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-/.f6475.1

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

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

                                            if -6.0999999999999996e-50 < a < 0.012500000000000001

                                            1. Initial program 62.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-/.f6473.1

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            Alternative 13: 56.7% accurate, 0.9× speedup?

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

                                              1. Initial program 29.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-/.f6461.8

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                  if -7.9999999999999999e145 < t < 9.80000000000000101e142

                                                  1. Initial program 81.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-/.f6488.4

                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{z - t}{a - t}}, y - x, x\right) \]
                                                  4. Applied rewrites88.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-/.f6461.4

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

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

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

                                                Alternative 14: 55.5% accurate, 0.9× speedup?

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

                                                  1. Initial program 29.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-/.f6461.8

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                      if -7.9999999999999999e145 < t < 9.80000000000000101e142

                                                      1. Initial program 81.6%

                                                        \[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)} \]
                                                    4. Recombined 2 regimes into one program.
                                                    5. Final simplification58.6%

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

                                                    Alternative 15: 54.9% accurate, 0.9× speedup?

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

                                                      1. Initial program 29.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-/.f6461.8

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

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

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

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

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

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

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

                                                          if -8.2000000000000003e145 < t < 6.4999999999999997e142

                                                          1. Initial program 81.6%

                                                            \[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)} \]
                                                        4. Recombined 2 regimes into one program.
                                                        5. Final simplification56.2%

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

                                                        Alternative 16: 54.8% accurate, 0.9× speedup?

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

                                                          1. Initial program 29.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-/.f6461.8

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

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

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

                                                            if -2.8000000000000001e146 < t < 1e143

                                                            1. Initial program 81.6%

                                                              \[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)} \]
                                                          7. Recombined 2 regimes into one program.
                                                          8. Final simplification56.2%

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

                                                          Alternative 17: 47.3% accurate, 1.0× speedup?

                                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -8.2 \cdot 10^{+145} \lor \neg \left(t \leq 10^{+143}\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 -8.2e+145) (not (<= t 1e+143)))
                                                             (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 <= -8.2e+145) || !(t <= 1e+143)) {
                                                          		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 <= -8.2e+145) || !(t <= 1e+143))
                                                          		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, -8.2e+145], N[Not[LessEqual[t, 1e+143]], $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 -8.2 \cdot 10^{+145} \lor \neg \left(t \leq 10^{+143}\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 < -8.2000000000000003e145 or 1e143 < t

                                                            1. Initial program 29.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-/.f6461.8

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

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

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

                                                              if -8.2000000000000003e145 < t < 1e143

                                                              1. Initial program 81.6%

                                                                \[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)} \]
                                                              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.0%

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

                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -8.2 \cdot 10^{+145} \lor \neg \left(t \leq 10^{+143}\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 18: 30.6% accurate, 1.0× speedup?

                                                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -5.6 \cdot 10^{+33} \lor \neg \left(t \leq 9.5 \cdot 10^{-41}\right):\\ \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{z}{a}\\ \end{array} \end{array} \]
                                                              (FPCore (x y z t a)
                                                               :precision binary64
                                                               (if (or (<= t -5.6e+33) (not (<= t 9.5e-41)))
                                                                 (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 <= -5.6e+33) || !(t <= 9.5e-41)) {
                                                              		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 <= -5.6e+33) || !(t <= 9.5e-41))
                                                              		tmp = fma(1.0, Float64(y - x), x);
                                                              	else
                                                              		tmp = Float64(y * Float64(z / a));
                                                              	end
                                                              	return tmp
                                                              end
                                                              
                                                              code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -5.6e+33], N[Not[LessEqual[t, 9.5e-41]], $MachinePrecision]], N[(1.0 * N[(y - x), $MachinePrecision] + x), $MachinePrecision], N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]]
                                                              
                                                              \begin{array}{l}
                                                              
                                                              \\
                                                              \begin{array}{l}
                                                              \mathbf{if}\;t \leq -5.6 \cdot 10^{+33} \lor \neg \left(t \leq 9.5 \cdot 10^{-41}\right):\\
                                                              \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\
                                                              
                                                              \mathbf{else}:\\
                                                              \;\;\;\;y \cdot \frac{z}{a}\\
                                                              
                                                              
                                                              \end{array}
                                                              \end{array}
                                                              
                                                              Derivation
                                                              1. Split input into 2 regimes
                                                              2. if t < -5.6000000000000002e33 or 9.4999999999999997e-41 < t

                                                                1. Initial program 52.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-/.f6473.9

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

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

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

                                                                  if -5.6000000000000002e33 < t < 9.4999999999999997e-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-/.f6491.6

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

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

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

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

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

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

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

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

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

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

                                                                    \[\leadsto \frac{y \cdot z}{\color{blue}{a - t}} \]
                                                                  9. Step-by-step derivation
                                                                    1. Applied rewrites38.9%

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

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

                                                                        \[\leadsto y \cdot \color{blue}{\frac{z}{a}} \]
                                                                    4. Recombined 2 regimes into one program.
                                                                    5. Final simplification31.6%

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

                                                                    Alternative 19: 29.0% accurate, 1.0× speedup?

                                                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -5.6 \cdot 10^{+33} \lor \neg \left(t \leq 2.4 \cdot 10^{-43}\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 -5.6e+33) (not (<= t 2.4e-43)))
                                                                       (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 <= -5.6e+33) || !(t <= 2.4e-43)) {
                                                                    		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 <= -5.6e+33) || !(t <= 2.4e-43))
                                                                    		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, -5.6e+33], N[Not[LessEqual[t, 2.4e-43]], $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 -5.6 \cdot 10^{+33} \lor \neg \left(t \leq 2.4 \cdot 10^{-43}\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 < -5.6000000000000002e33 or 2.4000000000000002e-43 < t

                                                                      1. Initial program 52.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-/.f6473.9

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

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

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

                                                                        if -5.6000000000000002e33 < t < 2.4000000000000002e-43

                                                                        1. Initial program 88.8%

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

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

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

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

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

                                                                        Alternative 20: 19.1% 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 71.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-/.f6483.2

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

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

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

                                                                          Alternative 21: 2.8% accurate, 3.2× speedup?

                                                                          \[\begin{array}{l} \\ \mathsf{fma}\left(1, -x, x\right) \end{array} \]
                                                                          (FPCore (x y z t a) :precision binary64 (fma 1.0 (- x) x))
                                                                          double code(double x, double y, double z, double t, double a) {
                                                                          	return fma(1.0, -x, x);
                                                                          }
                                                                          
                                                                          function code(x, y, z, t, a)
                                                                          	return fma(1.0, Float64(-x), x)
                                                                          end
                                                                          
                                                                          code[x_, y_, z_, t_, a_] := N[(1.0 * (-x) + x), $MachinePrecision]
                                                                          
                                                                          \begin{array}{l}
                                                                          
                                                                          \\
                                                                          \mathsf{fma}\left(1, -x, x\right)
                                                                          \end{array}
                                                                          
                                                                          Derivation
                                                                          1. Initial program 71.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-/.f6483.2

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

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

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

                                                                              \[\leadsto \mathsf{fma}\left(1, \color{blue}{-1 \cdot x}, x\right) \]
                                                                            3. Step-by-step derivation
                                                                              1. mul-1-negN/A

                                                                                \[\leadsto \mathsf{fma}\left(1, \color{blue}{\mathsf{neg}\left(x\right)}, x\right) \]
                                                                              2. lower-neg.f642.8

                                                                                \[\leadsto \mathsf{fma}\left(1, \color{blue}{-x}, x\right) \]
                                                                            4. Applied rewrites2.8%

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

                                                                            Developer Target 1: 86.0% 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 2025006 
                                                                            (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))))