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

Percentage Accurate: 67.8% → 89.1%
Time: 12.8s
Alternatives: 13
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));
}
real(8) function code(x, y, z, t, a)
    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 13 alternatives:

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

Initial Program: 67.8% accurate, 1.0× speedup?

\[\begin{array}{l} \\ x + \frac{\left(y - 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));
}
real(8) function code(x, y, z, t, a)
    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: 89.1% accurate, 0.7× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -9.50000000000000046e228 or 7.4000000000000001e164 < z

    1. Initial program 18.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. associate--l+N/A

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

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

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

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

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

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

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

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

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

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

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

    if -9.50000000000000046e228 < z < 7.4000000000000001e164

    1. Initial program 79.3%

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

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

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

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

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

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

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

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

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

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

Alternative 2: 75.0% accurate, 0.6× speedup?

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

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

\mathbf{elif}\;z \leq -2.75 \cdot 10^{-129}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;z \leq 6.2 \cdot 10^{+164}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -9.50000000000000046e228 or 6.2000000000000003e164 < z

    1. Initial program 18.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. associate--l+N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -9.50000000000000046e228 < z < -2.75000000000000012e-129 or 3.2000000000000001e-140 < z < 6.2000000000000003e164

      1. Initial program 73.1%

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

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

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

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

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

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

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

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

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

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

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

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

        if -2.75000000000000012e-129 < z < 3.2000000000000001e-140

        1. Initial program 93.7%

          \[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. accelerator-lowering-fma.f64N/A

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

            \[\leadsto \mathsf{fma}\left(y, \color{blue}{\frac{t - x}{a}}, x\right) \]
          5. --lowering--.f6486.9

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

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

      Alternative 3: 68.8% accurate, 0.7× speedup?

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

        1. Initial program 34.6%

          \[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. associate--l+N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -1.80000000000000006e117 < z < -2.64999999999999987e-129

          1. Initial program 87.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(y - z, \frac{1}{a - z} \cdot \color{blue}{\left(t - x\right)}, x\right) \]
          6. Applied egg-rr95.9%

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

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

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

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

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

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

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

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

          if -2.64999999999999987e-129 < z < 2.9000000000000002e44

          1. Initial program 91.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. accelerator-lowering-fma.f64N/A

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

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

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

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

        Alternative 4: 75.2% accurate, 0.8× speedup?

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

          1. Initial program 67.6%

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

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

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

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

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

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

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

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

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

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

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

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

            if -4.5e20 < a < 2.3500000000000001e-197

            1. Initial program 61.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. associate--l+N/A

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

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

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

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

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

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

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

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

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

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

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

          Alternative 5: 68.8% accurate, 0.9× speedup?

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

            1. Initial program 34.6%

              \[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. associate--l+N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

              if -3.8500000000000001e114 < z < 3.25000000000000009e44

              1. Initial program 89.8%

                \[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. accelerator-lowering-fma.f64N/A

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

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

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

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

            Alternative 6: 60.7% accurate, 0.9× speedup?

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

              1. Initial program 33.6%

                \[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. associate--l+N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                if -2.05e114 < z < 5.0000000000000001e85

                1. Initial program 87.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. accelerator-lowering-fma.f64N/A

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

                    \[\leadsto \mathsf{fma}\left(y, \color{blue}{\frac{t - x}{a}}, x\right) \]
                  5. --lowering--.f6467.2

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

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

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

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

                Alternative 7: 55.5% accurate, 0.9× speedup?

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

                  1. Initial program 47.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \color{blue}{-1 \cdot \left(t \cdot \left(\frac{y}{z} - 1\right)\right)} \]
                  7. Step-by-step derivation
                    1. mul-1-negN/A

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

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

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

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

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

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

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

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

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

                      \[\leadsto t \cdot \left(1 + \color{blue}{\left(\mathsf{neg}\left(\frac{y}{z}\right)\right)}\right) \]
                    11. unsub-negN/A

                      \[\leadsto t \cdot \color{blue}{\left(1 - \frac{y}{z}\right)} \]
                    12. --lowering--.f64N/A

                      \[\leadsto t \cdot \color{blue}{\left(1 - \frac{y}{z}\right)} \]
                    13. /-lowering-/.f6457.4

                      \[\leadsto t \cdot \left(1 - \color{blue}{\frac{y}{z}}\right) \]
                  8. Simplified57.4%

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

                  if -2.6500000000000001e-14 < z < 2.1500000000000001e86

                  1. Initial program 87.9%

                    \[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. accelerator-lowering-fma.f64N/A

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

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

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

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

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

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

                    if 2.1500000000000001e86 < z

                    1. Initial program 37.9%

                      \[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. accelerator-lowering-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. sub-negN/A

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

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

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

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

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

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

                        \[\leadsto \mathsf{fma}\left(x - t, \color{blue}{\frac{z}{a - z}}, x\right) \]
                      16. --lowering--.f6439.4

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

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

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

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

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

                  Alternative 8: 55.2% accurate, 0.9× speedup?

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

                    1. Initial program 42.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \color{blue}{-1 \cdot \left(t \cdot \left(\frac{y}{z} - 1\right)\right)} \]
                    7. Step-by-step derivation
                      1. mul-1-negN/A

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

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

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

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

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

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

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

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

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

                        \[\leadsto t \cdot \left(1 + \color{blue}{\left(\mathsf{neg}\left(\frac{y}{z}\right)\right)}\right) \]
                      11. unsub-negN/A

                        \[\leadsto t \cdot \color{blue}{\left(1 - \frac{y}{z}\right)} \]
                      12. --lowering--.f64N/A

                        \[\leadsto t \cdot \color{blue}{\left(1 - \frac{y}{z}\right)} \]
                      13. /-lowering-/.f6455.7

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

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

                    if -4.1999999999999998e-14 < z < 5.50000000000000008e85

                    1. Initial program 87.9%

                      \[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. accelerator-lowering-fma.f64N/A

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

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

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

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

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

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

                    Alternative 9: 52.4% accurate, 1.0× speedup?

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

                      1. Initial program 33.6%

                        \[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. accelerator-lowering-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. sub-negN/A

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

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

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

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

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

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

                          \[\leadsto \mathsf{fma}\left(x - t, \color{blue}{\frac{z}{a - z}}, x\right) \]
                        16. --lowering--.f6450.7

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

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

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

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

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

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

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

                          \[\leadsto \color{blue}{t \cdot \frac{a}{z} + t \cdot 1} \]
                        3. *-rgt-identityN/A

                          \[\leadsto t \cdot \frac{a}{z} + \color{blue}{t} \]
                        4. accelerator-lowering-fma.f64N/A

                          \[\leadsto \color{blue}{\mathsf{fma}\left(t, \frac{a}{z}, t\right)} \]
                        5. /-lowering-/.f6454.9

                          \[\leadsto \mathsf{fma}\left(t, \color{blue}{\frac{a}{z}}, t\right) \]
                      11. Simplified54.9%

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

                      if -7.60000000000000033e118 < z < 1.49999999999999988e86

                      1. Initial program 87.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. accelerator-lowering-fma.f64N/A

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

                          \[\leadsto \mathsf{fma}\left(y, \color{blue}{\frac{t - x}{a}}, x\right) \]
                        5. --lowering--.f6467.2

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

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

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

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

                      Alternative 10: 38.5% accurate, 1.0× speedup?

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

                        1. Initial program 33.6%

                          \[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. accelerator-lowering-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. sub-negN/A

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

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

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

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

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

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

                            \[\leadsto \mathsf{fma}\left(x - t, \color{blue}{\frac{z}{a - z}}, x\right) \]
                          16. --lowering--.f6450.7

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

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

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

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

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

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

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

                            \[\leadsto \color{blue}{t \cdot \frac{a}{z} + t \cdot 1} \]
                          3. *-rgt-identityN/A

                            \[\leadsto t \cdot \frac{a}{z} + \color{blue}{t} \]
                          4. accelerator-lowering-fma.f64N/A

                            \[\leadsto \color{blue}{\mathsf{fma}\left(t, \frac{a}{z}, t\right)} \]
                          5. /-lowering-/.f6454.9

                            \[\leadsto \mathsf{fma}\left(t, \color{blue}{\frac{a}{z}}, t\right) \]
                        11. Simplified54.9%

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

                        if -1.05000000000000002e115 < z < 1.65e86

                        1. Initial program 87.2%

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

                          \[\leadsto \color{blue}{x} \]
                        4. Step-by-step derivation
                          1. Simplified39.0%

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

                        Alternative 11: 37.7% accurate, 2.2× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -3 \cdot 10^{+114}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 1.45 \cdot 10^{+112}:\\ \;\;\;\;t\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
                        (FPCore (x y z t a)
                         :precision binary64
                         (if (<= a -3e+114) x (if (<= a 1.45e+112) t x)))
                        double code(double x, double y, double z, double t, double a) {
                        	double tmp;
                        	if (a <= -3e+114) {
                        		tmp = x;
                        	} else if (a <= 1.45e+112) {
                        		tmp = t;
                        	} else {
                        		tmp = x;
                        	}
                        	return tmp;
                        }
                        
                        real(8) function code(x, y, z, t, a)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            real(8), intent (in) :: z
                            real(8), intent (in) :: t
                            real(8), intent (in) :: a
                            real(8) :: tmp
                            if (a <= (-3d+114)) then
                                tmp = x
                            else if (a <= 1.45d+112) then
                                tmp = t
                            else
                                tmp = x
                            end if
                            code = tmp
                        end function
                        
                        public static double code(double x, double y, double z, double t, double a) {
                        	double tmp;
                        	if (a <= -3e+114) {
                        		tmp = x;
                        	} else if (a <= 1.45e+112) {
                        		tmp = t;
                        	} else {
                        		tmp = x;
                        	}
                        	return tmp;
                        }
                        
                        def code(x, y, z, t, a):
                        	tmp = 0
                        	if a <= -3e+114:
                        		tmp = x
                        	elif a <= 1.45e+112:
                        		tmp = t
                        	else:
                        		tmp = x
                        	return tmp
                        
                        function code(x, y, z, t, a)
                        	tmp = 0.0
                        	if (a <= -3e+114)
                        		tmp = x;
                        	elseif (a <= 1.45e+112)
                        		tmp = t;
                        	else
                        		tmp = x;
                        	end
                        	return tmp
                        end
                        
                        function tmp_2 = code(x, y, z, t, a)
                        	tmp = 0.0;
                        	if (a <= -3e+114)
                        		tmp = x;
                        	elseif (a <= 1.45e+112)
                        		tmp = t;
                        	else
                        		tmp = x;
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3e+114], x, If[LessEqual[a, 1.45e+112], t, x]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        \mathbf{if}\;a \leq -3 \cdot 10^{+114}:\\
                        \;\;\;\;x\\
                        
                        \mathbf{elif}\;a \leq 1.45 \cdot 10^{+112}:\\
                        \;\;\;\;t\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;x\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 2 regimes
                        2. if a < -3e114 or 1.4500000000000001e112 < a

                          1. Initial program 69.6%

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

                            \[\leadsto \color{blue}{x} \]
                          4. Step-by-step derivation
                            1. Simplified59.6%

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

                            if -3e114 < a < 1.4500000000000001e112

                            1. Initial program 63.0%

                              \[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}{t} \]
                            4. Step-by-step derivation
                              1. Simplified37.8%

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

                            Alternative 12: 25.2% 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;
                            }
                            
                            real(8) function code(x, y, z, t, a)
                                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 65.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}{t} \]
                            4. Step-by-step derivation
                              1. Simplified29.2%

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

                              Alternative 13: 2.8% accurate, 29.0× speedup?

                              \[\begin{array}{l} \\ 0 \end{array} \]
                              (FPCore (x y z t a) :precision binary64 0.0)
                              double code(double x, double y, double z, double t, double a) {
                              	return 0.0;
                              }
                              
                              real(8) function code(x, y, z, t, a)
                                  real(8), intent (in) :: x
                                  real(8), intent (in) :: y
                                  real(8), intent (in) :: z
                                  real(8), intent (in) :: t
                                  real(8), intent (in) :: a
                                  code = 0.0d0
                              end function
                              
                              public static double code(double x, double y, double z, double t, double a) {
                              	return 0.0;
                              }
                              
                              def code(x, y, z, t, a):
                              	return 0.0
                              
                              function code(x, y, z, t, a)
                              	return 0.0
                              end
                              
                              function tmp = code(x, y, z, t, a)
                              	tmp = 0.0;
                              end
                              
                              code[x_, y_, z_, t_, a_] := 0.0
                              
                              \begin{array}{l}
                              
                              \\
                              0
                              \end{array}
                              
                              Derivation
                              1. Initial program 65.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(y + \left(\mathsf{neg}\left(z\right)\right)\right)}\right), \frac{x}{a - z}, x\right) \]
                                15. +-commutativeN/A

                                  \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(\left(\mathsf{neg}\left(z\right)\right) + y\right)}\right), \frac{x}{a - z}, x\right) \]
                                16. distribute-neg-inN/A

                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(z\right)\right)\right)\right) + \left(\mathsf{neg}\left(y\right)\right)}, \frac{x}{a - z}, x\right) \]
                                17. unsub-negN/A

                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(z\right)\right)\right)\right) - y}, \frac{x}{a - z}, x\right) \]
                                18. remove-double-negN/A

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

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

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

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

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

                                \[\leadsto \color{blue}{x + -1 \cdot x} \]
                              7. Step-by-step derivation
                                1. distribute-rgt1-inN/A

                                  \[\leadsto \color{blue}{\left(-1 + 1\right) \cdot x} \]
                                2. metadata-evalN/A

                                  \[\leadsto \color{blue}{0} \cdot x \]
                                3. mul0-lft2.8

                                  \[\leadsto \color{blue}{0} \]
                              8. Simplified2.8%

                                \[\leadsto \color{blue}{0} \]
                              9. Add Preprocessing

                              Developer Target 1: 84.0% 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;
                              }
                              
                              real(8) function code(x, y, z, t, a)
                                  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 2024195 
                              (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))))