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

Percentage Accurate: 67.5% → 88.2%
Time: 12.7s
Alternatives: 12
Speedup: 0.9×

Specification

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

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

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

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

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

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

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

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

Alternative 1: 88.2% accurate, 0.2× speedup?

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

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

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

\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+305}:\\
\;\;\;\;t\_1\\

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


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

    1. Initial program 77.1%

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

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

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

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

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

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

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

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

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

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

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

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

    1. Initial program 4.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      1. Initial program 97.0%

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

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

      1. Initial program 30.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 2: 89.9% accurate, 0.3× speedup?

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

      1. Initial program 74.4%

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

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

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

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

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

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

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

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

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

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

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

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

      1. Initial program 4.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 3: 51.5% accurate, 0.7× speedup?

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

        1. Initial program 37.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -4.6000000000000001e79 < z < -7.60000000000000006e-134 or 2.19999999999999999e-57 < z < 2.24999999999999997e79

            1. Initial program 78.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if -7.60000000000000006e-134 < z < 2.19999999999999999e-57

              1. Initial program 92.4%

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

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

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

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

                  \[\leadsto x + \frac{\color{blue}{\left(t - x\right) \cdot y}}{a} \]
                4. lower--.f6482.0

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

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

                \[\leadsto x + \frac{t \cdot y}{a} \]
              7. Step-by-step derivation
                1. Applied rewrites65.5%

                  \[\leadsto x + \frac{t \cdot y}{a} \]
              8. Recombined 3 regimes into one program.
              9. Final simplification60.4%

                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -4.6 \cdot 10^{+79}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x}{z}, -a, t\right)\\ \mathbf{elif}\;z \leq -7.6 \cdot 10^{-134}:\\ \;\;\;\;\frac{x - t}{z} \cdot y\\ \mathbf{elif}\;z \leq 2.2 \cdot 10^{-57}:\\ \;\;\;\;x + \frac{t \cdot y}{a}\\ \mathbf{elif}\;z \leq 2.25 \cdot 10^{+79}:\\ \;\;\;\;\frac{x - t}{z} \cdot y\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x}{z}, -a, t\right)\\ \end{array} \]
              10. Add Preprocessing

              Alternative 4: 52.0% accurate, 0.7× speedup?

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

                1. Initial program 37.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if -4.6000000000000001e79 < z < -7.60000000000000006e-134 or 2.3499999999999999e-57 < z < 2.24999999999999997e79

                    1. Initial program 78.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if -7.60000000000000006e-134 < z < 2.3499999999999999e-57

                      1. Initial program 92.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -4.6 \cdot 10^{+79}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x}{z}, -a, t\right)\\ \mathbf{elif}\;z \leq -7.6 \cdot 10^{-134}:\\ \;\;\;\;\frac{x - t}{z} \cdot y\\ \mathbf{elif}\;z \leq 2.35 \cdot 10^{-57}:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{t}{a}, x\right)\\ \mathbf{elif}\;z \leq 2.25 \cdot 10^{+79}:\\ \;\;\;\;\frac{x - t}{z} \cdot y\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x}{z}, -a, t\right)\\ \end{array} \]
                      12. Add Preprocessing

                      Alternative 5: 48.8% accurate, 0.7× speedup?

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

                        1. Initial program 37.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \mathsf{fma}\left(0, \color{blue}{x}, 1 \cdot t\right) \]
                          2. Step-by-step derivation
                            1. Applied rewrites50.8%

                              \[\leadsto t \]

                            if -7.4999999999999999e82 < z < -7.60000000000000006e-134 or 2.3499999999999999e-57 < z < 2.24999999999999997e79

                            1. Initial program 78.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              if -7.60000000000000006e-134 < z < 2.3499999999999999e-57

                              1. Initial program 92.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -7.5 \cdot 10^{+82}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq -7.6 \cdot 10^{-134}:\\ \;\;\;\;\frac{x - t}{z} \cdot y\\ \mathbf{elif}\;z \leq 2.35 \cdot 10^{-57}:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{t}{a}, x\right)\\ \mathbf{elif}\;z \leq 2.25 \cdot 10^{+79}:\\ \;\;\;\;\frac{x - t}{z} \cdot y\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \]
                              12. Add Preprocessing

                              Alternative 6: 74.0% accurate, 0.8× speedup?

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

                                1. Initial program 51.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  if -0.00679999999999999962 < z < 2.3e-57

                                  1. Initial program 89.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                Alternative 7: 69.9% accurate, 0.9× speedup?

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

                                  1. Initial program 51.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      if -0.00679999999999999962 < z < 2.3e-57

                                      1. Initial program 89.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    Alternative 8: 68.9% accurate, 0.9× speedup?

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

                                      1. Initial program 51.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          if -0.00679999999999999962 < z < 2.3e-57

                                          1. Initial program 89.2%

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

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

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

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

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

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

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

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

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

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

                                        Alternative 9: 61.5% accurate, 0.9× speedup?

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

                                          1. Initial program 55.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                              if -1.9500000000000001e-120 < z < 1.45000000000000013e-57

                                              1. Initial program 91.6%

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

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

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

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

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

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

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

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

                                                  \[\leadsto x + \frac{t \cdot y}{a} \]
                                              8. Recombined 2 regimes into one program.
                                              9. Final simplification67.3%

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

                                              Alternative 10: 51.4% accurate, 1.0× speedup?

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

                                                1. Initial program 40.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                    \[\leadsto \mathsf{fma}\left(0, \color{blue}{x}, 1 \cdot t\right) \]
                                                  2. Step-by-step derivation
                                                    1. Applied rewrites47.4%

                                                      \[\leadsto t \]

                                                    if -1.24999999999999992e38 < z < 1.75e56

                                                    1. Initial program 89.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                    Alternative 11: 35.4% accurate, 1.0× speedup?

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

                                                      1. Initial program 47.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                        \[\leadsto \left(x + -1 \cdot x\right) - \color{blue}{-1 \cdot t} \]
                                                      7. Step-by-step derivation
                                                        1. Applied rewrites43.0%

                                                          \[\leadsto \mathsf{fma}\left(0, \color{blue}{x}, 1 \cdot t\right) \]
                                                        2. Step-by-step derivation
                                                          1. Applied rewrites43.0%

                                                            \[\leadsto t \]

                                                          if -2.6499999999999999e22 < z < 2.6e-28

                                                          1. Initial program 90.0%

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

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

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

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

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

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

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

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

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

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

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

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

                                                              \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.65 \cdot 10^{+22} \lor \neg \left(z \leq 2.6 \cdot 10^{-28}\right):\\ \;\;\;\;t\\ \mathbf{else}:\\ \;\;\;\;t \cdot \frac{y}{a}\\ \end{array} \]
                                                            6. Add Preprocessing

                                                            Alternative 12: 24.8% accurate, 29.0× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                \[\leadsto \mathsf{fma}\left(0, \color{blue}{x}, 1 \cdot t\right) \]
                                                              2. Step-by-step derivation
                                                                1. Applied rewrites23.9%

                                                                  \[\leadsto t \]
                                                                2. Final simplification23.9%

                                                                  \[\leadsto t \]
                                                                3. Add Preprocessing

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

                                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := t - \frac{y}{z} \cdot \left(t - x\right)\\ \mathbf{if}\;z < -1.2536131056095036 \cdot 10^{+188}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z < 4.446702369113811 \cdot 10^{+64}:\\ \;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                (FPCore (x y z t a)
                                                                 :precision binary64
                                                                 (let* ((t_1 (- t (* (/ y z) (- t x)))))
                                                                   (if (< z -1.2536131056095036e+188)
                                                                     t_1
                                                                     (if (< z 4.446702369113811e+64)
                                                                       (+ x (/ (- y z) (/ (- a z) (- t x))))
                                                                       t_1))))
                                                                double code(double x, double y, double z, double t, double a) {
                                                                	double t_1 = t - ((y / z) * (t - x));
                                                                	double tmp;
                                                                	if (z < -1.2536131056095036e+188) {
                                                                		tmp = t_1;
                                                                	} else if (z < 4.446702369113811e+64) {
                                                                		tmp = x + ((y - z) / ((a - z) / (t - 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 = t - ((y / z) * (t - x))
                                                                    if (z < (-1.2536131056095036d+188)) then
                                                                        tmp = t_1
                                                                    else if (z < 4.446702369113811d+64) then
                                                                        tmp = x + ((y - z) / ((a - z) / (t - 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 = t - ((y / z) * (t - x));
                                                                	double tmp;
                                                                	if (z < -1.2536131056095036e+188) {
                                                                		tmp = t_1;
                                                                	} else if (z < 4.446702369113811e+64) {
                                                                		tmp = x + ((y - z) / ((a - z) / (t - x)));
                                                                	} else {
                                                                		tmp = t_1;
                                                                	}
                                                                	return tmp;
                                                                }
                                                                
                                                                def code(x, y, z, t, a):
                                                                	t_1 = t - ((y / z) * (t - x))
                                                                	tmp = 0
                                                                	if z < -1.2536131056095036e+188:
                                                                		tmp = t_1
                                                                	elif z < 4.446702369113811e+64:
                                                                		tmp = x + ((y - z) / ((a - z) / (t - x)))
                                                                	else:
                                                                		tmp = t_1
                                                                	return tmp
                                                                
                                                                function code(x, y, z, t, a)
                                                                	t_1 = Float64(t - Float64(Float64(y / z) * Float64(t - x)))
                                                                	tmp = 0.0
                                                                	if (z < -1.2536131056095036e+188)
                                                                		tmp = t_1;
                                                                	elseif (z < 4.446702369113811e+64)
                                                                		tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / Float64(t - x))));
                                                                	else
                                                                		tmp = t_1;
                                                                	end
                                                                	return tmp
                                                                end
                                                                
                                                                function tmp_2 = code(x, y, z, t, a)
                                                                	t_1 = t - ((y / z) * (t - x));
                                                                	tmp = 0.0;
                                                                	if (z < -1.2536131056095036e+188)
                                                                		tmp = t_1;
                                                                	elseif (z < 4.446702369113811e+64)
                                                                		tmp = x + ((y - z) / ((a - z) / (t - x)));
                                                                	else
                                                                		tmp = t_1;
                                                                	end
                                                                	tmp_2 = tmp;
                                                                end
                                                                
                                                                code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(y / z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -1.2536131056095036e+188], t$95$1, If[Less[z, 4.446702369113811e+64], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                                                
                                                                \begin{array}{l}
                                                                
                                                                \\
                                                                \begin{array}{l}
                                                                t_1 := t - \frac{y}{z} \cdot \left(t - x\right)\\
                                                                \mathbf{if}\;z < -1.2536131056095036 \cdot 10^{+188}:\\
                                                                \;\;\;\;t\_1\\
                                                                
                                                                \mathbf{elif}\;z < 4.446702369113811 \cdot 10^{+64}:\\
                                                                \;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\
                                                                
                                                                \mathbf{else}:\\
                                                                \;\;\;\;t\_1\\
                                                                
                                                                
                                                                \end{array}
                                                                \end{array}
                                                                

                                                                Reproduce

                                                                ?
                                                                herbie shell --seed 2025008 
                                                                (FPCore (x y z t a)
                                                                  :name "Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3"
                                                                  :precision binary64
                                                                
                                                                  :alt
                                                                  (! :herbie-platform default (if (< z -125361310560950360000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- t (* (/ y z) (- t x))) (if (< z 44467023691138110000000000000000000000000000000000000000000000000) (+ x (/ (- y z) (/ (- a z) (- t x)))) (- t (* (/ y z) (- t x))))))
                                                                
                                                                  (+ x (/ (* (- y z) (- t x)) (- a z))))