Optimisation.CirclePacking:place from circle-packing-0.1.0.4, B

Percentage Accurate: 100.0% → 100.0%
Time: 10.2s
Alternatives: 12
Speedup: 1.0×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 12 alternatives:

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

Initial Program: 100.0% accurate, 1.0× speedup?

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

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

Alternative 1: 100.0% accurate, 1.0× speedup?

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

\\
\frac{\left(x + y\right) - z}{t \cdot 2}
\end{array}
Derivation
  1. Initial program 100.0%

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

Alternative 2: 50.5% accurate, 0.7× speedup?

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

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

\mathbf{elif}\;x + y \leq 5 \cdot 10^{+60}:\\
\;\;\;\;\frac{z \cdot -0.5}{t}\\

\mathbf{else}:\\
\;\;\;\;\frac{y \cdot 0.5}{t}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (+.f64 x y) < -1e4

    1. Initial program 100.0%

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

      \[\leadsto \color{blue}{\frac{1}{2} \cdot \frac{x}{t}} \]
    4. Step-by-step derivation
      1. *-commutativeN/A

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

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

        \[\leadsto \color{blue}{\frac{x \cdot \frac{1}{2}}{t}} \]
      4. *-commutativeN/A

        \[\leadsto \frac{\color{blue}{\frac{1}{2} \cdot x}}{t} \]
      5. *-lowering-*.f6437.1

        \[\leadsto \frac{\color{blue}{0.5 \cdot x}}{t} \]
    5. Simplified37.1%

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

    if -1e4 < (+.f64 x y) < 4.99999999999999975e60

    1. Initial program 100.0%

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

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

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

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

        \[\leadsto \frac{\color{blue}{z \cdot \frac{-1}{2}}}{t} \]
      4. *-lowering-*.f6466.0

        \[\leadsto \frac{\color{blue}{z \cdot -0.5}}{t} \]
    5. Simplified66.0%

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

    if 4.99999999999999975e60 < (+.f64 x y)

    1. Initial program 99.9%

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

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

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

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

        \[\leadsto \color{blue}{\frac{y \cdot \frac{1}{2}}{t}} \]
      4. *-commutativeN/A

        \[\leadsto \frac{\color{blue}{\frac{1}{2} \cdot y}}{t} \]
      5. *-lowering-*.f6439.3

        \[\leadsto \frac{\color{blue}{0.5 \cdot y}}{t} \]
    5. Simplified39.3%

      \[\leadsto \color{blue}{\frac{0.5 \cdot y}{t}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification47.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x + y \leq -10000:\\ \;\;\;\;\frac{x \cdot 0.5}{t}\\ \mathbf{elif}\;x + y \leq 5 \cdot 10^{+60}:\\ \;\;\;\;\frac{z \cdot -0.5}{t}\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot 0.5}{t}\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 50.5% accurate, 0.7× speedup?

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

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

\mathbf{elif}\;x + y \leq 5 \cdot 10^{+60}:\\
\;\;\;\;z \cdot \frac{-0.5}{t}\\

\mathbf{else}:\\
\;\;\;\;\frac{y \cdot 0.5}{t}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (+.f64 x y) < -1e4

    1. Initial program 100.0%

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

      \[\leadsto \color{blue}{\frac{1}{2} \cdot \frac{x}{t}} \]
    4. Step-by-step derivation
      1. *-commutativeN/A

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

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

        \[\leadsto \color{blue}{\frac{x \cdot \frac{1}{2}}{t}} \]
      4. *-commutativeN/A

        \[\leadsto \frac{\color{blue}{\frac{1}{2} \cdot x}}{t} \]
      5. *-lowering-*.f6437.1

        \[\leadsto \frac{\color{blue}{0.5 \cdot x}}{t} \]
    5. Simplified37.1%

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

    if -1e4 < (+.f64 x y) < 4.99999999999999975e60

    1. Initial program 100.0%

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

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

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

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

        \[\leadsto \frac{\color{blue}{z \cdot \frac{-1}{2}}}{t} \]
      4. *-lowering-*.f6466.0

        \[\leadsto \frac{\color{blue}{z \cdot -0.5}}{t} \]
    5. Simplified66.0%

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

        \[\leadsto \color{blue}{z \cdot \frac{\frac{-1}{2}}{t}} \]
      2. *-commutativeN/A

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

        \[\leadsto \color{blue}{\frac{\frac{-1}{2}}{t} \cdot z} \]
      4. /-lowering-/.f6465.8

        \[\leadsto \color{blue}{\frac{-0.5}{t}} \cdot z \]
    7. Applied egg-rr65.8%

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

    if 4.99999999999999975e60 < (+.f64 x y)

    1. Initial program 99.9%

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

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

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

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

        \[\leadsto \color{blue}{\frac{y \cdot \frac{1}{2}}{t}} \]
      4. *-commutativeN/A

        \[\leadsto \frac{\color{blue}{\frac{1}{2} \cdot y}}{t} \]
      5. *-lowering-*.f6439.3

        \[\leadsto \frac{\color{blue}{0.5 \cdot y}}{t} \]
    5. Simplified39.3%

      \[\leadsto \color{blue}{\frac{0.5 \cdot y}{t}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification47.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x + y \leq -10000:\\ \;\;\;\;\frac{x \cdot 0.5}{t}\\ \mathbf{elif}\;x + y \leq 5 \cdot 10^{+60}:\\ \;\;\;\;z \cdot \frac{-0.5}{t}\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot 0.5}{t}\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 50.4% accurate, 0.7× speedup?

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

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

\mathbf{elif}\;x + y \leq 5 \cdot 10^{+60}:\\
\;\;\;\;z \cdot \frac{-0.5}{t}\\

\mathbf{else}:\\
\;\;\;\;y \cdot \frac{0.5}{t}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (+.f64 x y) < -1e4

    1. Initial program 100.0%

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

      \[\leadsto \color{blue}{\frac{1}{2} \cdot \frac{x}{t}} \]
    4. Step-by-step derivation
      1. *-commutativeN/A

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

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

        \[\leadsto \color{blue}{\frac{x \cdot \frac{1}{2}}{t}} \]
      4. *-commutativeN/A

        \[\leadsto \frac{\color{blue}{\frac{1}{2} \cdot x}}{t} \]
      5. *-lowering-*.f6437.1

        \[\leadsto \frac{\color{blue}{0.5 \cdot x}}{t} \]
    5. Simplified37.1%

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

    if -1e4 < (+.f64 x y) < 4.99999999999999975e60

    1. Initial program 100.0%

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

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

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

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

        \[\leadsto \frac{\color{blue}{z \cdot \frac{-1}{2}}}{t} \]
      4. *-lowering-*.f6466.0

        \[\leadsto \frac{\color{blue}{z \cdot -0.5}}{t} \]
    5. Simplified66.0%

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

        \[\leadsto \color{blue}{z \cdot \frac{\frac{-1}{2}}{t}} \]
      2. *-commutativeN/A

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

        \[\leadsto \color{blue}{\frac{\frac{-1}{2}}{t} \cdot z} \]
      4. /-lowering-/.f6465.8

        \[\leadsto \color{blue}{\frac{-0.5}{t}} \cdot z \]
    7. Applied egg-rr65.8%

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

    if 4.99999999999999975e60 < (+.f64 x y)

    1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{0.5}{t} \cdot \left(x + \color{blue}{\left(y - z\right)}\right) \]
    4. Applied egg-rr99.7%

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

      \[\leadsto \frac{\frac{1}{2}}{t} \cdot \color{blue}{y} \]
    6. Step-by-step derivation
      1. Simplified39.3%

        \[\leadsto \frac{0.5}{t} \cdot \color{blue}{y} \]
    7. Recombined 3 regimes into one program.
    8. Final simplification47.5%

      \[\leadsto \begin{array}{l} \mathbf{if}\;x + y \leq -10000:\\ \;\;\;\;\frac{x \cdot 0.5}{t}\\ \mathbf{elif}\;x + y \leq 5 \cdot 10^{+60}:\\ \;\;\;\;z \cdot \frac{-0.5}{t}\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{0.5}{t}\\ \end{array} \]
    9. Add Preprocessing

    Alternative 5: 50.4% accurate, 0.7× speedup?

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

      1. Initial program 100.0%

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

        \[\leadsto \color{blue}{\frac{1}{2} \cdot \frac{x}{t}} \]
      4. Step-by-step derivation
        1. *-commutativeN/A

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

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

          \[\leadsto \color{blue}{\frac{x \cdot \frac{1}{2}}{t}} \]
        4. *-commutativeN/A

          \[\leadsto \frac{\color{blue}{\frac{1}{2} \cdot x}}{t} \]
        5. *-lowering-*.f6437.1

          \[\leadsto \frac{\color{blue}{0.5 \cdot x}}{t} \]
      5. Simplified37.1%

        \[\leadsto \color{blue}{\frac{0.5 \cdot x}{t}} \]
      6. Step-by-step derivation
        1. associate-*l/N/A

          \[\leadsto \color{blue}{\frac{\frac{1}{2}}{t} \cdot x} \]
        2. *-lowering-*.f64N/A

          \[\leadsto \color{blue}{\frac{\frac{1}{2}}{t} \cdot x} \]
        3. /-lowering-/.f6437.0

          \[\leadsto \color{blue}{\frac{0.5}{t}} \cdot x \]
      7. Applied egg-rr37.0%

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

      if -1e4 < (+.f64 x y) < 4.99999999999999975e60

      1. Initial program 100.0%

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

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

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

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

          \[\leadsto \frac{\color{blue}{z \cdot \frac{-1}{2}}}{t} \]
        4. *-lowering-*.f6466.0

          \[\leadsto \frac{\color{blue}{z \cdot -0.5}}{t} \]
      5. Simplified66.0%

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

          \[\leadsto \color{blue}{z \cdot \frac{\frac{-1}{2}}{t}} \]
        2. *-commutativeN/A

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

          \[\leadsto \color{blue}{\frac{\frac{-1}{2}}{t} \cdot z} \]
        4. /-lowering-/.f6465.8

          \[\leadsto \color{blue}{\frac{-0.5}{t}} \cdot z \]
      7. Applied egg-rr65.8%

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

      if 4.99999999999999975e60 < (+.f64 x y)

      1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \frac{0.5}{t} \cdot \left(x + \color{blue}{\left(y - z\right)}\right) \]
      4. Applied egg-rr99.7%

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

        \[\leadsto \frac{\frac{1}{2}}{t} \cdot \color{blue}{y} \]
      6. Step-by-step derivation
        1. Simplified39.3%

          \[\leadsto \frac{0.5}{t} \cdot \color{blue}{y} \]
      7. Recombined 3 regimes into one program.
      8. Final simplification47.5%

        \[\leadsto \begin{array}{l} \mathbf{if}\;x + y \leq -10000:\\ \;\;\;\;x \cdot \frac{0.5}{t}\\ \mathbf{elif}\;x + y \leq 5 \cdot 10^{+60}:\\ \;\;\;\;z \cdot \frac{-0.5}{t}\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{0.5}{t}\\ \end{array} \]
      9. Add Preprocessing

      Alternative 6: 81.8% accurate, 0.7× speedup?

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

        1. Initial program 100.0%

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

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

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

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

            \[\leadsto \frac{\color{blue}{z \cdot \frac{-1}{2}}}{t} \]
          4. *-lowering-*.f6487.2

            \[\leadsto \frac{\color{blue}{z \cdot -0.5}}{t} \]
        5. Simplified87.2%

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

        if -1.22000000000000005e151 < z < 2.4e121

        1. Initial program 100.0%

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

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

            \[\leadsto \frac{\color{blue}{y + x}}{t \cdot 2} \]
          2. +-lowering-+.f6486.6

            \[\leadsto \frac{\color{blue}{y + x}}{t \cdot 2} \]
        5. Simplified86.6%

          \[\leadsto \frac{\color{blue}{y + x}}{t \cdot 2} \]
      3. Recombined 2 regimes into one program.
      4. Final simplification86.8%

        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.22 \cdot 10^{+151}:\\ \;\;\;\;\frac{z \cdot -0.5}{t}\\ \mathbf{elif}\;z \leq 2.4 \cdot 10^{+121}:\\ \;\;\;\;\frac{x + y}{t \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\frac{z \cdot -0.5}{t}\\ \end{array} \]
      5. Add Preprocessing

      Alternative 7: 81.7% accurate, 0.7× speedup?

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

        1. Initial program 100.0%

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

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

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

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

            \[\leadsto \frac{\color{blue}{z \cdot \frac{-1}{2}}}{t} \]
          4. *-lowering-*.f6487.2

            \[\leadsto \frac{\color{blue}{z \cdot -0.5}}{t} \]
        5. Simplified87.2%

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

        if -3.2999999999999999e155 < z < 6.4999999999999997e120

        1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \frac{0.5}{t} \cdot \left(x + \color{blue}{\left(y - z\right)}\right) \]
        4. Applied egg-rr99.7%

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

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

            \[\leadsto \frac{\frac{1}{2}}{t} \cdot \color{blue}{\left(y + x\right)} \]
          2. +-lowering-+.f6486.3

            \[\leadsto \frac{0.5}{t} \cdot \color{blue}{\left(y + x\right)} \]
        7. Simplified86.3%

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

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

      Alternative 8: 53.7% accurate, 0.8× speedup?

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

        1. Initial program 99.9%

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

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

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

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

            \[\leadsto \frac{\color{blue}{z \cdot \frac{-1}{2}}}{t} \]
          4. *-lowering-*.f6459.1

            \[\leadsto \frac{\color{blue}{z \cdot -0.5}}{t} \]
        5. Simplified59.1%

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

            \[\leadsto \color{blue}{z \cdot \frac{\frac{-1}{2}}{t}} \]
          2. *-commutativeN/A

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

            \[\leadsto \color{blue}{\frac{\frac{-1}{2}}{t} \cdot z} \]
          4. /-lowering-/.f6459.0

            \[\leadsto \color{blue}{\frac{-0.5}{t}} \cdot z \]
        7. Applied egg-rr59.0%

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

        if -4.2000000000000001e-82 < z < 1.25000000000000003e-47

        1. Initial program 100.0%

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

          \[\leadsto \color{blue}{\frac{1}{2} \cdot \frac{x}{t}} \]
        4. Step-by-step derivation
          1. *-commutativeN/A

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

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

            \[\leadsto \color{blue}{\frac{x \cdot \frac{1}{2}}{t}} \]
          4. *-commutativeN/A

            \[\leadsto \frac{\color{blue}{\frac{1}{2} \cdot x}}{t} \]
          5. *-lowering-*.f6452.0

            \[\leadsto \frac{\color{blue}{0.5 \cdot x}}{t} \]
        5. Simplified52.0%

          \[\leadsto \color{blue}{\frac{0.5 \cdot x}{t}} \]
        6. Step-by-step derivation
          1. associate-*l/N/A

            \[\leadsto \color{blue}{\frac{\frac{1}{2}}{t} \cdot x} \]
          2. *-lowering-*.f64N/A

            \[\leadsto \color{blue}{\frac{\frac{1}{2}}{t} \cdot x} \]
          3. /-lowering-/.f6451.9

            \[\leadsto \color{blue}{\frac{0.5}{t}} \cdot x \]
        7. Applied egg-rr51.9%

          \[\leadsto \color{blue}{\frac{0.5}{t} \cdot x} \]
      3. Recombined 2 regimes into one program.
      4. Final simplification56.0%

        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -4.2 \cdot 10^{-82}:\\ \;\;\;\;z \cdot \frac{-0.5}{t}\\ \mathbf{elif}\;z \leq 1.25 \cdot 10^{-47}:\\ \;\;\;\;x \cdot \frac{0.5}{t}\\ \mathbf{else}:\\ \;\;\;\;z \cdot \frac{-0.5}{t}\\ \end{array} \]
      5. Add Preprocessing

      Alternative 9: 68.9% accurate, 0.8× speedup?

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

        1. Initial program 100.0%

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

          \[\leadsto \frac{\color{blue}{x - z}}{t \cdot 2} \]
        4. Step-by-step derivation
          1. --lowering--.f6464.5

            \[\leadsto \frac{\color{blue}{x - z}}{t \cdot 2} \]
        5. Simplified64.5%

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

        if -4.9999999999999998e-179 < (+.f64 x y)

        1. Initial program 100.0%

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

          \[\leadsto \frac{\color{blue}{y - z}}{t \cdot 2} \]
        4. Step-by-step derivation
          1. --lowering--.f6468.6

            \[\leadsto \frac{\color{blue}{y - z}}{t \cdot 2} \]
        5. Simplified68.6%

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

      Alternative 10: 63.5% accurate, 0.8× speedup?

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

        1. Initial program 100.0%

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

          \[\leadsto \frac{\color{blue}{x - z}}{t \cdot 2} \]
        4. Step-by-step derivation
          1. --lowering--.f6471.1

            \[\leadsto \frac{\color{blue}{x - z}}{t \cdot 2} \]
        5. Simplified71.1%

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

        if 4.99999999999999975e60 < (+.f64 x y)

        1. Initial program 99.9%

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

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

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

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

            \[\leadsto \color{blue}{\frac{y \cdot \frac{1}{2}}{t}} \]
          4. *-commutativeN/A

            \[\leadsto \frac{\color{blue}{\frac{1}{2} \cdot y}}{t} \]
          5. *-lowering-*.f6439.3

            \[\leadsto \frac{\color{blue}{0.5 \cdot y}}{t} \]
        5. Simplified39.3%

          \[\leadsto \color{blue}{\frac{0.5 \cdot y}{t}} \]
      3. Recombined 2 regimes into one program.
      4. Final simplification58.6%

        \[\leadsto \begin{array}{l} \mathbf{if}\;x + y \leq 5 \cdot 10^{+60}:\\ \;\;\;\;\frac{x - z}{t \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot 0.5}{t}\\ \end{array} \]
      5. Add Preprocessing

      Alternative 11: 99.7% accurate, 1.0× speedup?

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \frac{0.5}{t} \cdot \left(x + \color{blue}{\left(y - z\right)}\right) \]
      4. Applied egg-rr99.7%

        \[\leadsto \color{blue}{\frac{0.5}{t} \cdot \left(x + \left(y - z\right)\right)} \]
      5. Add Preprocessing

      Alternative 12: 37.3% accurate, 1.4× speedup?

      \[\begin{array}{l} \\ z \cdot \frac{-0.5}{t} \end{array} \]
      (FPCore (x y z t) :precision binary64 (* z (/ -0.5 t)))
      double code(double x, double y, double z, double t) {
      	return z * (-0.5 / t);
      }
      
      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 = z * ((-0.5d0) / t)
      end function
      
      public static double code(double x, double y, double z, double t) {
      	return z * (-0.5 / t);
      }
      
      def code(x, y, z, t):
      	return z * (-0.5 / t)
      
      function code(x, y, z, t)
      	return Float64(z * Float64(-0.5 / t))
      end
      
      function tmp = code(x, y, z, t)
      	tmp = z * (-0.5 / t);
      end
      
      code[x_, y_, z_, t_] := N[(z * N[(-0.5 / t), $MachinePrecision]), $MachinePrecision]
      
      \begin{array}{l}
      
      \\
      z \cdot \frac{-0.5}{t}
      \end{array}
      
      Derivation
      1. Initial program 100.0%

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

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

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

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

          \[\leadsto \frac{\color{blue}{z \cdot \frac{-1}{2}}}{t} \]
        4. *-lowering-*.f6438.0

          \[\leadsto \frac{\color{blue}{z \cdot -0.5}}{t} \]
      5. Simplified38.0%

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

          \[\leadsto \color{blue}{z \cdot \frac{\frac{-1}{2}}{t}} \]
        2. *-commutativeN/A

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

          \[\leadsto \color{blue}{\frac{\frac{-1}{2}}{t} \cdot z} \]
        4. /-lowering-/.f6437.9

          \[\leadsto \color{blue}{\frac{-0.5}{t}} \cdot z \]
      7. Applied egg-rr37.9%

        \[\leadsto \color{blue}{\frac{-0.5}{t} \cdot z} \]
      8. Final simplification37.9%

        \[\leadsto z \cdot \frac{-0.5}{t} \]
      9. Add Preprocessing

      Reproduce

      ?
      herbie shell --seed 2024195 
      (FPCore (x y z t)
        :name "Optimisation.CirclePacking:place from circle-packing-0.1.0.4, B"
        :precision binary64
        (/ (- (+ x y) z) (* t 2.0)))