Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, C

Percentage Accurate: 94.4% → 96.2%
Time: 10.8s
Alternatives: 12
Speedup: 0.5×

Specification

?
\[\begin{array}{l} \\ x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \end{array} \]
(FPCore (x y z t) :precision binary64 (* x (- (/ y z) (/ t (- 1.0 z)))))
double code(double x, double y, double z, double t) {
	return x * ((y / z) - (t / (1.0 - z)));
}
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    code = x * ((y / z) - (t / (1.0d0 - z)))
end function
public static double code(double x, double y, double z, double t) {
	return x * ((y / z) - (t / (1.0 - z)));
}
def code(x, y, z, t):
	return x * ((y / z) - (t / (1.0 - z)))
function code(x, y, z, t)
	return Float64(x * Float64(Float64(y / z) - Float64(t / Float64(1.0 - z))))
end
function tmp = code(x, y, z, t)
	tmp = x * ((y / z) - (t / (1.0 - z)));
end
code[x_, y_, z_, t_] := N[(x * N[(N[(y / z), $MachinePrecision] - N[(t / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 12 alternatives:

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

Initial Program: 94.4% accurate, 1.0× speedup?

\[\begin{array}{l} \\ x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \end{array} \]
(FPCore (x y z t) :precision binary64 (* x (- (/ y z) (/ t (- 1.0 z)))))
double code(double x, double y, double z, double t) {
	return x * ((y / z) - (t / (1.0 - z)));
}
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    code = x * ((y / z) - (t / (1.0d0 - z)))
end function
public static double code(double x, double y, double z, double t) {
	return x * ((y / z) - (t / (1.0 - z)));
}
def code(x, y, z, t):
	return x * ((y / z) - (t / (1.0 - z)))
function code(x, y, z, t)
	return Float64(x * Float64(Float64(y / z) - Float64(t / Float64(1.0 - z))))
end
function tmp = code(x, y, z, t)
	tmp = x * ((y / z) - (t / (1.0 - z)));
end
code[x_, y_, z_, t_] := N[(x * N[(N[(y / z), $MachinePrecision] - N[(t / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Alternative 1: 96.2% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{y}{z} + \frac{t}{z + -1} \leq -\infty:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \mathsf{fma}\left(t, \frac{1}{z + -1}, \frac{y}{z}\right)\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (<= (+ (/ y z) (/ t (+ z -1.0))) (- INFINITY))
   (/ (* y x) z)
   (* x (fma t (/ 1.0 (+ z -1.0)) (/ y z)))))
double code(double x, double y, double z, double t) {
	double tmp;
	if (((y / z) + (t / (z + -1.0))) <= -((double) INFINITY)) {
		tmp = (y * x) / z;
	} else {
		tmp = x * fma(t, (1.0 / (z + -1.0)), (y / z));
	}
	return tmp;
}
function code(x, y, z, t)
	tmp = 0.0
	if (Float64(Float64(y / z) + Float64(t / Float64(z + -1.0))) <= Float64(-Inf))
		tmp = Float64(Float64(y * x) / z);
	else
		tmp = Float64(x * fma(t, Float64(1.0 / Float64(z + -1.0)), Float64(y / z)));
	end
	return tmp
end
code[x_, y_, z_, t_] := If[LessEqual[N[(N[(y / z), $MachinePrecision] + N[(t / N[(z + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], (-Infinity)], N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision], N[(x * N[(t * N[(1.0 / N[(z + -1.0), $MachinePrecision]), $MachinePrecision] + N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;\frac{y}{z} + \frac{t}{z + -1} \leq -\infty:\\
\;\;\;\;\frac{y \cdot x}{z}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (-.f64 (/.f64 y z) (/.f64 t (-.f64 #s(literal 1 binary64) z))) < -inf.0

    1. Initial program 59.5%

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

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

        \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
      2. lower-*.f64100.0

        \[\leadsto \frac{\color{blue}{x \cdot y}}{z} \]
    5. Applied rewrites100.0%

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

    if -inf.0 < (-.f64 (/.f64 y z) (/.f64 t (-.f64 #s(literal 1 binary64) z)))

    1. Initial program 96.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{y}{z} + \frac{t}{z + -1} \leq -\infty:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \mathsf{fma}\left(t, \frac{1}{z + -1}, \frac{y}{z}\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 96.3% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{y}{z} + \frac{t}{z + -1}\\ \mathbf{if}\;t\_1 \leq -\infty:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{else}:\\ \;\;\;\;t\_1 \cdot x\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (let* ((t_1 (+ (/ y z) (/ t (+ z -1.0)))))
   (if (<= t_1 (- INFINITY)) (/ (* y x) z) (* t_1 x))))
double code(double x, double y, double z, double t) {
	double t_1 = (y / z) + (t / (z + -1.0));
	double tmp;
	if (t_1 <= -((double) INFINITY)) {
		tmp = (y * x) / z;
	} else {
		tmp = t_1 * x;
	}
	return tmp;
}
public static double code(double x, double y, double z, double t) {
	double t_1 = (y / z) + (t / (z + -1.0));
	double tmp;
	if (t_1 <= -Double.POSITIVE_INFINITY) {
		tmp = (y * x) / z;
	} else {
		tmp = t_1 * x;
	}
	return tmp;
}
def code(x, y, z, t):
	t_1 = (y / z) + (t / (z + -1.0))
	tmp = 0
	if t_1 <= -math.inf:
		tmp = (y * x) / z
	else:
		tmp = t_1 * x
	return tmp
function code(x, y, z, t)
	t_1 = Float64(Float64(y / z) + Float64(t / Float64(z + -1.0)))
	tmp = 0.0
	if (t_1 <= Float64(-Inf))
		tmp = Float64(Float64(y * x) / z);
	else
		tmp = Float64(t_1 * x);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	t_1 = (y / z) + (t / (z + -1.0));
	tmp = 0.0;
	if (t_1 <= -Inf)
		tmp = (y * x) / z;
	else
		tmp = t_1 * x;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y / z), $MachinePrecision] + N[(t / N[(z + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision], N[(t$95$1 * x), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{y}{z} + \frac{t}{z + -1}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\frac{y \cdot x}{z}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (-.f64 (/.f64 y z) (/.f64 t (-.f64 #s(literal 1 binary64) z))) < -inf.0

    1. Initial program 59.5%

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

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

        \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
      2. lower-*.f64100.0

        \[\leadsto \frac{\color{blue}{x \cdot y}}{z} \]
    5. Applied rewrites100.0%

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

    if -inf.0 < (-.f64 (/.f64 y z) (/.f64 t (-.f64 #s(literal 1 binary64) z)))

    1. Initial program 96.5%

      \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
    2. Add Preprocessing
  3. Recombined 2 regimes into one program.
  4. Final simplification96.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{y}{z} + \frac{t}{z + -1} \leq -\infty:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{else}:\\ \;\;\;\;\left(\frac{y}{z} + \frac{t}{z + -1}\right) \cdot x\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 93.5% accurate, 0.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.75:\\
\;\;\;\;x \cdot \frac{y + t}{z}\\

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

\mathbf{else}:\\
\;\;\;\;x \cdot \frac{1}{\frac{z}{y + t}}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -0.75

    1. Initial program 97.8%

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

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

        \[\leadsto x \cdot \color{blue}{\frac{y - -1 \cdot t}{z}} \]
      2. cancel-sign-sub-invN/A

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

        \[\leadsto x \cdot \frac{y + \color{blue}{1} \cdot t}{z} \]
      4. *-lft-identityN/A

        \[\leadsto x \cdot \frac{y + \color{blue}{t}}{z} \]
      5. lower-+.f6497.8

        \[\leadsto x \cdot \frac{\color{blue}{y + t}}{z} \]
    5. Applied rewrites97.8%

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

    if -0.75 < z < 1.7e-8

    1. Initial program 92.8%

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

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

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

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

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

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

    if 1.7e-8 < z

    1. Initial program 95.3%

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

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

        \[\leadsto x \cdot \color{blue}{\frac{y - -1 \cdot t}{z}} \]
      2. cancel-sign-sub-invN/A

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

        \[\leadsto x \cdot \frac{y + \color{blue}{1} \cdot t}{z} \]
      4. *-lft-identityN/A

        \[\leadsto x \cdot \frac{y + \color{blue}{t}}{z} \]
      5. lower-+.f6495.3

        \[\leadsto x \cdot \frac{\color{blue}{y + t}}{z} \]
    5. Applied rewrites95.3%

      \[\leadsto x \cdot \color{blue}{\frac{y + t}{z}} \]
    6. Step-by-step derivation
      1. Applied rewrites95.3%

        \[\leadsto x \cdot \frac{1}{\color{blue}{\frac{z}{t + y}}} \]
    7. Recombined 3 regimes into one program.
    8. Final simplification94.3%

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

    Alternative 4: 76.5% accurate, 0.9× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \frac{t}{z + -1}\\ \mathbf{if}\;t \leq -4.5 \cdot 10^{+158}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 8.5 \cdot 10^{-168}:\\ \;\;\;\;\left(y + t\right) \cdot \frac{x}{z}\\ \mathbf{elif}\;t \leq 2.1 \cdot 10^{+106}:\\ \;\;\;\;x \cdot \frac{y}{z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
    (FPCore (x y z t)
     :precision binary64
     (let* ((t_1 (* x (/ t (+ z -1.0)))))
       (if (<= t -4.5e+158)
         t_1
         (if (<= t 8.5e-168)
           (* (+ y t) (/ x z))
           (if (<= t 2.1e+106) (* x (/ y z)) t_1)))))
    double code(double x, double y, double z, double t) {
    	double t_1 = x * (t / (z + -1.0));
    	double tmp;
    	if (t <= -4.5e+158) {
    		tmp = t_1;
    	} else if (t <= 8.5e-168) {
    		tmp = (y + t) * (x / z);
    	} else if (t <= 2.1e+106) {
    		tmp = x * (y / z);
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    real(8) function code(x, y, z, t)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        real(8), intent (in) :: z
        real(8), intent (in) :: t
        real(8) :: t_1
        real(8) :: tmp
        t_1 = x * (t / (z + (-1.0d0)))
        if (t <= (-4.5d+158)) then
            tmp = t_1
        else if (t <= 8.5d-168) then
            tmp = (y + t) * (x / z)
        else if (t <= 2.1d+106) then
            tmp = x * (y / z)
        else
            tmp = t_1
        end if
        code = tmp
    end function
    
    public static double code(double x, double y, double z, double t) {
    	double t_1 = x * (t / (z + -1.0));
    	double tmp;
    	if (t <= -4.5e+158) {
    		tmp = t_1;
    	} else if (t <= 8.5e-168) {
    		tmp = (y + t) * (x / z);
    	} else if (t <= 2.1e+106) {
    		tmp = x * (y / z);
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    def code(x, y, z, t):
    	t_1 = x * (t / (z + -1.0))
    	tmp = 0
    	if t <= -4.5e+158:
    		tmp = t_1
    	elif t <= 8.5e-168:
    		tmp = (y + t) * (x / z)
    	elif t <= 2.1e+106:
    		tmp = x * (y / z)
    	else:
    		tmp = t_1
    	return tmp
    
    function code(x, y, z, t)
    	t_1 = Float64(x * Float64(t / Float64(z + -1.0)))
    	tmp = 0.0
    	if (t <= -4.5e+158)
    		tmp = t_1;
    	elseif (t <= 8.5e-168)
    		tmp = Float64(Float64(y + t) * Float64(x / z));
    	elseif (t <= 2.1e+106)
    		tmp = Float64(x * Float64(y / z));
    	else
    		tmp = t_1;
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t)
    	t_1 = x * (t / (z + -1.0));
    	tmp = 0.0;
    	if (t <= -4.5e+158)
    		tmp = t_1;
    	elseif (t <= 8.5e-168)
    		tmp = (y + t) * (x / z);
    	elseif (t <= 2.1e+106)
    		tmp = x * (y / z);
    	else
    		tmp = t_1;
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[(t / N[(z + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.5e+158], t$95$1, If[LessEqual[t, 8.5e-168], N[(N[(y + t), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.1e+106], N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := x \cdot \frac{t}{z + -1}\\
    \mathbf{if}\;t \leq -4.5 \cdot 10^{+158}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;t \leq 8.5 \cdot 10^{-168}:\\
    \;\;\;\;\left(y + t\right) \cdot \frac{x}{z}\\
    
    \mathbf{elif}\;t \leq 2.1 \cdot 10^{+106}:\\
    \;\;\;\;x \cdot \frac{y}{z}\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if t < -4.50000000000000046e158 or 2.10000000000000005e106 < t

      1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto x \cdot \frac{t}{z + \color{blue}{-1}} \]
        11. lower-+.f6483.1

          \[\leadsto x \cdot \frac{t}{\color{blue}{z + -1}} \]
      5. Applied rewrites83.1%

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

      if -4.50000000000000046e158 < t < 8.4999999999999994e-168

      1. Initial program 90.5%

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

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

          \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
        2. lower-*.f6481.4

          \[\leadsto \frac{\color{blue}{x \cdot y}}{z} \]
      5. Applied rewrites81.4%

        \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
      6. Taylor expanded in z around inf

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \frac{\color{blue}{\left(y + t\right)} \cdot x}{z} \]
        11. lower-+.f6484.4

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

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

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

        if 8.4999999999999994e-168 < t < 2.10000000000000005e106

        1. Initial program 96.5%

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

          \[\leadsto x \cdot \color{blue}{\frac{y}{z}} \]
        4. Step-by-step derivation
          1. lower-/.f6479.1

            \[\leadsto x \cdot \color{blue}{\frac{y}{z}} \]
        5. Applied rewrites79.1%

          \[\leadsto x \cdot \color{blue}{\frac{y}{z}} \]
      10. Recombined 3 regimes into one program.
      11. Final simplification83.8%

        \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -4.5 \cdot 10^{+158}:\\ \;\;\;\;x \cdot \frac{t}{z + -1}\\ \mathbf{elif}\;t \leq 8.5 \cdot 10^{-168}:\\ \;\;\;\;\left(y + t\right) \cdot \frac{x}{z}\\ \mathbf{elif}\;t \leq 2.1 \cdot 10^{+106}:\\ \;\;\;\;x \cdot \frac{y}{z}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{t}{z + -1}\\ \end{array} \]
      12. Add Preprocessing

      Alternative 5: 93.6% accurate, 0.9× speedup?

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

        1. Initial program 96.4%

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

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

            \[\leadsto x \cdot \color{blue}{\frac{y - -1 \cdot t}{z}} \]
          2. cancel-sign-sub-invN/A

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

            \[\leadsto x \cdot \frac{y + \color{blue}{1} \cdot t}{z} \]
          4. *-lft-identityN/A

            \[\leadsto x \cdot \frac{y + \color{blue}{t}}{z} \]
          5. lower-+.f6496.4

            \[\leadsto x \cdot \frac{\color{blue}{y + t}}{z} \]
        5. Applied rewrites96.4%

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

        if -0.75 < z < 1.7e-8

        1. Initial program 92.8%

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

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

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

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

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

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

      Alternative 6: 93.5% accurate, 1.0× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \frac{y + t}{z}\\ \mathbf{if}\;z \leq -1:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.7 \cdot 10^{-8}:\\ \;\;\;\;x \cdot \left(\frac{y}{z} + \left(-t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
      (FPCore (x y z t)
       :precision binary64
       (let* ((t_1 (* x (/ (+ y t) z))))
         (if (<= z -1.0) t_1 (if (<= z 1.7e-8) (* x (+ (/ y z) (- t))) t_1))))
      double code(double x, double y, double z, double t) {
      	double t_1 = x * ((y + t) / z);
      	double tmp;
      	if (z <= -1.0) {
      		tmp = t_1;
      	} else if (z <= 1.7e-8) {
      		tmp = x * ((y / z) + -t);
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      real(8) function code(x, y, z, t)
          real(8), intent (in) :: x
          real(8), intent (in) :: y
          real(8), intent (in) :: z
          real(8), intent (in) :: t
          real(8) :: t_1
          real(8) :: tmp
          t_1 = x * ((y + t) / z)
          if (z <= (-1.0d0)) then
              tmp = t_1
          else if (z <= 1.7d-8) then
              tmp = x * ((y / z) + -t)
          else
              tmp = t_1
          end if
          code = tmp
      end function
      
      public static double code(double x, double y, double z, double t) {
      	double t_1 = x * ((y + t) / z);
      	double tmp;
      	if (z <= -1.0) {
      		tmp = t_1;
      	} else if (z <= 1.7e-8) {
      		tmp = x * ((y / z) + -t);
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      def code(x, y, z, t):
      	t_1 = x * ((y + t) / z)
      	tmp = 0
      	if z <= -1.0:
      		tmp = t_1
      	elif z <= 1.7e-8:
      		tmp = x * ((y / z) + -t)
      	else:
      		tmp = t_1
      	return tmp
      
      function code(x, y, z, t)
      	t_1 = Float64(x * Float64(Float64(y + t) / z))
      	tmp = 0.0
      	if (z <= -1.0)
      		tmp = t_1;
      	elseif (z <= 1.7e-8)
      		tmp = Float64(x * Float64(Float64(y / z) + Float64(-t)));
      	else
      		tmp = t_1;
      	end
      	return tmp
      end
      
      function tmp_2 = code(x, y, z, t)
      	t_1 = x * ((y + t) / z);
      	tmp = 0.0;
      	if (z <= -1.0)
      		tmp = t_1;
      	elseif (z <= 1.7e-8)
      		tmp = x * ((y / z) + -t);
      	else
      		tmp = t_1;
      	end
      	tmp_2 = tmp;
      end
      
      code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[(N[(y + t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.0], t$95$1, If[LessEqual[z, 1.7e-8], N[(x * N[(N[(y / z), $MachinePrecision] + (-t)), $MachinePrecision]), $MachinePrecision], t$95$1]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := x \cdot \frac{y + t}{z}\\
      \mathbf{if}\;z \leq -1:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;z \leq 1.7 \cdot 10^{-8}:\\
      \;\;\;\;x \cdot \left(\frac{y}{z} + \left(-t\right)\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if z < -1 or 1.7e-8 < z

        1. Initial program 96.4%

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

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

            \[\leadsto x \cdot \color{blue}{\frac{y - -1 \cdot t}{z}} \]
          2. cancel-sign-sub-invN/A

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

            \[\leadsto x \cdot \frac{y + \color{blue}{1} \cdot t}{z} \]
          4. *-lft-identityN/A

            \[\leadsto x \cdot \frac{y + \color{blue}{t}}{z} \]
          5. lower-+.f6496.4

            \[\leadsto x \cdot \frac{\color{blue}{y + t}}{z} \]
        5. Applied rewrites96.4%

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

        if -1 < z < 1.7e-8

        1. Initial program 92.8%

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

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

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

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

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

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

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

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

            \[\leadsto x \cdot \mathsf{fma}\left(\frac{1}{z}, y, \mathsf{neg}\left(\color{blue}{\frac{t}{1 - z}}\right)\right) \]
          9. distribute-neg-frac2N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{1}{z}, y, \mathsf{neg}\left(t\right)\right) \cdot x} \]
          3. lower-*.f6492.2

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

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

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

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

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

            \[\leadsto \left(\color{blue}{\frac{y}{z}} + \left(\mathsf{neg}\left(t\right)\right)\right) \cdot x \]
          9. lower-+.f6492.2

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

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

        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1:\\ \;\;\;\;x \cdot \frac{y + t}{z}\\ \mathbf{elif}\;z \leq 1.7 \cdot 10^{-8}:\\ \;\;\;\;x \cdot \left(\frac{y}{z} + \left(-t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{y + t}{z}\\ \end{array} \]
      5. Add Preprocessing

      Alternative 7: 82.8% accurate, 1.1× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \frac{y + t}{z}\\ \mathbf{if}\;z \leq -7.8 \cdot 10^{-101}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.7 \cdot 10^{-8}:\\ \;\;\;\;y \cdot \frac{x}{z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
      (FPCore (x y z t)
       :precision binary64
       (let* ((t_1 (* x (/ (+ y t) z))))
         (if (<= z -7.8e-101) t_1 (if (<= z 1.7e-8) (* y (/ x z)) t_1))))
      double code(double x, double y, double z, double t) {
      	double t_1 = x * ((y + t) / z);
      	double tmp;
      	if (z <= -7.8e-101) {
      		tmp = t_1;
      	} else if (z <= 1.7e-8) {
      		tmp = y * (x / z);
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      real(8) function code(x, y, z, t)
          real(8), intent (in) :: x
          real(8), intent (in) :: y
          real(8), intent (in) :: z
          real(8), intent (in) :: t
          real(8) :: t_1
          real(8) :: tmp
          t_1 = x * ((y + t) / z)
          if (z <= (-7.8d-101)) then
              tmp = t_1
          else if (z <= 1.7d-8) then
              tmp = y * (x / z)
          else
              tmp = t_1
          end if
          code = tmp
      end function
      
      public static double code(double x, double y, double z, double t) {
      	double t_1 = x * ((y + t) / z);
      	double tmp;
      	if (z <= -7.8e-101) {
      		tmp = t_1;
      	} else if (z <= 1.7e-8) {
      		tmp = y * (x / z);
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      def code(x, y, z, t):
      	t_1 = x * ((y + t) / z)
      	tmp = 0
      	if z <= -7.8e-101:
      		tmp = t_1
      	elif z <= 1.7e-8:
      		tmp = y * (x / z)
      	else:
      		tmp = t_1
      	return tmp
      
      function code(x, y, z, t)
      	t_1 = Float64(x * Float64(Float64(y + t) / z))
      	tmp = 0.0
      	if (z <= -7.8e-101)
      		tmp = t_1;
      	elseif (z <= 1.7e-8)
      		tmp = Float64(y * Float64(x / z));
      	else
      		tmp = t_1;
      	end
      	return tmp
      end
      
      function tmp_2 = code(x, y, z, t)
      	t_1 = x * ((y + t) / z);
      	tmp = 0.0;
      	if (z <= -7.8e-101)
      		tmp = t_1;
      	elseif (z <= 1.7e-8)
      		tmp = y * (x / z);
      	else
      		tmp = t_1;
      	end
      	tmp_2 = tmp;
      end
      
      code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[(N[(y + t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.8e-101], t$95$1, If[LessEqual[z, 1.7e-8], N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := x \cdot \frac{y + t}{z}\\
      \mathbf{if}\;z \leq -7.8 \cdot 10^{-101}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;z \leq 1.7 \cdot 10^{-8}:\\
      \;\;\;\;y \cdot \frac{x}{z}\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if z < -7.80000000000000031e-101 or 1.7e-8 < z

        1. Initial program 96.8%

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

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

            \[\leadsto x \cdot \color{blue}{\frac{y - -1 \cdot t}{z}} \]
          2. cancel-sign-sub-invN/A

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

            \[\leadsto x \cdot \frac{y + \color{blue}{1} \cdot t}{z} \]
          4. *-lft-identityN/A

            \[\leadsto x \cdot \frac{y + \color{blue}{t}}{z} \]
          5. lower-+.f6491.5

            \[\leadsto x \cdot \frac{\color{blue}{y + t}}{z} \]
        5. Applied rewrites91.5%

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

        if -7.80000000000000031e-101 < z < 1.7e-8

        1. Initial program 91.8%

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

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

            \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
          2. lower-*.f6473.3

            \[\leadsto \frac{\color{blue}{x \cdot y}}{z} \]
        5. Applied rewrites73.3%

          \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
        6. Step-by-step derivation
          1. Applied rewrites76.4%

            \[\leadsto y \cdot \color{blue}{\frac{x}{z}} \]
        7. Recombined 2 regimes into one program.
        8. Add Preprocessing

        Alternative 8: 78.5% accurate, 1.1× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.04 \cdot 10^{-110}:\\ \;\;\;\;\frac{x \cdot \left(y + t\right)}{z}\\ \mathbf{elif}\;z \leq 1.7 \cdot 10^{-8}:\\ \;\;\;\;y \cdot \frac{x}{z}\\ \mathbf{else}:\\ \;\;\;\;\left(y + t\right) \cdot \frac{x}{z}\\ \end{array} \end{array} \]
        (FPCore (x y z t)
         :precision binary64
         (if (<= z -1.04e-110)
           (/ (* x (+ y t)) z)
           (if (<= z 1.7e-8) (* y (/ x z)) (* (+ y t) (/ x z)))))
        double code(double x, double y, double z, double t) {
        	double tmp;
        	if (z <= -1.04e-110) {
        		tmp = (x * (y + t)) / z;
        	} else if (z <= 1.7e-8) {
        		tmp = y * (x / z);
        	} else {
        		tmp = (y + t) * (x / z);
        	}
        	return tmp;
        }
        
        real(8) function code(x, y, z, t)
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            real(8), intent (in) :: z
            real(8), intent (in) :: t
            real(8) :: tmp
            if (z <= (-1.04d-110)) then
                tmp = (x * (y + t)) / z
            else if (z <= 1.7d-8) then
                tmp = y * (x / z)
            else
                tmp = (y + t) * (x / z)
            end if
            code = tmp
        end function
        
        public static double code(double x, double y, double z, double t) {
        	double tmp;
        	if (z <= -1.04e-110) {
        		tmp = (x * (y + t)) / z;
        	} else if (z <= 1.7e-8) {
        		tmp = y * (x / z);
        	} else {
        		tmp = (y + t) * (x / z);
        	}
        	return tmp;
        }
        
        def code(x, y, z, t):
        	tmp = 0
        	if z <= -1.04e-110:
        		tmp = (x * (y + t)) / z
        	elif z <= 1.7e-8:
        		tmp = y * (x / z)
        	else:
        		tmp = (y + t) * (x / z)
        	return tmp
        
        function code(x, y, z, t)
        	tmp = 0.0
        	if (z <= -1.04e-110)
        		tmp = Float64(Float64(x * Float64(y + t)) / z);
        	elseif (z <= 1.7e-8)
        		tmp = Float64(y * Float64(x / z));
        	else
        		tmp = Float64(Float64(y + t) * Float64(x / z));
        	end
        	return tmp
        end
        
        function tmp_2 = code(x, y, z, t)
        	tmp = 0.0;
        	if (z <= -1.04e-110)
        		tmp = (x * (y + t)) / z;
        	elseif (z <= 1.7e-8)
        		tmp = y * (x / z);
        	else
        		tmp = (y + t) * (x / z);
        	end
        	tmp_2 = tmp;
        end
        
        code[x_, y_, z_, t_] := If[LessEqual[z, -1.04e-110], N[(N[(x * N[(y + t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[z, 1.7e-8], N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision], N[(N[(y + t), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;z \leq -1.04 \cdot 10^{-110}:\\
        \;\;\;\;\frac{x \cdot \left(y + t\right)}{z}\\
        
        \mathbf{elif}\;z \leq 1.7 \cdot 10^{-8}:\\
        \;\;\;\;y \cdot \frac{x}{z}\\
        
        \mathbf{else}:\\
        \;\;\;\;\left(y + t\right) \cdot \frac{x}{z}\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if z < -1.03999999999999993e-110

          1. Initial program 97.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -1.03999999999999993e-110 < z < 1.7e-8

          1. Initial program 92.4%

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

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

              \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
            2. lower-*.f6473.4

              \[\leadsto \frac{\color{blue}{x \cdot y}}{z} \]
          5. Applied rewrites73.4%

            \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
          6. Step-by-step derivation
            1. Applied rewrites76.7%

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

            if 1.7e-8 < z

            1. Initial program 95.3%

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

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

                \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
              2. lower-*.f6448.6

                \[\leadsto \frac{\color{blue}{x \cdot y}}{z} \]
            5. Applied rewrites48.6%

              \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
            6. Taylor expanded in z around inf

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \frac{\color{blue}{\left(y + t\right)} \cdot x}{z} \]
              11. lower-+.f6488.4

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

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

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

              \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.04 \cdot 10^{-110}:\\ \;\;\;\;\frac{x \cdot \left(y + t\right)}{z}\\ \mathbf{elif}\;z \leq 1.7 \cdot 10^{-8}:\\ \;\;\;\;y \cdot \frac{x}{z}\\ \mathbf{else}:\\ \;\;\;\;\left(y + t\right) \cdot \frac{x}{z}\\ \end{array} \]
            12. Add Preprocessing

            Alternative 9: 78.4% accurate, 1.1× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(y + t\right) \cdot \frac{x}{z}\\ \mathbf{if}\;z \leq -1.04 \cdot 10^{-110}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.7 \cdot 10^{-8}:\\ \;\;\;\;y \cdot \frac{x}{z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
            (FPCore (x y z t)
             :precision binary64
             (let* ((t_1 (* (+ y t) (/ x z))))
               (if (<= z -1.04e-110) t_1 (if (<= z 1.7e-8) (* y (/ x z)) t_1))))
            double code(double x, double y, double z, double t) {
            	double t_1 = (y + t) * (x / z);
            	double tmp;
            	if (z <= -1.04e-110) {
            		tmp = t_1;
            	} else if (z <= 1.7e-8) {
            		tmp = y * (x / z);
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            real(8) function code(x, y, z, t)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                real(8), intent (in) :: z
                real(8), intent (in) :: t
                real(8) :: t_1
                real(8) :: tmp
                t_1 = (y + t) * (x / z)
                if (z <= (-1.04d-110)) then
                    tmp = t_1
                else if (z <= 1.7d-8) then
                    tmp = y * (x / z)
                else
                    tmp = t_1
                end if
                code = tmp
            end function
            
            public static double code(double x, double y, double z, double t) {
            	double t_1 = (y + t) * (x / z);
            	double tmp;
            	if (z <= -1.04e-110) {
            		tmp = t_1;
            	} else if (z <= 1.7e-8) {
            		tmp = y * (x / z);
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            def code(x, y, z, t):
            	t_1 = (y + t) * (x / z)
            	tmp = 0
            	if z <= -1.04e-110:
            		tmp = t_1
            	elif z <= 1.7e-8:
            		tmp = y * (x / z)
            	else:
            		tmp = t_1
            	return tmp
            
            function code(x, y, z, t)
            	t_1 = Float64(Float64(y + t) * Float64(x / z))
            	tmp = 0.0
            	if (z <= -1.04e-110)
            		tmp = t_1;
            	elseif (z <= 1.7e-8)
            		tmp = Float64(y * Float64(x / z));
            	else
            		tmp = t_1;
            	end
            	return tmp
            end
            
            function tmp_2 = code(x, y, z, t)
            	t_1 = (y + t) * (x / z);
            	tmp = 0.0;
            	if (z <= -1.04e-110)
            		tmp = t_1;
            	elseif (z <= 1.7e-8)
            		tmp = y * (x / z);
            	else
            		tmp = t_1;
            	end
            	tmp_2 = tmp;
            end
            
            code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y + t), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.04e-110], t$95$1, If[LessEqual[z, 1.7e-8], N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \left(y + t\right) \cdot \frac{x}{z}\\
            \mathbf{if}\;z \leq -1.04 \cdot 10^{-110}:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;z \leq 1.7 \cdot 10^{-8}:\\
            \;\;\;\;y \cdot \frac{x}{z}\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_1\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if z < -1.03999999999999993e-110 or 1.7e-8 < z

              1. Initial program 96.2%

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

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

                  \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
                2. lower-*.f6450.7

                  \[\leadsto \frac{\color{blue}{x \cdot y}}{z} \]
              5. Applied rewrites50.7%

                \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
              6. Taylor expanded in z around inf

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \frac{\color{blue}{\left(y + t\right)} \cdot x}{z} \]
              8. Applied rewrites83.9%

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

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

                if -1.03999999999999993e-110 < z < 1.7e-8

                1. Initial program 92.4%

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

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

                    \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
                  2. lower-*.f6473.4

                    \[\leadsto \frac{\color{blue}{x \cdot y}}{z} \]
                5. Applied rewrites73.4%

                  \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
                6. Step-by-step derivation
                  1. Applied rewrites76.7%

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

                  \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.04 \cdot 10^{-110}:\\ \;\;\;\;\left(y + t\right) \cdot \frac{x}{z}\\ \mathbf{elif}\;z \leq 1.7 \cdot 10^{-8}:\\ \;\;\;\;y \cdot \frac{x}{z}\\ \mathbf{else}:\\ \;\;\;\;\left(y + t\right) \cdot \frac{x}{z}\\ \end{array} \]
                9. Add Preprocessing

                Alternative 10: 67.4% accurate, 1.2× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \frac{t}{z}\\ \mathbf{if}\;t \leq -8.4 \cdot 10^{+155}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 5.7 \cdot 10^{+118}:\\ \;\;\;\;y \cdot \frac{x}{z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                (FPCore (x y z t)
                 :precision binary64
                 (let* ((t_1 (* x (/ t z))))
                   (if (<= t -8.4e+155) t_1 (if (<= t 5.7e+118) (* y (/ x z)) t_1))))
                double code(double x, double y, double z, double t) {
                	double t_1 = x * (t / z);
                	double tmp;
                	if (t <= -8.4e+155) {
                		tmp = t_1;
                	} else if (t <= 5.7e+118) {
                		tmp = y * (x / z);
                	} else {
                		tmp = t_1;
                	}
                	return tmp;
                }
                
                real(8) function code(x, y, z, t)
                    real(8), intent (in) :: x
                    real(8), intent (in) :: y
                    real(8), intent (in) :: z
                    real(8), intent (in) :: t
                    real(8) :: t_1
                    real(8) :: tmp
                    t_1 = x * (t / z)
                    if (t <= (-8.4d+155)) then
                        tmp = t_1
                    else if (t <= 5.7d+118) then
                        tmp = y * (x / z)
                    else
                        tmp = t_1
                    end if
                    code = tmp
                end function
                
                public static double code(double x, double y, double z, double t) {
                	double t_1 = x * (t / z);
                	double tmp;
                	if (t <= -8.4e+155) {
                		tmp = t_1;
                	} else if (t <= 5.7e+118) {
                		tmp = y * (x / z);
                	} else {
                		tmp = t_1;
                	}
                	return tmp;
                }
                
                def code(x, y, z, t):
                	t_1 = x * (t / z)
                	tmp = 0
                	if t <= -8.4e+155:
                		tmp = t_1
                	elif t <= 5.7e+118:
                		tmp = y * (x / z)
                	else:
                		tmp = t_1
                	return tmp
                
                function code(x, y, z, t)
                	t_1 = Float64(x * Float64(t / z))
                	tmp = 0.0
                	if (t <= -8.4e+155)
                		tmp = t_1;
                	elseif (t <= 5.7e+118)
                		tmp = Float64(y * Float64(x / z));
                	else
                		tmp = t_1;
                	end
                	return tmp
                end
                
                function tmp_2 = code(x, y, z, t)
                	t_1 = x * (t / z);
                	tmp = 0.0;
                	if (t <= -8.4e+155)
                		tmp = t_1;
                	elseif (t <= 5.7e+118)
                		tmp = y * (x / z);
                	else
                		tmp = t_1;
                	end
                	tmp_2 = tmp;
                end
                
                code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[(t / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8.4e+155], t$95$1, If[LessEqual[t, 5.7e+118], N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := x \cdot \frac{t}{z}\\
                \mathbf{if}\;t \leq -8.4 \cdot 10^{+155}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;t \leq 5.7 \cdot 10^{+118}:\\
                \;\;\;\;y \cdot \frac{x}{z}\\
                
                \mathbf{else}:\\
                \;\;\;\;t\_1\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if t < -8.4e155 or 5.70000000000000002e118 < t

                  1. Initial program 98.5%

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

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

                      \[\leadsto x \cdot \color{blue}{\frac{y - -1 \cdot t}{z}} \]
                    2. cancel-sign-sub-invN/A

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

                      \[\leadsto x \cdot \frac{y + \color{blue}{1} \cdot t}{z} \]
                    4. *-lft-identityN/A

                      \[\leadsto x \cdot \frac{y + \color{blue}{t}}{z} \]
                    5. lower-+.f6462.5

                      \[\leadsto x \cdot \frac{\color{blue}{y + t}}{z} \]
                  5. Applied rewrites62.5%

                    \[\leadsto x \cdot \color{blue}{\frac{y + t}{z}} \]
                  6. Taylor expanded in y around 0

                    \[\leadsto x \cdot \frac{t}{\color{blue}{z}} \]
                  7. Step-by-step derivation
                    1. Applied rewrites55.2%

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

                    if -8.4e155 < t < 5.70000000000000002e118

                    1. Initial program 92.6%

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

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

                        \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
                      2. lower-*.f6479.5

                        \[\leadsto \frac{\color{blue}{x \cdot y}}{z} \]
                    5. Applied rewrites79.5%

                      \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
                    6. Step-by-step derivation
                      1. Applied rewrites80.7%

                        \[\leadsto y \cdot \color{blue}{\frac{x}{z}} \]
                    7. Recombined 2 regimes into one program.
                    8. Add Preprocessing

                    Alternative 11: 65.1% accurate, 1.2× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t \cdot x}{z}\\ \mathbf{if}\;t \leq -1.8 \cdot 10^{+156}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 1.65 \cdot 10^{+155}:\\ \;\;\;\;y \cdot \frac{x}{z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                    (FPCore (x y z t)
                     :precision binary64
                     (let* ((t_1 (/ (* t x) z)))
                       (if (<= t -1.8e+156) t_1 (if (<= t 1.65e+155) (* y (/ x z)) t_1))))
                    double code(double x, double y, double z, double t) {
                    	double t_1 = (t * x) / z;
                    	double tmp;
                    	if (t <= -1.8e+156) {
                    		tmp = t_1;
                    	} else if (t <= 1.65e+155) {
                    		tmp = y * (x / z);
                    	} else {
                    		tmp = t_1;
                    	}
                    	return tmp;
                    }
                    
                    real(8) function code(x, y, z, t)
                        real(8), intent (in) :: x
                        real(8), intent (in) :: y
                        real(8), intent (in) :: z
                        real(8), intent (in) :: t
                        real(8) :: t_1
                        real(8) :: tmp
                        t_1 = (t * x) / z
                        if (t <= (-1.8d+156)) then
                            tmp = t_1
                        else if (t <= 1.65d+155) then
                            tmp = y * (x / z)
                        else
                            tmp = t_1
                        end if
                        code = tmp
                    end function
                    
                    public static double code(double x, double y, double z, double t) {
                    	double t_1 = (t * x) / z;
                    	double tmp;
                    	if (t <= -1.8e+156) {
                    		tmp = t_1;
                    	} else if (t <= 1.65e+155) {
                    		tmp = y * (x / z);
                    	} else {
                    		tmp = t_1;
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y, z, t):
                    	t_1 = (t * x) / z
                    	tmp = 0
                    	if t <= -1.8e+156:
                    		tmp = t_1
                    	elif t <= 1.65e+155:
                    		tmp = y * (x / z)
                    	else:
                    		tmp = t_1
                    	return tmp
                    
                    function code(x, y, z, t)
                    	t_1 = Float64(Float64(t * x) / z)
                    	tmp = 0.0
                    	if (t <= -1.8e+156)
                    		tmp = t_1;
                    	elseif (t <= 1.65e+155)
                    		tmp = Float64(y * Float64(x / z));
                    	else
                    		tmp = t_1;
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y, z, t)
                    	t_1 = (t * x) / z;
                    	tmp = 0.0;
                    	if (t <= -1.8e+156)
                    		tmp = t_1;
                    	elseif (t <= 1.65e+155)
                    		tmp = y * (x / z);
                    	else
                    		tmp = t_1;
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(t * x), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[t, -1.8e+156], t$95$1, If[LessEqual[t, 1.65e+155], N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    t_1 := \frac{t \cdot x}{z}\\
                    \mathbf{if}\;t \leq -1.8 \cdot 10^{+156}:\\
                    \;\;\;\;t\_1\\
                    
                    \mathbf{elif}\;t \leq 1.65 \cdot 10^{+155}:\\
                    \;\;\;\;y \cdot \frac{x}{z}\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;t\_1\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 2 regimes
                    2. if t < -1.79999999999999989e156 or 1.6499999999999999e155 < t

                      1. Initial program 98.4%

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

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

                          \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
                        2. lower-*.f6420.6

                          \[\leadsto \frac{\color{blue}{x \cdot y}}{z} \]
                      5. Applied rewrites20.6%

                        \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
                      6. Taylor expanded in z around inf

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto \frac{\color{blue}{\left(y + t\right)} \cdot x}{z} \]
                      8. Applied rewrites52.9%

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

                        \[\leadsto \frac{t \cdot x}{z} \]
                      10. Step-by-step derivation
                        1. Applied rewrites45.0%

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

                        if -1.79999999999999989e156 < t < 1.6499999999999999e155

                        1. Initial program 92.8%

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

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

                            \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
                          2. lower-*.f6478.6

                            \[\leadsto \frac{\color{blue}{x \cdot y}}{z} \]
                        5. Applied rewrites78.6%

                          \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
                        6. Step-by-step derivation
                          1. Applied rewrites79.8%

                            \[\leadsto y \cdot \color{blue}{\frac{x}{z}} \]
                        7. Recombined 2 regimes into one program.
                        8. Add Preprocessing

                        Alternative 12: 61.1% accurate, 2.0× speedup?

                        \[\begin{array}{l} \\ y \cdot \frac{x}{z} \end{array} \]
                        (FPCore (x y z t) :precision binary64 (* y (/ x z)))
                        double code(double x, double y, double z, double t) {
                        	return y * (x / z);
                        }
                        
                        real(8) function code(x, y, z, t)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            real(8), intent (in) :: z
                            real(8), intent (in) :: t
                            code = y * (x / z)
                        end function
                        
                        public static double code(double x, double y, double z, double t) {
                        	return y * (x / z);
                        }
                        
                        def code(x, y, z, t):
                        	return y * (x / z)
                        
                        function code(x, y, z, t)
                        	return Float64(y * Float64(x / z))
                        end
                        
                        function tmp = code(x, y, z, t)
                        	tmp = y * (x / z);
                        end
                        
                        code[x_, y_, z_, t_] := N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]
                        
                        \begin{array}{l}
                        
                        \\
                        y \cdot \frac{x}{z}
                        \end{array}
                        
                        Derivation
                        1. Initial program 94.5%

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

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

                            \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
                          2. lower-*.f6460.9

                            \[\leadsto \frac{\color{blue}{x \cdot y}}{z} \]
                        5. Applied rewrites60.9%

                          \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
                        6. Step-by-step derivation
                          1. Applied rewrites62.0%

                            \[\leadsto y \cdot \color{blue}{\frac{x}{z}} \]
                          2. Add Preprocessing

                          Developer Target 1: 94.9% accurate, 0.3× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \left(\frac{y}{z} - t \cdot \frac{1}{1 - z}\right)\\ t_2 := x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)\\ \mathbf{if}\;t\_2 < -7.623226303312042 \cdot 10^{-196}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 < 1.4133944927702302 \cdot 10^{-211}:\\ \;\;\;\;\frac{y \cdot x}{z} + \left(-\frac{t \cdot x}{1 - z}\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                          (FPCore (x y z t)
                           :precision binary64
                           (let* ((t_1 (* x (- (/ y z) (* t (/ 1.0 (- 1.0 z))))))
                                  (t_2 (* x (- (/ y z) (/ t (- 1.0 z))))))
                             (if (< t_2 -7.623226303312042e-196)
                               t_1
                               (if (< t_2 1.4133944927702302e-211)
                                 (+ (/ (* y x) z) (- (/ (* t x) (- 1.0 z))))
                                 t_1))))
                          double code(double x, double y, double z, double t) {
                          	double t_1 = x * ((y / z) - (t * (1.0 / (1.0 - z))));
                          	double t_2 = x * ((y / z) - (t / (1.0 - z)));
                          	double tmp;
                          	if (t_2 < -7.623226303312042e-196) {
                          		tmp = t_1;
                          	} else if (t_2 < 1.4133944927702302e-211) {
                          		tmp = ((y * x) / z) + -((t * x) / (1.0 - z));
                          	} else {
                          		tmp = t_1;
                          	}
                          	return tmp;
                          }
                          
                          real(8) function code(x, y, z, t)
                              real(8), intent (in) :: x
                              real(8), intent (in) :: y
                              real(8), intent (in) :: z
                              real(8), intent (in) :: t
                              real(8) :: t_1
                              real(8) :: t_2
                              real(8) :: tmp
                              t_1 = x * ((y / z) - (t * (1.0d0 / (1.0d0 - z))))
                              t_2 = x * ((y / z) - (t / (1.0d0 - z)))
                              if (t_2 < (-7.623226303312042d-196)) then
                                  tmp = t_1
                              else if (t_2 < 1.4133944927702302d-211) then
                                  tmp = ((y * x) / z) + -((t * x) / (1.0d0 - z))
                              else
                                  tmp = t_1
                              end if
                              code = tmp
                          end function
                          
                          public static double code(double x, double y, double z, double t) {
                          	double t_1 = x * ((y / z) - (t * (1.0 / (1.0 - z))));
                          	double t_2 = x * ((y / z) - (t / (1.0 - z)));
                          	double tmp;
                          	if (t_2 < -7.623226303312042e-196) {
                          		tmp = t_1;
                          	} else if (t_2 < 1.4133944927702302e-211) {
                          		tmp = ((y * x) / z) + -((t * x) / (1.0 - z));
                          	} else {
                          		tmp = t_1;
                          	}
                          	return tmp;
                          }
                          
                          def code(x, y, z, t):
                          	t_1 = x * ((y / z) - (t * (1.0 / (1.0 - z))))
                          	t_2 = x * ((y / z) - (t / (1.0 - z)))
                          	tmp = 0
                          	if t_2 < -7.623226303312042e-196:
                          		tmp = t_1
                          	elif t_2 < 1.4133944927702302e-211:
                          		tmp = ((y * x) / z) + -((t * x) / (1.0 - z))
                          	else:
                          		tmp = t_1
                          	return tmp
                          
                          function code(x, y, z, t)
                          	t_1 = Float64(x * Float64(Float64(y / z) - Float64(t * Float64(1.0 / Float64(1.0 - z)))))
                          	t_2 = Float64(x * Float64(Float64(y / z) - Float64(t / Float64(1.0 - z))))
                          	tmp = 0.0
                          	if (t_2 < -7.623226303312042e-196)
                          		tmp = t_1;
                          	elseif (t_2 < 1.4133944927702302e-211)
                          		tmp = Float64(Float64(Float64(y * x) / z) + Float64(-Float64(Float64(t * x) / Float64(1.0 - z))));
                          	else
                          		tmp = t_1;
                          	end
                          	return tmp
                          end
                          
                          function tmp_2 = code(x, y, z, t)
                          	t_1 = x * ((y / z) - (t * (1.0 / (1.0 - z))));
                          	t_2 = x * ((y / z) - (t / (1.0 - z)));
                          	tmp = 0.0;
                          	if (t_2 < -7.623226303312042e-196)
                          		tmp = t_1;
                          	elseif (t_2 < 1.4133944927702302e-211)
                          		tmp = ((y * x) / z) + -((t * x) / (1.0 - z));
                          	else
                          		tmp = t_1;
                          	end
                          	tmp_2 = tmp;
                          end
                          
                          code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[(N[(y / z), $MachinePrecision] - N[(t * N[(1.0 / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y / z), $MachinePrecision] - N[(t / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t$95$2, -7.623226303312042e-196], t$95$1, If[Less[t$95$2, 1.4133944927702302e-211], N[(N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision] + (-N[(N[(t * x), $MachinePrecision] / N[(1.0 - z), $MachinePrecision]), $MachinePrecision])), $MachinePrecision], t$95$1]]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          t_1 := x \cdot \left(\frac{y}{z} - t \cdot \frac{1}{1 - z}\right)\\
                          t_2 := x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)\\
                          \mathbf{if}\;t\_2 < -7.623226303312042 \cdot 10^{-196}:\\
                          \;\;\;\;t\_1\\
                          
                          \mathbf{elif}\;t\_2 < 1.4133944927702302 \cdot 10^{-211}:\\
                          \;\;\;\;\frac{y \cdot x}{z} + \left(-\frac{t \cdot x}{1 - z}\right)\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;t\_1\\
                          
                          
                          \end{array}
                          \end{array}
                          

                          Reproduce

                          ?
                          herbie shell --seed 2024220 
                          (FPCore (x y z t)
                            :name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, C"
                            :precision binary64
                          
                            :alt
                            (! :herbie-platform default (if (< (* x (- (/ y z) (/ t (- 1 z)))) -3811613151656021/5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (* x (- (/ y z) (* t (/ 1 (- 1 z))))) (if (< (* x (- (/ y z) (/ t (- 1 z)))) 7066972463851151/50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (/ (* y x) z) (- (/ (* t x) (- 1 z)))) (* x (- (/ y z) (* t (/ 1 (- 1 z))))))))
                          
                            (* x (- (/ y z) (/ t (- 1.0 z)))))