Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, H

Percentage Accurate: 95.8% → 97.6%
Time: 13.7s
Alternatives: 19
Speedup: 1.4×

Specification

?
\[\begin{array}{l} \\ \left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))
double code(double x, double y, double z, double t) {
	return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
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 * 3.0d0))) + (t / ((z * 3.0d0) * y))
end function
public static double code(double x, double y, double z, double t) {
	return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
def code(x, y, z, t):
	return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y))
function code(x, y, z, t)
	return Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(Float64(z * 3.0) * y)))
end
function tmp = code(x, y, z, t)
	tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
end
code[x_, y_, z_, t_] := N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(N[(z * 3.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}
\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 19 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: 95.8% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))
double code(double x, double y, double z, double t) {
	return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
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 * 3.0d0))) + (t / ((z * 3.0d0) * y))
end function
public static double code(double x, double y, double z, double t) {
	return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
def code(x, y, z, t):
	return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y))
function code(x, y, z, t)
	return Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(Float64(z * 3.0) * y)))
end
function tmp = code(x, y, z, t)
	tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
end
code[x_, y_, z_, t_] := N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(N[(z * 3.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Alternative 1: 97.6% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \cdot 3 \leq -1 \cdot 10^{-57}:\\ \;\;\;\;\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{y \cdot \left(z \cdot 3\right)}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (<= (* z 3.0) -1e-57)
   (+ (- x (/ y (* z 3.0))) (/ t (* y (* z 3.0))))
   (+ x (* (/ -0.3333333333333333 z) (- y (/ t y))))))
double code(double x, double y, double z, double t) {
	double tmp;
	if ((z * 3.0) <= -1e-57) {
		tmp = (x - (y / (z * 3.0))) + (t / (y * (z * 3.0)));
	} else {
		tmp = x + ((-0.3333333333333333 / z) * (y - (t / y)));
	}
	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 * 3.0d0) <= (-1d-57)) then
        tmp = (x - (y / (z * 3.0d0))) + (t / (y * (z * 3.0d0)))
    else
        tmp = x + (((-0.3333333333333333d0) / z) * (y - (t / y)))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if ((z * 3.0) <= -1e-57) {
		tmp = (x - (y / (z * 3.0))) + (t / (y * (z * 3.0)));
	} else {
		tmp = x + ((-0.3333333333333333 / z) * (y - (t / y)));
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if (z * 3.0) <= -1e-57:
		tmp = (x - (y / (z * 3.0))) + (t / (y * (z * 3.0)))
	else:
		tmp = x + ((-0.3333333333333333 / z) * (y - (t / y)))
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if (Float64(z * 3.0) <= -1e-57)
		tmp = Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(y * Float64(z * 3.0))));
	else
		tmp = Float64(x + Float64(Float64(-0.3333333333333333 / z) * Float64(y - Float64(t / y))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if ((z * 3.0) <= -1e-57)
		tmp = (x - (y / (z * 3.0))) + (t / (y * (z * 3.0)));
	else
		tmp = x + ((-0.3333333333333333 / z) * (y - (t / y)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[LessEqual[N[(z * 3.0), $MachinePrecision], -1e-57], N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(y * N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(-0.3333333333333333 / z), $MachinePrecision] * N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \cdot 3 \leq -1 \cdot 10^{-57}:\\
\;\;\;\;\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{y \cdot \left(z \cdot 3\right)}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (*.f64 z #s(literal 3 binary64)) < -9.99999999999999955e-58

    1. Initial program 99.6%

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

    if -9.99999999999999955e-58 < (*.f64 z #s(literal 3 binary64))

    1. Initial program 94.0%

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
      5. unsub-negN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
      13. times-fracN/A

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
      17. associate-/r*N/A

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
      20. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
      21. /-lowering-/.f6498.2%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
    3. Simplified98.2%

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

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

Alternative 2: 62.8% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -2.95 \cdot 10^{+75}:\\ \;\;\;\;\frac{-0.3333333333333333}{\frac{z}{y}}\\ \mathbf{elif}\;y \leq -1.45 \cdot 10^{-93}:\\ \;\;\;\;x\\ \mathbf{elif}\;y \leq 3.3 \cdot 10^{+38}:\\ \;\;\;\;\frac{t}{z} \cdot \frac{0.3333333333333333}{y}\\ \mathbf{else}:\\ \;\;\;\;0 - \frac{y}{z \cdot 3}\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (<= y -2.95e+75)
   (/ -0.3333333333333333 (/ z y))
   (if (<= y -1.45e-93)
     x
     (if (<= y 3.3e+38)
       (* (/ t z) (/ 0.3333333333333333 y))
       (- 0.0 (/ y (* z 3.0)))))))
double code(double x, double y, double z, double t) {
	double tmp;
	if (y <= -2.95e+75) {
		tmp = -0.3333333333333333 / (z / y);
	} else if (y <= -1.45e-93) {
		tmp = x;
	} else if (y <= 3.3e+38) {
		tmp = (t / z) * (0.3333333333333333 / y);
	} else {
		tmp = 0.0 - (y / (z * 3.0));
	}
	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 (y <= (-2.95d+75)) then
        tmp = (-0.3333333333333333d0) / (z / y)
    else if (y <= (-1.45d-93)) then
        tmp = x
    else if (y <= 3.3d+38) then
        tmp = (t / z) * (0.3333333333333333d0 / y)
    else
        tmp = 0.0d0 - (y / (z * 3.0d0))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if (y <= -2.95e+75) {
		tmp = -0.3333333333333333 / (z / y);
	} else if (y <= -1.45e-93) {
		tmp = x;
	} else if (y <= 3.3e+38) {
		tmp = (t / z) * (0.3333333333333333 / y);
	} else {
		tmp = 0.0 - (y / (z * 3.0));
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if y <= -2.95e+75:
		tmp = -0.3333333333333333 / (z / y)
	elif y <= -1.45e-93:
		tmp = x
	elif y <= 3.3e+38:
		tmp = (t / z) * (0.3333333333333333 / y)
	else:
		tmp = 0.0 - (y / (z * 3.0))
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if (y <= -2.95e+75)
		tmp = Float64(-0.3333333333333333 / Float64(z / y));
	elseif (y <= -1.45e-93)
		tmp = x;
	elseif (y <= 3.3e+38)
		tmp = Float64(Float64(t / z) * Float64(0.3333333333333333 / y));
	else
		tmp = Float64(0.0 - Float64(y / Float64(z * 3.0)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if (y <= -2.95e+75)
		tmp = -0.3333333333333333 / (z / y);
	elseif (y <= -1.45e-93)
		tmp = x;
	elseif (y <= 3.3e+38)
		tmp = (t / z) * (0.3333333333333333 / y);
	else
		tmp = 0.0 - (y / (z * 3.0));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[LessEqual[y, -2.95e+75], N[(-0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.45e-93], x, If[LessEqual[y, 3.3e+38], N[(N[(t / z), $MachinePrecision] * N[(0.3333333333333333 / y), $MachinePrecision]), $MachinePrecision], N[(0.0 - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.95 \cdot 10^{+75}:\\
\;\;\;\;\frac{-0.3333333333333333}{\frac{z}{y}}\\

\mathbf{elif}\;y \leq -1.45 \cdot 10^{-93}:\\
\;\;\;\;x\\

\mathbf{elif}\;y \leq 3.3 \cdot 10^{+38}:\\
\;\;\;\;\frac{t}{z} \cdot \frac{0.3333333333333333}{y}\\

\mathbf{else}:\\
\;\;\;\;0 - \frac{y}{z \cdot 3}\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -2.94999999999999991e75

    1. Initial program 99.7%

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

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

        \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\left(\frac{t}{z \cdot 3}\right), \color{blue}{y}\right)\right) \]
      3. div-invN/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\left(t \cdot \frac{1}{z \cdot 3}\right), y\right)\right) \]
      4. *-lowering-*.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{1}{z \cdot 3}\right)\right), y\right)\right) \]
      5. *-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{1}{3 \cdot z}\right)\right), y\right)\right) \]
      6. associate-/r*N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\frac{1}{3}}{z}\right)\right), y\right)\right) \]
      7. metadata-evalN/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\frac{1}{3}}{z}\right)\right), y\right)\right) \]
      8. metadata-evalN/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\mathsf{neg}\left(\frac{-1}{3}\right)}{z}\right)\right), y\right)\right) \]
      9. /-lowering-/.f64N/A

        \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{/.f64}\left(\left(\mathsf{neg}\left(\frac{-1}{3}\right)\right), z\right)\right), y\right)\right) \]
      10. metadata-eval99.7%

        \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{/.f64}\left(\frac{1}{3}, z\right)\right), y\right)\right) \]
    4. Applied egg-rr99.7%

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

      \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y}{z}} \]
    6. Step-by-step derivation
      1. associate-*r/N/A

        \[\leadsto \frac{\frac{-1}{3} \cdot y}{\color{blue}{z}} \]
      2. /-lowering-/.f64N/A

        \[\leadsto \mathsf{/.f64}\left(\left(\frac{-1}{3} \cdot y\right), \color{blue}{z}\right) \]
      3. *-commutativeN/A

        \[\leadsto \mathsf{/.f64}\left(\left(y \cdot \frac{-1}{3}\right), z\right) \]
      4. *-lowering-*.f6470.7%

        \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \frac{-1}{3}\right), z\right) \]
    7. Simplified70.7%

      \[\leadsto \color{blue}{\frac{y \cdot -0.3333333333333333}{z}} \]
    8. Step-by-step derivation
      1. *-commutativeN/A

        \[\leadsto \frac{\frac{-1}{3} \cdot y}{z} \]
      2. associate-/l*N/A

        \[\leadsto \frac{-1}{3} \cdot \color{blue}{\frac{y}{z}} \]
      3. *-lowering-*.f64N/A

        \[\leadsto \mathsf{*.f64}\left(\frac{-1}{3}, \color{blue}{\left(\frac{y}{z}\right)}\right) \]
      4. /-lowering-/.f6470.7%

        \[\leadsto \mathsf{*.f64}\left(\frac{-1}{3}, \mathsf{/.f64}\left(y, \color{blue}{z}\right)\right) \]
    9. Applied egg-rr70.7%

      \[\leadsto \color{blue}{-0.3333333333333333 \cdot \frac{y}{z}} \]
    10. Step-by-step derivation
      1. clear-numN/A

        \[\leadsto \frac{-1}{3} \cdot \frac{1}{\color{blue}{\frac{z}{y}}} \]
      2. un-div-invN/A

        \[\leadsto \frac{\frac{-1}{3}}{\color{blue}{\frac{z}{y}}} \]
      3. /-lowering-/.f64N/A

        \[\leadsto \mathsf{/.f64}\left(\frac{-1}{3}, \color{blue}{\left(\frac{z}{y}\right)}\right) \]
      4. /-lowering-/.f6470.8%

        \[\leadsto \mathsf{/.f64}\left(\frac{-1}{3}, \mathsf{/.f64}\left(z, \color{blue}{y}\right)\right) \]
    11. Applied egg-rr70.8%

      \[\leadsto \color{blue}{\frac{-0.3333333333333333}{\frac{z}{y}}} \]

    if -2.94999999999999991e75 < y < -1.4499999999999999e-93

    1. Initial program 94.8%

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
      5. unsub-negN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
      13. times-fracN/A

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
      17. associate-/r*N/A

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
      20. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
      21. /-lowering-/.f6494.9%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
    3. Simplified94.9%

      \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in x around inf

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

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

      if -1.4499999999999999e-93 < y < 3.2999999999999999e38

      1. Initial program 93.3%

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

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

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

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

          \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
        5. unsub-negN/A

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

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

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

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

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

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

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

          \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
        13. times-fracN/A

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

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

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

          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
        17. associate-/r*N/A

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

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

          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
        20. --lowering--.f64N/A

          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
        21. /-lowering-/.f6494.8%

          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
      3. Simplified94.8%

        \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
      4. Add Preprocessing
      5. Taylor expanded in y around 0

        \[\leadsto \color{blue}{\frac{1}{3} \cdot \frac{t}{y \cdot z}} \]
      6. Step-by-step derivation
        1. associate-*r/N/A

          \[\leadsto \frac{\frac{1}{3} \cdot t}{\color{blue}{y \cdot z}} \]
        2. /-lowering-/.f64N/A

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

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

          \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \frac{1}{3}\right), \left(\color{blue}{y} \cdot z\right)\right) \]
        5. *-lowering-*.f6464.6%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \frac{1}{3}\right), \mathsf{*.f64}\left(y, \color{blue}{z}\right)\right) \]
      7. Simplified64.6%

        \[\leadsto \color{blue}{\frac{t \cdot 0.3333333333333333}{y \cdot z}} \]
      8. Step-by-step derivation
        1. *-commutativeN/A

          \[\leadsto \frac{t \cdot \frac{1}{3}}{z \cdot \color{blue}{y}} \]
        2. times-fracN/A

          \[\leadsto \frac{t}{z} \cdot \color{blue}{\frac{\frac{1}{3}}{y}} \]
        3. *-lowering-*.f64N/A

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

          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(t, z\right), \left(\frac{\color{blue}{\frac{1}{3}}}{y}\right)\right) \]
        5. /-lowering-/.f6467.0%

          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(t, z\right), \mathsf{/.f64}\left(\frac{1}{3}, \color{blue}{y}\right)\right) \]
      9. Applied egg-rr67.0%

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

      if 3.2999999999999999e38 < y

      1. Initial program 98.1%

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

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

          \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\left(\frac{t}{z \cdot 3}\right), \color{blue}{y}\right)\right) \]
        3. div-invN/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\left(t \cdot \frac{1}{z \cdot 3}\right), y\right)\right) \]
        4. *-lowering-*.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{1}{z \cdot 3}\right)\right), y\right)\right) \]
        5. *-commutativeN/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{1}{3 \cdot z}\right)\right), y\right)\right) \]
        6. associate-/r*N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\frac{1}{3}}{z}\right)\right), y\right)\right) \]
        7. metadata-evalN/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\frac{1}{3}}{z}\right)\right), y\right)\right) \]
        8. metadata-evalN/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\mathsf{neg}\left(\frac{-1}{3}\right)}{z}\right)\right), y\right)\right) \]
        9. /-lowering-/.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{/.f64}\left(\left(\mathsf{neg}\left(\frac{-1}{3}\right)\right), z\right)\right), y\right)\right) \]
        10. metadata-eval94.8%

          \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{/.f64}\left(\frac{1}{3}, z\right)\right), y\right)\right) \]
      4. Applied egg-rr94.8%

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

        \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y}{z}} \]
      6. Step-by-step derivation
        1. associate-*r/N/A

          \[\leadsto \frac{\frac{-1}{3} \cdot y}{\color{blue}{z}} \]
        2. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{-1}{3} \cdot y\right), \color{blue}{z}\right) \]
        3. *-commutativeN/A

          \[\leadsto \mathsf{/.f64}\left(\left(y \cdot \frac{-1}{3}\right), z\right) \]
        4. *-lowering-*.f6463.1%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \frac{-1}{3}\right), z\right) \]
      7. Simplified63.1%

        \[\leadsto \color{blue}{\frac{y \cdot -0.3333333333333333}{z}} \]
      8. Step-by-step derivation
        1. frac-2negN/A

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

          \[\leadsto \mathsf{neg}\left(\frac{y \cdot \frac{-1}{3}}{\mathsf{neg}\left(z\right)}\right) \]
        3. *-commutativeN/A

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

          \[\leadsto \mathsf{neg}\left(\frac{\frac{-1}{3} \cdot y}{-1 \cdot z}\right) \]
        5. times-fracN/A

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

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

          \[\leadsto \mathsf{neg}\left(\frac{-1}{-3} \cdot \frac{y}{z}\right) \]
        8. times-fracN/A

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

          \[\leadsto \mathsf{neg}\left(\frac{\mathsf{neg}\left(y\right)}{-3 \cdot z}\right) \]
        10. metadata-evalN/A

          \[\leadsto \mathsf{neg}\left(\frac{\mathsf{neg}\left(y\right)}{\left(\mathsf{neg}\left(3\right)\right) \cdot z}\right) \]
        11. distribute-lft-neg-inN/A

          \[\leadsto \mathsf{neg}\left(\frac{\mathsf{neg}\left(y\right)}{\mathsf{neg}\left(3 \cdot z\right)}\right) \]
        12. *-commutativeN/A

          \[\leadsto \mathsf{neg}\left(\frac{\mathsf{neg}\left(y\right)}{\mathsf{neg}\left(z \cdot 3\right)}\right) \]
        13. frac-2negN/A

          \[\leadsto \mathsf{neg}\left(\frac{y}{z \cdot 3}\right) \]
        14. neg-lowering-neg.f64N/A

          \[\leadsto \mathsf{neg.f64}\left(\left(\frac{y}{z \cdot 3}\right)\right) \]
        15. /-lowering-/.f64N/A

          \[\leadsto \mathsf{neg.f64}\left(\mathsf{/.f64}\left(y, \left(z \cdot 3\right)\right)\right) \]
        16. metadata-evalN/A

          \[\leadsto \mathsf{neg.f64}\left(\mathsf{/.f64}\left(y, \left(z \cdot \frac{1}{\frac{1}{3}}\right)\right)\right) \]
        17. div-invN/A

          \[\leadsto \mathsf{neg.f64}\left(\mathsf{/.f64}\left(y, \left(\frac{z}{\frac{1}{3}}\right)\right)\right) \]
        18. /-lowering-/.f6463.1%

          \[\leadsto \mathsf{neg.f64}\left(\mathsf{/.f64}\left(y, \mathsf{/.f64}\left(z, \frac{1}{3}\right)\right)\right) \]
      9. Applied egg-rr63.1%

        \[\leadsto \color{blue}{-\frac{y}{\frac{z}{0.3333333333333333}}} \]
      10. Step-by-step derivation
        1. div-invN/A

          \[\leadsto \mathsf{neg.f64}\left(\mathsf{/.f64}\left(y, \left(z \cdot \frac{1}{\frac{1}{3}}\right)\right)\right) \]
        2. metadata-evalN/A

          \[\leadsto \mathsf{neg.f64}\left(\mathsf{/.f64}\left(y, \left(z \cdot 3\right)\right)\right) \]
        3. *-lowering-*.f6463.1%

          \[\leadsto \mathsf{neg.f64}\left(\mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right) \]
      11. Applied egg-rr63.1%

        \[\leadsto -\frac{y}{\color{blue}{z \cdot 3}} \]
    7. Recombined 4 regimes into one program.
    8. Final simplification64.8%

      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.95 \cdot 10^{+75}:\\ \;\;\;\;\frac{-0.3333333333333333}{\frac{z}{y}}\\ \mathbf{elif}\;y \leq -1.45 \cdot 10^{-93}:\\ \;\;\;\;x\\ \mathbf{elif}\;y \leq 3.3 \cdot 10^{+38}:\\ \;\;\;\;\frac{t}{z} \cdot \frac{0.3333333333333333}{y}\\ \mathbf{else}:\\ \;\;\;\;0 - \frac{y}{z \cdot 3}\\ \end{array} \]
    9. Add Preprocessing

    Alternative 3: 60.5% accurate, 0.7× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -3.35 \cdot 10^{+75}:\\ \;\;\;\;\frac{-0.3333333333333333}{\frac{z}{y}}\\ \mathbf{elif}\;y \leq -5.4 \cdot 10^{-117}:\\ \;\;\;\;x\\ \mathbf{elif}\;y \leq 10^{+40}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\ \mathbf{else}:\\ \;\;\;\;0 - \frac{y}{z \cdot 3}\\ \end{array} \end{array} \]
    (FPCore (x y z t)
     :precision binary64
     (if (<= y -3.35e+75)
       (/ -0.3333333333333333 (/ z y))
       (if (<= y -5.4e-117)
         x
         (if (<= y 1e+40)
           (* 0.3333333333333333 (/ t (* y z)))
           (- 0.0 (/ y (* z 3.0)))))))
    double code(double x, double y, double z, double t) {
    	double tmp;
    	if (y <= -3.35e+75) {
    		tmp = -0.3333333333333333 / (z / y);
    	} else if (y <= -5.4e-117) {
    		tmp = x;
    	} else if (y <= 1e+40) {
    		tmp = 0.3333333333333333 * (t / (y * z));
    	} else {
    		tmp = 0.0 - (y / (z * 3.0));
    	}
    	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 (y <= (-3.35d+75)) then
            tmp = (-0.3333333333333333d0) / (z / y)
        else if (y <= (-5.4d-117)) then
            tmp = x
        else if (y <= 1d+40) then
            tmp = 0.3333333333333333d0 * (t / (y * z))
        else
            tmp = 0.0d0 - (y / (z * 3.0d0))
        end if
        code = tmp
    end function
    
    public static double code(double x, double y, double z, double t) {
    	double tmp;
    	if (y <= -3.35e+75) {
    		tmp = -0.3333333333333333 / (z / y);
    	} else if (y <= -5.4e-117) {
    		tmp = x;
    	} else if (y <= 1e+40) {
    		tmp = 0.3333333333333333 * (t / (y * z));
    	} else {
    		tmp = 0.0 - (y / (z * 3.0));
    	}
    	return tmp;
    }
    
    def code(x, y, z, t):
    	tmp = 0
    	if y <= -3.35e+75:
    		tmp = -0.3333333333333333 / (z / y)
    	elif y <= -5.4e-117:
    		tmp = x
    	elif y <= 1e+40:
    		tmp = 0.3333333333333333 * (t / (y * z))
    	else:
    		tmp = 0.0 - (y / (z * 3.0))
    	return tmp
    
    function code(x, y, z, t)
    	tmp = 0.0
    	if (y <= -3.35e+75)
    		tmp = Float64(-0.3333333333333333 / Float64(z / y));
    	elseif (y <= -5.4e-117)
    		tmp = x;
    	elseif (y <= 1e+40)
    		tmp = Float64(0.3333333333333333 * Float64(t / Float64(y * z)));
    	else
    		tmp = Float64(0.0 - Float64(y / Float64(z * 3.0)));
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t)
    	tmp = 0.0;
    	if (y <= -3.35e+75)
    		tmp = -0.3333333333333333 / (z / y);
    	elseif (y <= -5.4e-117)
    		tmp = x;
    	elseif (y <= 1e+40)
    		tmp = 0.3333333333333333 * (t / (y * z));
    	else
    		tmp = 0.0 - (y / (z * 3.0));
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_] := If[LessEqual[y, -3.35e+75], N[(-0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -5.4e-117], x, If[LessEqual[y, 1e+40], N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(0.0 - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;y \leq -3.35 \cdot 10^{+75}:\\
    \;\;\;\;\frac{-0.3333333333333333}{\frac{z}{y}}\\
    
    \mathbf{elif}\;y \leq -5.4 \cdot 10^{-117}:\\
    \;\;\;\;x\\
    
    \mathbf{elif}\;y \leq 10^{+40}:\\
    \;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
    
    \mathbf{else}:\\
    \;\;\;\;0 - \frac{y}{z \cdot 3}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 4 regimes
    2. if y < -3.35e75

      1. Initial program 99.7%

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

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

          \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\left(\frac{t}{z \cdot 3}\right), \color{blue}{y}\right)\right) \]
        3. div-invN/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\left(t \cdot \frac{1}{z \cdot 3}\right), y\right)\right) \]
        4. *-lowering-*.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{1}{z \cdot 3}\right)\right), y\right)\right) \]
        5. *-commutativeN/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{1}{3 \cdot z}\right)\right), y\right)\right) \]
        6. associate-/r*N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\frac{1}{3}}{z}\right)\right), y\right)\right) \]
        7. metadata-evalN/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\frac{1}{3}}{z}\right)\right), y\right)\right) \]
        8. metadata-evalN/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\mathsf{neg}\left(\frac{-1}{3}\right)}{z}\right)\right), y\right)\right) \]
        9. /-lowering-/.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{/.f64}\left(\left(\mathsf{neg}\left(\frac{-1}{3}\right)\right), z\right)\right), y\right)\right) \]
        10. metadata-eval99.7%

          \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{/.f64}\left(\frac{1}{3}, z\right)\right), y\right)\right) \]
      4. Applied egg-rr99.7%

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

        \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y}{z}} \]
      6. Step-by-step derivation
        1. associate-*r/N/A

          \[\leadsto \frac{\frac{-1}{3} \cdot y}{\color{blue}{z}} \]
        2. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\left(\frac{-1}{3} \cdot y\right), \color{blue}{z}\right) \]
        3. *-commutativeN/A

          \[\leadsto \mathsf{/.f64}\left(\left(y \cdot \frac{-1}{3}\right), z\right) \]
        4. *-lowering-*.f6470.7%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \frac{-1}{3}\right), z\right) \]
      7. Simplified70.7%

        \[\leadsto \color{blue}{\frac{y \cdot -0.3333333333333333}{z}} \]
      8. Step-by-step derivation
        1. *-commutativeN/A

          \[\leadsto \frac{\frac{-1}{3} \cdot y}{z} \]
        2. associate-/l*N/A

          \[\leadsto \frac{-1}{3} \cdot \color{blue}{\frac{y}{z}} \]
        3. *-lowering-*.f64N/A

          \[\leadsto \mathsf{*.f64}\left(\frac{-1}{3}, \color{blue}{\left(\frac{y}{z}\right)}\right) \]
        4. /-lowering-/.f6470.7%

          \[\leadsto \mathsf{*.f64}\left(\frac{-1}{3}, \mathsf{/.f64}\left(y, \color{blue}{z}\right)\right) \]
      9. Applied egg-rr70.7%

        \[\leadsto \color{blue}{-0.3333333333333333 \cdot \frac{y}{z}} \]
      10. Step-by-step derivation
        1. clear-numN/A

          \[\leadsto \frac{-1}{3} \cdot \frac{1}{\color{blue}{\frac{z}{y}}} \]
        2. un-div-invN/A

          \[\leadsto \frac{\frac{-1}{3}}{\color{blue}{\frac{z}{y}}} \]
        3. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\frac{-1}{3}, \color{blue}{\left(\frac{z}{y}\right)}\right) \]
        4. /-lowering-/.f6470.8%

          \[\leadsto \mathsf{/.f64}\left(\frac{-1}{3}, \mathsf{/.f64}\left(z, \color{blue}{y}\right)\right) \]
      11. Applied egg-rr70.8%

        \[\leadsto \color{blue}{\frac{-0.3333333333333333}{\frac{z}{y}}} \]

      if -3.35e75 < y < -5.40000000000000005e-117

      1. Initial program 95.4%

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

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

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

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

          \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
        5. unsub-negN/A

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

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

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

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

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

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

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

          \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
        13. times-fracN/A

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

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

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

          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
        17. associate-/r*N/A

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

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

          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
        20. --lowering--.f64N/A

          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
        21. /-lowering-/.f6495.5%

          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
      3. Simplified95.5%

        \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
      4. Add Preprocessing
      5. Taylor expanded in x around inf

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

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

        if -5.40000000000000005e-117 < y < 1.00000000000000003e40

        1. Initial program 92.9%

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

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

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

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

            \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
          5. unsub-negN/A

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

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

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

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

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

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

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

            \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
          13. times-fracN/A

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

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

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

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
          17. associate-/r*N/A

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

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

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
          20. --lowering--.f64N/A

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
          21. /-lowering-/.f6494.5%

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
        3. Simplified94.5%

          \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
        4. Add Preprocessing
        5. Taylor expanded in y around 0

          \[\leadsto \color{blue}{\frac{1}{3} \cdot \frac{t}{y \cdot z}} \]
        6. Step-by-step derivation
          1. associate-*r/N/A

            \[\leadsto \frac{\frac{1}{3} \cdot t}{\color{blue}{y \cdot z}} \]
          2. /-lowering-/.f64N/A

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

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

            \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \frac{1}{3}\right), \left(\color{blue}{y} \cdot z\right)\right) \]
          5. *-lowering-*.f6465.4%

            \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \frac{1}{3}\right), \mathsf{*.f64}\left(y, \color{blue}{z}\right)\right) \]
        7. Simplified65.4%

          \[\leadsto \color{blue}{\frac{t \cdot 0.3333333333333333}{y \cdot z}} \]
        8. Step-by-step derivation
          1. *-commutativeN/A

            \[\leadsto \frac{\frac{1}{3} \cdot t}{\color{blue}{y} \cdot z} \]
          2. associate-/l*N/A

            \[\leadsto \frac{1}{3} \cdot \color{blue}{\frac{t}{y \cdot z}} \]
          3. *-lowering-*.f64N/A

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

            \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \mathsf{/.f64}\left(t, \color{blue}{\left(y \cdot z\right)}\right)\right) \]
          5. *-lowering-*.f6465.4%

            \[\leadsto \mathsf{*.f64}\left(\frac{1}{3}, \mathsf{/.f64}\left(t, \mathsf{*.f64}\left(y, \color{blue}{z}\right)\right)\right) \]
        9. Applied egg-rr65.4%

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

        if 1.00000000000000003e40 < y

        1. Initial program 98.1%

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

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

            \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\left(\frac{t}{z \cdot 3}\right), \color{blue}{y}\right)\right) \]
          3. div-invN/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\left(t \cdot \frac{1}{z \cdot 3}\right), y\right)\right) \]
          4. *-lowering-*.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{1}{z \cdot 3}\right)\right), y\right)\right) \]
          5. *-commutativeN/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{1}{3 \cdot z}\right)\right), y\right)\right) \]
          6. associate-/r*N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\frac{1}{3}}{z}\right)\right), y\right)\right) \]
          7. metadata-evalN/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\frac{1}{3}}{z}\right)\right), y\right)\right) \]
          8. metadata-evalN/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\mathsf{neg}\left(\frac{-1}{3}\right)}{z}\right)\right), y\right)\right) \]
          9. /-lowering-/.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{/.f64}\left(\left(\mathsf{neg}\left(\frac{-1}{3}\right)\right), z\right)\right), y\right)\right) \]
          10. metadata-eval94.8%

            \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{/.f64}\left(\frac{1}{3}, z\right)\right), y\right)\right) \]
        4. Applied egg-rr94.8%

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

          \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y}{z}} \]
        6. Step-by-step derivation
          1. associate-*r/N/A

            \[\leadsto \frac{\frac{-1}{3} \cdot y}{\color{blue}{z}} \]
          2. /-lowering-/.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\left(\frac{-1}{3} \cdot y\right), \color{blue}{z}\right) \]
          3. *-commutativeN/A

            \[\leadsto \mathsf{/.f64}\left(\left(y \cdot \frac{-1}{3}\right), z\right) \]
          4. *-lowering-*.f6463.1%

            \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \frac{-1}{3}\right), z\right) \]
        7. Simplified63.1%

          \[\leadsto \color{blue}{\frac{y \cdot -0.3333333333333333}{z}} \]
        8. Step-by-step derivation
          1. frac-2negN/A

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

            \[\leadsto \mathsf{neg}\left(\frac{y \cdot \frac{-1}{3}}{\mathsf{neg}\left(z\right)}\right) \]
          3. *-commutativeN/A

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

            \[\leadsto \mathsf{neg}\left(\frac{\frac{-1}{3} \cdot y}{-1 \cdot z}\right) \]
          5. times-fracN/A

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

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

            \[\leadsto \mathsf{neg}\left(\frac{-1}{-3} \cdot \frac{y}{z}\right) \]
          8. times-fracN/A

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

            \[\leadsto \mathsf{neg}\left(\frac{\mathsf{neg}\left(y\right)}{-3 \cdot z}\right) \]
          10. metadata-evalN/A

            \[\leadsto \mathsf{neg}\left(\frac{\mathsf{neg}\left(y\right)}{\left(\mathsf{neg}\left(3\right)\right) \cdot z}\right) \]
          11. distribute-lft-neg-inN/A

            \[\leadsto \mathsf{neg}\left(\frac{\mathsf{neg}\left(y\right)}{\mathsf{neg}\left(3 \cdot z\right)}\right) \]
          12. *-commutativeN/A

            \[\leadsto \mathsf{neg}\left(\frac{\mathsf{neg}\left(y\right)}{\mathsf{neg}\left(z \cdot 3\right)}\right) \]
          13. frac-2negN/A

            \[\leadsto \mathsf{neg}\left(\frac{y}{z \cdot 3}\right) \]
          14. neg-lowering-neg.f64N/A

            \[\leadsto \mathsf{neg.f64}\left(\left(\frac{y}{z \cdot 3}\right)\right) \]
          15. /-lowering-/.f64N/A

            \[\leadsto \mathsf{neg.f64}\left(\mathsf{/.f64}\left(y, \left(z \cdot 3\right)\right)\right) \]
          16. metadata-evalN/A

            \[\leadsto \mathsf{neg.f64}\left(\mathsf{/.f64}\left(y, \left(z \cdot \frac{1}{\frac{1}{3}}\right)\right)\right) \]
          17. div-invN/A

            \[\leadsto \mathsf{neg.f64}\left(\mathsf{/.f64}\left(y, \left(\frac{z}{\frac{1}{3}}\right)\right)\right) \]
          18. /-lowering-/.f6463.1%

            \[\leadsto \mathsf{neg.f64}\left(\mathsf{/.f64}\left(y, \mathsf{/.f64}\left(z, \frac{1}{3}\right)\right)\right) \]
        9. Applied egg-rr63.1%

          \[\leadsto \color{blue}{-\frac{y}{\frac{z}{0.3333333333333333}}} \]
        10. Step-by-step derivation
          1. div-invN/A

            \[\leadsto \mathsf{neg.f64}\left(\mathsf{/.f64}\left(y, \left(z \cdot \frac{1}{\frac{1}{3}}\right)\right)\right) \]
          2. metadata-evalN/A

            \[\leadsto \mathsf{neg.f64}\left(\mathsf{/.f64}\left(y, \left(z \cdot 3\right)\right)\right) \]
          3. *-lowering-*.f6463.1%

            \[\leadsto \mathsf{neg.f64}\left(\mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right) \]
        11. Applied egg-rr63.1%

          \[\leadsto -\frac{y}{\color{blue}{z \cdot 3}} \]
      7. Recombined 4 regimes into one program.
      8. Final simplification63.8%

        \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3.35 \cdot 10^{+75}:\\ \;\;\;\;\frac{-0.3333333333333333}{\frac{z}{y}}\\ \mathbf{elif}\;y \leq -5.4 \cdot 10^{-117}:\\ \;\;\;\;x\\ \mathbf{elif}\;y \leq 10^{+40}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\ \mathbf{else}:\\ \;\;\;\;0 - \frac{y}{z \cdot 3}\\ \end{array} \]
      9. Add Preprocessing

      Alternative 4: 92.6% accurate, 0.8× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -4.45 \cdot 10^{+46}:\\ \;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\ \mathbf{elif}\;y \leq 3.4 \cdot 10^{+38}:\\ \;\;\;\;x + \frac{t \cdot \frac{0.3333333333333333}{z}}{y}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y}{z \cdot 3}\\ \end{array} \end{array} \]
      (FPCore (x y z t)
       :precision binary64
       (if (<= y -4.45e+46)
         (+ x (* y (/ -0.3333333333333333 z)))
         (if (<= y 3.4e+38)
           (+ x (/ (* t (/ 0.3333333333333333 z)) y))
           (- x (/ y (* z 3.0))))))
      double code(double x, double y, double z, double t) {
      	double tmp;
      	if (y <= -4.45e+46) {
      		tmp = x + (y * (-0.3333333333333333 / z));
      	} else if (y <= 3.4e+38) {
      		tmp = x + ((t * (0.3333333333333333 / z)) / y);
      	} else {
      		tmp = x - (y / (z * 3.0));
      	}
      	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 (y <= (-4.45d+46)) then
              tmp = x + (y * ((-0.3333333333333333d0) / z))
          else if (y <= 3.4d+38) then
              tmp = x + ((t * (0.3333333333333333d0 / z)) / y)
          else
              tmp = x - (y / (z * 3.0d0))
          end if
          code = tmp
      end function
      
      public static double code(double x, double y, double z, double t) {
      	double tmp;
      	if (y <= -4.45e+46) {
      		tmp = x + (y * (-0.3333333333333333 / z));
      	} else if (y <= 3.4e+38) {
      		tmp = x + ((t * (0.3333333333333333 / z)) / y);
      	} else {
      		tmp = x - (y / (z * 3.0));
      	}
      	return tmp;
      }
      
      def code(x, y, z, t):
      	tmp = 0
      	if y <= -4.45e+46:
      		tmp = x + (y * (-0.3333333333333333 / z))
      	elif y <= 3.4e+38:
      		tmp = x + ((t * (0.3333333333333333 / z)) / y)
      	else:
      		tmp = x - (y / (z * 3.0))
      	return tmp
      
      function code(x, y, z, t)
      	tmp = 0.0
      	if (y <= -4.45e+46)
      		tmp = Float64(x + Float64(y * Float64(-0.3333333333333333 / z)));
      	elseif (y <= 3.4e+38)
      		tmp = Float64(x + Float64(Float64(t * Float64(0.3333333333333333 / z)) / y));
      	else
      		tmp = Float64(x - Float64(y / Float64(z * 3.0)));
      	end
      	return tmp
      end
      
      function tmp_2 = code(x, y, z, t)
      	tmp = 0.0;
      	if (y <= -4.45e+46)
      		tmp = x + (y * (-0.3333333333333333 / z));
      	elseif (y <= 3.4e+38)
      		tmp = x + ((t * (0.3333333333333333 / z)) / y);
      	else
      		tmp = x - (y / (z * 3.0));
      	end
      	tmp_2 = tmp;
      end
      
      code[x_, y_, z_, t_] := If[LessEqual[y, -4.45e+46], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.4e+38], N[(x + N[(N[(t * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;y \leq -4.45 \cdot 10^{+46}:\\
      \;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
      
      \mathbf{elif}\;y \leq 3.4 \cdot 10^{+38}:\\
      \;\;\;\;x + \frac{t \cdot \frac{0.3333333333333333}{z}}{y}\\
      
      \mathbf{else}:\\
      \;\;\;\;x - \frac{y}{z \cdot 3}\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if y < -4.4499999999999998e46

        1. Initial program 99.7%

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

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

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

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

            \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
          5. unsub-negN/A

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

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

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

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

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

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

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

            \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
          13. times-fracN/A

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

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

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

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
          17. associate-/r*N/A

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

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

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
          20. --lowering--.f64N/A

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
          21. /-lowering-/.f6499.6%

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
        3. Simplified99.6%

          \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
        4. Add Preprocessing
        5. Taylor expanded in y around inf

          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \color{blue}{y}\right)\right) \]
        6. Step-by-step derivation
          1. Simplified93.9%

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

          if -4.4499999999999998e46 < y < 3.39999999999999996e38

          1. Initial program 93.5%

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

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

              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\left(\frac{t}{z \cdot 3}\right), \color{blue}{y}\right)\right) \]
            3. div-invN/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\left(t \cdot \frac{1}{z \cdot 3}\right), y\right)\right) \]
            4. *-lowering-*.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{1}{z \cdot 3}\right)\right), y\right)\right) \]
            5. *-commutativeN/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{1}{3 \cdot z}\right)\right), y\right)\right) \]
            6. associate-/r*N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\frac{1}{3}}{z}\right)\right), y\right)\right) \]
            7. metadata-evalN/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\frac{1}{3}}{z}\right)\right), y\right)\right) \]
            8. metadata-evalN/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\mathsf{neg}\left(\frac{-1}{3}\right)}{z}\right)\right), y\right)\right) \]
            9. /-lowering-/.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{/.f64}\left(\left(\mathsf{neg}\left(\frac{-1}{3}\right)\right), z\right)\right), y\right)\right) \]
            10. metadata-eval97.2%

              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{/.f64}\left(\frac{1}{3}, z\right)\right), y\right)\right) \]
          4. Applied egg-rr97.2%

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

            \[\leadsto \mathsf{+.f64}\left(\color{blue}{x}, \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{/.f64}\left(\frac{1}{3}, z\right)\right), y\right)\right) \]
          6. Step-by-step derivation
            1. Simplified89.6%

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

            if 3.39999999999999996e38 < y

            1. Initial program 98.1%

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

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

                \[\leadsto \mathsf{\_.f64}\left(x, \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
              3. *-commutativeN/A

                \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{t}{y \cdot \color{blue}{\left(z \cdot 3\right)}}\right)\right) \]
              4. associate-/r*N/A

                \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{\frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
              5. sub-divN/A

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

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

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

                \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(z \cdot 3\right)\right)\right) \]
              9. *-lowering-*.f6499.8%

                \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \mathsf{*.f64}\left(z, \color{blue}{3}\right)\right)\right) \]
            4. Applied egg-rr99.8%

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

              \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\color{blue}{y}, \mathsf{*.f64}\left(z, 3\right)\right)\right) \]
            6. Step-by-step derivation
              1. Simplified89.7%

                \[\leadsto x - \frac{\color{blue}{y}}{z \cdot 3} \]
            7. Recombined 3 regimes into one program.
            8. Final simplification90.5%

              \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -4.45 \cdot 10^{+46}:\\ \;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\ \mathbf{elif}\;y \leq 3.4 \cdot 10^{+38}:\\ \;\;\;\;x + \frac{t \cdot \frac{0.3333333333333333}{z}}{y}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y}{z \cdot 3}\\ \end{array} \]
            9. Add Preprocessing

            Alternative 5: 89.6% accurate, 0.8× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -3.3 \cdot 10^{+46}:\\ \;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\ \mathbf{elif}\;y \leq 1.4 \cdot 10^{+72}:\\ \;\;\;\;x + \frac{t}{y \cdot \left(z \cdot 3\right)}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y}{z \cdot 3}\\ \end{array} \end{array} \]
            (FPCore (x y z t)
             :precision binary64
             (if (<= y -3.3e+46)
               (+ x (* y (/ -0.3333333333333333 z)))
               (if (<= y 1.4e+72) (+ x (/ t (* y (* z 3.0)))) (- x (/ y (* z 3.0))))))
            double code(double x, double y, double z, double t) {
            	double tmp;
            	if (y <= -3.3e+46) {
            		tmp = x + (y * (-0.3333333333333333 / z));
            	} else if (y <= 1.4e+72) {
            		tmp = x + (t / (y * (z * 3.0)));
            	} else {
            		tmp = x - (y / (z * 3.0));
            	}
            	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 (y <= (-3.3d+46)) then
                    tmp = x + (y * ((-0.3333333333333333d0) / z))
                else if (y <= 1.4d+72) then
                    tmp = x + (t / (y * (z * 3.0d0)))
                else
                    tmp = x - (y / (z * 3.0d0))
                end if
                code = tmp
            end function
            
            public static double code(double x, double y, double z, double t) {
            	double tmp;
            	if (y <= -3.3e+46) {
            		tmp = x + (y * (-0.3333333333333333 / z));
            	} else if (y <= 1.4e+72) {
            		tmp = x + (t / (y * (z * 3.0)));
            	} else {
            		tmp = x - (y / (z * 3.0));
            	}
            	return tmp;
            }
            
            def code(x, y, z, t):
            	tmp = 0
            	if y <= -3.3e+46:
            		tmp = x + (y * (-0.3333333333333333 / z))
            	elif y <= 1.4e+72:
            		tmp = x + (t / (y * (z * 3.0)))
            	else:
            		tmp = x - (y / (z * 3.0))
            	return tmp
            
            function code(x, y, z, t)
            	tmp = 0.0
            	if (y <= -3.3e+46)
            		tmp = Float64(x + Float64(y * Float64(-0.3333333333333333 / z)));
            	elseif (y <= 1.4e+72)
            		tmp = Float64(x + Float64(t / Float64(y * Float64(z * 3.0))));
            	else
            		tmp = Float64(x - Float64(y / Float64(z * 3.0)));
            	end
            	return tmp
            end
            
            function tmp_2 = code(x, y, z, t)
            	tmp = 0.0;
            	if (y <= -3.3e+46)
            		tmp = x + (y * (-0.3333333333333333 / z));
            	elseif (y <= 1.4e+72)
            		tmp = x + (t / (y * (z * 3.0)));
            	else
            		tmp = x - (y / (z * 3.0));
            	end
            	tmp_2 = tmp;
            end
            
            code[x_, y_, z_, t_] := If[LessEqual[y, -3.3e+46], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.4e+72], N[(x + N[(t / N[(y * N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;y \leq -3.3 \cdot 10^{+46}:\\
            \;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
            
            \mathbf{elif}\;y \leq 1.4 \cdot 10^{+72}:\\
            \;\;\;\;x + \frac{t}{y \cdot \left(z \cdot 3\right)}\\
            
            \mathbf{else}:\\
            \;\;\;\;x - \frac{y}{z \cdot 3}\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if y < -3.2999999999999998e46

              1. Initial program 99.7%

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

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

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

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

                  \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                5. unsub-negN/A

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                13. times-fracN/A

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

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

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

                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                17. associate-/r*N/A

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

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

                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                20. --lowering--.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                21. /-lowering-/.f6499.6%

                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
              3. Simplified99.6%

                \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
              4. Add Preprocessing
              5. Taylor expanded in y around inf

                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \color{blue}{y}\right)\right) \]
              6. Step-by-step derivation
                1. Simplified93.9%

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

                if -3.2999999999999998e46 < y < 1.4e72

                1. Initial program 94.0%

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

                  \[\leadsto \mathsf{+.f64}\left(\color{blue}{x}, \mathsf{/.f64}\left(t, \mathsf{*.f64}\left(\mathsf{*.f64}\left(z, 3\right), y\right)\right)\right) \]
                4. Step-by-step derivation
                  1. Simplified85.8%

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

                  if 1.4e72 < y

                  1. Initial program 97.7%

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

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

                      \[\leadsto \mathsf{\_.f64}\left(x, \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                    3. *-commutativeN/A

                      \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{t}{y \cdot \color{blue}{\left(z \cdot 3\right)}}\right)\right) \]
                    4. associate-/r*N/A

                      \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{\frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
                    5. sub-divN/A

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

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

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

                      \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(z \cdot 3\right)\right)\right) \]
                    9. *-lowering-*.f6499.8%

                      \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \mathsf{*.f64}\left(z, \color{blue}{3}\right)\right)\right) \]
                  4. Applied egg-rr99.8%

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

                    \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\color{blue}{y}, \mathsf{*.f64}\left(z, 3\right)\right)\right) \]
                  6. Step-by-step derivation
                    1. Simplified95.5%

                      \[\leadsto x - \frac{\color{blue}{y}}{z \cdot 3} \]
                  7. Recombined 3 regimes into one program.
                  8. Final simplification89.0%

                    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3.3 \cdot 10^{+46}:\\ \;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\ \mathbf{elif}\;y \leq 1.4 \cdot 10^{+72}:\\ \;\;\;\;x + \frac{t}{y \cdot \left(z \cdot 3\right)}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y}{z \cdot 3}\\ \end{array} \]
                  9. Add Preprocessing

                  Alternative 6: 79.4% accurate, 0.8× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -1.8 \cdot 10^{+129}:\\ \;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\ \mathbf{elif}\;x \leq 2.05 \cdot 10^{+24}:\\ \;\;\;\;\frac{0.3333333333333333}{z} \cdot \left(\frac{t}{y} - y\right)\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y}{z \cdot 3}\\ \end{array} \end{array} \]
                  (FPCore (x y z t)
                   :precision binary64
                   (if (<= x -1.8e+129)
                     (+ x (* y (/ -0.3333333333333333 z)))
                     (if (<= x 2.05e+24)
                       (* (/ 0.3333333333333333 z) (- (/ t y) y))
                       (- x (/ y (* z 3.0))))))
                  double code(double x, double y, double z, double t) {
                  	double tmp;
                  	if (x <= -1.8e+129) {
                  		tmp = x + (y * (-0.3333333333333333 / z));
                  	} else if (x <= 2.05e+24) {
                  		tmp = (0.3333333333333333 / z) * ((t / y) - y);
                  	} else {
                  		tmp = x - (y / (z * 3.0));
                  	}
                  	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 (x <= (-1.8d+129)) then
                          tmp = x + (y * ((-0.3333333333333333d0) / z))
                      else if (x <= 2.05d+24) then
                          tmp = (0.3333333333333333d0 / z) * ((t / y) - y)
                      else
                          tmp = x - (y / (z * 3.0d0))
                      end if
                      code = tmp
                  end function
                  
                  public static double code(double x, double y, double z, double t) {
                  	double tmp;
                  	if (x <= -1.8e+129) {
                  		tmp = x + (y * (-0.3333333333333333 / z));
                  	} else if (x <= 2.05e+24) {
                  		tmp = (0.3333333333333333 / z) * ((t / y) - y);
                  	} else {
                  		tmp = x - (y / (z * 3.0));
                  	}
                  	return tmp;
                  }
                  
                  def code(x, y, z, t):
                  	tmp = 0
                  	if x <= -1.8e+129:
                  		tmp = x + (y * (-0.3333333333333333 / z))
                  	elif x <= 2.05e+24:
                  		tmp = (0.3333333333333333 / z) * ((t / y) - y)
                  	else:
                  		tmp = x - (y / (z * 3.0))
                  	return tmp
                  
                  function code(x, y, z, t)
                  	tmp = 0.0
                  	if (x <= -1.8e+129)
                  		tmp = Float64(x + Float64(y * Float64(-0.3333333333333333 / z)));
                  	elseif (x <= 2.05e+24)
                  		tmp = Float64(Float64(0.3333333333333333 / z) * Float64(Float64(t / y) - y));
                  	else
                  		tmp = Float64(x - Float64(y / Float64(z * 3.0)));
                  	end
                  	return tmp
                  end
                  
                  function tmp_2 = code(x, y, z, t)
                  	tmp = 0.0;
                  	if (x <= -1.8e+129)
                  		tmp = x + (y * (-0.3333333333333333 / z));
                  	elseif (x <= 2.05e+24)
                  		tmp = (0.3333333333333333 / z) * ((t / y) - y);
                  	else
                  		tmp = x - (y / (z * 3.0));
                  	end
                  	tmp_2 = tmp;
                  end
                  
                  code[x_, y_, z_, t_] := If[LessEqual[x, -1.8e+129], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.05e+24], N[(N[(0.3333333333333333 / z), $MachinePrecision] * N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision], N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  \mathbf{if}\;x \leq -1.8 \cdot 10^{+129}:\\
                  \;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
                  
                  \mathbf{elif}\;x \leq 2.05 \cdot 10^{+24}:\\
                  \;\;\;\;\frac{0.3333333333333333}{z} \cdot \left(\frac{t}{y} - y\right)\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;x - \frac{y}{z \cdot 3}\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 3 regimes
                  2. if x < -1.8000000000000001e129

                    1. Initial program 92.5%

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

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

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

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

                        \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                      5. unsub-negN/A

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

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

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

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

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

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

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

                        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                      13. times-fracN/A

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

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

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

                        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                      17. associate-/r*N/A

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

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

                        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                      20. --lowering--.f64N/A

                        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                      21. /-lowering-/.f6494.9%

                        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                    3. Simplified94.9%

                      \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                    4. Add Preprocessing
                    5. Taylor expanded in y around inf

                      \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \color{blue}{y}\right)\right) \]
                    6. Step-by-step derivation
                      1. Simplified72.8%

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

                      if -1.8000000000000001e129 < x < 2.05e24

                      1. Initial program 96.7%

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

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

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

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

                          \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                        5. unsub-negN/A

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

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

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

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

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

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

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

                          \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                        13. times-fracN/A

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

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

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

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                        17. associate-/r*N/A

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

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

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                        20. --lowering--.f64N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                        21. /-lowering-/.f6496.7%

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                      3. Simplified96.7%

                        \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                      4. Add Preprocessing
                      5. Taylor expanded in x around 0

                        \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y - \frac{t}{y}}{z}} \]
                      6. Step-by-step derivation
                        1. associate-*r/N/A

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

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

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

                          \[\leadsto \mathsf{/.f64}\left(\left(\frac{-1}{3} \cdot \left(y + -1 \cdot \frac{t}{y}\right)\right), z\right) \]
                        5. +-commutativeN/A

                          \[\leadsto \mathsf{/.f64}\left(\left(\frac{-1}{3} \cdot \left(-1 \cdot \frac{t}{y} + y\right)\right), z\right) \]
                        6. distribute-lft-inN/A

                          \[\leadsto \mathsf{/.f64}\left(\left(\frac{-1}{3} \cdot \left(-1 \cdot \frac{t}{y}\right) + \frac{-1}{3} \cdot y\right), z\right) \]
                        7. associate-*r*N/A

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

                          \[\leadsto \mathsf{/.f64}\left(\left(\frac{1}{3} \cdot \frac{t}{y} + \frac{-1}{3} \cdot y\right), z\right) \]
                        9. metadata-evalN/A

                          \[\leadsto \mathsf{/.f64}\left(\left(\frac{1}{3} \cdot \frac{t}{y} + \left(\mathsf{neg}\left(\frac{1}{3}\right)\right) \cdot y\right), z\right) \]
                        10. cancel-sign-sub-invN/A

                          \[\leadsto \mathsf{/.f64}\left(\left(\frac{1}{3} \cdot \frac{t}{y} - \frac{1}{3} \cdot y\right), z\right) \]
                        11. distribute-lft-out--N/A

                          \[\leadsto \mathsf{/.f64}\left(\left(\frac{1}{3} \cdot \left(\frac{t}{y} - y\right)\right), z\right) \]
                        12. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(\frac{1}{3}, \left(\frac{t}{y} - y\right)\right), z\right) \]
                        13. --lowering--.f64N/A

                          \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(\frac{1}{3}, \mathsf{\_.f64}\left(\left(\frac{t}{y}\right), y\right)\right), z\right) \]
                        14. /-lowering-/.f6485.4%

                          \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(\frac{1}{3}, \mathsf{\_.f64}\left(\mathsf{/.f64}\left(t, y\right), y\right)\right), z\right) \]
                      7. Simplified85.4%

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

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

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

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

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(\left(\frac{t}{y}\right), y\right), \left(\frac{\color{blue}{\frac{1}{3}}}{z}\right)\right) \]
                        5. /-lowering-/.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(\mathsf{/.f64}\left(t, y\right), y\right), \left(\frac{\frac{1}{3}}{z}\right)\right) \]
                        6. /-lowering-/.f6485.3%

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(\mathsf{/.f64}\left(t, y\right), y\right), \mathsf{/.f64}\left(\frac{1}{3}, \color{blue}{z}\right)\right) \]
                      9. Applied egg-rr85.3%

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

                      if 2.05e24 < x

                      1. Initial program 95.3%

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

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

                          \[\leadsto \mathsf{\_.f64}\left(x, \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                        3. *-commutativeN/A

                          \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{t}{y \cdot \color{blue}{\left(z \cdot 3\right)}}\right)\right) \]
                        4. associate-/r*N/A

                          \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{\frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
                        5. sub-divN/A

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

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

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

                          \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(z \cdot 3\right)\right)\right) \]
                        9. *-lowering-*.f6498.3%

                          \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \mathsf{*.f64}\left(z, \color{blue}{3}\right)\right)\right) \]
                      4. Applied egg-rr98.3%

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

                        \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\color{blue}{y}, \mathsf{*.f64}\left(z, 3\right)\right)\right) \]
                      6. Step-by-step derivation
                        1. Simplified84.7%

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

                        \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.8 \cdot 10^{+129}:\\ \;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\ \mathbf{elif}\;x \leq 2.05 \cdot 10^{+24}:\\ \;\;\;\;\frac{0.3333333333333333}{z} \cdot \left(\frac{t}{y} - y\right)\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y}{z \cdot 3}\\ \end{array} \]
                      9. Add Preprocessing

                      Alternative 7: 78.7% accurate, 0.9× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -3.2 \cdot 10^{-114}:\\ \;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\ \mathbf{elif}\;y \leq 1.35 \cdot 10^{-68}:\\ \;\;\;\;\frac{\frac{t}{z \cdot 3}}{y}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y}{z \cdot 3}\\ \end{array} \end{array} \]
                      (FPCore (x y z t)
                       :precision binary64
                       (if (<= y -3.2e-114)
                         (+ x (* y (/ -0.3333333333333333 z)))
                         (if (<= y 1.35e-68) (/ (/ t (* z 3.0)) y) (- x (/ y (* z 3.0))))))
                      double code(double x, double y, double z, double t) {
                      	double tmp;
                      	if (y <= -3.2e-114) {
                      		tmp = x + (y * (-0.3333333333333333 / z));
                      	} else if (y <= 1.35e-68) {
                      		tmp = (t / (z * 3.0)) / y;
                      	} else {
                      		tmp = x - (y / (z * 3.0));
                      	}
                      	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 (y <= (-3.2d-114)) then
                              tmp = x + (y * ((-0.3333333333333333d0) / z))
                          else if (y <= 1.35d-68) then
                              tmp = (t / (z * 3.0d0)) / y
                          else
                              tmp = x - (y / (z * 3.0d0))
                          end if
                          code = tmp
                      end function
                      
                      public static double code(double x, double y, double z, double t) {
                      	double tmp;
                      	if (y <= -3.2e-114) {
                      		tmp = x + (y * (-0.3333333333333333 / z));
                      	} else if (y <= 1.35e-68) {
                      		tmp = (t / (z * 3.0)) / y;
                      	} else {
                      		tmp = x - (y / (z * 3.0));
                      	}
                      	return tmp;
                      }
                      
                      def code(x, y, z, t):
                      	tmp = 0
                      	if y <= -3.2e-114:
                      		tmp = x + (y * (-0.3333333333333333 / z))
                      	elif y <= 1.35e-68:
                      		tmp = (t / (z * 3.0)) / y
                      	else:
                      		tmp = x - (y / (z * 3.0))
                      	return tmp
                      
                      function code(x, y, z, t)
                      	tmp = 0.0
                      	if (y <= -3.2e-114)
                      		tmp = Float64(x + Float64(y * Float64(-0.3333333333333333 / z)));
                      	elseif (y <= 1.35e-68)
                      		tmp = Float64(Float64(t / Float64(z * 3.0)) / y);
                      	else
                      		tmp = Float64(x - Float64(y / Float64(z * 3.0)));
                      	end
                      	return tmp
                      end
                      
                      function tmp_2 = code(x, y, z, t)
                      	tmp = 0.0;
                      	if (y <= -3.2e-114)
                      		tmp = x + (y * (-0.3333333333333333 / z));
                      	elseif (y <= 1.35e-68)
                      		tmp = (t / (z * 3.0)) / y;
                      	else
                      		tmp = x - (y / (z * 3.0));
                      	end
                      	tmp_2 = tmp;
                      end
                      
                      code[x_, y_, z_, t_] := If[LessEqual[y, -3.2e-114], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.35e-68], N[(N[(t / N[(z * 3.0), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      \mathbf{if}\;y \leq -3.2 \cdot 10^{-114}:\\
                      \;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
                      
                      \mathbf{elif}\;y \leq 1.35 \cdot 10^{-68}:\\
                      \;\;\;\;\frac{\frac{t}{z \cdot 3}}{y}\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;x - \frac{y}{z \cdot 3}\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 3 regimes
                      2. if y < -3.2000000000000002e-114

                        1. Initial program 97.5%

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

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

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

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

                            \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                          5. unsub-negN/A

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

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

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

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

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

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

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

                            \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                          13. times-fracN/A

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

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

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

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                          17. associate-/r*N/A

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

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

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                          20. --lowering--.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                          21. /-lowering-/.f6497.5%

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                        3. Simplified97.5%

                          \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                        4. Add Preprocessing
                        5. Taylor expanded in y around inf

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \color{blue}{y}\right)\right) \]
                        6. Step-by-step derivation
                          1. Simplified81.6%

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

                          if -3.2000000000000002e-114 < y < 1.3500000000000001e-68

                          1. Initial program 91.2%

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

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

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

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

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                            5. unsub-negN/A

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

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

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

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

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

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

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

                              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                            13. times-fracN/A

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

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

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

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                            17. associate-/r*N/A

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

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

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                            20. --lowering--.f64N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                            21. /-lowering-/.f6494.3%

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                          3. Simplified94.3%

                            \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                          4. Add Preprocessing
                          5. Taylor expanded in y around 0

                            \[\leadsto \color{blue}{\frac{1}{3} \cdot \frac{t}{y \cdot z}} \]
                          6. Step-by-step derivation
                            1. associate-*r/N/A

                              \[\leadsto \frac{\frac{1}{3} \cdot t}{\color{blue}{y \cdot z}} \]
                            2. /-lowering-/.f64N/A

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

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

                              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \frac{1}{3}\right), \left(\color{blue}{y} \cdot z\right)\right) \]
                            5. *-lowering-*.f6471.8%

                              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \frac{1}{3}\right), \mathsf{*.f64}\left(y, \color{blue}{z}\right)\right) \]
                          7. Simplified71.8%

                            \[\leadsto \color{blue}{\frac{t \cdot 0.3333333333333333}{y \cdot z}} \]
                          8. Step-by-step derivation
                            1. associate-/l/N/A

                              \[\leadsto \frac{\frac{t \cdot \frac{1}{3}}{z}}{\color{blue}{y}} \]
                            2. /-lowering-/.f64N/A

                              \[\leadsto \mathsf{/.f64}\left(\left(\frac{t \cdot \frac{1}{3}}{z}\right), \color{blue}{y}\right) \]
                            3. associate-*r/N/A

                              \[\leadsto \mathsf{/.f64}\left(\left(t \cdot \frac{\frac{1}{3}}{z}\right), y\right) \]
                            4. metadata-evalN/A

                              \[\leadsto \mathsf{/.f64}\left(\left(t \cdot \frac{\frac{1}{3}}{z}\right), y\right) \]
                            5. associate-/r*N/A

                              \[\leadsto \mathsf{/.f64}\left(\left(t \cdot \frac{1}{3 \cdot z}\right), y\right) \]
                            6. *-commutativeN/A

                              \[\leadsto \mathsf{/.f64}\left(\left(t \cdot \frac{1}{z \cdot 3}\right), y\right) \]
                            7. un-div-invN/A

                              \[\leadsto \mathsf{/.f64}\left(\left(\frac{t}{z \cdot 3}\right), y\right) \]
                            8. /-lowering-/.f64N/A

                              \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(t, \left(z \cdot 3\right)\right), y\right) \]
                            9. metadata-evalN/A

                              \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(t, \left(z \cdot \frac{1}{\frac{1}{3}}\right)\right), y\right) \]
                            10. div-invN/A

                              \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(t, \left(\frac{z}{\frac{1}{3}}\right)\right), y\right) \]
                            11. /-lowering-/.f6475.0%

                              \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(t, \mathsf{/.f64}\left(z, \frac{1}{3}\right)\right), y\right) \]
                          9. Applied egg-rr75.0%

                            \[\leadsto \color{blue}{\frac{\frac{t}{\frac{z}{0.3333333333333333}}}{y}} \]
                          10. Step-by-step derivation
                            1. div-invN/A

                              \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(t, \left(z \cdot \frac{1}{\frac{1}{3}}\right)\right), y\right) \]
                            2. metadata-evalN/A

                              \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(t, \left(z \cdot 3\right)\right), y\right) \]
                            3. *-lowering-*.f6475.0%

                              \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(t, \mathsf{*.f64}\left(z, 3\right)\right), y\right) \]
                          11. Applied egg-rr75.0%

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

                          if 1.3500000000000001e-68 < y

                          1. Initial program 98.5%

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

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

                              \[\leadsto \mathsf{\_.f64}\left(x, \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                            3. *-commutativeN/A

                              \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{t}{y \cdot \color{blue}{\left(z \cdot 3\right)}}\right)\right) \]
                            4. associate-/r*N/A

                              \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{\frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
                            5. sub-divN/A

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

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

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

                              \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(z \cdot 3\right)\right)\right) \]
                            9. *-lowering-*.f6498.5%

                              \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \mathsf{*.f64}\left(z, \color{blue}{3}\right)\right)\right) \]
                          4. Applied egg-rr98.5%

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

                            \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\color{blue}{y}, \mathsf{*.f64}\left(z, 3\right)\right)\right) \]
                          6. Step-by-step derivation
                            1. Simplified81.3%

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

                            \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3.2 \cdot 10^{-114}:\\ \;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\ \mathbf{elif}\;y \leq 1.35 \cdot 10^{-68}:\\ \;\;\;\;\frac{\frac{t}{z \cdot 3}}{y}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y}{z \cdot 3}\\ \end{array} \]
                          9. Add Preprocessing

                          Alternative 8: 78.9% accurate, 0.9× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -3.5 \cdot 10^{-102}:\\ \;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\ \mathbf{elif}\;y \leq 2.7 \cdot 10^{-69}:\\ \;\;\;\;\frac{t}{z} \cdot \frac{0.3333333333333333}{y}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y}{z \cdot 3}\\ \end{array} \end{array} \]
                          (FPCore (x y z t)
                           :precision binary64
                           (if (<= y -3.5e-102)
                             (+ x (* y (/ -0.3333333333333333 z)))
                             (if (<= y 2.7e-69)
                               (* (/ t z) (/ 0.3333333333333333 y))
                               (- x (/ y (* z 3.0))))))
                          double code(double x, double y, double z, double t) {
                          	double tmp;
                          	if (y <= -3.5e-102) {
                          		tmp = x + (y * (-0.3333333333333333 / z));
                          	} else if (y <= 2.7e-69) {
                          		tmp = (t / z) * (0.3333333333333333 / y);
                          	} else {
                          		tmp = x - (y / (z * 3.0));
                          	}
                          	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 (y <= (-3.5d-102)) then
                                  tmp = x + (y * ((-0.3333333333333333d0) / z))
                              else if (y <= 2.7d-69) then
                                  tmp = (t / z) * (0.3333333333333333d0 / y)
                              else
                                  tmp = x - (y / (z * 3.0d0))
                              end if
                              code = tmp
                          end function
                          
                          public static double code(double x, double y, double z, double t) {
                          	double tmp;
                          	if (y <= -3.5e-102) {
                          		tmp = x + (y * (-0.3333333333333333 / z));
                          	} else if (y <= 2.7e-69) {
                          		tmp = (t / z) * (0.3333333333333333 / y);
                          	} else {
                          		tmp = x - (y / (z * 3.0));
                          	}
                          	return tmp;
                          }
                          
                          def code(x, y, z, t):
                          	tmp = 0
                          	if y <= -3.5e-102:
                          		tmp = x + (y * (-0.3333333333333333 / z))
                          	elif y <= 2.7e-69:
                          		tmp = (t / z) * (0.3333333333333333 / y)
                          	else:
                          		tmp = x - (y / (z * 3.0))
                          	return tmp
                          
                          function code(x, y, z, t)
                          	tmp = 0.0
                          	if (y <= -3.5e-102)
                          		tmp = Float64(x + Float64(y * Float64(-0.3333333333333333 / z)));
                          	elseif (y <= 2.7e-69)
                          		tmp = Float64(Float64(t / z) * Float64(0.3333333333333333 / y));
                          	else
                          		tmp = Float64(x - Float64(y / Float64(z * 3.0)));
                          	end
                          	return tmp
                          end
                          
                          function tmp_2 = code(x, y, z, t)
                          	tmp = 0.0;
                          	if (y <= -3.5e-102)
                          		tmp = x + (y * (-0.3333333333333333 / z));
                          	elseif (y <= 2.7e-69)
                          		tmp = (t / z) * (0.3333333333333333 / y);
                          	else
                          		tmp = x - (y / (z * 3.0));
                          	end
                          	tmp_2 = tmp;
                          end
                          
                          code[x_, y_, z_, t_] := If[LessEqual[y, -3.5e-102], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.7e-69], N[(N[(t / z), $MachinePrecision] * N[(0.3333333333333333 / y), $MachinePrecision]), $MachinePrecision], N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          \mathbf{if}\;y \leq -3.5 \cdot 10^{-102}:\\
                          \;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
                          
                          \mathbf{elif}\;y \leq 2.7 \cdot 10^{-69}:\\
                          \;\;\;\;\frac{t}{z} \cdot \frac{0.3333333333333333}{y}\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;x - \frac{y}{z \cdot 3}\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 3 regimes
                          2. if y < -3.49999999999999986e-102

                            1. Initial program 97.4%

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

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

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

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

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                              5. unsub-negN/A

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

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

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

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

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

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

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

                                \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                              13. times-fracN/A

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

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

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

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                              17. associate-/r*N/A

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

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

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                              20. --lowering--.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                              21. /-lowering-/.f6497.4%

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                            3. Simplified97.4%

                              \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                            4. Add Preprocessing
                            5. Taylor expanded in y around inf

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \color{blue}{y}\right)\right) \]
                            6. Step-by-step derivation
                              1. Simplified83.7%

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

                              if -3.49999999999999986e-102 < y < 2.6999999999999997e-69

                              1. Initial program 91.7%

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

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

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

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

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                                5. unsub-negN/A

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

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

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

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

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

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

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

                                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                                13. times-fracN/A

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

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

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

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                17. associate-/r*N/A

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

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

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                20. --lowering--.f64N/A

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                                21. /-lowering-/.f6494.6%

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                              3. Simplified94.6%

                                \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                              4. Add Preprocessing
                              5. Taylor expanded in y around 0

                                \[\leadsto \color{blue}{\frac{1}{3} \cdot \frac{t}{y \cdot z}} \]
                              6. Step-by-step derivation
                                1. associate-*r/N/A

                                  \[\leadsto \frac{\frac{1}{3} \cdot t}{\color{blue}{y \cdot z}} \]
                                2. /-lowering-/.f64N/A

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

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

                                  \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \frac{1}{3}\right), \left(\color{blue}{y} \cdot z\right)\right) \]
                                5. *-lowering-*.f6470.5%

                                  \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \frac{1}{3}\right), \mathsf{*.f64}\left(y, \color{blue}{z}\right)\right) \]
                              7. Simplified70.5%

                                \[\leadsto \color{blue}{\frac{t \cdot 0.3333333333333333}{y \cdot z}} \]
                              8. Step-by-step derivation
                                1. *-commutativeN/A

                                  \[\leadsto \frac{t \cdot \frac{1}{3}}{z \cdot \color{blue}{y}} \]
                                2. times-fracN/A

                                  \[\leadsto \frac{t}{z} \cdot \color{blue}{\frac{\frac{1}{3}}{y}} \]
                                3. *-lowering-*.f64N/A

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

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(t, z\right), \left(\frac{\color{blue}{\frac{1}{3}}}{y}\right)\right) \]
                                5. /-lowering-/.f6473.4%

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(t, z\right), \mathsf{/.f64}\left(\frac{1}{3}, \color{blue}{y}\right)\right) \]
                              9. Applied egg-rr73.4%

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

                              if 2.6999999999999997e-69 < y

                              1. Initial program 98.5%

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

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

                                  \[\leadsto \mathsf{\_.f64}\left(x, \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                                3. *-commutativeN/A

                                  \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{t}{y \cdot \color{blue}{\left(z \cdot 3\right)}}\right)\right) \]
                                4. associate-/r*N/A

                                  \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{\frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
                                5. sub-divN/A

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

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

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

                                  \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(z \cdot 3\right)\right)\right) \]
                                9. *-lowering-*.f6498.5%

                                  \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \mathsf{*.f64}\left(z, \color{blue}{3}\right)\right)\right) \]
                              4. Applied egg-rr98.5%

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

                                \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\color{blue}{y}, \mathsf{*.f64}\left(z, 3\right)\right)\right) \]
                              6. Step-by-step derivation
                                1. Simplified81.3%

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

                                \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3.5 \cdot 10^{-102}:\\ \;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\ \mathbf{elif}\;y \leq 2.7 \cdot 10^{-69}:\\ \;\;\;\;\frac{t}{z} \cdot \frac{0.3333333333333333}{y}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y}{z \cdot 3}\\ \end{array} \]
                              9. Add Preprocessing

                              Alternative 9: 78.9% accurate, 0.9× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := x + y \cdot \frac{-0.3333333333333333}{z}\\ \mathbf{if}\;y \leq -2.05 \cdot 10^{-100}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 2.7 \cdot 10^{-67}:\\ \;\;\;\;\frac{t}{z} \cdot \frac{0.3333333333333333}{y}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                              (FPCore (x y z t)
                               :precision binary64
                               (let* ((t_1 (+ x (* y (/ -0.3333333333333333 z)))))
                                 (if (<= y -2.05e-100)
                                   t_1
                                   (if (<= y 2.7e-67) (* (/ t z) (/ 0.3333333333333333 y)) t_1))))
                              double code(double x, double y, double z, double t) {
                              	double t_1 = x + (y * (-0.3333333333333333 / z));
                              	double tmp;
                              	if (y <= -2.05e-100) {
                              		tmp = t_1;
                              	} else if (y <= 2.7e-67) {
                              		tmp = (t / z) * (0.3333333333333333 / y);
                              	} 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 * ((-0.3333333333333333d0) / z))
                                  if (y <= (-2.05d-100)) then
                                      tmp = t_1
                                  else if (y <= 2.7d-67) then
                                      tmp = (t / z) * (0.3333333333333333d0 / y)
                                  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 * (-0.3333333333333333 / z));
                              	double tmp;
                              	if (y <= -2.05e-100) {
                              		tmp = t_1;
                              	} else if (y <= 2.7e-67) {
                              		tmp = (t / z) * (0.3333333333333333 / y);
                              	} else {
                              		tmp = t_1;
                              	}
                              	return tmp;
                              }
                              
                              def code(x, y, z, t):
                              	t_1 = x + (y * (-0.3333333333333333 / z))
                              	tmp = 0
                              	if y <= -2.05e-100:
                              		tmp = t_1
                              	elif y <= 2.7e-67:
                              		tmp = (t / z) * (0.3333333333333333 / y)
                              	else:
                              		tmp = t_1
                              	return tmp
                              
                              function code(x, y, z, t)
                              	t_1 = Float64(x + Float64(y * Float64(-0.3333333333333333 / z)))
                              	tmp = 0.0
                              	if (y <= -2.05e-100)
                              		tmp = t_1;
                              	elseif (y <= 2.7e-67)
                              		tmp = Float64(Float64(t / z) * Float64(0.3333333333333333 / y));
                              	else
                              		tmp = t_1;
                              	end
                              	return tmp
                              end
                              
                              function tmp_2 = code(x, y, z, t)
                              	t_1 = x + (y * (-0.3333333333333333 / z));
                              	tmp = 0.0;
                              	if (y <= -2.05e-100)
                              		tmp = t_1;
                              	elseif (y <= 2.7e-67)
                              		tmp = (t / z) * (0.3333333333333333 / y);
                              	else
                              		tmp = t_1;
                              	end
                              	tmp_2 = tmp;
                              end
                              
                              code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.05e-100], t$95$1, If[LessEqual[y, 2.7e-67], N[(N[(t / z), $MachinePrecision] * N[(0.3333333333333333 / y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              t_1 := x + y \cdot \frac{-0.3333333333333333}{z}\\
                              \mathbf{if}\;y \leq -2.05 \cdot 10^{-100}:\\
                              \;\;\;\;t\_1\\
                              
                              \mathbf{elif}\;y \leq 2.7 \cdot 10^{-67}:\\
                              \;\;\;\;\frac{t}{z} \cdot \frac{0.3333333333333333}{y}\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;t\_1\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 2 regimes
                              2. if y < -2.0499999999999999e-100 or 2.70000000000000016e-67 < y

                                1. Initial program 97.9%

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

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

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

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

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                                  5. unsub-negN/A

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

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

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

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

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

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

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

                                    \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                                  13. times-fracN/A

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

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

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

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                  17. associate-/r*N/A

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

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

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                  20. --lowering--.f64N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                                  21. /-lowering-/.f6498.0%

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                                3. Simplified98.0%

                                  \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                                4. Add Preprocessing
                                5. Taylor expanded in y around inf

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \color{blue}{y}\right)\right) \]
                                6. Step-by-step derivation
                                  1. Simplified82.5%

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

                                  if -2.0499999999999999e-100 < y < 2.70000000000000016e-67

                                  1. Initial program 91.7%

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

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

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

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

                                      \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                                    5. unsub-negN/A

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

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

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

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

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

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

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

                                      \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                                    13. times-fracN/A

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

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

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

                                      \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                    17. associate-/r*N/A

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

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

                                      \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                    20. --lowering--.f64N/A

                                      \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                                    21. /-lowering-/.f6494.6%

                                      \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                                  3. Simplified94.6%

                                    \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                                  4. Add Preprocessing
                                  5. Taylor expanded in y around 0

                                    \[\leadsto \color{blue}{\frac{1}{3} \cdot \frac{t}{y \cdot z}} \]
                                  6. Step-by-step derivation
                                    1. associate-*r/N/A

                                      \[\leadsto \frac{\frac{1}{3} \cdot t}{\color{blue}{y \cdot z}} \]
                                    2. /-lowering-/.f64N/A

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

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

                                      \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \frac{1}{3}\right), \left(\color{blue}{y} \cdot z\right)\right) \]
                                    5. *-lowering-*.f6470.5%

                                      \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \frac{1}{3}\right), \mathsf{*.f64}\left(y, \color{blue}{z}\right)\right) \]
                                  7. Simplified70.5%

                                    \[\leadsto \color{blue}{\frac{t \cdot 0.3333333333333333}{y \cdot z}} \]
                                  8. Step-by-step derivation
                                    1. *-commutativeN/A

                                      \[\leadsto \frac{t \cdot \frac{1}{3}}{z \cdot \color{blue}{y}} \]
                                    2. times-fracN/A

                                      \[\leadsto \frac{t}{z} \cdot \color{blue}{\frac{\frac{1}{3}}{y}} \]
                                    3. *-lowering-*.f64N/A

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

                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(t, z\right), \left(\frac{\color{blue}{\frac{1}{3}}}{y}\right)\right) \]
                                    5. /-lowering-/.f6473.4%

                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(t, z\right), \mathsf{/.f64}\left(\frac{1}{3}, \color{blue}{y}\right)\right) \]
                                  9. Applied egg-rr73.4%

                                    \[\leadsto \color{blue}{\frac{t}{z} \cdot \frac{0.3333333333333333}{y}} \]
                                7. Recombined 2 regimes into one program.
                                8. Final simplification79.3%

                                  \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.05 \cdot 10^{-100}:\\ \;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\ \mathbf{elif}\;y \leq 2.7 \cdot 10^{-67}:\\ \;\;\;\;\frac{t}{z} \cdot \frac{0.3333333333333333}{y}\\ \mathbf{else}:\\ \;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\ \end{array} \]
                                9. Add Preprocessing

                                Alternative 10: 47.5% accurate, 1.0× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -2.4 \cdot 10^{+126}:\\ \;\;\;\;x\\ \mathbf{elif}\;x \leq 7.5 \cdot 10^{+23}:\\ \;\;\;\;\frac{\frac{y}{z}}{-3}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
                                (FPCore (x y z t)
                                 :precision binary64
                                 (if (<= x -2.4e+126) x (if (<= x 7.5e+23) (/ (/ y z) -3.0) x)))
                                double code(double x, double y, double z, double t) {
                                	double tmp;
                                	if (x <= -2.4e+126) {
                                		tmp = x;
                                	} else if (x <= 7.5e+23) {
                                		tmp = (y / z) / -3.0;
                                	} else {
                                		tmp = x;
                                	}
                                	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 (x <= (-2.4d+126)) then
                                        tmp = x
                                    else if (x <= 7.5d+23) then
                                        tmp = (y / z) / (-3.0d0)
                                    else
                                        tmp = x
                                    end if
                                    code = tmp
                                end function
                                
                                public static double code(double x, double y, double z, double t) {
                                	double tmp;
                                	if (x <= -2.4e+126) {
                                		tmp = x;
                                	} else if (x <= 7.5e+23) {
                                		tmp = (y / z) / -3.0;
                                	} else {
                                		tmp = x;
                                	}
                                	return tmp;
                                }
                                
                                def code(x, y, z, t):
                                	tmp = 0
                                	if x <= -2.4e+126:
                                		tmp = x
                                	elif x <= 7.5e+23:
                                		tmp = (y / z) / -3.0
                                	else:
                                		tmp = x
                                	return tmp
                                
                                function code(x, y, z, t)
                                	tmp = 0.0
                                	if (x <= -2.4e+126)
                                		tmp = x;
                                	elseif (x <= 7.5e+23)
                                		tmp = Float64(Float64(y / z) / -3.0);
                                	else
                                		tmp = x;
                                	end
                                	return tmp
                                end
                                
                                function tmp_2 = code(x, y, z, t)
                                	tmp = 0.0;
                                	if (x <= -2.4e+126)
                                		tmp = x;
                                	elseif (x <= 7.5e+23)
                                		tmp = (y / z) / -3.0;
                                	else
                                		tmp = x;
                                	end
                                	tmp_2 = tmp;
                                end
                                
                                code[x_, y_, z_, t_] := If[LessEqual[x, -2.4e+126], x, If[LessEqual[x, 7.5e+23], N[(N[(y / z), $MachinePrecision] / -3.0), $MachinePrecision], x]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                \mathbf{if}\;x \leq -2.4 \cdot 10^{+126}:\\
                                \;\;\;\;x\\
                                
                                \mathbf{elif}\;x \leq 7.5 \cdot 10^{+23}:\\
                                \;\;\;\;\frac{\frac{y}{z}}{-3}\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;x\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 2 regimes
                                2. if x < -2.40000000000000012e126 or 7.49999999999999987e23 < x

                                  1. Initial program 93.4%

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

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

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

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

                                      \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                                    5. unsub-negN/A

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

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

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

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

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

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

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

                                      \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                                    13. times-fracN/A

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

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

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

                                      \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                    17. associate-/r*N/A

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

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

                                      \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                    20. --lowering--.f64N/A

                                      \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                                    21. /-lowering-/.f6497.0%

                                      \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                                  3. Simplified97.0%

                                    \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                                  4. Add Preprocessing
                                  5. Taylor expanded in x around inf

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

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

                                    if -2.40000000000000012e126 < x < 7.49999999999999987e23

                                    1. Initial program 97.2%

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

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

                                        \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\left(\frac{t}{z \cdot 3}\right), \color{blue}{y}\right)\right) \]
                                      3. div-invN/A

                                        \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\left(t \cdot \frac{1}{z \cdot 3}\right), y\right)\right) \]
                                      4. *-lowering-*.f64N/A

                                        \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{1}{z \cdot 3}\right)\right), y\right)\right) \]
                                      5. *-commutativeN/A

                                        \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{1}{3 \cdot z}\right)\right), y\right)\right) \]
                                      6. associate-/r*N/A

                                        \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\frac{1}{3}}{z}\right)\right), y\right)\right) \]
                                      7. metadata-evalN/A

                                        \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\frac{1}{3}}{z}\right)\right), y\right)\right) \]
                                      8. metadata-evalN/A

                                        \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\mathsf{neg}\left(\frac{-1}{3}\right)}{z}\right)\right), y\right)\right) \]
                                      9. /-lowering-/.f64N/A

                                        \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{/.f64}\left(\left(\mathsf{neg}\left(\frac{-1}{3}\right)\right), z\right)\right), y\right)\right) \]
                                      10. metadata-eval96.0%

                                        \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{/.f64}\left(\frac{1}{3}, z\right)\right), y\right)\right) \]
                                    4. Applied egg-rr96.0%

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

                                      \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y}{z}} \]
                                    6. Step-by-step derivation
                                      1. associate-*r/N/A

                                        \[\leadsto \frac{\frac{-1}{3} \cdot y}{\color{blue}{z}} \]
                                      2. /-lowering-/.f64N/A

                                        \[\leadsto \mathsf{/.f64}\left(\left(\frac{-1}{3} \cdot y\right), \color{blue}{z}\right) \]
                                      3. *-commutativeN/A

                                        \[\leadsto \mathsf{/.f64}\left(\left(y \cdot \frac{-1}{3}\right), z\right) \]
                                      4. *-lowering-*.f6442.5%

                                        \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \frac{-1}{3}\right), z\right) \]
                                    7. Simplified42.5%

                                      \[\leadsto \color{blue}{\frac{y \cdot -0.3333333333333333}{z}} \]
                                    8. Step-by-step derivation
                                      1. *-commutativeN/A

                                        \[\leadsto \frac{\frac{-1}{3} \cdot y}{z} \]
                                      2. associate-/l*N/A

                                        \[\leadsto \frac{-1}{3} \cdot \color{blue}{\frac{y}{z}} \]
                                      3. *-lowering-*.f64N/A

                                        \[\leadsto \mathsf{*.f64}\left(\frac{-1}{3}, \color{blue}{\left(\frac{y}{z}\right)}\right) \]
                                      4. /-lowering-/.f6442.4%

                                        \[\leadsto \mathsf{*.f64}\left(\frac{-1}{3}, \mathsf{/.f64}\left(y, \color{blue}{z}\right)\right) \]
                                    9. Applied egg-rr42.4%

                                      \[\leadsto \color{blue}{-0.3333333333333333 \cdot \frac{y}{z}} \]
                                    10. Step-by-step derivation
                                      1. *-commutativeN/A

                                        \[\leadsto \frac{y}{z} \cdot \color{blue}{\frac{-1}{3}} \]
                                      2. metadata-evalN/A

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

                                        \[\leadsto \mathsf{neg}\left(\frac{y}{z} \cdot \frac{1}{3}\right) \]
                                      4. associate-/r/N/A

                                        \[\leadsto \mathsf{neg}\left(\frac{y}{\frac{z}{\frac{1}{3}}}\right) \]
                                      5. distribute-neg-fracN/A

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

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

                                        \[\leadsto \frac{\mathsf{neg}\left(y\right)}{z \cdot 3} \]
                                      8. associate-/r*N/A

                                        \[\leadsto \frac{\frac{\mathsf{neg}\left(y\right)}{z}}{\color{blue}{3}} \]
                                      9. frac-2negN/A

                                        \[\leadsto \frac{\mathsf{neg}\left(\frac{\mathsf{neg}\left(y\right)}{z}\right)}{\color{blue}{\mathsf{neg}\left(3\right)}} \]
                                      10. distribute-frac-neg2N/A

                                        \[\leadsto \frac{\frac{\mathsf{neg}\left(y\right)}{\mathsf{neg}\left(z\right)}}{\mathsf{neg}\left(\color{blue}{3}\right)} \]
                                      11. frac-2negN/A

                                        \[\leadsto \frac{\frac{y}{z}}{\mathsf{neg}\left(\color{blue}{3}\right)} \]
                                      12. /-lowering-/.f64N/A

                                        \[\leadsto \mathsf{/.f64}\left(\left(\frac{y}{z}\right), \color{blue}{\left(\mathsf{neg}\left(3\right)\right)}\right) \]
                                      13. /-lowering-/.f64N/A

                                        \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(y, z\right), \left(\mathsf{neg}\left(\color{blue}{3}\right)\right)\right) \]
                                      14. metadata-eval42.5%

                                        \[\leadsto \mathsf{/.f64}\left(\mathsf{/.f64}\left(y, z\right), -3\right) \]
                                    11. Applied egg-rr42.5%

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

                                  Alternative 11: 47.5% accurate, 1.0× speedup?

                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -2.6 \cdot 10^{+126}:\\ \;\;\;\;x\\ \mathbf{elif}\;x \leq 7.5 \cdot 10^{+23}:\\ \;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
                                  (FPCore (x y z t)
                                   :precision binary64
                                   (if (<= x -2.6e+126) x (if (<= x 7.5e+23) (/ (* y -0.3333333333333333) z) x)))
                                  double code(double x, double y, double z, double t) {
                                  	double tmp;
                                  	if (x <= -2.6e+126) {
                                  		tmp = x;
                                  	} else if (x <= 7.5e+23) {
                                  		tmp = (y * -0.3333333333333333) / z;
                                  	} else {
                                  		tmp = x;
                                  	}
                                  	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 (x <= (-2.6d+126)) then
                                          tmp = x
                                      else if (x <= 7.5d+23) then
                                          tmp = (y * (-0.3333333333333333d0)) / z
                                      else
                                          tmp = x
                                      end if
                                      code = tmp
                                  end function
                                  
                                  public static double code(double x, double y, double z, double t) {
                                  	double tmp;
                                  	if (x <= -2.6e+126) {
                                  		tmp = x;
                                  	} else if (x <= 7.5e+23) {
                                  		tmp = (y * -0.3333333333333333) / z;
                                  	} else {
                                  		tmp = x;
                                  	}
                                  	return tmp;
                                  }
                                  
                                  def code(x, y, z, t):
                                  	tmp = 0
                                  	if x <= -2.6e+126:
                                  		tmp = x
                                  	elif x <= 7.5e+23:
                                  		tmp = (y * -0.3333333333333333) / z
                                  	else:
                                  		tmp = x
                                  	return tmp
                                  
                                  function code(x, y, z, t)
                                  	tmp = 0.0
                                  	if (x <= -2.6e+126)
                                  		tmp = x;
                                  	elseif (x <= 7.5e+23)
                                  		tmp = Float64(Float64(y * -0.3333333333333333) / z);
                                  	else
                                  		tmp = x;
                                  	end
                                  	return tmp
                                  end
                                  
                                  function tmp_2 = code(x, y, z, t)
                                  	tmp = 0.0;
                                  	if (x <= -2.6e+126)
                                  		tmp = x;
                                  	elseif (x <= 7.5e+23)
                                  		tmp = (y * -0.3333333333333333) / z;
                                  	else
                                  		tmp = x;
                                  	end
                                  	tmp_2 = tmp;
                                  end
                                  
                                  code[x_, y_, z_, t_] := If[LessEqual[x, -2.6e+126], x, If[LessEqual[x, 7.5e+23], N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision], x]]
                                  
                                  \begin{array}{l}
                                  
                                  \\
                                  \begin{array}{l}
                                  \mathbf{if}\;x \leq -2.6 \cdot 10^{+126}:\\
                                  \;\;\;\;x\\
                                  
                                  \mathbf{elif}\;x \leq 7.5 \cdot 10^{+23}:\\
                                  \;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;x\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 2 regimes
                                  2. if x < -2.6e126 or 7.49999999999999987e23 < x

                                    1. Initial program 93.4%

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

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

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

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

                                        \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                                      5. unsub-negN/A

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

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

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

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

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

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

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

                                        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                                      13. times-fracN/A

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

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

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

                                        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                      17. associate-/r*N/A

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

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

                                        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                      20. --lowering--.f64N/A

                                        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                                      21. /-lowering-/.f6497.0%

                                        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                                    3. Simplified97.0%

                                      \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                                    4. Add Preprocessing
                                    5. Taylor expanded in x around inf

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

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

                                      if -2.6e126 < x < 7.49999999999999987e23

                                      1. Initial program 97.2%

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

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

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

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

                                          \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                                        5. unsub-negN/A

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

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

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

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

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

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

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

                                          \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                                        13. times-fracN/A

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

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

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

                                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                        17. associate-/r*N/A

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

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

                                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                        20. --lowering--.f64N/A

                                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                                        21. /-lowering-/.f6496.7%

                                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                                      3. Simplified96.7%

                                        \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                                      4. Add Preprocessing
                                      5. Taylor expanded in y around inf

                                        \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y}{z}} \]
                                      6. Step-by-step derivation
                                        1. associate-*r/N/A

                                          \[\leadsto \frac{\frac{-1}{3} \cdot y}{\color{blue}{z}} \]
                                        2. /-lowering-/.f64N/A

                                          \[\leadsto \mathsf{/.f64}\left(\left(\frac{-1}{3} \cdot y\right), \color{blue}{z}\right) \]
                                        3. *-lowering-*.f6442.5%

                                          \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(\frac{-1}{3}, y\right), z\right) \]
                                      7. Simplified42.5%

                                        \[\leadsto \color{blue}{\frac{-0.3333333333333333 \cdot y}{z}} \]
                                    7. Recombined 2 regimes into one program.
                                    8. Final simplification50.0%

                                      \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -2.6 \cdot 10^{+126}:\\ \;\;\;\;x\\ \mathbf{elif}\;x \leq 7.5 \cdot 10^{+23}:\\ \;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
                                    9. Add Preprocessing

                                    Alternative 12: 47.4% accurate, 1.0× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -2.5 \cdot 10^{+126}:\\ \;\;\;\;x\\ \mathbf{elif}\;x \leq 7.5 \cdot 10^{+23}:\\ \;\;\;\;\frac{-0.3333333333333333}{\frac{z}{y}}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
                                    (FPCore (x y z t)
                                     :precision binary64
                                     (if (<= x -2.5e+126) x (if (<= x 7.5e+23) (/ -0.3333333333333333 (/ z y)) x)))
                                    double code(double x, double y, double z, double t) {
                                    	double tmp;
                                    	if (x <= -2.5e+126) {
                                    		tmp = x;
                                    	} else if (x <= 7.5e+23) {
                                    		tmp = -0.3333333333333333 / (z / y);
                                    	} else {
                                    		tmp = x;
                                    	}
                                    	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 (x <= (-2.5d+126)) then
                                            tmp = x
                                        else if (x <= 7.5d+23) then
                                            tmp = (-0.3333333333333333d0) / (z / y)
                                        else
                                            tmp = x
                                        end if
                                        code = tmp
                                    end function
                                    
                                    public static double code(double x, double y, double z, double t) {
                                    	double tmp;
                                    	if (x <= -2.5e+126) {
                                    		tmp = x;
                                    	} else if (x <= 7.5e+23) {
                                    		tmp = -0.3333333333333333 / (z / y);
                                    	} else {
                                    		tmp = x;
                                    	}
                                    	return tmp;
                                    }
                                    
                                    def code(x, y, z, t):
                                    	tmp = 0
                                    	if x <= -2.5e+126:
                                    		tmp = x
                                    	elif x <= 7.5e+23:
                                    		tmp = -0.3333333333333333 / (z / y)
                                    	else:
                                    		tmp = x
                                    	return tmp
                                    
                                    function code(x, y, z, t)
                                    	tmp = 0.0
                                    	if (x <= -2.5e+126)
                                    		tmp = x;
                                    	elseif (x <= 7.5e+23)
                                    		tmp = Float64(-0.3333333333333333 / Float64(z / y));
                                    	else
                                    		tmp = x;
                                    	end
                                    	return tmp
                                    end
                                    
                                    function tmp_2 = code(x, y, z, t)
                                    	tmp = 0.0;
                                    	if (x <= -2.5e+126)
                                    		tmp = x;
                                    	elseif (x <= 7.5e+23)
                                    		tmp = -0.3333333333333333 / (z / y);
                                    	else
                                    		tmp = x;
                                    	end
                                    	tmp_2 = tmp;
                                    end
                                    
                                    code[x_, y_, z_, t_] := If[LessEqual[x, -2.5e+126], x, If[LessEqual[x, 7.5e+23], N[(-0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision], x]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    \mathbf{if}\;x \leq -2.5 \cdot 10^{+126}:\\
                                    \;\;\;\;x\\
                                    
                                    \mathbf{elif}\;x \leq 7.5 \cdot 10^{+23}:\\
                                    \;\;\;\;\frac{-0.3333333333333333}{\frac{z}{y}}\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;x\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 2 regimes
                                    2. if x < -2.49999999999999989e126 or 7.49999999999999987e23 < x

                                      1. Initial program 93.4%

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

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

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

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

                                          \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                                        5. unsub-negN/A

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

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

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

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

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

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

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

                                          \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                                        13. times-fracN/A

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

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

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

                                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                        17. associate-/r*N/A

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

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

                                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                        20. --lowering--.f64N/A

                                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                                        21. /-lowering-/.f6497.0%

                                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                                      3. Simplified97.0%

                                        \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                                      4. Add Preprocessing
                                      5. Taylor expanded in x around inf

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

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

                                        if -2.49999999999999989e126 < x < 7.49999999999999987e23

                                        1. Initial program 97.2%

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

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

                                            \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\left(\frac{t}{z \cdot 3}\right), \color{blue}{y}\right)\right) \]
                                          3. div-invN/A

                                            \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\left(t \cdot \frac{1}{z \cdot 3}\right), y\right)\right) \]
                                          4. *-lowering-*.f64N/A

                                            \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{1}{z \cdot 3}\right)\right), y\right)\right) \]
                                          5. *-commutativeN/A

                                            \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{1}{3 \cdot z}\right)\right), y\right)\right) \]
                                          6. associate-/r*N/A

                                            \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\frac{1}{3}}{z}\right)\right), y\right)\right) \]
                                          7. metadata-evalN/A

                                            \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\frac{1}{3}}{z}\right)\right), y\right)\right) \]
                                          8. metadata-evalN/A

                                            \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\mathsf{neg}\left(\frac{-1}{3}\right)}{z}\right)\right), y\right)\right) \]
                                          9. /-lowering-/.f64N/A

                                            \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{/.f64}\left(\left(\mathsf{neg}\left(\frac{-1}{3}\right)\right), z\right)\right), y\right)\right) \]
                                          10. metadata-eval96.0%

                                            \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{/.f64}\left(\frac{1}{3}, z\right)\right), y\right)\right) \]
                                        4. Applied egg-rr96.0%

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

                                          \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y}{z}} \]
                                        6. Step-by-step derivation
                                          1. associate-*r/N/A

                                            \[\leadsto \frac{\frac{-1}{3} \cdot y}{\color{blue}{z}} \]
                                          2. /-lowering-/.f64N/A

                                            \[\leadsto \mathsf{/.f64}\left(\left(\frac{-1}{3} \cdot y\right), \color{blue}{z}\right) \]
                                          3. *-commutativeN/A

                                            \[\leadsto \mathsf{/.f64}\left(\left(y \cdot \frac{-1}{3}\right), z\right) \]
                                          4. *-lowering-*.f6442.5%

                                            \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \frac{-1}{3}\right), z\right) \]
                                        7. Simplified42.5%

                                          \[\leadsto \color{blue}{\frac{y \cdot -0.3333333333333333}{z}} \]
                                        8. Step-by-step derivation
                                          1. *-commutativeN/A

                                            \[\leadsto \frac{\frac{-1}{3} \cdot y}{z} \]
                                          2. associate-/l*N/A

                                            \[\leadsto \frac{-1}{3} \cdot \color{blue}{\frac{y}{z}} \]
                                          3. *-lowering-*.f64N/A

                                            \[\leadsto \mathsf{*.f64}\left(\frac{-1}{3}, \color{blue}{\left(\frac{y}{z}\right)}\right) \]
                                          4. /-lowering-/.f6442.4%

                                            \[\leadsto \mathsf{*.f64}\left(\frac{-1}{3}, \mathsf{/.f64}\left(y, \color{blue}{z}\right)\right) \]
                                        9. Applied egg-rr42.4%

                                          \[\leadsto \color{blue}{-0.3333333333333333 \cdot \frac{y}{z}} \]
                                        10. Step-by-step derivation
                                          1. clear-numN/A

                                            \[\leadsto \frac{-1}{3} \cdot \frac{1}{\color{blue}{\frac{z}{y}}} \]
                                          2. un-div-invN/A

                                            \[\leadsto \frac{\frac{-1}{3}}{\color{blue}{\frac{z}{y}}} \]
                                          3. /-lowering-/.f64N/A

                                            \[\leadsto \mathsf{/.f64}\left(\frac{-1}{3}, \color{blue}{\left(\frac{z}{y}\right)}\right) \]
                                          4. /-lowering-/.f6442.4%

                                            \[\leadsto \mathsf{/.f64}\left(\frac{-1}{3}, \mathsf{/.f64}\left(z, \color{blue}{y}\right)\right) \]
                                        11. Applied egg-rr42.4%

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

                                      Alternative 13: 47.5% accurate, 1.0× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -4.5 \cdot 10^{+126}:\\ \;\;\;\;x\\ \mathbf{elif}\;x \leq 7.5 \cdot 10^{+23}:\\ \;\;\;\;y \cdot \frac{-0.3333333333333333}{z}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
                                      (FPCore (x y z t)
                                       :precision binary64
                                       (if (<= x -4.5e+126) x (if (<= x 7.5e+23) (* y (/ -0.3333333333333333 z)) x)))
                                      double code(double x, double y, double z, double t) {
                                      	double tmp;
                                      	if (x <= -4.5e+126) {
                                      		tmp = x;
                                      	} else if (x <= 7.5e+23) {
                                      		tmp = y * (-0.3333333333333333 / z);
                                      	} else {
                                      		tmp = x;
                                      	}
                                      	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 (x <= (-4.5d+126)) then
                                              tmp = x
                                          else if (x <= 7.5d+23) then
                                              tmp = y * ((-0.3333333333333333d0) / z)
                                          else
                                              tmp = x
                                          end if
                                          code = tmp
                                      end function
                                      
                                      public static double code(double x, double y, double z, double t) {
                                      	double tmp;
                                      	if (x <= -4.5e+126) {
                                      		tmp = x;
                                      	} else if (x <= 7.5e+23) {
                                      		tmp = y * (-0.3333333333333333 / z);
                                      	} else {
                                      		tmp = x;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      def code(x, y, z, t):
                                      	tmp = 0
                                      	if x <= -4.5e+126:
                                      		tmp = x
                                      	elif x <= 7.5e+23:
                                      		tmp = y * (-0.3333333333333333 / z)
                                      	else:
                                      		tmp = x
                                      	return tmp
                                      
                                      function code(x, y, z, t)
                                      	tmp = 0.0
                                      	if (x <= -4.5e+126)
                                      		tmp = x;
                                      	elseif (x <= 7.5e+23)
                                      		tmp = Float64(y * Float64(-0.3333333333333333 / z));
                                      	else
                                      		tmp = x;
                                      	end
                                      	return tmp
                                      end
                                      
                                      function tmp_2 = code(x, y, z, t)
                                      	tmp = 0.0;
                                      	if (x <= -4.5e+126)
                                      		tmp = x;
                                      	elseif (x <= 7.5e+23)
                                      		tmp = y * (-0.3333333333333333 / z);
                                      	else
                                      		tmp = x;
                                      	end
                                      	tmp_2 = tmp;
                                      end
                                      
                                      code[x_, y_, z_, t_] := If[LessEqual[x, -4.5e+126], x, If[LessEqual[x, 7.5e+23], N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision], x]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      \mathbf{if}\;x \leq -4.5 \cdot 10^{+126}:\\
                                      \;\;\;\;x\\
                                      
                                      \mathbf{elif}\;x \leq 7.5 \cdot 10^{+23}:\\
                                      \;\;\;\;y \cdot \frac{-0.3333333333333333}{z}\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;x\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 2 regimes
                                      2. if x < -4.49999999999999974e126 or 7.49999999999999987e23 < x

                                        1. Initial program 93.4%

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

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

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

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

                                            \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                                          5. unsub-negN/A

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

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

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

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

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

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

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

                                            \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                                          13. times-fracN/A

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

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

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

                                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                          17. associate-/r*N/A

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

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

                                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                          20. --lowering--.f64N/A

                                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                                          21. /-lowering-/.f6497.0%

                                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                                        3. Simplified97.0%

                                          \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                                        4. Add Preprocessing
                                        5. Taylor expanded in x around inf

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

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

                                          if -4.49999999999999974e126 < x < 7.49999999999999987e23

                                          1. Initial program 97.2%

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

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

                                              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\left(\frac{t}{z \cdot 3}\right), \color{blue}{y}\right)\right) \]
                                            3. div-invN/A

                                              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\left(t \cdot \frac{1}{z \cdot 3}\right), y\right)\right) \]
                                            4. *-lowering-*.f64N/A

                                              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{1}{z \cdot 3}\right)\right), y\right)\right) \]
                                            5. *-commutativeN/A

                                              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{1}{3 \cdot z}\right)\right), y\right)\right) \]
                                            6. associate-/r*N/A

                                              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\frac{1}{3}}{z}\right)\right), y\right)\right) \]
                                            7. metadata-evalN/A

                                              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\frac{1}{3}}{z}\right)\right), y\right)\right) \]
                                            8. metadata-evalN/A

                                              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\mathsf{neg}\left(\frac{-1}{3}\right)}{z}\right)\right), y\right)\right) \]
                                            9. /-lowering-/.f64N/A

                                              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{/.f64}\left(\left(\mathsf{neg}\left(\frac{-1}{3}\right)\right), z\right)\right), y\right)\right) \]
                                            10. metadata-eval96.0%

                                              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{/.f64}\left(\frac{1}{3}, z\right)\right), y\right)\right) \]
                                          4. Applied egg-rr96.0%

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

                                            \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y}{z}} \]
                                          6. Step-by-step derivation
                                            1. associate-*r/N/A

                                              \[\leadsto \frac{\frac{-1}{3} \cdot y}{\color{blue}{z}} \]
                                            2. /-lowering-/.f64N/A

                                              \[\leadsto \mathsf{/.f64}\left(\left(\frac{-1}{3} \cdot y\right), \color{blue}{z}\right) \]
                                            3. *-commutativeN/A

                                              \[\leadsto \mathsf{/.f64}\left(\left(y \cdot \frac{-1}{3}\right), z\right) \]
                                            4. *-lowering-*.f6442.5%

                                              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \frac{-1}{3}\right), z\right) \]
                                          7. Simplified42.5%

                                            \[\leadsto \color{blue}{\frac{y \cdot -0.3333333333333333}{z}} \]
                                          8. Step-by-step derivation
                                            1. div-invN/A

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

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

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

                                              \[\leadsto y \cdot \left(\mathsf{neg}\left(\frac{1}{3} \cdot \frac{1}{z}\right)\right) \]
                                            5. div-invN/A

                                              \[\leadsto y \cdot \left(\mathsf{neg}\left(\frac{\frac{1}{3}}{z}\right)\right) \]
                                            6. *-commutativeN/A

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

                                              \[\leadsto \mathsf{*.f64}\left(\left(\mathsf{neg}\left(\frac{\frac{1}{3}}{z}\right)\right), \color{blue}{y}\right) \]
                                            8. distribute-neg-fracN/A

                                              \[\leadsto \mathsf{*.f64}\left(\left(\frac{\mathsf{neg}\left(\frac{1}{3}\right)}{z}\right), y\right) \]
                                            9. metadata-evalN/A

                                              \[\leadsto \mathsf{*.f64}\left(\left(\frac{\frac{-1}{3}}{z}\right), y\right) \]
                                            10. /-lowering-/.f6442.4%

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), y\right) \]
                                          9. Applied egg-rr42.4%

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

                                          \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -4.5 \cdot 10^{+126}:\\ \;\;\;\;x\\ \mathbf{elif}\;x \leq 7.5 \cdot 10^{+23}:\\ \;\;\;\;y \cdot \frac{-0.3333333333333333}{z}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
                                        9. Add Preprocessing

                                        Alternative 14: 47.5% accurate, 1.0× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -1.25 \cdot 10^{+127}:\\ \;\;\;\;x\\ \mathbf{elif}\;x \leq 7.5 \cdot 10^{+23}:\\ \;\;\;\;-0.3333333333333333 \cdot \frac{y}{z}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
                                        (FPCore (x y z t)
                                         :precision binary64
                                         (if (<= x -1.25e+127)
                                           x
                                           (if (<= x 7.5e+23) (* -0.3333333333333333 (/ y z)) x)))
                                        double code(double x, double y, double z, double t) {
                                        	double tmp;
                                        	if (x <= -1.25e+127) {
                                        		tmp = x;
                                        	} else if (x <= 7.5e+23) {
                                        		tmp = -0.3333333333333333 * (y / z);
                                        	} else {
                                        		tmp = x;
                                        	}
                                        	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 (x <= (-1.25d+127)) then
                                                tmp = x
                                            else if (x <= 7.5d+23) then
                                                tmp = (-0.3333333333333333d0) * (y / z)
                                            else
                                                tmp = x
                                            end if
                                            code = tmp
                                        end function
                                        
                                        public static double code(double x, double y, double z, double t) {
                                        	double tmp;
                                        	if (x <= -1.25e+127) {
                                        		tmp = x;
                                        	} else if (x <= 7.5e+23) {
                                        		tmp = -0.3333333333333333 * (y / z);
                                        	} else {
                                        		tmp = x;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        def code(x, y, z, t):
                                        	tmp = 0
                                        	if x <= -1.25e+127:
                                        		tmp = x
                                        	elif x <= 7.5e+23:
                                        		tmp = -0.3333333333333333 * (y / z)
                                        	else:
                                        		tmp = x
                                        	return tmp
                                        
                                        function code(x, y, z, t)
                                        	tmp = 0.0
                                        	if (x <= -1.25e+127)
                                        		tmp = x;
                                        	elseif (x <= 7.5e+23)
                                        		tmp = Float64(-0.3333333333333333 * Float64(y / z));
                                        	else
                                        		tmp = x;
                                        	end
                                        	return tmp
                                        end
                                        
                                        function tmp_2 = code(x, y, z, t)
                                        	tmp = 0.0;
                                        	if (x <= -1.25e+127)
                                        		tmp = x;
                                        	elseif (x <= 7.5e+23)
                                        		tmp = -0.3333333333333333 * (y / z);
                                        	else
                                        		tmp = x;
                                        	end
                                        	tmp_2 = tmp;
                                        end
                                        
                                        code[x_, y_, z_, t_] := If[LessEqual[x, -1.25e+127], x, If[LessEqual[x, 7.5e+23], N[(-0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision], x]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        \mathbf{if}\;x \leq -1.25 \cdot 10^{+127}:\\
                                        \;\;\;\;x\\
                                        
                                        \mathbf{elif}\;x \leq 7.5 \cdot 10^{+23}:\\
                                        \;\;\;\;-0.3333333333333333 \cdot \frac{y}{z}\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;x\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 2 regimes
                                        2. if x < -1.2500000000000001e127 or 7.49999999999999987e23 < x

                                          1. Initial program 93.4%

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

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

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

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

                                              \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                                            5. unsub-negN/A

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

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

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

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

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

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

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

                                              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                                            13. times-fracN/A

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

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

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

                                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                            17. associate-/r*N/A

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

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

                                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                            20. --lowering--.f64N/A

                                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                                            21. /-lowering-/.f6497.0%

                                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                                          3. Simplified97.0%

                                            \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                                          4. Add Preprocessing
                                          5. Taylor expanded in x around inf

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

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

                                            if -1.2500000000000001e127 < x < 7.49999999999999987e23

                                            1. Initial program 97.2%

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

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

                                                \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\left(\frac{t}{z \cdot 3}\right), \color{blue}{y}\right)\right) \]
                                              3. div-invN/A

                                                \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\left(t \cdot \frac{1}{z \cdot 3}\right), y\right)\right) \]
                                              4. *-lowering-*.f64N/A

                                                \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{1}{z \cdot 3}\right)\right), y\right)\right) \]
                                              5. *-commutativeN/A

                                                \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{1}{3 \cdot z}\right)\right), y\right)\right) \]
                                              6. associate-/r*N/A

                                                \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\frac{1}{3}}{z}\right)\right), y\right)\right) \]
                                              7. metadata-evalN/A

                                                \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\frac{1}{3}}{z}\right)\right), y\right)\right) \]
                                              8. metadata-evalN/A

                                                \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\mathsf{neg}\left(\frac{-1}{3}\right)}{z}\right)\right), y\right)\right) \]
                                              9. /-lowering-/.f64N/A

                                                \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{/.f64}\left(\left(\mathsf{neg}\left(\frac{-1}{3}\right)\right), z\right)\right), y\right)\right) \]
                                              10. metadata-eval96.0%

                                                \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{/.f64}\left(\frac{1}{3}, z\right)\right), y\right)\right) \]
                                            4. Applied egg-rr96.0%

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

                                              \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y}{z}} \]
                                            6. Step-by-step derivation
                                              1. associate-*r/N/A

                                                \[\leadsto \frac{\frac{-1}{3} \cdot y}{\color{blue}{z}} \]
                                              2. /-lowering-/.f64N/A

                                                \[\leadsto \mathsf{/.f64}\left(\left(\frac{-1}{3} \cdot y\right), \color{blue}{z}\right) \]
                                              3. *-commutativeN/A

                                                \[\leadsto \mathsf{/.f64}\left(\left(y \cdot \frac{-1}{3}\right), z\right) \]
                                              4. *-lowering-*.f6442.5%

                                                \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \frac{-1}{3}\right), z\right) \]
                                            7. Simplified42.5%

                                              \[\leadsto \color{blue}{\frac{y \cdot -0.3333333333333333}{z}} \]
                                            8. Step-by-step derivation
                                              1. *-commutativeN/A

                                                \[\leadsto \frac{\frac{-1}{3} \cdot y}{z} \]
                                              2. associate-/l*N/A

                                                \[\leadsto \frac{-1}{3} \cdot \color{blue}{\frac{y}{z}} \]
                                              3. *-lowering-*.f64N/A

                                                \[\leadsto \mathsf{*.f64}\left(\frac{-1}{3}, \color{blue}{\left(\frac{y}{z}\right)}\right) \]
                                              4. /-lowering-/.f6442.4%

                                                \[\leadsto \mathsf{*.f64}\left(\frac{-1}{3}, \mathsf{/.f64}\left(y, \color{blue}{z}\right)\right) \]
                                            9. Applied egg-rr42.4%

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

                                          Alternative 15: 96.3% accurate, 1.0× speedup?

                                          \[\begin{array}{l} \\ \left(x - \frac{y}{z \cdot 3}\right) + \frac{t \cdot \frac{0.3333333333333333}{z}}{y} \end{array} \]
                                          (FPCore (x y z t)
                                           :precision binary64
                                           (+ (- x (/ y (* z 3.0))) (/ (* t (/ 0.3333333333333333 z)) y)))
                                          double code(double x, double y, double z, double t) {
                                          	return (x - (y / (z * 3.0))) + ((t * (0.3333333333333333 / z)) / y);
                                          }
                                          
                                          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 * 3.0d0))) + ((t * (0.3333333333333333d0 / z)) / y)
                                          end function
                                          
                                          public static double code(double x, double y, double z, double t) {
                                          	return (x - (y / (z * 3.0))) + ((t * (0.3333333333333333 / z)) / y);
                                          }
                                          
                                          def code(x, y, z, t):
                                          	return (x - (y / (z * 3.0))) + ((t * (0.3333333333333333 / z)) / y)
                                          
                                          function code(x, y, z, t)
                                          	return Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(Float64(t * Float64(0.3333333333333333 / z)) / y))
                                          end
                                          
                                          function tmp = code(x, y, z, t)
                                          	tmp = (x - (y / (z * 3.0))) + ((t * (0.3333333333333333 / z)) / y);
                                          end
                                          
                                          code[x_, y_, z_, t_] := N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(t * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
                                          
                                          \begin{array}{l}
                                          
                                          \\
                                          \left(x - \frac{y}{z \cdot 3}\right) + \frac{t \cdot \frac{0.3333333333333333}{z}}{y}
                                          \end{array}
                                          
                                          Derivation
                                          1. Initial program 95.7%

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

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

                                              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\left(\frac{t}{z \cdot 3}\right), \color{blue}{y}\right)\right) \]
                                            3. div-invN/A

                                              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\left(t \cdot \frac{1}{z \cdot 3}\right), y\right)\right) \]
                                            4. *-lowering-*.f64N/A

                                              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{1}{z \cdot 3}\right)\right), y\right)\right) \]
                                            5. *-commutativeN/A

                                              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{1}{3 \cdot z}\right)\right), y\right)\right) \]
                                            6. associate-/r*N/A

                                              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\frac{1}{3}}{z}\right)\right), y\right)\right) \]
                                            7. metadata-evalN/A

                                              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\frac{1}{3}}{z}\right)\right), y\right)\right) \]
                                            8. metadata-evalN/A

                                              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(\frac{\mathsf{neg}\left(\frac{-1}{3}\right)}{z}\right)\right), y\right)\right) \]
                                            9. /-lowering-/.f64N/A

                                              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{/.f64}\left(\left(\mathsf{neg}\left(\frac{-1}{3}\right)\right), z\right)\right), y\right)\right) \]
                                            10. metadata-eval97.1%

                                              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{*.f64}\left(z, 3\right)\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{/.f64}\left(\frac{1}{3}, z\right)\right), y\right)\right) \]
                                          4. Applied egg-rr97.1%

                                            \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \color{blue}{\frac{t \cdot \frac{0.3333333333333333}{z}}{y}} \]
                                          5. Add Preprocessing

                                          Alternative 16: 96.0% accurate, 1.4× speedup?

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

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

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

                                              \[\leadsto \mathsf{\_.f64}\left(x, \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                                            3. *-commutativeN/A

                                              \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{t}{y \cdot \color{blue}{\left(z \cdot 3\right)}}\right)\right) \]
                                            4. associate-/r*N/A

                                              \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{\frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
                                            5. sub-divN/A

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

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

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

                                              \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(z \cdot 3\right)\right)\right) \]
                                            9. *-lowering-*.f6496.8%

                                              \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \mathsf{*.f64}\left(z, \color{blue}{3}\right)\right)\right) \]
                                          4. Applied egg-rr96.8%

                                            \[\leadsto \color{blue}{x - \frac{y - \frac{t}{y}}{z \cdot 3}} \]
                                          5. Step-by-step derivation
                                            1. associate-/r*N/A

                                              \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{\frac{y - \frac{t}{y}}{z}}{\color{blue}{3}}\right)\right) \]
                                            2. /-lowering-/.f64N/A

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

                                              \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{/.f64}\left(\left(y - \frac{t}{y}\right), z\right), 3\right)\right) \]
                                            4. --lowering--.f64N/A

                                              \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \left(\frac{t}{y}\right)\right), z\right), 3\right)\right) \]
                                            5. /-lowering-/.f6496.8%

                                              \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), z\right), 3\right)\right) \]
                                          6. Applied egg-rr96.8%

                                            \[\leadsto x - \color{blue}{\frac{\frac{y - \frac{t}{y}}{z}}{3}} \]
                                          7. Add Preprocessing

                                          Alternative 17: 96.0% accurate, 1.4× speedup?

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

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

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

                                              \[\leadsto \mathsf{\_.f64}\left(x, \color{blue}{\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)}\right) \]
                                            3. *-commutativeN/A

                                              \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{t}{y \cdot \color{blue}{\left(z \cdot 3\right)}}\right)\right) \]
                                            4. associate-/r*N/A

                                              \[\leadsto \mathsf{\_.f64}\left(x, \left(\frac{y}{z \cdot 3} - \frac{\frac{t}{y}}{\color{blue}{z \cdot 3}}\right)\right) \]
                                            5. sub-divN/A

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

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

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

                                              \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \left(z \cdot 3\right)\right)\right) \]
                                            9. *-lowering-*.f6496.8%

                                              \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, y\right)\right), \mathsf{*.f64}\left(z, \color{blue}{3}\right)\right)\right) \]
                                          4. Applied egg-rr96.8%

                                            \[\leadsto \color{blue}{x - \frac{y - \frac{t}{y}}{z \cdot 3}} \]
                                          5. Final simplification96.8%

                                            \[\leadsto x + \frac{\frac{t}{y} - y}{z \cdot 3} \]
                                          6. Add Preprocessing

                                          Alternative 18: 95.9% accurate, 1.4× speedup?

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

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

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

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

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

                                              \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                                            5. unsub-negN/A

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

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

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

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

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

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

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

                                              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                                            13. times-fracN/A

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

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

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

                                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                            17. associate-/r*N/A

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

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

                                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                            20. --lowering--.f64N/A

                                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                                            21. /-lowering-/.f6496.8%

                                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                                          3. Simplified96.8%

                                            \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                                          4. Add Preprocessing
                                          5. Add Preprocessing

                                          Alternative 19: 31.4% accurate, 15.0× speedup?

                                          \[\begin{array}{l} \\ x \end{array} \]
                                          (FPCore (x y z t) :precision binary64 x)
                                          double code(double x, double y, double z, double t) {
                                          	return x;
                                          }
                                          
                                          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
                                          end function
                                          
                                          public static double code(double x, double y, double z, double t) {
                                          	return x;
                                          }
                                          
                                          def code(x, y, z, t):
                                          	return x
                                          
                                          function code(x, y, z, t)
                                          	return x
                                          end
                                          
                                          function tmp = code(x, y, z, t)
                                          	tmp = x;
                                          end
                                          
                                          code[x_, y_, z_, t_] := x
                                          
                                          \begin{array}{l}
                                          
                                          \\
                                          x
                                          \end{array}
                                          
                                          Derivation
                                          1. Initial program 95.7%

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

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

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

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

                                              \[\leadsto \mathsf{+.f64}\left(x, \left(\left(\mathsf{neg}\left(\frac{y}{z \cdot 3}\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)\right)\right)\right) \]
                                            5. unsub-negN/A

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

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

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

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

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

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

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

                                              \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{-1}{z \cdot 3} \cdot y - \frac{-1 \cdot t}{\color{blue}{\left(z \cdot 3\right)} \cdot y}\right)\right) \]
                                            13. times-fracN/A

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

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

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

                                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(\frac{-1}{3 \cdot z}\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                            17. associate-/r*N/A

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

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

                                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \left(y - \frac{t}{y}\right)\right)\right) \]
                                            20. --lowering--.f64N/A

                                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \color{blue}{\left(\frac{t}{y}\right)}\right)\right)\right) \]
                                            21. /-lowering-/.f6496.8%

                                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{-1}{3}, z\right), \mathsf{\_.f64}\left(y, \mathsf{/.f64}\left(t, \color{blue}{y}\right)\right)\right)\right) \]
                                          3. Simplified96.8%

                                            \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
                                          4. Add Preprocessing
                                          5. Taylor expanded in x around inf

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

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

                                            Developer Target 1: 96.3% accurate, 1.0× speedup?

                                            \[\begin{array}{l} \\ \left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{t}{z \cdot 3}}{y} \end{array} \]
                                            (FPCore (x y z t)
                                             :precision binary64
                                             (+ (- x (/ y (* z 3.0))) (/ (/ t (* z 3.0)) y)))
                                            double code(double x, double y, double z, double t) {
                                            	return (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y);
                                            }
                                            
                                            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 * 3.0d0))) + ((t / (z * 3.0d0)) / y)
                                            end function
                                            
                                            public static double code(double x, double y, double z, double t) {
                                            	return (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y);
                                            }
                                            
                                            def code(x, y, z, t):
                                            	return (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y)
                                            
                                            function code(x, y, z, t)
                                            	return Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(Float64(t / Float64(z * 3.0)) / y))
                                            end
                                            
                                            function tmp = code(x, y, z, t)
                                            	tmp = (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y);
                                            end
                                            
                                            code[x_, y_, z_, t_] := N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(t / N[(z * 3.0), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            \left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{t}{z \cdot 3}}{y}
                                            \end{array}
                                            

                                            Reproduce

                                            ?
                                            herbie shell --seed 2024161 
                                            (FPCore (x y z t)
                                              :name "Diagrams.Solve.Polynomial:cubForm  from diagrams-solve-0.1, H"
                                              :precision binary64
                                            
                                              :alt
                                              (! :herbie-platform default (+ (- x (/ y (* z 3))) (/ (/ t (* z 3)) y)))
                                            
                                              (+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))