Gyroid sphere

Percentage Accurate: 46.5% → 90.3%
Time: 5.9s
Alternatives: 10
Speedup: 9.1×

Specification

?
\[\begin{array}{l} \\ \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \end{array} \]
(FPCore (x y z)
 :precision binary64
 (fmax
  (-
   (sqrt
    (+ (+ (pow (* x 30.0) 2.0) (pow (* y 30.0) 2.0)) (pow (* z 30.0) 2.0)))
   25.0)
  (-
   (fabs
    (+
     (+
      (* (sin (* x 30.0)) (cos (* y 30.0)))
      (* (sin (* y 30.0)) (cos (* z 30.0))))
     (* (sin (* z 30.0)) (cos (* x 30.0)))))
   0.2)))
double code(double x, double y, double z) {
	return fmax((sqrt(((pow((x * 30.0), 2.0) + pow((y * 30.0), 2.0)) + pow((z * 30.0), 2.0))) - 25.0), (fabs((((sin((x * 30.0)) * cos((y * 30.0))) + (sin((y * 30.0)) * cos((z * 30.0)))) + (sin((z * 30.0)) * cos((x * 30.0))))) - 0.2));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    code = fmax((sqrt(((((x * 30.0d0) ** 2.0d0) + ((y * 30.0d0) ** 2.0d0)) + ((z * 30.0d0) ** 2.0d0))) - 25.0d0), (abs((((sin((x * 30.0d0)) * cos((y * 30.0d0))) + (sin((y * 30.0d0)) * cos((z * 30.0d0)))) + (sin((z * 30.0d0)) * cos((x * 30.0d0))))) - 0.2d0))
end function
public static double code(double x, double y, double z) {
	return fmax((Math.sqrt(((Math.pow((x * 30.0), 2.0) + Math.pow((y * 30.0), 2.0)) + Math.pow((z * 30.0), 2.0))) - 25.0), (Math.abs((((Math.sin((x * 30.0)) * Math.cos((y * 30.0))) + (Math.sin((y * 30.0)) * Math.cos((z * 30.0)))) + (Math.sin((z * 30.0)) * Math.cos((x * 30.0))))) - 0.2));
}
def code(x, y, z):
	return fmax((math.sqrt(((math.pow((x * 30.0), 2.0) + math.pow((y * 30.0), 2.0)) + math.pow((z * 30.0), 2.0))) - 25.0), (math.fabs((((math.sin((x * 30.0)) * math.cos((y * 30.0))) + (math.sin((y * 30.0)) * math.cos((z * 30.0)))) + (math.sin((z * 30.0)) * math.cos((x * 30.0))))) - 0.2))
function code(x, y, z)
	return fmax(Float64(sqrt(Float64(Float64((Float64(x * 30.0) ^ 2.0) + (Float64(y * 30.0) ^ 2.0)) + (Float64(z * 30.0) ^ 2.0))) - 25.0), Float64(abs(Float64(Float64(Float64(sin(Float64(x * 30.0)) * cos(Float64(y * 30.0))) + Float64(sin(Float64(y * 30.0)) * cos(Float64(z * 30.0)))) + Float64(sin(Float64(z * 30.0)) * cos(Float64(x * 30.0))))) - 0.2))
end
function tmp = code(x, y, z)
	tmp = max((sqrt(((((x * 30.0) ^ 2.0) + ((y * 30.0) ^ 2.0)) + ((z * 30.0) ^ 2.0))) - 25.0), (abs((((sin((x * 30.0)) * cos((y * 30.0))) + (sin((y * 30.0)) * cos((z * 30.0)))) + (sin((z * 30.0)) * cos((x * 30.0))))) - 0.2));
end
code[x_, y_, z_] := N[Max[N[(N[Sqrt[N[(N[(N[Power[N[(x * 30.0), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[N[(y * 30.0), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] + N[Power[N[(z * 30.0), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - 25.0), $MachinePrecision], N[(N[Abs[N[(N[(N[(N[Sin[N[(x * 30.0), $MachinePrecision]], $MachinePrecision] * N[Cos[N[(y * 30.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(N[Sin[N[(y * 30.0), $MachinePrecision]], $MachinePrecision] * N[Cos[N[(z * 30.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[Sin[N[(z * 30.0), $MachinePrecision]], $MachinePrecision] * N[Cos[N[(x * 30.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - 0.2), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}

\\
\mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right)
\end{array}

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 10 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: 46.5% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \end{array} \]
(FPCore (x y z)
 :precision binary64
 (fmax
  (-
   (sqrt
    (+ (+ (pow (* x 30.0) 2.0) (pow (* y 30.0) 2.0)) (pow (* z 30.0) 2.0)))
   25.0)
  (-
   (fabs
    (+
     (+
      (* (sin (* x 30.0)) (cos (* y 30.0)))
      (* (sin (* y 30.0)) (cos (* z 30.0))))
     (* (sin (* z 30.0)) (cos (* x 30.0)))))
   0.2)))
double code(double x, double y, double z) {
	return fmax((sqrt(((pow((x * 30.0), 2.0) + pow((y * 30.0), 2.0)) + pow((z * 30.0), 2.0))) - 25.0), (fabs((((sin((x * 30.0)) * cos((y * 30.0))) + (sin((y * 30.0)) * cos((z * 30.0)))) + (sin((z * 30.0)) * cos((x * 30.0))))) - 0.2));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    code = fmax((sqrt(((((x * 30.0d0) ** 2.0d0) + ((y * 30.0d0) ** 2.0d0)) + ((z * 30.0d0) ** 2.0d0))) - 25.0d0), (abs((((sin((x * 30.0d0)) * cos((y * 30.0d0))) + (sin((y * 30.0d0)) * cos((z * 30.0d0)))) + (sin((z * 30.0d0)) * cos((x * 30.0d0))))) - 0.2d0))
end function
public static double code(double x, double y, double z) {
	return fmax((Math.sqrt(((Math.pow((x * 30.0), 2.0) + Math.pow((y * 30.0), 2.0)) + Math.pow((z * 30.0), 2.0))) - 25.0), (Math.abs((((Math.sin((x * 30.0)) * Math.cos((y * 30.0))) + (Math.sin((y * 30.0)) * Math.cos((z * 30.0)))) + (Math.sin((z * 30.0)) * Math.cos((x * 30.0))))) - 0.2));
}
def code(x, y, z):
	return fmax((math.sqrt(((math.pow((x * 30.0), 2.0) + math.pow((y * 30.0), 2.0)) + math.pow((z * 30.0), 2.0))) - 25.0), (math.fabs((((math.sin((x * 30.0)) * math.cos((y * 30.0))) + (math.sin((y * 30.0)) * math.cos((z * 30.0)))) + (math.sin((z * 30.0)) * math.cos((x * 30.0))))) - 0.2))
function code(x, y, z)
	return fmax(Float64(sqrt(Float64(Float64((Float64(x * 30.0) ^ 2.0) + (Float64(y * 30.0) ^ 2.0)) + (Float64(z * 30.0) ^ 2.0))) - 25.0), Float64(abs(Float64(Float64(Float64(sin(Float64(x * 30.0)) * cos(Float64(y * 30.0))) + Float64(sin(Float64(y * 30.0)) * cos(Float64(z * 30.0)))) + Float64(sin(Float64(z * 30.0)) * cos(Float64(x * 30.0))))) - 0.2))
end
function tmp = code(x, y, z)
	tmp = max((sqrt(((((x * 30.0) ^ 2.0) + ((y * 30.0) ^ 2.0)) + ((z * 30.0) ^ 2.0))) - 25.0), (abs((((sin((x * 30.0)) * cos((y * 30.0))) + (sin((y * 30.0)) * cos((z * 30.0)))) + (sin((z * 30.0)) * cos((x * 30.0))))) - 0.2));
end
code[x_, y_, z_] := N[Max[N[(N[Sqrt[N[(N[(N[Power[N[(x * 30.0), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[N[(y * 30.0), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] + N[Power[N[(z * 30.0), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - 25.0), $MachinePrecision], N[(N[Abs[N[(N[(N[(N[Sin[N[(x * 30.0), $MachinePrecision]], $MachinePrecision] * N[Cos[N[(y * 30.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(N[Sin[N[(y * 30.0), $MachinePrecision]], $MachinePrecision] * N[Cos[N[(z * 30.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[Sin[N[(z * 30.0), $MachinePrecision]], $MachinePrecision] * N[Cos[N[(x * 30.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - 0.2), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}

\\
\mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right)
\end{array}

Alternative 1: 90.3% accurate, 1.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := \sin \left(z \cdot 30\right)\\ \mathbf{if}\;y \leq -1.86 \cdot 10^{+80}:\\ \;\;\;\;\mathsf{max}\left(\mathsf{hypot}\left(z, y\right) \cdot 30 - 25, \left|t\_0\right| - 0.2\right)\\ \mathbf{elif}\;y \leq 5 \cdot 10^{+91}:\\ \;\;\;\;\mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|t\_0 \cdot \cos \left(x \cdot 30\right) + \left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right)\right| - 0.2\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - 0.2\right)\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (let* ((t_0 (sin (* z 30.0))))
   (if (<= y -1.86e+80)
     (fmax (- (* (hypot z y) 30.0) 25.0) (- (fabs t_0) 0.2))
     (if (<= y 5e+91)
       (fmax
        (- (hypot (* z 30.0) (* 30.0 x)) 25.0)
        (-
         (fabs
          (+
           (* t_0 (cos (* x 30.0)))
           (+
            (* (sin (* x 30.0)) (cos (* y 30.0)))
            (* (sin (* y 30.0)) (cos (* z 30.0))))))
         0.2))
       (fmax (* -30.0 x) (- (fabs (* 30.0 (+ x y))) 0.2))))))
double code(double x, double y, double z) {
	double t_0 = sin((z * 30.0));
	double tmp;
	if (y <= -1.86e+80) {
		tmp = fmax(((hypot(z, y) * 30.0) - 25.0), (fabs(t_0) - 0.2));
	} else if (y <= 5e+91) {
		tmp = fmax((hypot((z * 30.0), (30.0 * x)) - 25.0), (fabs(((t_0 * cos((x * 30.0))) + ((sin((x * 30.0)) * cos((y * 30.0))) + (sin((y * 30.0)) * cos((z * 30.0)))))) - 0.2));
	} else {
		tmp = fmax((-30.0 * x), (fabs((30.0 * (x + y))) - 0.2));
	}
	return tmp;
}
public static double code(double x, double y, double z) {
	double t_0 = Math.sin((z * 30.0));
	double tmp;
	if (y <= -1.86e+80) {
		tmp = fmax(((Math.hypot(z, y) * 30.0) - 25.0), (Math.abs(t_0) - 0.2));
	} else if (y <= 5e+91) {
		tmp = fmax((Math.hypot((z * 30.0), (30.0 * x)) - 25.0), (Math.abs(((t_0 * Math.cos((x * 30.0))) + ((Math.sin((x * 30.0)) * Math.cos((y * 30.0))) + (Math.sin((y * 30.0)) * Math.cos((z * 30.0)))))) - 0.2));
	} else {
		tmp = fmax((-30.0 * x), (Math.abs((30.0 * (x + y))) - 0.2));
	}
	return tmp;
}
def code(x, y, z):
	t_0 = math.sin((z * 30.0))
	tmp = 0
	if y <= -1.86e+80:
		tmp = fmax(((math.hypot(z, y) * 30.0) - 25.0), (math.fabs(t_0) - 0.2))
	elif y <= 5e+91:
		tmp = fmax((math.hypot((z * 30.0), (30.0 * x)) - 25.0), (math.fabs(((t_0 * math.cos((x * 30.0))) + ((math.sin((x * 30.0)) * math.cos((y * 30.0))) + (math.sin((y * 30.0)) * math.cos((z * 30.0)))))) - 0.2))
	else:
		tmp = fmax((-30.0 * x), (math.fabs((30.0 * (x + y))) - 0.2))
	return tmp
function code(x, y, z)
	t_0 = sin(Float64(z * 30.0))
	tmp = 0.0
	if (y <= -1.86e+80)
		tmp = fmax(Float64(Float64(hypot(z, y) * 30.0) - 25.0), Float64(abs(t_0) - 0.2));
	elseif (y <= 5e+91)
		tmp = fmax(Float64(hypot(Float64(z * 30.0), Float64(30.0 * x)) - 25.0), Float64(abs(Float64(Float64(t_0 * cos(Float64(x * 30.0))) + Float64(Float64(sin(Float64(x * 30.0)) * cos(Float64(y * 30.0))) + Float64(sin(Float64(y * 30.0)) * cos(Float64(z * 30.0)))))) - 0.2));
	else
		tmp = fmax(Float64(-30.0 * x), Float64(abs(Float64(30.0 * Float64(x + y))) - 0.2));
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	t_0 = sin((z * 30.0));
	tmp = 0.0;
	if (y <= -1.86e+80)
		tmp = max(((hypot(z, y) * 30.0) - 25.0), (abs(t_0) - 0.2));
	elseif (y <= 5e+91)
		tmp = max((hypot((z * 30.0), (30.0 * x)) - 25.0), (abs(((t_0 * cos((x * 30.0))) + ((sin((x * 30.0)) * cos((y * 30.0))) + (sin((y * 30.0)) * cos((z * 30.0)))))) - 0.2));
	else
		tmp = max((-30.0 * x), (abs((30.0 * (x + y))) - 0.2));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := Block[{t$95$0 = N[Sin[N[(z * 30.0), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y, -1.86e+80], N[Max[N[(N[(N[Sqrt[z ^ 2 + y ^ 2], $MachinePrecision] * 30.0), $MachinePrecision] - 25.0), $MachinePrecision], N[(N[Abs[t$95$0], $MachinePrecision] - 0.2), $MachinePrecision]], $MachinePrecision], If[LessEqual[y, 5e+91], N[Max[N[(N[Sqrt[N[(z * 30.0), $MachinePrecision] ^ 2 + N[(30.0 * x), $MachinePrecision] ^ 2], $MachinePrecision] - 25.0), $MachinePrecision], N[(N[Abs[N[(N[(t$95$0 * N[Cos[N[(x * 30.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(N[(N[Sin[N[(x * 30.0), $MachinePrecision]], $MachinePrecision] * N[Cos[N[(y * 30.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(N[Sin[N[(y * 30.0), $MachinePrecision]], $MachinePrecision] * N[Cos[N[(z * 30.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - 0.2), $MachinePrecision]], $MachinePrecision], N[Max[N[(-30.0 * x), $MachinePrecision], N[(N[Abs[N[(30.0 * N[(x + y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - 0.2), $MachinePrecision]], $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := \sin \left(z \cdot 30\right)\\
\mathbf{if}\;y \leq -1.86 \cdot 10^{+80}:\\
\;\;\;\;\mathsf{max}\left(\mathsf{hypot}\left(z, y\right) \cdot 30 - 25, \left|t\_0\right| - 0.2\right)\\

\mathbf{elif}\;y \leq 5 \cdot 10^{+91}:\\
\;\;\;\;\mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|t\_0 \cdot \cos \left(x \cdot 30\right) + \left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right)\right| - 0.2\right)\\

\mathbf{else}:\\
\;\;\;\;\mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - 0.2\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -1.8599999999999999e80

    1. Initial program 32.4%

      \[\mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
    2. Add Preprocessing
    3. Taylor expanded in x around 0

      \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\color{blue}{\sin \left(30 \cdot z\right) + \cos \left(30 \cdot z\right) \cdot \sin \left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
    4. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\cos \left(30 \cdot z\right) \cdot \sin \left(30 \cdot y\right) + \color{blue}{\sin \left(30 \cdot z\right)}\right| - \frac{1}{5}\right) \]
      2. *-commutativeN/A

        \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\sin \left(30 \cdot y\right) \cdot \cos \left(30 \cdot z\right) + \sin \color{blue}{\left(30 \cdot z\right)}\right| - \frac{1}{5}\right) \]
      3. lower-fma.f64N/A

        \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(30 \cdot y\right), \color{blue}{\cos \left(30 \cdot z\right)}, \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
      4. *-commutativeN/A

        \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(\color{blue}{30} \cdot z\right), \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
      5. lift-sin.f64N/A

        \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \color{blue}{\left(30 \cdot z\right)}, \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
      6. lift-*.f64N/A

        \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(\color{blue}{30} \cdot z\right), \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
      7. *-commutativeN/A

        \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
      8. lift-cos.f64N/A

        \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
      9. lift-*.f64N/A

        \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
      10. *-commutativeN/A

        \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
      11. lift-sin.f64N/A

        \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
      12. lift-*.f6432.4

        \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - 0.2\right) \]
    5. Applied rewrites32.4%

      \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\color{blue}{\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)}\right| - 0.2\right) \]
    6. Step-by-step derivation
      1. lift-+.f64N/A

        \[\leadsto \mathsf{max}\left(\sqrt{\color{blue}{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
      2. lift-+.f64N/A

        \[\leadsto \mathsf{max}\left(\sqrt{\color{blue}{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right)} + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
      3. lift-*.f64N/A

        \[\leadsto \mathsf{max}\left(\sqrt{\left({\color{blue}{\left(x \cdot 30\right)}}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
      4. lift-pow.f64N/A

        \[\leadsto \mathsf{max}\left(\sqrt{\left(\color{blue}{{\left(x \cdot 30\right)}^{2}} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
      5. lift-*.f64N/A

        \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\color{blue}{\left(z \cdot 30\right)}}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
      6. lift-pow.f64N/A

        \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + \color{blue}{{\left(z \cdot 30\right)}^{2}}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
      7. associate-+l+N/A

        \[\leadsto \mathsf{max}\left(\sqrt{\color{blue}{{\left(x \cdot 30\right)}^{2} + \left({\left(y \cdot 30\right)}^{2} + {\left(z \cdot 30\right)}^{2}\right)}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
      8. unpow-prod-downN/A

        \[\leadsto \mathsf{max}\left(\sqrt{\color{blue}{{x}^{2} \cdot {30}^{2}} + \left({\left(y \cdot 30\right)}^{2} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
      9. metadata-evalN/A

        \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot \color{blue}{900} + \left({\left(y \cdot 30\right)}^{2} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
      10. lift-pow.f64N/A

        \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left(\color{blue}{{\left(y \cdot 30\right)}^{2}} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
      11. lift-*.f64N/A

        \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left({\color{blue}{\left(y \cdot 30\right)}}^{2} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
      12. unpow-prod-downN/A

        \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left(\color{blue}{{y}^{2} \cdot {30}^{2}} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
      13. metadata-evalN/A

        \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left({y}^{2} \cdot \color{blue}{900} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
      14. *-commutativeN/A

        \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left(\color{blue}{900 \cdot {y}^{2}} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
      15. unpow-prod-downN/A

        \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left(900 \cdot {y}^{2} + \color{blue}{{z}^{2} \cdot {30}^{2}}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
      16. metadata-evalN/A

        \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left(900 \cdot {y}^{2} + {z}^{2} \cdot \color{blue}{900}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
      17. *-commutativeN/A

        \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left(900 \cdot {y}^{2} + \color{blue}{900 \cdot {z}^{2}}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
      18. lower-fma.f64N/A

        \[\leadsto \mathsf{max}\left(\sqrt{\color{blue}{\mathsf{fma}\left({x}^{2}, 900, 900 \cdot {y}^{2} + 900 \cdot {z}^{2}\right)}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
      19. unpow2N/A

        \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(\color{blue}{x \cdot x}, 900, 900 \cdot {y}^{2} + 900 \cdot {z}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
      20. lower-*.f64N/A

        \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(\color{blue}{x \cdot x}, 900, 900 \cdot {y}^{2} + 900 \cdot {z}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
      21. distribute-lft-outN/A

        \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, \color{blue}{900 \cdot \left({y}^{2} + {z}^{2}\right)}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
    7. Applied rewrites32.4%

      \[\leadsto \mathsf{max}\left(\sqrt{\color{blue}{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - 0.2\right) \]
    8. Taylor expanded in y around 0

      \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)} - 25, \left|\sin \left(30 \cdot z\right)\right| - \frac{1}{5}\right) \]
    9. Step-by-step derivation
      1. *-commutativeN/A

        \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)} - 25, \left|\sin \left(z \cdot 30\right)\right| - \frac{1}{5}\right) \]
      2. lift-sin.f64N/A

        \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)} - 25, \left|\sin \left(z \cdot 30\right)\right| - \frac{1}{5}\right) \]
      3. lift-*.f6432.4

        \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)} - 25, \left|\sin \left(z \cdot 30\right)\right| - 0.2\right) \]
    10. Applied rewrites32.4%

      \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)} - 25, \left|\sin \left(z \cdot 30\right)\right| - 0.2\right) \]
    11. Taylor expanded in x around 0

      \[\leadsto \mathsf{max}\left(\color{blue}{30 \cdot \sqrt{{y}^{2} + {z}^{2}}} - 25, \left|\sin \left(z \cdot 30\right)\right| - \frac{1}{5}\right) \]
    12. Step-by-step derivation
      1. Applied rewrites93.1%

        \[\leadsto \mathsf{max}\left(\color{blue}{\mathsf{hypot}\left(z, y\right) \cdot 30} - 25, \left|\sin \left(z \cdot 30\right)\right| - 0.2\right) \]

      if -1.8599999999999999e80 < y < 5.0000000000000002e91

      1. Initial program 54.0%

        \[\mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
      2. Add Preprocessing
      3. Taylor expanded in y around 0

        \[\leadsto \mathsf{max}\left(\color{blue}{\sqrt{900 \cdot {x}^{2} + 900 \cdot {z}^{2}}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
      4. Step-by-step derivation
        1. +-commutativeN/A

          \[\leadsto \mathsf{max}\left(\sqrt{900 \cdot {z}^{2} + 900 \cdot {x}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
        2. *-commutativeN/A

          \[\leadsto \mathsf{max}\left(\sqrt{{z}^{2} \cdot 900 + 900 \cdot {x}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
        3. metadata-evalN/A

          \[\leadsto \mathsf{max}\left(\sqrt{{z}^{2} \cdot {30}^{2} + 900 \cdot {x}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
        4. unpow-prod-downN/A

          \[\leadsto \mathsf{max}\left(\sqrt{{\left(z \cdot 30\right)}^{2} + 900 \cdot {x}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
        5. unpow2N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left(z \cdot 30\right) \cdot \left(z \cdot 30\right) + 900 \cdot {x}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
        6. *-commutativeN/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left(z \cdot 30\right) \cdot \left(z \cdot 30\right) + {x}^{2} \cdot 900} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
        7. metadata-evalN/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left(z \cdot 30\right) \cdot \left(z \cdot 30\right) + {x}^{2} \cdot {30}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
        8. unpow-prod-downN/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left(z \cdot 30\right) \cdot \left(z \cdot 30\right) + {\left(x \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
        9. unpow2N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left(z \cdot 30\right) \cdot \left(z \cdot 30\right) + \left(x \cdot 30\right) \cdot \left(x \cdot 30\right)} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
        10. lower-hypot.f64N/A

          \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, \color{blue}{x \cdot 30}\right) - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
        11. lift-*.f64N/A

          \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, \color{blue}{x} \cdot 30\right) - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
        12. *-commutativeN/A

          \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot \color{blue}{x}\right) - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
        13. lower-*.f6496.0

          \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot \color{blue}{x}\right) - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
      5. Applied rewrites96.0%

        \[\leadsto \mathsf{max}\left(\color{blue}{\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right)} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]

      if 5.0000000000000002e91 < y

      1. Initial program 22.7%

        \[\mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
      2. Add Preprocessing
      3. Taylor expanded in x around -inf

        \[\leadsto \mathsf{max}\left(\color{blue}{-30 \cdot x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
      4. Step-by-step derivation
        1. lower-*.f6413.2

          \[\leadsto \mathsf{max}\left(-30 \cdot \color{blue}{x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
      5. Applied rewrites13.2%

        \[\leadsto \mathsf{max}\left(\color{blue}{-30 \cdot x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
      6. Taylor expanded in z around 0

        \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\color{blue}{\sin \left(30 \cdot y\right) + \cos \left(30 \cdot y\right) \cdot \sin \left(30 \cdot x\right)}\right| - \frac{1}{5}\right) \]
      7. Step-by-step derivation
        1. +-commutativeN/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\cos \left(30 \cdot y\right) \cdot \sin \left(30 \cdot x\right) + \color{blue}{\sin \left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
        2. *-commutativeN/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right) \cdot \cos \left(30 \cdot y\right) + \sin \color{blue}{\left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
        3. lower-fma.f64N/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \color{blue}{\cos \left(30 \cdot y\right)}, \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
        4. lower-sin.f64N/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \color{blue}{\left(30 \cdot y\right)}, \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
        5. lift-*.f64N/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(\color{blue}{30} \cdot y\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
        6. *-commutativeN/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
        7. lift-*.f64N/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
        8. lift-cos.f64N/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
        9. *-commutativeN/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        10. lift-*.f64N/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        11. lift-sin.f6413.3

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - 0.2\right) \]
      8. Applied rewrites13.3%

        \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\color{blue}{\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)}\right| - 0.2\right) \]
      9. Taylor expanded in y around 0

        \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right) + \color{blue}{30 \cdot y}\right| - \frac{1}{5}\right) \]
      10. Step-by-step derivation
        1. +-commutativeN/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot y + \sin \left(30 \cdot x\right)\right| - \frac{1}{5}\right) \]
        2. *-commutativeN/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|y \cdot 30 + \sin \left(30 \cdot x\right)\right| - \frac{1}{5}\right) \]
        3. lower-fma.f64N/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
        4. lift-sin.f64N/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
        5. lift-*.f6482.7

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - 0.2\right) \]
      11. Applied rewrites82.7%

        \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, \color{blue}{30}, \sin \left(30 \cdot x\right)\right)\right| - 0.2\right) \]
      12. Taylor expanded in x around 0

        \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot x + 30 \cdot \color{blue}{y}\right| - \frac{1}{5}\right) \]
      13. Step-by-step derivation
        1. distribute-lft-outN/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - \frac{1}{5}\right) \]
        2. lower-*.f64N/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - \frac{1}{5}\right) \]
        3. lower-+.f6489.5

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - 0.2\right) \]
      14. Applied rewrites89.5%

        \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + \color{blue}{y}\right)\right| - 0.2\right) \]
    13. Recombined 3 regimes into one program.
    14. Final simplification94.1%

      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.86 \cdot 10^{+80}:\\ \;\;\;\;\mathsf{max}\left(\mathsf{hypot}\left(z, y\right) \cdot 30 - 25, \left|\sin \left(z \cdot 30\right)\right| - 0.2\right)\\ \mathbf{elif}\;y \leq 5 \cdot 10^{+91}:\\ \;\;\;\;\mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right) + \left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right)\right| - 0.2\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - 0.2\right)\\ \end{array} \]
    15. Add Preprocessing

    Alternative 2: 79.7% accurate, 0.9× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right) + \left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right)\right| - 0.2\right) \leq 10^{+154}:\\ \;\;\;\;\mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)} - 25, \left|z \cdot 30\right| - 0.2\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, 30 \cdot x\right)\right| - 0.2\right)\\ \end{array} \end{array} \]
    (FPCore (x y z)
     :precision binary64
     (if (<=
          (fmax
           (-
            (sqrt
             (+
              (+ (pow (* x 30.0) 2.0) (pow (* y 30.0) 2.0))
              (pow (* z 30.0) 2.0)))
            25.0)
           (-
            (fabs
             (+
              (* (sin (* z 30.0)) (cos (* x 30.0)))
              (+
               (* (sin (* x 30.0)) (cos (* y 30.0)))
               (* (sin (* y 30.0)) (cos (* z 30.0))))))
            0.2))
          1e+154)
       (fmax
        (- (sqrt (fma (* x x) 900.0 (* 900.0 (fma y y (* z z))))) 25.0)
        (- (fabs (* z 30.0)) 0.2))
       (fmax (* -30.0 x) (- (fabs (fma y 30.0 (* 30.0 x))) 0.2))))
    double code(double x, double y, double z) {
    	double tmp;
    	if (fmax((sqrt(((pow((x * 30.0), 2.0) + pow((y * 30.0), 2.0)) + pow((z * 30.0), 2.0))) - 25.0), (fabs(((sin((z * 30.0)) * cos((x * 30.0))) + ((sin((x * 30.0)) * cos((y * 30.0))) + (sin((y * 30.0)) * cos((z * 30.0)))))) - 0.2)) <= 1e+154) {
    		tmp = fmax((sqrt(fma((x * x), 900.0, (900.0 * fma(y, y, (z * z))))) - 25.0), (fabs((z * 30.0)) - 0.2));
    	} else {
    		tmp = fmax((-30.0 * x), (fabs(fma(y, 30.0, (30.0 * x))) - 0.2));
    	}
    	return tmp;
    }
    
    function code(x, y, z)
    	tmp = 0.0
    	if (fmax(Float64(sqrt(Float64(Float64((Float64(x * 30.0) ^ 2.0) + (Float64(y * 30.0) ^ 2.0)) + (Float64(z * 30.0) ^ 2.0))) - 25.0), Float64(abs(Float64(Float64(sin(Float64(z * 30.0)) * cos(Float64(x * 30.0))) + Float64(Float64(sin(Float64(x * 30.0)) * cos(Float64(y * 30.0))) + Float64(sin(Float64(y * 30.0)) * cos(Float64(z * 30.0)))))) - 0.2)) <= 1e+154)
    		tmp = fmax(Float64(sqrt(fma(Float64(x * x), 900.0, Float64(900.0 * fma(y, y, Float64(z * z))))) - 25.0), Float64(abs(Float64(z * 30.0)) - 0.2));
    	else
    		tmp = fmax(Float64(-30.0 * x), Float64(abs(fma(y, 30.0, Float64(30.0 * x))) - 0.2));
    	end
    	return tmp
    end
    
    code[x_, y_, z_] := If[LessEqual[N[Max[N[(N[Sqrt[N[(N[(N[Power[N[(x * 30.0), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[N[(y * 30.0), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] + N[Power[N[(z * 30.0), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - 25.0), $MachinePrecision], N[(N[Abs[N[(N[(N[Sin[N[(z * 30.0), $MachinePrecision]], $MachinePrecision] * N[Cos[N[(x * 30.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(N[(N[Sin[N[(x * 30.0), $MachinePrecision]], $MachinePrecision] * N[Cos[N[(y * 30.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(N[Sin[N[(y * 30.0), $MachinePrecision]], $MachinePrecision] * N[Cos[N[(z * 30.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - 0.2), $MachinePrecision]], $MachinePrecision], 1e+154], N[Max[N[(N[Sqrt[N[(N[(x * x), $MachinePrecision] * 900.0 + N[(900.0 * N[(y * y + N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - 25.0), $MachinePrecision], N[(N[Abs[N[(z * 30.0), $MachinePrecision]], $MachinePrecision] - 0.2), $MachinePrecision]], $MachinePrecision], N[Max[N[(-30.0 * x), $MachinePrecision], N[(N[Abs[N[(y * 30.0 + N[(30.0 * x), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - 0.2), $MachinePrecision]], $MachinePrecision]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;\mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right) + \left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right)\right| - 0.2\right) \leq 10^{+154}:\\
    \;\;\;\;\mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)} - 25, \left|z \cdot 30\right| - 0.2\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;\mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, 30 \cdot x\right)\right| - 0.2\right)\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if (fmax.f64 (-.f64 (sqrt.f64 (+.f64 (+.f64 (pow.f64 (*.f64 x #s(literal 30 binary64)) #s(literal 2 binary64)) (pow.f64 (*.f64 y #s(literal 30 binary64)) #s(literal 2 binary64))) (pow.f64 (*.f64 z #s(literal 30 binary64)) #s(literal 2 binary64)))) #s(literal 25 binary64)) (-.f64 (fabs.f64 (+.f64 (+.f64 (*.f64 (sin.f64 (*.f64 x #s(literal 30 binary64))) (cos.f64 (*.f64 y #s(literal 30 binary64)))) (*.f64 (sin.f64 (*.f64 y #s(literal 30 binary64))) (cos.f64 (*.f64 z #s(literal 30 binary64))))) (*.f64 (sin.f64 (*.f64 z #s(literal 30 binary64))) (cos.f64 (*.f64 x #s(literal 30 binary64)))))) #s(literal 1/5 binary64))) < 1.00000000000000004e154

      1. Initial program 100.0%

        \[\mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
      2. Add Preprocessing
      3. Taylor expanded in x around 0

        \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\color{blue}{\sin \left(30 \cdot z\right) + \cos \left(30 \cdot z\right) \cdot \sin \left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
      4. Step-by-step derivation
        1. +-commutativeN/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\cos \left(30 \cdot z\right) \cdot \sin \left(30 \cdot y\right) + \color{blue}{\sin \left(30 \cdot z\right)}\right| - \frac{1}{5}\right) \]
        2. *-commutativeN/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\sin \left(30 \cdot y\right) \cdot \cos \left(30 \cdot z\right) + \sin \color{blue}{\left(30 \cdot z\right)}\right| - \frac{1}{5}\right) \]
        3. lower-fma.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(30 \cdot y\right), \color{blue}{\cos \left(30 \cdot z\right)}, \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
        4. *-commutativeN/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(\color{blue}{30} \cdot z\right), \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
        5. lift-sin.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \color{blue}{\left(30 \cdot z\right)}, \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
        6. lift-*.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(\color{blue}{30} \cdot z\right), \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
        7. *-commutativeN/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
        8. lift-cos.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
        9. lift-*.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
        10. *-commutativeN/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        11. lift-sin.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        12. lift-*.f64100.0

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - 0.2\right) \]
      5. Applied rewrites100.0%

        \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\color{blue}{\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)}\right| - 0.2\right) \]
      6. Step-by-step derivation
        1. lift-+.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\color{blue}{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        2. lift-+.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\color{blue}{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right)} + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        3. lift-*.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\color{blue}{\left(x \cdot 30\right)}}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        4. lift-pow.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left(\color{blue}{{\left(x \cdot 30\right)}^{2}} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        5. lift-*.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\color{blue}{\left(z \cdot 30\right)}}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        6. lift-pow.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + \color{blue}{{\left(z \cdot 30\right)}^{2}}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        7. associate-+l+N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\color{blue}{{\left(x \cdot 30\right)}^{2} + \left({\left(y \cdot 30\right)}^{2} + {\left(z \cdot 30\right)}^{2}\right)}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        8. unpow-prod-downN/A

          \[\leadsto \mathsf{max}\left(\sqrt{\color{blue}{{x}^{2} \cdot {30}^{2}} + \left({\left(y \cdot 30\right)}^{2} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        9. metadata-evalN/A

          \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot \color{blue}{900} + \left({\left(y \cdot 30\right)}^{2} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        10. lift-pow.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left(\color{blue}{{\left(y \cdot 30\right)}^{2}} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        11. lift-*.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left({\color{blue}{\left(y \cdot 30\right)}}^{2} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        12. unpow-prod-downN/A

          \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left(\color{blue}{{y}^{2} \cdot {30}^{2}} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        13. metadata-evalN/A

          \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left({y}^{2} \cdot \color{blue}{900} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        14. *-commutativeN/A

          \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left(\color{blue}{900 \cdot {y}^{2}} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        15. unpow-prod-downN/A

          \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left(900 \cdot {y}^{2} + \color{blue}{{z}^{2} \cdot {30}^{2}}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        16. metadata-evalN/A

          \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left(900 \cdot {y}^{2} + {z}^{2} \cdot \color{blue}{900}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        17. *-commutativeN/A

          \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left(900 \cdot {y}^{2} + \color{blue}{900 \cdot {z}^{2}}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        18. lower-fma.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\color{blue}{\mathsf{fma}\left({x}^{2}, 900, 900 \cdot {y}^{2} + 900 \cdot {z}^{2}\right)}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        19. unpow2N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(\color{blue}{x \cdot x}, 900, 900 \cdot {y}^{2} + 900 \cdot {z}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        20. lower-*.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(\color{blue}{x \cdot x}, 900, 900 \cdot {y}^{2} + 900 \cdot {z}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        21. distribute-lft-outN/A

          \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, \color{blue}{900 \cdot \left({y}^{2} + {z}^{2}\right)}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
      7. Applied rewrites99.8%

        \[\leadsto \mathsf{max}\left(\sqrt{\color{blue}{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - 0.2\right) \]
      8. Taylor expanded in y around 0

        \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)} - 25, \left|\sin \left(30 \cdot z\right)\right| - \frac{1}{5}\right) \]
      9. Step-by-step derivation
        1. *-commutativeN/A

          \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)} - 25, \left|\sin \left(z \cdot 30\right)\right| - \frac{1}{5}\right) \]
        2. lift-sin.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)} - 25, \left|\sin \left(z \cdot 30\right)\right| - \frac{1}{5}\right) \]
        3. lift-*.f6498.4

          \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)} - 25, \left|\sin \left(z \cdot 30\right)\right| - 0.2\right) \]
      10. Applied rewrites98.4%

        \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)} - 25, \left|\sin \left(z \cdot 30\right)\right| - 0.2\right) \]
      11. Taylor expanded in z around 0

        \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)} - 25, \left|30 \cdot z\right| - \frac{1}{5}\right) \]
      12. Step-by-step derivation
        1. *-commutativeN/A

          \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)} - 25, \left|z \cdot 30\right| - \frac{1}{5}\right) \]
        2. lift-*.f6497.9

          \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)} - 25, \left|z \cdot 30\right| - 0.2\right) \]
      13. Applied rewrites97.9%

        \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)} - 25, \left|z \cdot 30\right| - 0.2\right) \]

      if 1.00000000000000004e154 < (fmax.f64 (-.f64 (sqrt.f64 (+.f64 (+.f64 (pow.f64 (*.f64 x #s(literal 30 binary64)) #s(literal 2 binary64)) (pow.f64 (*.f64 y #s(literal 30 binary64)) #s(literal 2 binary64))) (pow.f64 (*.f64 z #s(literal 30 binary64)) #s(literal 2 binary64)))) #s(literal 25 binary64)) (-.f64 (fabs.f64 (+.f64 (+.f64 (*.f64 (sin.f64 (*.f64 x #s(literal 30 binary64))) (cos.f64 (*.f64 y #s(literal 30 binary64)))) (*.f64 (sin.f64 (*.f64 y #s(literal 30 binary64))) (cos.f64 (*.f64 z #s(literal 30 binary64))))) (*.f64 (sin.f64 (*.f64 z #s(literal 30 binary64))) (cos.f64 (*.f64 x #s(literal 30 binary64)))))) #s(literal 1/5 binary64)))

      1. Initial program 7.8%

        \[\mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
      2. Add Preprocessing
      3. Taylor expanded in x around -inf

        \[\leadsto \mathsf{max}\left(\color{blue}{-30 \cdot x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
      4. Step-by-step derivation
        1. lower-*.f6422.5

          \[\leadsto \mathsf{max}\left(-30 \cdot \color{blue}{x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
      5. Applied rewrites22.5%

        \[\leadsto \mathsf{max}\left(\color{blue}{-30 \cdot x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
      6. Taylor expanded in z around 0

        \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\color{blue}{\sin \left(30 \cdot y\right) + \cos \left(30 \cdot y\right) \cdot \sin \left(30 \cdot x\right)}\right| - \frac{1}{5}\right) \]
      7. Step-by-step derivation
        1. +-commutativeN/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\cos \left(30 \cdot y\right) \cdot \sin \left(30 \cdot x\right) + \color{blue}{\sin \left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
        2. *-commutativeN/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right) \cdot \cos \left(30 \cdot y\right) + \sin \color{blue}{\left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
        3. lower-fma.f64N/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \color{blue}{\cos \left(30 \cdot y\right)}, \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
        4. lower-sin.f64N/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \color{blue}{\left(30 \cdot y\right)}, \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
        5. lift-*.f64N/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(\color{blue}{30} \cdot y\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
        6. *-commutativeN/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
        7. lift-*.f64N/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
        8. lift-cos.f64N/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
        9. *-commutativeN/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        10. lift-*.f64N/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        11. lift-sin.f6422.4

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - 0.2\right) \]
      8. Applied rewrites22.4%

        \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\color{blue}{\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)}\right| - 0.2\right) \]
      9. Taylor expanded in y around 0

        \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right) + \color{blue}{30 \cdot y}\right| - \frac{1}{5}\right) \]
      10. Step-by-step derivation
        1. +-commutativeN/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot y + \sin \left(30 \cdot x\right)\right| - \frac{1}{5}\right) \]
        2. *-commutativeN/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|y \cdot 30 + \sin \left(30 \cdot x\right)\right| - \frac{1}{5}\right) \]
        3. lower-fma.f64N/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
        4. lift-sin.f64N/A

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
        5. lift-*.f6454.9

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - 0.2\right) \]
      11. Applied rewrites54.9%

        \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, \color{blue}{30}, \sin \left(30 \cdot x\right)\right)\right| - 0.2\right) \]
      12. Taylor expanded in x around 0

        \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, 30 \cdot x\right)\right| - \frac{1}{5}\right) \]
      13. Step-by-step derivation
        1. lift-*.f6470.3

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, 30 \cdot x\right)\right| - 0.2\right) \]
      14. Applied rewrites70.3%

        \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, 30 \cdot x\right)\right| - 0.2\right) \]
    3. Recombined 2 regimes into one program.
    4. Final simplification81.1%

      \[\leadsto \begin{array}{l} \mathbf{if}\;\mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right) + \left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right)\right| - 0.2\right) \leq 10^{+154}:\\ \;\;\;\;\mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)} - 25, \left|z \cdot 30\right| - 0.2\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, 30 \cdot x\right)\right| - 0.2\right)\\ \end{array} \]
    5. Add Preprocessing

    Alternative 3: 89.5% accurate, 3.2× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_0 := \left|\sin \left(z \cdot 30\right)\right| - 0.2\\ \mathbf{if}\;y \leq -1.86 \cdot 10^{+80}:\\ \;\;\;\;\mathsf{max}\left(\mathsf{hypot}\left(z, y\right) \cdot 30 - 25, t\_0\right)\\ \mathbf{elif}\;y \leq 5 \cdot 10^{+91}:\\ \;\;\;\;\mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, t\_0\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - 0.2\right)\\ \end{array} \end{array} \]
    (FPCore (x y z)
     :precision binary64
     (let* ((t_0 (- (fabs (sin (* z 30.0))) 0.2)))
       (if (<= y -1.86e+80)
         (fmax (- (* (hypot z y) 30.0) 25.0) t_0)
         (if (<= y 5e+91)
           (fmax (- (hypot (* z 30.0) (* 30.0 x)) 25.0) t_0)
           (fmax (* -30.0 x) (- (fabs (* 30.0 (+ x y))) 0.2))))))
    double code(double x, double y, double z) {
    	double t_0 = fabs(sin((z * 30.0))) - 0.2;
    	double tmp;
    	if (y <= -1.86e+80) {
    		tmp = fmax(((hypot(z, y) * 30.0) - 25.0), t_0);
    	} else if (y <= 5e+91) {
    		tmp = fmax((hypot((z * 30.0), (30.0 * x)) - 25.0), t_0);
    	} else {
    		tmp = fmax((-30.0 * x), (fabs((30.0 * (x + y))) - 0.2));
    	}
    	return tmp;
    }
    
    public static double code(double x, double y, double z) {
    	double t_0 = Math.abs(Math.sin((z * 30.0))) - 0.2;
    	double tmp;
    	if (y <= -1.86e+80) {
    		tmp = fmax(((Math.hypot(z, y) * 30.0) - 25.0), t_0);
    	} else if (y <= 5e+91) {
    		tmp = fmax((Math.hypot((z * 30.0), (30.0 * x)) - 25.0), t_0);
    	} else {
    		tmp = fmax((-30.0 * x), (Math.abs((30.0 * (x + y))) - 0.2));
    	}
    	return tmp;
    }
    
    def code(x, y, z):
    	t_0 = math.fabs(math.sin((z * 30.0))) - 0.2
    	tmp = 0
    	if y <= -1.86e+80:
    		tmp = fmax(((math.hypot(z, y) * 30.0) - 25.0), t_0)
    	elif y <= 5e+91:
    		tmp = fmax((math.hypot((z * 30.0), (30.0 * x)) - 25.0), t_0)
    	else:
    		tmp = fmax((-30.0 * x), (math.fabs((30.0 * (x + y))) - 0.2))
    	return tmp
    
    function code(x, y, z)
    	t_0 = Float64(abs(sin(Float64(z * 30.0))) - 0.2)
    	tmp = 0.0
    	if (y <= -1.86e+80)
    		tmp = fmax(Float64(Float64(hypot(z, y) * 30.0) - 25.0), t_0);
    	elseif (y <= 5e+91)
    		tmp = fmax(Float64(hypot(Float64(z * 30.0), Float64(30.0 * x)) - 25.0), t_0);
    	else
    		tmp = fmax(Float64(-30.0 * x), Float64(abs(Float64(30.0 * Float64(x + y))) - 0.2));
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z)
    	t_0 = abs(sin((z * 30.0))) - 0.2;
    	tmp = 0.0;
    	if (y <= -1.86e+80)
    		tmp = max(((hypot(z, y) * 30.0) - 25.0), t_0);
    	elseif (y <= 5e+91)
    		tmp = max((hypot((z * 30.0), (30.0 * x)) - 25.0), t_0);
    	else
    		tmp = max((-30.0 * x), (abs((30.0 * (x + y))) - 0.2));
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_] := Block[{t$95$0 = N[(N[Abs[N[Sin[N[(z * 30.0), $MachinePrecision]], $MachinePrecision]], $MachinePrecision] - 0.2), $MachinePrecision]}, If[LessEqual[y, -1.86e+80], N[Max[N[(N[(N[Sqrt[z ^ 2 + y ^ 2], $MachinePrecision] * 30.0), $MachinePrecision] - 25.0), $MachinePrecision], t$95$0], $MachinePrecision], If[LessEqual[y, 5e+91], N[Max[N[(N[Sqrt[N[(z * 30.0), $MachinePrecision] ^ 2 + N[(30.0 * x), $MachinePrecision] ^ 2], $MachinePrecision] - 25.0), $MachinePrecision], t$95$0], $MachinePrecision], N[Max[N[(-30.0 * x), $MachinePrecision], N[(N[Abs[N[(30.0 * N[(x + y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - 0.2), $MachinePrecision]], $MachinePrecision]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_0 := \left|\sin \left(z \cdot 30\right)\right| - 0.2\\
    \mathbf{if}\;y \leq -1.86 \cdot 10^{+80}:\\
    \;\;\;\;\mathsf{max}\left(\mathsf{hypot}\left(z, y\right) \cdot 30 - 25, t\_0\right)\\
    
    \mathbf{elif}\;y \leq 5 \cdot 10^{+91}:\\
    \;\;\;\;\mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, t\_0\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;\mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - 0.2\right)\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if y < -1.8599999999999999e80

      1. Initial program 32.4%

        \[\mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
      2. Add Preprocessing
      3. Taylor expanded in x around 0

        \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\color{blue}{\sin \left(30 \cdot z\right) + \cos \left(30 \cdot z\right) \cdot \sin \left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
      4. Step-by-step derivation
        1. +-commutativeN/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\cos \left(30 \cdot z\right) \cdot \sin \left(30 \cdot y\right) + \color{blue}{\sin \left(30 \cdot z\right)}\right| - \frac{1}{5}\right) \]
        2. *-commutativeN/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\sin \left(30 \cdot y\right) \cdot \cos \left(30 \cdot z\right) + \sin \color{blue}{\left(30 \cdot z\right)}\right| - \frac{1}{5}\right) \]
        3. lower-fma.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(30 \cdot y\right), \color{blue}{\cos \left(30 \cdot z\right)}, \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
        4. *-commutativeN/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(\color{blue}{30} \cdot z\right), \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
        5. lift-sin.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \color{blue}{\left(30 \cdot z\right)}, \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
        6. lift-*.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(\color{blue}{30} \cdot z\right), \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
        7. *-commutativeN/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
        8. lift-cos.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
        9. lift-*.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
        10. *-commutativeN/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        11. lift-sin.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        12. lift-*.f6432.4

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - 0.2\right) \]
      5. Applied rewrites32.4%

        \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\color{blue}{\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)}\right| - 0.2\right) \]
      6. Step-by-step derivation
        1. lift-+.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\color{blue}{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        2. lift-+.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\color{blue}{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right)} + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        3. lift-*.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\color{blue}{\left(x \cdot 30\right)}}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        4. lift-pow.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left(\color{blue}{{\left(x \cdot 30\right)}^{2}} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        5. lift-*.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\color{blue}{\left(z \cdot 30\right)}}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        6. lift-pow.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + \color{blue}{{\left(z \cdot 30\right)}^{2}}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        7. associate-+l+N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\color{blue}{{\left(x \cdot 30\right)}^{2} + \left({\left(y \cdot 30\right)}^{2} + {\left(z \cdot 30\right)}^{2}\right)}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        8. unpow-prod-downN/A

          \[\leadsto \mathsf{max}\left(\sqrt{\color{blue}{{x}^{2} \cdot {30}^{2}} + \left({\left(y \cdot 30\right)}^{2} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        9. metadata-evalN/A

          \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot \color{blue}{900} + \left({\left(y \cdot 30\right)}^{2} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        10. lift-pow.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left(\color{blue}{{\left(y \cdot 30\right)}^{2}} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        11. lift-*.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left({\color{blue}{\left(y \cdot 30\right)}}^{2} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        12. unpow-prod-downN/A

          \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left(\color{blue}{{y}^{2} \cdot {30}^{2}} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        13. metadata-evalN/A

          \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left({y}^{2} \cdot \color{blue}{900} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        14. *-commutativeN/A

          \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left(\color{blue}{900 \cdot {y}^{2}} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        15. unpow-prod-downN/A

          \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left(900 \cdot {y}^{2} + \color{blue}{{z}^{2} \cdot {30}^{2}}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        16. metadata-evalN/A

          \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left(900 \cdot {y}^{2} + {z}^{2} \cdot \color{blue}{900}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        17. *-commutativeN/A

          \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left(900 \cdot {y}^{2} + \color{blue}{900 \cdot {z}^{2}}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        18. lower-fma.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\color{blue}{\mathsf{fma}\left({x}^{2}, 900, 900 \cdot {y}^{2} + 900 \cdot {z}^{2}\right)}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        19. unpow2N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(\color{blue}{x \cdot x}, 900, 900 \cdot {y}^{2} + 900 \cdot {z}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        20. lower-*.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(\color{blue}{x \cdot x}, 900, 900 \cdot {y}^{2} + 900 \cdot {z}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        21. distribute-lft-outN/A

          \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, \color{blue}{900 \cdot \left({y}^{2} + {z}^{2}\right)}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
      7. Applied rewrites32.4%

        \[\leadsto \mathsf{max}\left(\sqrt{\color{blue}{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - 0.2\right) \]
      8. Taylor expanded in y around 0

        \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)} - 25, \left|\sin \left(30 \cdot z\right)\right| - \frac{1}{5}\right) \]
      9. Step-by-step derivation
        1. *-commutativeN/A

          \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)} - 25, \left|\sin \left(z \cdot 30\right)\right| - \frac{1}{5}\right) \]
        2. lift-sin.f64N/A

          \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)} - 25, \left|\sin \left(z \cdot 30\right)\right| - \frac{1}{5}\right) \]
        3. lift-*.f6432.4

          \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)} - 25, \left|\sin \left(z \cdot 30\right)\right| - 0.2\right) \]
      10. Applied rewrites32.4%

        \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)} - 25, \left|\sin \left(z \cdot 30\right)\right| - 0.2\right) \]
      11. Taylor expanded in x around 0

        \[\leadsto \mathsf{max}\left(\color{blue}{30 \cdot \sqrt{{y}^{2} + {z}^{2}}} - 25, \left|\sin \left(z \cdot 30\right)\right| - \frac{1}{5}\right) \]
      12. Step-by-step derivation
        1. Applied rewrites93.1%

          \[\leadsto \mathsf{max}\left(\color{blue}{\mathsf{hypot}\left(z, y\right) \cdot 30} - 25, \left|\sin \left(z \cdot 30\right)\right| - 0.2\right) \]

        if -1.8599999999999999e80 < y < 5.0000000000000002e91

        1. Initial program 54.0%

          \[\mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
        2. Add Preprocessing
        3. Taylor expanded in y around 0

          \[\leadsto \mathsf{max}\left(\color{blue}{\sqrt{900 \cdot {x}^{2} + 900 \cdot {z}^{2}}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
        4. Step-by-step derivation
          1. +-commutativeN/A

            \[\leadsto \mathsf{max}\left(\sqrt{900 \cdot {z}^{2} + 900 \cdot {x}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
          2. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(\sqrt{{z}^{2} \cdot 900 + 900 \cdot {x}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
          3. metadata-evalN/A

            \[\leadsto \mathsf{max}\left(\sqrt{{z}^{2} \cdot {30}^{2} + 900 \cdot {x}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
          4. unpow-prod-downN/A

            \[\leadsto \mathsf{max}\left(\sqrt{{\left(z \cdot 30\right)}^{2} + 900 \cdot {x}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
          5. unpow2N/A

            \[\leadsto \mathsf{max}\left(\sqrt{\left(z \cdot 30\right) \cdot \left(z \cdot 30\right) + 900 \cdot {x}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
          6. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(\sqrt{\left(z \cdot 30\right) \cdot \left(z \cdot 30\right) + {x}^{2} \cdot 900} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
          7. metadata-evalN/A

            \[\leadsto \mathsf{max}\left(\sqrt{\left(z \cdot 30\right) \cdot \left(z \cdot 30\right) + {x}^{2} \cdot {30}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
          8. unpow-prod-downN/A

            \[\leadsto \mathsf{max}\left(\sqrt{\left(z \cdot 30\right) \cdot \left(z \cdot 30\right) + {\left(x \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
          9. unpow2N/A

            \[\leadsto \mathsf{max}\left(\sqrt{\left(z \cdot 30\right) \cdot \left(z \cdot 30\right) + \left(x \cdot 30\right) \cdot \left(x \cdot 30\right)} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
          10. lower-hypot.f64N/A

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, \color{blue}{x \cdot 30}\right) - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
          11. lift-*.f64N/A

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, \color{blue}{x} \cdot 30\right) - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
          12. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot \color{blue}{x}\right) - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
          13. lower-*.f6496.0

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot \color{blue}{x}\right) - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
        5. Applied rewrites96.0%

          \[\leadsto \mathsf{max}\left(\color{blue}{\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right)} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
        6. Taylor expanded in y around 0

          \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\color{blue}{\sin \left(30 \cdot x\right) + \cos \left(30 \cdot x\right) \cdot \sin \left(30 \cdot z\right)}\right| - \frac{1}{5}\right) \]
        7. Step-by-step derivation
          1. +-commutativeN/A

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\cos \left(30 \cdot x\right) \cdot \sin \left(30 \cdot z\right) + \color{blue}{\sin \left(30 \cdot x\right)}\right| - \frac{1}{5}\right) \]
          2. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\sin \left(30 \cdot z\right) \cdot \cos \left(30 \cdot x\right) + \sin \color{blue}{\left(30 \cdot x\right)}\right| - \frac{1}{5}\right) \]
          3. lower-fma.f64N/A

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\mathsf{fma}\left(\sin \left(30 \cdot z\right), \color{blue}{\cos \left(30 \cdot x\right)}, \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
          4. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\mathsf{fma}\left(\sin \left(z \cdot 30\right), \cos \left(\color{blue}{30} \cdot x\right), \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
          5. lift-sin.f64N/A

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\mathsf{fma}\left(\sin \left(z \cdot 30\right), \cos \color{blue}{\left(30 \cdot x\right)}, \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
          6. lift-*.f64N/A

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\mathsf{fma}\left(\sin \left(z \cdot 30\right), \cos \left(\color{blue}{30} \cdot x\right), \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
          7. lower-cos.f64N/A

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\mathsf{fma}\left(\sin \left(z \cdot 30\right), \cos \left(30 \cdot x\right), \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
          8. lift-*.f64N/A

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\mathsf{fma}\left(\sin \left(z \cdot 30\right), \cos \left(30 \cdot x\right), \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
          9. lower-sin.f64N/A

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\mathsf{fma}\left(\sin \left(z \cdot 30\right), \cos \left(30 \cdot x\right), \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
          10. lift-*.f6495.0

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\mathsf{fma}\left(\sin \left(z \cdot 30\right), \cos \left(30 \cdot x\right), \sin \left(30 \cdot x\right)\right)\right| - 0.2\right) \]
        8. Applied rewrites95.0%

          \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\color{blue}{\mathsf{fma}\left(\sin \left(z \cdot 30\right), \cos \left(30 \cdot x\right), \sin \left(30 \cdot x\right)\right)}\right| - 0.2\right) \]
        9. Taylor expanded in x around 0

          \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\sin \left(30 \cdot z\right)\right| - \frac{1}{5}\right) \]
        10. Step-by-step derivation
          1. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\sin \left(z \cdot 30\right)\right| - \frac{1}{5}\right) \]
          2. lift-sin.f64N/A

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\sin \left(z \cdot 30\right)\right| - \frac{1}{5}\right) \]
          3. lift-*.f6495.0

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\sin \left(z \cdot 30\right)\right| - 0.2\right) \]
        11. Applied rewrites95.0%

          \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\sin \left(z \cdot 30\right)\right| - 0.2\right) \]

        if 5.0000000000000002e91 < y

        1. Initial program 22.7%

          \[\mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
        2. Add Preprocessing
        3. Taylor expanded in x around -inf

          \[\leadsto \mathsf{max}\left(\color{blue}{-30 \cdot x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
        4. Step-by-step derivation
          1. lower-*.f6413.2

            \[\leadsto \mathsf{max}\left(-30 \cdot \color{blue}{x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
        5. Applied rewrites13.2%

          \[\leadsto \mathsf{max}\left(\color{blue}{-30 \cdot x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
        6. Taylor expanded in z around 0

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\color{blue}{\sin \left(30 \cdot y\right) + \cos \left(30 \cdot y\right) \cdot \sin \left(30 \cdot x\right)}\right| - \frac{1}{5}\right) \]
        7. Step-by-step derivation
          1. +-commutativeN/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\cos \left(30 \cdot y\right) \cdot \sin \left(30 \cdot x\right) + \color{blue}{\sin \left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
          2. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right) \cdot \cos \left(30 \cdot y\right) + \sin \color{blue}{\left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
          3. lower-fma.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \color{blue}{\cos \left(30 \cdot y\right)}, \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
          4. lower-sin.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \color{blue}{\left(30 \cdot y\right)}, \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
          5. lift-*.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(\color{blue}{30} \cdot y\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
          6. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
          7. lift-*.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
          8. lift-cos.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
          9. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          10. lift-*.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          11. lift-sin.f6413.3

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - 0.2\right) \]
        8. Applied rewrites13.3%

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\color{blue}{\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)}\right| - 0.2\right) \]
        9. Taylor expanded in y around 0

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right) + \color{blue}{30 \cdot y}\right| - \frac{1}{5}\right) \]
        10. Step-by-step derivation
          1. +-commutativeN/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot y + \sin \left(30 \cdot x\right)\right| - \frac{1}{5}\right) \]
          2. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|y \cdot 30 + \sin \left(30 \cdot x\right)\right| - \frac{1}{5}\right) \]
          3. lower-fma.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
          4. lift-sin.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
          5. lift-*.f6482.7

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - 0.2\right) \]
        11. Applied rewrites82.7%

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, \color{blue}{30}, \sin \left(30 \cdot x\right)\right)\right| - 0.2\right) \]
        12. Taylor expanded in x around 0

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot x + 30 \cdot \color{blue}{y}\right| - \frac{1}{5}\right) \]
        13. Step-by-step derivation
          1. distribute-lft-outN/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - \frac{1}{5}\right) \]
          2. lower-*.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - \frac{1}{5}\right) \]
          3. lower-+.f6489.5

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - 0.2\right) \]
        14. Applied rewrites89.5%

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + \color{blue}{y}\right)\right| - 0.2\right) \]
      13. Recombined 3 regimes into one program.
      14. Add Preprocessing

      Alternative 4: 89.0% accurate, 3.3× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1.86 \cdot 10^{+80}:\\ \;\;\;\;\mathsf{max}\left(\mathsf{hypot}\left(z, y\right) \cdot 30 - 25, \left|\sin \left(z \cdot 30\right)\right| - 0.2\right)\\ \mathbf{elif}\;y \leq 5 \cdot 10^{+91}:\\ \;\;\;\;\mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|z \cdot 30\right| - 0.2\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - 0.2\right)\\ \end{array} \end{array} \]
      (FPCore (x y z)
       :precision binary64
       (if (<= y -1.86e+80)
         (fmax (- (* (hypot z y) 30.0) 25.0) (- (fabs (sin (* z 30.0))) 0.2))
         (if (<= y 5e+91)
           (fmax (- (hypot (* z 30.0) (* 30.0 x)) 25.0) (- (fabs (* z 30.0)) 0.2))
           (fmax (* -30.0 x) (- (fabs (* 30.0 (+ x y))) 0.2)))))
      double code(double x, double y, double z) {
      	double tmp;
      	if (y <= -1.86e+80) {
      		tmp = fmax(((hypot(z, y) * 30.0) - 25.0), (fabs(sin((z * 30.0))) - 0.2));
      	} else if (y <= 5e+91) {
      		tmp = fmax((hypot((z * 30.0), (30.0 * x)) - 25.0), (fabs((z * 30.0)) - 0.2));
      	} else {
      		tmp = fmax((-30.0 * x), (fabs((30.0 * (x + y))) - 0.2));
      	}
      	return tmp;
      }
      
      public static double code(double x, double y, double z) {
      	double tmp;
      	if (y <= -1.86e+80) {
      		tmp = fmax(((Math.hypot(z, y) * 30.0) - 25.0), (Math.abs(Math.sin((z * 30.0))) - 0.2));
      	} else if (y <= 5e+91) {
      		tmp = fmax((Math.hypot((z * 30.0), (30.0 * x)) - 25.0), (Math.abs((z * 30.0)) - 0.2));
      	} else {
      		tmp = fmax((-30.0 * x), (Math.abs((30.0 * (x + y))) - 0.2));
      	}
      	return tmp;
      }
      
      def code(x, y, z):
      	tmp = 0
      	if y <= -1.86e+80:
      		tmp = fmax(((math.hypot(z, y) * 30.0) - 25.0), (math.fabs(math.sin((z * 30.0))) - 0.2))
      	elif y <= 5e+91:
      		tmp = fmax((math.hypot((z * 30.0), (30.0 * x)) - 25.0), (math.fabs((z * 30.0)) - 0.2))
      	else:
      		tmp = fmax((-30.0 * x), (math.fabs((30.0 * (x + y))) - 0.2))
      	return tmp
      
      function code(x, y, z)
      	tmp = 0.0
      	if (y <= -1.86e+80)
      		tmp = fmax(Float64(Float64(hypot(z, y) * 30.0) - 25.0), Float64(abs(sin(Float64(z * 30.0))) - 0.2));
      	elseif (y <= 5e+91)
      		tmp = fmax(Float64(hypot(Float64(z * 30.0), Float64(30.0 * x)) - 25.0), Float64(abs(Float64(z * 30.0)) - 0.2));
      	else
      		tmp = fmax(Float64(-30.0 * x), Float64(abs(Float64(30.0 * Float64(x + y))) - 0.2));
      	end
      	return tmp
      end
      
      function tmp_2 = code(x, y, z)
      	tmp = 0.0;
      	if (y <= -1.86e+80)
      		tmp = max(((hypot(z, y) * 30.0) - 25.0), (abs(sin((z * 30.0))) - 0.2));
      	elseif (y <= 5e+91)
      		tmp = max((hypot((z * 30.0), (30.0 * x)) - 25.0), (abs((z * 30.0)) - 0.2));
      	else
      		tmp = max((-30.0 * x), (abs((30.0 * (x + y))) - 0.2));
      	end
      	tmp_2 = tmp;
      end
      
      code[x_, y_, z_] := If[LessEqual[y, -1.86e+80], N[Max[N[(N[(N[Sqrt[z ^ 2 + y ^ 2], $MachinePrecision] * 30.0), $MachinePrecision] - 25.0), $MachinePrecision], N[(N[Abs[N[Sin[N[(z * 30.0), $MachinePrecision]], $MachinePrecision]], $MachinePrecision] - 0.2), $MachinePrecision]], $MachinePrecision], If[LessEqual[y, 5e+91], N[Max[N[(N[Sqrt[N[(z * 30.0), $MachinePrecision] ^ 2 + N[(30.0 * x), $MachinePrecision] ^ 2], $MachinePrecision] - 25.0), $MachinePrecision], N[(N[Abs[N[(z * 30.0), $MachinePrecision]], $MachinePrecision] - 0.2), $MachinePrecision]], $MachinePrecision], N[Max[N[(-30.0 * x), $MachinePrecision], N[(N[Abs[N[(30.0 * N[(x + y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - 0.2), $MachinePrecision]], $MachinePrecision]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;y \leq -1.86 \cdot 10^{+80}:\\
      \;\;\;\;\mathsf{max}\left(\mathsf{hypot}\left(z, y\right) \cdot 30 - 25, \left|\sin \left(z \cdot 30\right)\right| - 0.2\right)\\
      
      \mathbf{elif}\;y \leq 5 \cdot 10^{+91}:\\
      \;\;\;\;\mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|z \cdot 30\right| - 0.2\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;\mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - 0.2\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if y < -1.8599999999999999e80

        1. Initial program 32.4%

          \[\mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
        2. Add Preprocessing
        3. Taylor expanded in x around 0

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\color{blue}{\sin \left(30 \cdot z\right) + \cos \left(30 \cdot z\right) \cdot \sin \left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
        4. Step-by-step derivation
          1. +-commutativeN/A

            \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\cos \left(30 \cdot z\right) \cdot \sin \left(30 \cdot y\right) + \color{blue}{\sin \left(30 \cdot z\right)}\right| - \frac{1}{5}\right) \]
          2. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\sin \left(30 \cdot y\right) \cdot \cos \left(30 \cdot z\right) + \sin \color{blue}{\left(30 \cdot z\right)}\right| - \frac{1}{5}\right) \]
          3. lower-fma.f64N/A

            \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(30 \cdot y\right), \color{blue}{\cos \left(30 \cdot z\right)}, \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
          4. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(\color{blue}{30} \cdot z\right), \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
          5. lift-sin.f64N/A

            \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \color{blue}{\left(30 \cdot z\right)}, \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
          6. lift-*.f64N/A

            \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(\color{blue}{30} \cdot z\right), \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
          7. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
          8. lift-cos.f64N/A

            \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
          9. lift-*.f64N/A

            \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
          10. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          11. lift-sin.f64N/A

            \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          12. lift-*.f6432.4

            \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - 0.2\right) \]
        5. Applied rewrites32.4%

          \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\color{blue}{\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)}\right| - 0.2\right) \]
        6. Step-by-step derivation
          1. lift-+.f64N/A

            \[\leadsto \mathsf{max}\left(\sqrt{\color{blue}{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          2. lift-+.f64N/A

            \[\leadsto \mathsf{max}\left(\sqrt{\color{blue}{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right)} + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          3. lift-*.f64N/A

            \[\leadsto \mathsf{max}\left(\sqrt{\left({\color{blue}{\left(x \cdot 30\right)}}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          4. lift-pow.f64N/A

            \[\leadsto \mathsf{max}\left(\sqrt{\left(\color{blue}{{\left(x \cdot 30\right)}^{2}} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          5. lift-*.f64N/A

            \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\color{blue}{\left(z \cdot 30\right)}}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          6. lift-pow.f64N/A

            \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + \color{blue}{{\left(z \cdot 30\right)}^{2}}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          7. associate-+l+N/A

            \[\leadsto \mathsf{max}\left(\sqrt{\color{blue}{{\left(x \cdot 30\right)}^{2} + \left({\left(y \cdot 30\right)}^{2} + {\left(z \cdot 30\right)}^{2}\right)}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          8. unpow-prod-downN/A

            \[\leadsto \mathsf{max}\left(\sqrt{\color{blue}{{x}^{2} \cdot {30}^{2}} + \left({\left(y \cdot 30\right)}^{2} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          9. metadata-evalN/A

            \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot \color{blue}{900} + \left({\left(y \cdot 30\right)}^{2} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          10. lift-pow.f64N/A

            \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left(\color{blue}{{\left(y \cdot 30\right)}^{2}} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          11. lift-*.f64N/A

            \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left({\color{blue}{\left(y \cdot 30\right)}}^{2} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          12. unpow-prod-downN/A

            \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left(\color{blue}{{y}^{2} \cdot {30}^{2}} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          13. metadata-evalN/A

            \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left({y}^{2} \cdot \color{blue}{900} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          14. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left(\color{blue}{900 \cdot {y}^{2}} + {\left(z \cdot 30\right)}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          15. unpow-prod-downN/A

            \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left(900 \cdot {y}^{2} + \color{blue}{{z}^{2} \cdot {30}^{2}}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          16. metadata-evalN/A

            \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left(900 \cdot {y}^{2} + {z}^{2} \cdot \color{blue}{900}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          17. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(\sqrt{{x}^{2} \cdot 900 + \left(900 \cdot {y}^{2} + \color{blue}{900 \cdot {z}^{2}}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          18. lower-fma.f64N/A

            \[\leadsto \mathsf{max}\left(\sqrt{\color{blue}{\mathsf{fma}\left({x}^{2}, 900, 900 \cdot {y}^{2} + 900 \cdot {z}^{2}\right)}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          19. unpow2N/A

            \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(\color{blue}{x \cdot x}, 900, 900 \cdot {y}^{2} + 900 \cdot {z}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          20. lower-*.f64N/A

            \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(\color{blue}{x \cdot x}, 900, 900 \cdot {y}^{2} + 900 \cdot {z}^{2}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          21. distribute-lft-outN/A

            \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, \color{blue}{900 \cdot \left({y}^{2} + {z}^{2}\right)}\right)} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
        7. Applied rewrites32.4%

          \[\leadsto \mathsf{max}\left(\sqrt{\color{blue}{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - 0.2\right) \]
        8. Taylor expanded in y around 0

          \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)} - 25, \left|\sin \left(30 \cdot z\right)\right| - \frac{1}{5}\right) \]
        9. Step-by-step derivation
          1. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)} - 25, \left|\sin \left(z \cdot 30\right)\right| - \frac{1}{5}\right) \]
          2. lift-sin.f64N/A

            \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)} - 25, \left|\sin \left(z \cdot 30\right)\right| - \frac{1}{5}\right) \]
          3. lift-*.f6432.4

            \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)} - 25, \left|\sin \left(z \cdot 30\right)\right| - 0.2\right) \]
        10. Applied rewrites32.4%

          \[\leadsto \mathsf{max}\left(\sqrt{\mathsf{fma}\left(x \cdot x, 900, 900 \cdot \mathsf{fma}\left(y, y, z \cdot z\right)\right)} - 25, \left|\sin \left(z \cdot 30\right)\right| - 0.2\right) \]
        11. Taylor expanded in x around 0

          \[\leadsto \mathsf{max}\left(\color{blue}{30 \cdot \sqrt{{y}^{2} + {z}^{2}}} - 25, \left|\sin \left(z \cdot 30\right)\right| - \frac{1}{5}\right) \]
        12. Step-by-step derivation
          1. Applied rewrites93.1%

            \[\leadsto \mathsf{max}\left(\color{blue}{\mathsf{hypot}\left(z, y\right) \cdot 30} - 25, \left|\sin \left(z \cdot 30\right)\right| - 0.2\right) \]

          if -1.8599999999999999e80 < y < 5.0000000000000002e91

          1. Initial program 54.0%

            \[\mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
          2. Add Preprocessing
          3. Taylor expanded in y around 0

            \[\leadsto \mathsf{max}\left(\color{blue}{\sqrt{900 \cdot {x}^{2} + 900 \cdot {z}^{2}}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
          4. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \mathsf{max}\left(\sqrt{900 \cdot {z}^{2} + 900 \cdot {x}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
            2. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(\sqrt{{z}^{2} \cdot 900 + 900 \cdot {x}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
            3. metadata-evalN/A

              \[\leadsto \mathsf{max}\left(\sqrt{{z}^{2} \cdot {30}^{2} + 900 \cdot {x}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
            4. unpow-prod-downN/A

              \[\leadsto \mathsf{max}\left(\sqrt{{\left(z \cdot 30\right)}^{2} + 900 \cdot {x}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
            5. unpow2N/A

              \[\leadsto \mathsf{max}\left(\sqrt{\left(z \cdot 30\right) \cdot \left(z \cdot 30\right) + 900 \cdot {x}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
            6. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(\sqrt{\left(z \cdot 30\right) \cdot \left(z \cdot 30\right) + {x}^{2} \cdot 900} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
            7. metadata-evalN/A

              \[\leadsto \mathsf{max}\left(\sqrt{\left(z \cdot 30\right) \cdot \left(z \cdot 30\right) + {x}^{2} \cdot {30}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
            8. unpow-prod-downN/A

              \[\leadsto \mathsf{max}\left(\sqrt{\left(z \cdot 30\right) \cdot \left(z \cdot 30\right) + {\left(x \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
            9. unpow2N/A

              \[\leadsto \mathsf{max}\left(\sqrt{\left(z \cdot 30\right) \cdot \left(z \cdot 30\right) + \left(x \cdot 30\right) \cdot \left(x \cdot 30\right)} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
            10. lower-hypot.f64N/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, \color{blue}{x \cdot 30}\right) - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
            11. lift-*.f64N/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, \color{blue}{x} \cdot 30\right) - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
            12. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot \color{blue}{x}\right) - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
            13. lower-*.f6496.0

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot \color{blue}{x}\right) - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
          5. Applied rewrites96.0%

            \[\leadsto \mathsf{max}\left(\color{blue}{\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right)} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
          6. Taylor expanded in y around 0

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\color{blue}{\sin \left(30 \cdot x\right) + \cos \left(30 \cdot x\right) \cdot \sin \left(30 \cdot z\right)}\right| - \frac{1}{5}\right) \]
          7. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\cos \left(30 \cdot x\right) \cdot \sin \left(30 \cdot z\right) + \color{blue}{\sin \left(30 \cdot x\right)}\right| - \frac{1}{5}\right) \]
            2. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\sin \left(30 \cdot z\right) \cdot \cos \left(30 \cdot x\right) + \sin \color{blue}{\left(30 \cdot x\right)}\right| - \frac{1}{5}\right) \]
            3. lower-fma.f64N/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\mathsf{fma}\left(\sin \left(30 \cdot z\right), \color{blue}{\cos \left(30 \cdot x\right)}, \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
            4. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\mathsf{fma}\left(\sin \left(z \cdot 30\right), \cos \left(\color{blue}{30} \cdot x\right), \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
            5. lift-sin.f64N/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\mathsf{fma}\left(\sin \left(z \cdot 30\right), \cos \color{blue}{\left(30 \cdot x\right)}, \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
            6. lift-*.f64N/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\mathsf{fma}\left(\sin \left(z \cdot 30\right), \cos \left(\color{blue}{30} \cdot x\right), \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
            7. lower-cos.f64N/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\mathsf{fma}\left(\sin \left(z \cdot 30\right), \cos \left(30 \cdot x\right), \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
            8. lift-*.f64N/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\mathsf{fma}\left(\sin \left(z \cdot 30\right), \cos \left(30 \cdot x\right), \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
            9. lower-sin.f64N/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\mathsf{fma}\left(\sin \left(z \cdot 30\right), \cos \left(30 \cdot x\right), \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
            10. lift-*.f6495.0

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\mathsf{fma}\left(\sin \left(z \cdot 30\right), \cos \left(30 \cdot x\right), \sin \left(30 \cdot x\right)\right)\right| - 0.2\right) \]
          8. Applied rewrites95.0%

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\color{blue}{\mathsf{fma}\left(\sin \left(z \cdot 30\right), \cos \left(30 \cdot x\right), \sin \left(30 \cdot x\right)\right)}\right| - 0.2\right) \]
          9. Taylor expanded in x around 0

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\sin \left(30 \cdot z\right)\right| - \frac{1}{5}\right) \]
          10. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\sin \left(z \cdot 30\right)\right| - \frac{1}{5}\right) \]
            2. lift-sin.f64N/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\sin \left(z \cdot 30\right)\right| - \frac{1}{5}\right) \]
            3. lift-*.f6495.0

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\sin \left(z \cdot 30\right)\right| - 0.2\right) \]
          11. Applied rewrites95.0%

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\sin \left(z \cdot 30\right)\right| - 0.2\right) \]
          12. Taylor expanded in z around 0

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|30 \cdot z\right| - \frac{1}{5}\right) \]
          13. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|z \cdot 30\right| - \frac{1}{5}\right) \]
            2. lift-*.f6494.6

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|z \cdot 30\right| - 0.2\right) \]
          14. Applied rewrites94.6%

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|z \cdot 30\right| - 0.2\right) \]

          if 5.0000000000000002e91 < y

          1. Initial program 22.7%

            \[\mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
          2. Add Preprocessing
          3. Taylor expanded in x around -inf

            \[\leadsto \mathsf{max}\left(\color{blue}{-30 \cdot x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
          4. Step-by-step derivation
            1. lower-*.f6413.2

              \[\leadsto \mathsf{max}\left(-30 \cdot \color{blue}{x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
          5. Applied rewrites13.2%

            \[\leadsto \mathsf{max}\left(\color{blue}{-30 \cdot x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
          6. Taylor expanded in z around 0

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\color{blue}{\sin \left(30 \cdot y\right) + \cos \left(30 \cdot y\right) \cdot \sin \left(30 \cdot x\right)}\right| - \frac{1}{5}\right) \]
          7. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\cos \left(30 \cdot y\right) \cdot \sin \left(30 \cdot x\right) + \color{blue}{\sin \left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
            2. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right) \cdot \cos \left(30 \cdot y\right) + \sin \color{blue}{\left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
            3. lower-fma.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \color{blue}{\cos \left(30 \cdot y\right)}, \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            4. lower-sin.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \color{blue}{\left(30 \cdot y\right)}, \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            5. lift-*.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(\color{blue}{30} \cdot y\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            6. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            7. lift-*.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            8. lift-cos.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            9. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
            10. lift-*.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
            11. lift-sin.f6413.3

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - 0.2\right) \]
          8. Applied rewrites13.3%

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\color{blue}{\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)}\right| - 0.2\right) \]
          9. Taylor expanded in y around 0

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right) + \color{blue}{30 \cdot y}\right| - \frac{1}{5}\right) \]
          10. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot y + \sin \left(30 \cdot x\right)\right| - \frac{1}{5}\right) \]
            2. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|y \cdot 30 + \sin \left(30 \cdot x\right)\right| - \frac{1}{5}\right) \]
            3. lower-fma.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
            4. lift-sin.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
            5. lift-*.f6482.7

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - 0.2\right) \]
          11. Applied rewrites82.7%

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, \color{blue}{30}, \sin \left(30 \cdot x\right)\right)\right| - 0.2\right) \]
          12. Taylor expanded in x around 0

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot x + 30 \cdot \color{blue}{y}\right| - \frac{1}{5}\right) \]
          13. Step-by-step derivation
            1. distribute-lft-outN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - \frac{1}{5}\right) \]
            2. lower-*.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - \frac{1}{5}\right) \]
            3. lower-+.f6489.5

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - 0.2\right) \]
          14. Applied rewrites89.5%

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + \color{blue}{y}\right)\right| - 0.2\right) \]
        13. Recombined 3 regimes into one program.
        14. Add Preprocessing

        Alternative 5: 88.4% accurate, 4.6× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1.15 \cdot 10^{+23} \lor \neg \left(y \leq 5 \cdot 10^{+91}\right):\\ \;\;\;\;\mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - 0.2\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|z \cdot 30\right| - 0.2\right)\\ \end{array} \end{array} \]
        (FPCore (x y z)
         :precision binary64
         (if (or (<= y -1.15e+23) (not (<= y 5e+91)))
           (fmax (* -30.0 x) (- (fabs (* 30.0 (+ x y))) 0.2))
           (fmax (- (hypot (* z 30.0) (* 30.0 x)) 25.0) (- (fabs (* z 30.0)) 0.2))))
        double code(double x, double y, double z) {
        	double tmp;
        	if ((y <= -1.15e+23) || !(y <= 5e+91)) {
        		tmp = fmax((-30.0 * x), (fabs((30.0 * (x + y))) - 0.2));
        	} else {
        		tmp = fmax((hypot((z * 30.0), (30.0 * x)) - 25.0), (fabs((z * 30.0)) - 0.2));
        	}
        	return tmp;
        }
        
        public static double code(double x, double y, double z) {
        	double tmp;
        	if ((y <= -1.15e+23) || !(y <= 5e+91)) {
        		tmp = fmax((-30.0 * x), (Math.abs((30.0 * (x + y))) - 0.2));
        	} else {
        		tmp = fmax((Math.hypot((z * 30.0), (30.0 * x)) - 25.0), (Math.abs((z * 30.0)) - 0.2));
        	}
        	return tmp;
        }
        
        def code(x, y, z):
        	tmp = 0
        	if (y <= -1.15e+23) or not (y <= 5e+91):
        		tmp = fmax((-30.0 * x), (math.fabs((30.0 * (x + y))) - 0.2))
        	else:
        		tmp = fmax((math.hypot((z * 30.0), (30.0 * x)) - 25.0), (math.fabs((z * 30.0)) - 0.2))
        	return tmp
        
        function code(x, y, z)
        	tmp = 0.0
        	if ((y <= -1.15e+23) || !(y <= 5e+91))
        		tmp = fmax(Float64(-30.0 * x), Float64(abs(Float64(30.0 * Float64(x + y))) - 0.2));
        	else
        		tmp = fmax(Float64(hypot(Float64(z * 30.0), Float64(30.0 * x)) - 25.0), Float64(abs(Float64(z * 30.0)) - 0.2));
        	end
        	return tmp
        end
        
        function tmp_2 = code(x, y, z)
        	tmp = 0.0;
        	if ((y <= -1.15e+23) || ~((y <= 5e+91)))
        		tmp = max((-30.0 * x), (abs((30.0 * (x + y))) - 0.2));
        	else
        		tmp = max((hypot((z * 30.0), (30.0 * x)) - 25.0), (abs((z * 30.0)) - 0.2));
        	end
        	tmp_2 = tmp;
        end
        
        code[x_, y_, z_] := If[Or[LessEqual[y, -1.15e+23], N[Not[LessEqual[y, 5e+91]], $MachinePrecision]], N[Max[N[(-30.0 * x), $MachinePrecision], N[(N[Abs[N[(30.0 * N[(x + y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - 0.2), $MachinePrecision]], $MachinePrecision], N[Max[N[(N[Sqrt[N[(z * 30.0), $MachinePrecision] ^ 2 + N[(30.0 * x), $MachinePrecision] ^ 2], $MachinePrecision] - 25.0), $MachinePrecision], N[(N[Abs[N[(z * 30.0), $MachinePrecision]], $MachinePrecision] - 0.2), $MachinePrecision]], $MachinePrecision]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;y \leq -1.15 \cdot 10^{+23} \lor \neg \left(y \leq 5 \cdot 10^{+91}\right):\\
        \;\;\;\;\mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - 0.2\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;\mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|z \cdot 30\right| - 0.2\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if y < -1.15e23 or 5.0000000000000002e91 < y

          1. Initial program 30.0%

            \[\mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
          2. Add Preprocessing
          3. Taylor expanded in x around -inf

            \[\leadsto \mathsf{max}\left(\color{blue}{-30 \cdot x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
          4. Step-by-step derivation
            1. lower-*.f6412.0

              \[\leadsto \mathsf{max}\left(-30 \cdot \color{blue}{x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
          5. Applied rewrites12.0%

            \[\leadsto \mathsf{max}\left(\color{blue}{-30 \cdot x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
          6. Taylor expanded in z around 0

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\color{blue}{\sin \left(30 \cdot y\right) + \cos \left(30 \cdot y\right) \cdot \sin \left(30 \cdot x\right)}\right| - \frac{1}{5}\right) \]
          7. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\cos \left(30 \cdot y\right) \cdot \sin \left(30 \cdot x\right) + \color{blue}{\sin \left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
            2. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right) \cdot \cos \left(30 \cdot y\right) + \sin \color{blue}{\left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
            3. lower-fma.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \color{blue}{\cos \left(30 \cdot y\right)}, \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            4. lower-sin.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \color{blue}{\left(30 \cdot y\right)}, \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            5. lift-*.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(\color{blue}{30} \cdot y\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            6. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            7. lift-*.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            8. lift-cos.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            9. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
            10. lift-*.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
            11. lift-sin.f6412.1

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - 0.2\right) \]
          8. Applied rewrites12.1%

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\color{blue}{\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)}\right| - 0.2\right) \]
          9. Taylor expanded in y around 0

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right) + \color{blue}{30 \cdot y}\right| - \frac{1}{5}\right) \]
          10. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot y + \sin \left(30 \cdot x\right)\right| - \frac{1}{5}\right) \]
            2. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|y \cdot 30 + \sin \left(30 \cdot x\right)\right| - \frac{1}{5}\right) \]
            3. lower-fma.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
            4. lift-sin.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
            5. lift-*.f6479.7

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - 0.2\right) \]
          11. Applied rewrites79.7%

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, \color{blue}{30}, \sin \left(30 \cdot x\right)\right)\right| - 0.2\right) \]
          12. Taylor expanded in x around 0

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot x + 30 \cdot \color{blue}{y}\right| - \frac{1}{5}\right) \]
          13. Step-by-step derivation
            1. distribute-lft-outN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - \frac{1}{5}\right) \]
            2. lower-*.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - \frac{1}{5}\right) \]
            3. lower-+.f6486.0

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - 0.2\right) \]
          14. Applied rewrites86.0%

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + \color{blue}{y}\right)\right| - 0.2\right) \]

          if -1.15e23 < y < 5.0000000000000002e91

          1. Initial program 53.1%

            \[\mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
          2. Add Preprocessing
          3. Taylor expanded in y around 0

            \[\leadsto \mathsf{max}\left(\color{blue}{\sqrt{900 \cdot {x}^{2} + 900 \cdot {z}^{2}}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
          4. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \mathsf{max}\left(\sqrt{900 \cdot {z}^{2} + 900 \cdot {x}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
            2. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(\sqrt{{z}^{2} \cdot 900 + 900 \cdot {x}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
            3. metadata-evalN/A

              \[\leadsto \mathsf{max}\left(\sqrt{{z}^{2} \cdot {30}^{2} + 900 \cdot {x}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
            4. unpow-prod-downN/A

              \[\leadsto \mathsf{max}\left(\sqrt{{\left(z \cdot 30\right)}^{2} + 900 \cdot {x}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
            5. unpow2N/A

              \[\leadsto \mathsf{max}\left(\sqrt{\left(z \cdot 30\right) \cdot \left(z \cdot 30\right) + 900 \cdot {x}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
            6. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(\sqrt{\left(z \cdot 30\right) \cdot \left(z \cdot 30\right) + {x}^{2} \cdot 900} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
            7. metadata-evalN/A

              \[\leadsto \mathsf{max}\left(\sqrt{\left(z \cdot 30\right) \cdot \left(z \cdot 30\right) + {x}^{2} \cdot {30}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
            8. unpow-prod-downN/A

              \[\leadsto \mathsf{max}\left(\sqrt{\left(z \cdot 30\right) \cdot \left(z \cdot 30\right) + {\left(x \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
            9. unpow2N/A

              \[\leadsto \mathsf{max}\left(\sqrt{\left(z \cdot 30\right) \cdot \left(z \cdot 30\right) + \left(x \cdot 30\right) \cdot \left(x \cdot 30\right)} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
            10. lower-hypot.f64N/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, \color{blue}{x \cdot 30}\right) - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
            11. lift-*.f64N/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, \color{blue}{x} \cdot 30\right) - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
            12. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot \color{blue}{x}\right) - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
            13. lower-*.f6497.0

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot \color{blue}{x}\right) - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
          5. Applied rewrites97.0%

            \[\leadsto \mathsf{max}\left(\color{blue}{\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right)} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
          6. Taylor expanded in y around 0

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\color{blue}{\sin \left(30 \cdot x\right) + \cos \left(30 \cdot x\right) \cdot \sin \left(30 \cdot z\right)}\right| - \frac{1}{5}\right) \]
          7. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\cos \left(30 \cdot x\right) \cdot \sin \left(30 \cdot z\right) + \color{blue}{\sin \left(30 \cdot x\right)}\right| - \frac{1}{5}\right) \]
            2. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\sin \left(30 \cdot z\right) \cdot \cos \left(30 \cdot x\right) + \sin \color{blue}{\left(30 \cdot x\right)}\right| - \frac{1}{5}\right) \]
            3. lower-fma.f64N/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\mathsf{fma}\left(\sin \left(30 \cdot z\right), \color{blue}{\cos \left(30 \cdot x\right)}, \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
            4. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\mathsf{fma}\left(\sin \left(z \cdot 30\right), \cos \left(\color{blue}{30} \cdot x\right), \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
            5. lift-sin.f64N/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\mathsf{fma}\left(\sin \left(z \cdot 30\right), \cos \color{blue}{\left(30 \cdot x\right)}, \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
            6. lift-*.f64N/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\mathsf{fma}\left(\sin \left(z \cdot 30\right), \cos \left(\color{blue}{30} \cdot x\right), \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
            7. lower-cos.f64N/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\mathsf{fma}\left(\sin \left(z \cdot 30\right), \cos \left(30 \cdot x\right), \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
            8. lift-*.f64N/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\mathsf{fma}\left(\sin \left(z \cdot 30\right), \cos \left(30 \cdot x\right), \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
            9. lower-sin.f64N/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\mathsf{fma}\left(\sin \left(z \cdot 30\right), \cos \left(30 \cdot x\right), \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
            10. lift-*.f6496.1

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\mathsf{fma}\left(\sin \left(z \cdot 30\right), \cos \left(30 \cdot x\right), \sin \left(30 \cdot x\right)\right)\right| - 0.2\right) \]
          8. Applied rewrites96.1%

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\color{blue}{\mathsf{fma}\left(\sin \left(z \cdot 30\right), \cos \left(30 \cdot x\right), \sin \left(30 \cdot x\right)\right)}\right| - 0.2\right) \]
          9. Taylor expanded in x around 0

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\sin \left(30 \cdot z\right)\right| - \frac{1}{5}\right) \]
          10. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\sin \left(z \cdot 30\right)\right| - \frac{1}{5}\right) \]
            2. lift-sin.f64N/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\sin \left(z \cdot 30\right)\right| - \frac{1}{5}\right) \]
            3. lift-*.f6496.1

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\sin \left(z \cdot 30\right)\right| - 0.2\right) \]
          11. Applied rewrites96.1%

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|\sin \left(z \cdot 30\right)\right| - 0.2\right) \]
          12. Taylor expanded in z around 0

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|30 \cdot z\right| - \frac{1}{5}\right) \]
          13. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|z \cdot 30\right| - \frac{1}{5}\right) \]
            2. lift-*.f6495.7

              \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|z \cdot 30\right| - 0.2\right) \]
          14. Applied rewrites95.7%

            \[\leadsto \mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|z \cdot 30\right| - 0.2\right) \]
        3. Recombined 2 regimes into one program.
        4. Final simplification91.8%

          \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.15 \cdot 10^{+23} \lor \neg \left(y \leq 5 \cdot 10^{+91}\right):\\ \;\;\;\;\mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - 0.2\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{max}\left(\mathsf{hypot}\left(z \cdot 30, 30 \cdot x\right) - 25, \left|z \cdot 30\right| - 0.2\right)\\ \end{array} \]
        5. Add Preprocessing

        Alternative 6: 76.2% accurate, 7.4× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -9.2 \cdot 10^{+32}:\\ \;\;\;\;\mathsf{max}\left(-30 \cdot x, \left|y \cdot 30\right| - 0.2\right)\\ \mathbf{elif}\;x \leq 29:\\ \;\;\;\;\mathsf{max}\left(\sqrt{\left(y \cdot y\right) \cdot 900} - 25, \left|z \cdot 30\right| - 0.2\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - 0.2\right)\\ \end{array} \end{array} \]
        (FPCore (x y z)
         :precision binary64
         (if (<= x -9.2e+32)
           (fmax (* -30.0 x) (- (fabs (* y 30.0)) 0.2))
           (if (<= x 29.0)
             (fmax (- (sqrt (* (* y y) 900.0)) 25.0) (- (fabs (* z 30.0)) 0.2))
             (fmax (* -30.0 x) (- (fabs (* 30.0 (+ x y))) 0.2)))))
        double code(double x, double y, double z) {
        	double tmp;
        	if (x <= -9.2e+32) {
        		tmp = fmax((-30.0 * x), (fabs((y * 30.0)) - 0.2));
        	} else if (x <= 29.0) {
        		tmp = fmax((sqrt(((y * y) * 900.0)) - 25.0), (fabs((z * 30.0)) - 0.2));
        	} else {
        		tmp = fmax((-30.0 * x), (fabs((30.0 * (x + y))) - 0.2));
        	}
        	return tmp;
        }
        
        module fmin_fmax_functions
            implicit none
            private
            public fmax
            public fmin
        
            interface fmax
                module procedure fmax88
                module procedure fmax44
                module procedure fmax84
                module procedure fmax48
            end interface
            interface fmin
                module procedure fmin88
                module procedure fmin44
                module procedure fmin84
                module procedure fmin48
            end interface
        contains
            real(8) function fmax88(x, y) result (res)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
            end function
            real(4) function fmax44(x, y) result (res)
                real(4), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
            end function
            real(8) function fmax84(x, y) result(res)
                real(8), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
            end function
            real(8) function fmax48(x, y) result(res)
                real(4), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
            end function
            real(8) function fmin88(x, y) result (res)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
            end function
            real(4) function fmin44(x, y) result (res)
                real(4), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
            end function
            real(8) function fmin84(x, y) result(res)
                real(8), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
            end function
            real(8) function fmin48(x, y) result(res)
                real(4), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
            end function
        end module
        
        real(8) function code(x, y, z)
        use fmin_fmax_functions
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            real(8), intent (in) :: z
            real(8) :: tmp
            if (x <= (-9.2d+32)) then
                tmp = fmax(((-30.0d0) * x), (abs((y * 30.0d0)) - 0.2d0))
            else if (x <= 29.0d0) then
                tmp = fmax((sqrt(((y * y) * 900.0d0)) - 25.0d0), (abs((z * 30.0d0)) - 0.2d0))
            else
                tmp = fmax(((-30.0d0) * x), (abs((30.0d0 * (x + y))) - 0.2d0))
            end if
            code = tmp
        end function
        
        public static double code(double x, double y, double z) {
        	double tmp;
        	if (x <= -9.2e+32) {
        		tmp = fmax((-30.0 * x), (Math.abs((y * 30.0)) - 0.2));
        	} else if (x <= 29.0) {
        		tmp = fmax((Math.sqrt(((y * y) * 900.0)) - 25.0), (Math.abs((z * 30.0)) - 0.2));
        	} else {
        		tmp = fmax((-30.0 * x), (Math.abs((30.0 * (x + y))) - 0.2));
        	}
        	return tmp;
        }
        
        def code(x, y, z):
        	tmp = 0
        	if x <= -9.2e+32:
        		tmp = fmax((-30.0 * x), (math.fabs((y * 30.0)) - 0.2))
        	elif x <= 29.0:
        		tmp = fmax((math.sqrt(((y * y) * 900.0)) - 25.0), (math.fabs((z * 30.0)) - 0.2))
        	else:
        		tmp = fmax((-30.0 * x), (math.fabs((30.0 * (x + y))) - 0.2))
        	return tmp
        
        function code(x, y, z)
        	tmp = 0.0
        	if (x <= -9.2e+32)
        		tmp = fmax(Float64(-30.0 * x), Float64(abs(Float64(y * 30.0)) - 0.2));
        	elseif (x <= 29.0)
        		tmp = fmax(Float64(sqrt(Float64(Float64(y * y) * 900.0)) - 25.0), Float64(abs(Float64(z * 30.0)) - 0.2));
        	else
        		tmp = fmax(Float64(-30.0 * x), Float64(abs(Float64(30.0 * Float64(x + y))) - 0.2));
        	end
        	return tmp
        end
        
        function tmp_2 = code(x, y, z)
        	tmp = 0.0;
        	if (x <= -9.2e+32)
        		tmp = max((-30.0 * x), (abs((y * 30.0)) - 0.2));
        	elseif (x <= 29.0)
        		tmp = max((sqrt(((y * y) * 900.0)) - 25.0), (abs((z * 30.0)) - 0.2));
        	else
        		tmp = max((-30.0 * x), (abs((30.0 * (x + y))) - 0.2));
        	end
        	tmp_2 = tmp;
        end
        
        code[x_, y_, z_] := If[LessEqual[x, -9.2e+32], N[Max[N[(-30.0 * x), $MachinePrecision], N[(N[Abs[N[(y * 30.0), $MachinePrecision]], $MachinePrecision] - 0.2), $MachinePrecision]], $MachinePrecision], If[LessEqual[x, 29.0], N[Max[N[(N[Sqrt[N[(N[(y * y), $MachinePrecision] * 900.0), $MachinePrecision]], $MachinePrecision] - 25.0), $MachinePrecision], N[(N[Abs[N[(z * 30.0), $MachinePrecision]], $MachinePrecision] - 0.2), $MachinePrecision]], $MachinePrecision], N[Max[N[(-30.0 * x), $MachinePrecision], N[(N[Abs[N[(30.0 * N[(x + y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - 0.2), $MachinePrecision]], $MachinePrecision]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;x \leq -9.2 \cdot 10^{+32}:\\
        \;\;\;\;\mathsf{max}\left(-30 \cdot x, \left|y \cdot 30\right| - 0.2\right)\\
        
        \mathbf{elif}\;x \leq 29:\\
        \;\;\;\;\mathsf{max}\left(\sqrt{\left(y \cdot y\right) \cdot 900} - 25, \left|z \cdot 30\right| - 0.2\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;\mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - 0.2\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if x < -9.1999999999999998e32

          1. Initial program 32.0%

            \[\mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
          2. Add Preprocessing
          3. Taylor expanded in x around -inf

            \[\leadsto \mathsf{max}\left(\color{blue}{-30 \cdot x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
          4. Step-by-step derivation
            1. lower-*.f6462.7

              \[\leadsto \mathsf{max}\left(-30 \cdot \color{blue}{x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
          5. Applied rewrites62.7%

            \[\leadsto \mathsf{max}\left(\color{blue}{-30 \cdot x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
          6. Taylor expanded in z around 0

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\color{blue}{\sin \left(30 \cdot y\right) + \cos \left(30 \cdot y\right) \cdot \sin \left(30 \cdot x\right)}\right| - \frac{1}{5}\right) \]
          7. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\cos \left(30 \cdot y\right) \cdot \sin \left(30 \cdot x\right) + \color{blue}{\sin \left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
            2. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right) \cdot \cos \left(30 \cdot y\right) + \sin \color{blue}{\left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
            3. lower-fma.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \color{blue}{\cos \left(30 \cdot y\right)}, \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            4. lower-sin.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \color{blue}{\left(30 \cdot y\right)}, \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            5. lift-*.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(\color{blue}{30} \cdot y\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            6. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            7. lift-*.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            8. lift-cos.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            9. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
            10. lift-*.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
            11. lift-sin.f6462.7

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - 0.2\right) \]
          8. Applied rewrites62.7%

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\color{blue}{\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)}\right| - 0.2\right) \]
          9. Taylor expanded in y around 0

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right) + \color{blue}{30 \cdot y}\right| - \frac{1}{5}\right) \]
          10. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot y + \sin \left(30 \cdot x\right)\right| - \frac{1}{5}\right) \]
            2. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|y \cdot 30 + \sin \left(30 \cdot x\right)\right| - \frac{1}{5}\right) \]
            3. lower-fma.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
            4. lift-sin.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
            5. lift-*.f6481.5

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - 0.2\right) \]
          11. Applied rewrites81.5%

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, \color{blue}{30}, \sin \left(30 \cdot x\right)\right)\right| - 0.2\right) \]
          12. Taylor expanded in x around 0

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot y\right| - \frac{1}{5}\right) \]
          13. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|y \cdot 30\right| - \frac{1}{5}\right) \]
            2. lower-*.f6481.5

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|y \cdot 30\right| - 0.2\right) \]
          14. Applied rewrites81.5%

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|y \cdot 30\right| - 0.2\right) \]

          if -9.1999999999999998e32 < x < 29

          1. Initial program 59.1%

            \[\mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
          2. Add Preprocessing
          3. Taylor expanded in x around 0

            \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\color{blue}{\sin \left(30 \cdot z\right) + \cos \left(30 \cdot z\right) \cdot \sin \left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
          4. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\cos \left(30 \cdot z\right) \cdot \sin \left(30 \cdot y\right) + \color{blue}{\sin \left(30 \cdot z\right)}\right| - \frac{1}{5}\right) \]
            2. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\sin \left(30 \cdot y\right) \cdot \cos \left(30 \cdot z\right) + \sin \color{blue}{\left(30 \cdot z\right)}\right| - \frac{1}{5}\right) \]
            3. lower-fma.f64N/A

              \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(30 \cdot y\right), \color{blue}{\cos \left(30 \cdot z\right)}, \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
            4. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(\color{blue}{30} \cdot z\right), \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
            5. lift-sin.f64N/A

              \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \color{blue}{\left(30 \cdot z\right)}, \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
            6. lift-*.f64N/A

              \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(\color{blue}{30} \cdot z\right), \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
            7. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
            8. lift-cos.f64N/A

              \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
            9. lift-*.f64N/A

              \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(30 \cdot z\right)\right)\right| - \frac{1}{5}\right) \]
            10. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
            11. lift-sin.f64N/A

              \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
            12. lift-*.f6459.1

              \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - 0.2\right) \]
          5. Applied rewrites59.1%

            \[\leadsto \mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\color{blue}{\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)}\right| - 0.2\right) \]
          6. Taylor expanded in y around inf

            \[\leadsto \mathsf{max}\left(\sqrt{\color{blue}{900 \cdot {y}^{2}}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          7. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(\sqrt{{y}^{2} \cdot \color{blue}{900}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
            2. lower-*.f64N/A

              \[\leadsto \mathsf{max}\left(\sqrt{{y}^{2} \cdot \color{blue}{900}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
            3. unpow2N/A

              \[\leadsto \mathsf{max}\left(\sqrt{\left(y \cdot y\right) \cdot 900} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
            4. lower-*.f6442.5

              \[\leadsto \mathsf{max}\left(\sqrt{\left(y \cdot y\right) \cdot 900} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - 0.2\right) \]
          8. Applied rewrites42.5%

            \[\leadsto \mathsf{max}\left(\sqrt{\color{blue}{\left(y \cdot y\right) \cdot 900}} - 25, \left|\mathsf{fma}\left(\sin \left(y \cdot 30\right), \cos \left(z \cdot 30\right), \sin \left(z \cdot 30\right)\right)\right| - 0.2\right) \]
          9. Taylor expanded in y around 0

            \[\leadsto \mathsf{max}\left(\sqrt{\left(y \cdot y\right) \cdot 900} - 25, \left|\sin \left(30 \cdot z\right)\right| - \frac{1}{5}\right) \]
          10. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(\sqrt{\left(y \cdot y\right) \cdot 900} - 25, \left|\sin \left(z \cdot 30\right)\right| - \frac{1}{5}\right) \]
            2. lift-sin.f64N/A

              \[\leadsto \mathsf{max}\left(\sqrt{\left(y \cdot y\right) \cdot 900} - 25, \left|\sin \left(z \cdot 30\right)\right| - \frac{1}{5}\right) \]
            3. lift-*.f6441.4

              \[\leadsto \mathsf{max}\left(\sqrt{\left(y \cdot y\right) \cdot 900} - 25, \left|\sin \left(z \cdot 30\right)\right| - 0.2\right) \]
          11. Applied rewrites41.4%

            \[\leadsto \mathsf{max}\left(\sqrt{\left(y \cdot y\right) \cdot 900} - 25, \left|\sin \left(z \cdot 30\right)\right| - 0.2\right) \]
          12. Taylor expanded in z around 0

            \[\leadsto \mathsf{max}\left(\sqrt{\left(y \cdot y\right) \cdot 900} - 25, \left|30 \cdot z\right| - \frac{1}{5}\right) \]
          13. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(\sqrt{\left(y \cdot y\right) \cdot 900} - 25, \left|z \cdot 30\right| - \frac{1}{5}\right) \]
            2. lift-*.f6474.7

              \[\leadsto \mathsf{max}\left(\sqrt{\left(y \cdot y\right) \cdot 900} - 25, \left|z \cdot 30\right| - 0.2\right) \]
          14. Applied rewrites74.7%

            \[\leadsto \mathsf{max}\left(\sqrt{\left(y \cdot y\right) \cdot 900} - 25, \left|z \cdot 30\right| - 0.2\right) \]

          if 29 < x

          1. Initial program 29.3%

            \[\mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
          2. Add Preprocessing
          3. Taylor expanded in x around -inf

            \[\leadsto \mathsf{max}\left(\color{blue}{-30 \cdot x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
          4. Step-by-step derivation
            1. lower-*.f643.9

              \[\leadsto \mathsf{max}\left(-30 \cdot \color{blue}{x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
          5. Applied rewrites3.9%

            \[\leadsto \mathsf{max}\left(\color{blue}{-30 \cdot x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
          6. Taylor expanded in z around 0

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\color{blue}{\sin \left(30 \cdot y\right) + \cos \left(30 \cdot y\right) \cdot \sin \left(30 \cdot x\right)}\right| - \frac{1}{5}\right) \]
          7. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\cos \left(30 \cdot y\right) \cdot \sin \left(30 \cdot x\right) + \color{blue}{\sin \left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
            2. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right) \cdot \cos \left(30 \cdot y\right) + \sin \color{blue}{\left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
            3. lower-fma.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \color{blue}{\cos \left(30 \cdot y\right)}, \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            4. lower-sin.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \color{blue}{\left(30 \cdot y\right)}, \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            5. lift-*.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(\color{blue}{30} \cdot y\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            6. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            7. lift-*.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            8. lift-cos.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            9. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
            10. lift-*.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
            11. lift-sin.f644.1

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - 0.2\right) \]
          8. Applied rewrites4.1%

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\color{blue}{\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)}\right| - 0.2\right) \]
          9. Taylor expanded in y around 0

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right) + \color{blue}{30 \cdot y}\right| - \frac{1}{5}\right) \]
          10. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot y + \sin \left(30 \cdot x\right)\right| - \frac{1}{5}\right) \]
            2. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|y \cdot 30 + \sin \left(30 \cdot x\right)\right| - \frac{1}{5}\right) \]
            3. lower-fma.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
            4. lift-sin.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
            5. lift-*.f6426.0

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - 0.2\right) \]
          11. Applied rewrites26.0%

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, \color{blue}{30}, \sin \left(30 \cdot x\right)\right)\right| - 0.2\right) \]
          12. Taylor expanded in x around 0

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot x + 30 \cdot \color{blue}{y}\right| - \frac{1}{5}\right) \]
          13. Step-by-step derivation
            1. distribute-lft-outN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - \frac{1}{5}\right) \]
            2. lower-*.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - \frac{1}{5}\right) \]
            3. lower-+.f6480.7

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - 0.2\right) \]
          14. Applied rewrites80.7%

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + \color{blue}{y}\right)\right| - 0.2\right) \]
        3. Recombined 3 regimes into one program.
        4. Add Preprocessing

        Alternative 7: 54.8% accurate, 8.9× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq 1.7 \cdot 10^{+59}:\\ \;\;\;\;\mathsf{max}\left(-30 \cdot x, \left|y \cdot 30\right| - 0.2\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{max}\left(-30 \cdot x, \left|30 \cdot x\right| - 0.2\right)\\ \end{array} \end{array} \]
        (FPCore (x y z)
         :precision binary64
         (if (<= x 1.7e+59)
           (fmax (* -30.0 x) (- (fabs (* y 30.0)) 0.2))
           (fmax (* -30.0 x) (- (fabs (* 30.0 x)) 0.2))))
        double code(double x, double y, double z) {
        	double tmp;
        	if (x <= 1.7e+59) {
        		tmp = fmax((-30.0 * x), (fabs((y * 30.0)) - 0.2));
        	} else {
        		tmp = fmax((-30.0 * x), (fabs((30.0 * x)) - 0.2));
        	}
        	return tmp;
        }
        
        module fmin_fmax_functions
            implicit none
            private
            public fmax
            public fmin
        
            interface fmax
                module procedure fmax88
                module procedure fmax44
                module procedure fmax84
                module procedure fmax48
            end interface
            interface fmin
                module procedure fmin88
                module procedure fmin44
                module procedure fmin84
                module procedure fmin48
            end interface
        contains
            real(8) function fmax88(x, y) result (res)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
            end function
            real(4) function fmax44(x, y) result (res)
                real(4), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
            end function
            real(8) function fmax84(x, y) result(res)
                real(8), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
            end function
            real(8) function fmax48(x, y) result(res)
                real(4), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
            end function
            real(8) function fmin88(x, y) result (res)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
            end function
            real(4) function fmin44(x, y) result (res)
                real(4), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
            end function
            real(8) function fmin84(x, y) result(res)
                real(8), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
            end function
            real(8) function fmin48(x, y) result(res)
                real(4), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
            end function
        end module
        
        real(8) function code(x, y, z)
        use fmin_fmax_functions
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            real(8), intent (in) :: z
            real(8) :: tmp
            if (x <= 1.7d+59) then
                tmp = fmax(((-30.0d0) * x), (abs((y * 30.0d0)) - 0.2d0))
            else
                tmp = fmax(((-30.0d0) * x), (abs((30.0d0 * x)) - 0.2d0))
            end if
            code = tmp
        end function
        
        public static double code(double x, double y, double z) {
        	double tmp;
        	if (x <= 1.7e+59) {
        		tmp = fmax((-30.0 * x), (Math.abs((y * 30.0)) - 0.2));
        	} else {
        		tmp = fmax((-30.0 * x), (Math.abs((30.0 * x)) - 0.2));
        	}
        	return tmp;
        }
        
        def code(x, y, z):
        	tmp = 0
        	if x <= 1.7e+59:
        		tmp = fmax((-30.0 * x), (math.fabs((y * 30.0)) - 0.2))
        	else:
        		tmp = fmax((-30.0 * x), (math.fabs((30.0 * x)) - 0.2))
        	return tmp
        
        function code(x, y, z)
        	tmp = 0.0
        	if (x <= 1.7e+59)
        		tmp = fmax(Float64(-30.0 * x), Float64(abs(Float64(y * 30.0)) - 0.2));
        	else
        		tmp = fmax(Float64(-30.0 * x), Float64(abs(Float64(30.0 * x)) - 0.2));
        	end
        	return tmp
        end
        
        function tmp_2 = code(x, y, z)
        	tmp = 0.0;
        	if (x <= 1.7e+59)
        		tmp = max((-30.0 * x), (abs((y * 30.0)) - 0.2));
        	else
        		tmp = max((-30.0 * x), (abs((30.0 * x)) - 0.2));
        	end
        	tmp_2 = tmp;
        end
        
        code[x_, y_, z_] := If[LessEqual[x, 1.7e+59], N[Max[N[(-30.0 * x), $MachinePrecision], N[(N[Abs[N[(y * 30.0), $MachinePrecision]], $MachinePrecision] - 0.2), $MachinePrecision]], $MachinePrecision], N[Max[N[(-30.0 * x), $MachinePrecision], N[(N[Abs[N[(30.0 * x), $MachinePrecision]], $MachinePrecision] - 0.2), $MachinePrecision]], $MachinePrecision]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;x \leq 1.7 \cdot 10^{+59}:\\
        \;\;\;\;\mathsf{max}\left(-30 \cdot x, \left|y \cdot 30\right| - 0.2\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;\mathsf{max}\left(-30 \cdot x, \left|30 \cdot x\right| - 0.2\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if x < 1.70000000000000003e59

          1. Initial program 48.4%

            \[\mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
          2. Add Preprocessing
          3. Taylor expanded in x around -inf

            \[\leadsto \mathsf{max}\left(\color{blue}{-30 \cdot x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
          4. Step-by-step derivation
            1. lower-*.f6426.6

              \[\leadsto \mathsf{max}\left(-30 \cdot \color{blue}{x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
          5. Applied rewrites26.6%

            \[\leadsto \mathsf{max}\left(\color{blue}{-30 \cdot x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
          6. Taylor expanded in z around 0

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\color{blue}{\sin \left(30 \cdot y\right) + \cos \left(30 \cdot y\right) \cdot \sin \left(30 \cdot x\right)}\right| - \frac{1}{5}\right) \]
          7. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\cos \left(30 \cdot y\right) \cdot \sin \left(30 \cdot x\right) + \color{blue}{\sin \left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
            2. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right) \cdot \cos \left(30 \cdot y\right) + \sin \color{blue}{\left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
            3. lower-fma.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \color{blue}{\cos \left(30 \cdot y\right)}, \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            4. lower-sin.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \color{blue}{\left(30 \cdot y\right)}, \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            5. lift-*.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(\color{blue}{30} \cdot y\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            6. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            7. lift-*.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            8. lift-cos.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            9. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
            10. lift-*.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
            11. lift-sin.f6426.3

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - 0.2\right) \]
          8. Applied rewrites26.3%

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\color{blue}{\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)}\right| - 0.2\right) \]
          9. Taylor expanded in y around 0

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right) + \color{blue}{30 \cdot y}\right| - \frac{1}{5}\right) \]
          10. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot y + \sin \left(30 \cdot x\right)\right| - \frac{1}{5}\right) \]
            2. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|y \cdot 30 + \sin \left(30 \cdot x\right)\right| - \frac{1}{5}\right) \]
            3. lower-fma.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
            4. lift-sin.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
            5. lift-*.f6458.3

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - 0.2\right) \]
          11. Applied rewrites58.3%

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, \color{blue}{30}, \sin \left(30 \cdot x\right)\right)\right| - 0.2\right) \]
          12. Taylor expanded in x around 0

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot y\right| - \frac{1}{5}\right) \]
          13. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|y \cdot 30\right| - \frac{1}{5}\right) \]
            2. lower-*.f6458.2

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|y \cdot 30\right| - 0.2\right) \]
          14. Applied rewrites58.2%

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|y \cdot 30\right| - 0.2\right) \]

          if 1.70000000000000003e59 < x

          1. Initial program 25.4%

            \[\mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
          2. Add Preprocessing
          3. Taylor expanded in x around -inf

            \[\leadsto \mathsf{max}\left(\color{blue}{-30 \cdot x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
          4. Step-by-step derivation
            1. lower-*.f643.5

              \[\leadsto \mathsf{max}\left(-30 \cdot \color{blue}{x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
          5. Applied rewrites3.5%

            \[\leadsto \mathsf{max}\left(\color{blue}{-30 \cdot x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
          6. Taylor expanded in z around 0

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\color{blue}{\sin \left(30 \cdot y\right) + \cos \left(30 \cdot y\right) \cdot \sin \left(30 \cdot x\right)}\right| - \frac{1}{5}\right) \]
          7. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\cos \left(30 \cdot y\right) \cdot \sin \left(30 \cdot x\right) + \color{blue}{\sin \left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
            2. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right) \cdot \cos \left(30 \cdot y\right) + \sin \color{blue}{\left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
            3. lower-fma.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \color{blue}{\cos \left(30 \cdot y\right)}, \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            4. lower-sin.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \color{blue}{\left(30 \cdot y\right)}, \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            5. lift-*.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(\color{blue}{30} \cdot y\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            6. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            7. lift-*.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            8. lift-cos.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
            9. *-commutativeN/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
            10. lift-*.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
            11. lift-sin.f643.8

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - 0.2\right) \]
          8. Applied rewrites3.8%

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\color{blue}{\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)}\right| - 0.2\right) \]
          9. Taylor expanded in y around 0

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right)\right| - \frac{1}{5}\right) \]
          10. Step-by-step derivation
            1. lift-sin.f64N/A

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right)\right| - \frac{1}{5}\right) \]
            2. lift-*.f643.7

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right)\right| - 0.2\right) \]
          11. Applied rewrites3.7%

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right)\right| - 0.2\right) \]
          12. Taylor expanded in x around 0

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot x\right| - \frac{1}{5}\right) \]
          13. Step-by-step derivation
            1. lift-*.f6466.9

              \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot x\right| - 0.2\right) \]
          14. Applied rewrites66.9%

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot x\right| - 0.2\right) \]
        3. Recombined 2 regimes into one program.
        4. Add Preprocessing

        Alternative 8: 59.1% accurate, 8.9× speedup?

        \[\begin{array}{l} \\ \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, 30 \cdot x\right)\right| - 0.2\right) \end{array} \]
        (FPCore (x y z)
         :precision binary64
         (fmax (* -30.0 x) (- (fabs (fma y 30.0 (* 30.0 x))) 0.2)))
        double code(double x, double y, double z) {
        	return fmax((-30.0 * x), (fabs(fma(y, 30.0, (30.0 * x))) - 0.2));
        }
        
        function code(x, y, z)
        	return fmax(Float64(-30.0 * x), Float64(abs(fma(y, 30.0, Float64(30.0 * x))) - 0.2))
        end
        
        code[x_, y_, z_] := N[Max[N[(-30.0 * x), $MachinePrecision], N[(N[Abs[N[(y * 30.0 + N[(30.0 * x), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - 0.2), $MachinePrecision]], $MachinePrecision]
        
        \begin{array}{l}
        
        \\
        \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, 30 \cdot x\right)\right| - 0.2\right)
        \end{array}
        
        Derivation
        1. Initial program 43.8%

          \[\mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
        2. Add Preprocessing
        3. Taylor expanded in x around -inf

          \[\leadsto \mathsf{max}\left(\color{blue}{-30 \cdot x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
        4. Step-by-step derivation
          1. lower-*.f6422.0

            \[\leadsto \mathsf{max}\left(-30 \cdot \color{blue}{x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
        5. Applied rewrites22.0%

          \[\leadsto \mathsf{max}\left(\color{blue}{-30 \cdot x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
        6. Taylor expanded in z around 0

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\color{blue}{\sin \left(30 \cdot y\right) + \cos \left(30 \cdot y\right) \cdot \sin \left(30 \cdot x\right)}\right| - \frac{1}{5}\right) \]
        7. Step-by-step derivation
          1. +-commutativeN/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\cos \left(30 \cdot y\right) \cdot \sin \left(30 \cdot x\right) + \color{blue}{\sin \left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
          2. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right) \cdot \cos \left(30 \cdot y\right) + \sin \color{blue}{\left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
          3. lower-fma.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \color{blue}{\cos \left(30 \cdot y\right)}, \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
          4. lower-sin.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \color{blue}{\left(30 \cdot y\right)}, \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
          5. lift-*.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(\color{blue}{30} \cdot y\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
          6. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
          7. lift-*.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
          8. lift-cos.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
          9. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          10. lift-*.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          11. lift-sin.f6421.8

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - 0.2\right) \]
        8. Applied rewrites21.8%

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\color{blue}{\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)}\right| - 0.2\right) \]
        9. Taylor expanded in y around 0

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right) + \color{blue}{30 \cdot y}\right| - \frac{1}{5}\right) \]
        10. Step-by-step derivation
          1. +-commutativeN/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot y + \sin \left(30 \cdot x\right)\right| - \frac{1}{5}\right) \]
          2. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|y \cdot 30 + \sin \left(30 \cdot x\right)\right| - \frac{1}{5}\right) \]
          3. lower-fma.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
          4. lift-sin.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
          5. lift-*.f6450.6

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - 0.2\right) \]
        11. Applied rewrites50.6%

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, \color{blue}{30}, \sin \left(30 \cdot x\right)\right)\right| - 0.2\right) \]
        12. Taylor expanded in x around 0

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, 30 \cdot x\right)\right| - \frac{1}{5}\right) \]
        13. Step-by-step derivation
          1. lift-*.f6463.8

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, 30 \cdot x\right)\right| - 0.2\right) \]
        14. Applied rewrites63.8%

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, 30 \cdot x\right)\right| - 0.2\right) \]
        15. Add Preprocessing

        Alternative 9: 59.1% accurate, 9.1× speedup?

        \[\begin{array}{l} \\ \mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - 0.2\right) \end{array} \]
        (FPCore (x y z)
         :precision binary64
         (fmax (* -30.0 x) (- (fabs (* 30.0 (+ x y))) 0.2)))
        double code(double x, double y, double z) {
        	return fmax((-30.0 * x), (fabs((30.0 * (x + y))) - 0.2));
        }
        
        module fmin_fmax_functions
            implicit none
            private
            public fmax
            public fmin
        
            interface fmax
                module procedure fmax88
                module procedure fmax44
                module procedure fmax84
                module procedure fmax48
            end interface
            interface fmin
                module procedure fmin88
                module procedure fmin44
                module procedure fmin84
                module procedure fmin48
            end interface
        contains
            real(8) function fmax88(x, y) result (res)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
            end function
            real(4) function fmax44(x, y) result (res)
                real(4), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
            end function
            real(8) function fmax84(x, y) result(res)
                real(8), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
            end function
            real(8) function fmax48(x, y) result(res)
                real(4), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
            end function
            real(8) function fmin88(x, y) result (res)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
            end function
            real(4) function fmin44(x, y) result (res)
                real(4), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
            end function
            real(8) function fmin84(x, y) result(res)
                real(8), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
            end function
            real(8) function fmin48(x, y) result(res)
                real(4), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
            end function
        end module
        
        real(8) function code(x, y, z)
        use fmin_fmax_functions
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            real(8), intent (in) :: z
            code = fmax(((-30.0d0) * x), (abs((30.0d0 * (x + y))) - 0.2d0))
        end function
        
        public static double code(double x, double y, double z) {
        	return fmax((-30.0 * x), (Math.abs((30.0 * (x + y))) - 0.2));
        }
        
        def code(x, y, z):
        	return fmax((-30.0 * x), (math.fabs((30.0 * (x + y))) - 0.2))
        
        function code(x, y, z)
        	return fmax(Float64(-30.0 * x), Float64(abs(Float64(30.0 * Float64(x + y))) - 0.2))
        end
        
        function tmp = code(x, y, z)
        	tmp = max((-30.0 * x), (abs((30.0 * (x + y))) - 0.2));
        end
        
        code[x_, y_, z_] := N[Max[N[(-30.0 * x), $MachinePrecision], N[(N[Abs[N[(30.0 * N[(x + y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - 0.2), $MachinePrecision]], $MachinePrecision]
        
        \begin{array}{l}
        
        \\
        \mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - 0.2\right)
        \end{array}
        
        Derivation
        1. Initial program 43.8%

          \[\mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
        2. Add Preprocessing
        3. Taylor expanded in x around -inf

          \[\leadsto \mathsf{max}\left(\color{blue}{-30 \cdot x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
        4. Step-by-step derivation
          1. lower-*.f6422.0

            \[\leadsto \mathsf{max}\left(-30 \cdot \color{blue}{x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
        5. Applied rewrites22.0%

          \[\leadsto \mathsf{max}\left(\color{blue}{-30 \cdot x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
        6. Taylor expanded in z around 0

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\color{blue}{\sin \left(30 \cdot y\right) + \cos \left(30 \cdot y\right) \cdot \sin \left(30 \cdot x\right)}\right| - \frac{1}{5}\right) \]
        7. Step-by-step derivation
          1. +-commutativeN/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\cos \left(30 \cdot y\right) \cdot \sin \left(30 \cdot x\right) + \color{blue}{\sin \left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
          2. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right) \cdot \cos \left(30 \cdot y\right) + \sin \color{blue}{\left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
          3. lower-fma.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \color{blue}{\cos \left(30 \cdot y\right)}, \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
          4. lower-sin.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \color{blue}{\left(30 \cdot y\right)}, \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
          5. lift-*.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(\color{blue}{30} \cdot y\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
          6. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
          7. lift-*.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
          8. lift-cos.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
          9. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          10. lift-*.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          11. lift-sin.f6421.8

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - 0.2\right) \]
        8. Applied rewrites21.8%

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\color{blue}{\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)}\right| - 0.2\right) \]
        9. Taylor expanded in y around 0

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right) + \color{blue}{30 \cdot y}\right| - \frac{1}{5}\right) \]
        10. Step-by-step derivation
          1. +-commutativeN/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot y + \sin \left(30 \cdot x\right)\right| - \frac{1}{5}\right) \]
          2. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|y \cdot 30 + \sin \left(30 \cdot x\right)\right| - \frac{1}{5}\right) \]
          3. lower-fma.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
          4. lift-sin.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - \frac{1}{5}\right) \]
          5. lift-*.f6450.6

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, 30, \sin \left(30 \cdot x\right)\right)\right| - 0.2\right) \]
        11. Applied rewrites50.6%

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(y, \color{blue}{30}, \sin \left(30 \cdot x\right)\right)\right| - 0.2\right) \]
        12. Taylor expanded in x around 0

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot x + 30 \cdot \color{blue}{y}\right| - \frac{1}{5}\right) \]
        13. Step-by-step derivation
          1. distribute-lft-outN/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - \frac{1}{5}\right) \]
          2. lower-*.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - \frac{1}{5}\right) \]
          3. lower-+.f6463.8

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + y\right)\right| - 0.2\right) \]
        14. Applied rewrites63.8%

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot \left(x + \color{blue}{y}\right)\right| - 0.2\right) \]
        15. Add Preprocessing

        Alternative 10: 31.4% accurate, 9.4× speedup?

        \[\begin{array}{l} \\ \mathsf{max}\left(-30 \cdot x, \left|30 \cdot x\right| - 0.2\right) \end{array} \]
        (FPCore (x y z)
         :precision binary64
         (fmax (* -30.0 x) (- (fabs (* 30.0 x)) 0.2)))
        double code(double x, double y, double z) {
        	return fmax((-30.0 * x), (fabs((30.0 * x)) - 0.2));
        }
        
        module fmin_fmax_functions
            implicit none
            private
            public fmax
            public fmin
        
            interface fmax
                module procedure fmax88
                module procedure fmax44
                module procedure fmax84
                module procedure fmax48
            end interface
            interface fmin
                module procedure fmin88
                module procedure fmin44
                module procedure fmin84
                module procedure fmin48
            end interface
        contains
            real(8) function fmax88(x, y) result (res)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
            end function
            real(4) function fmax44(x, y) result (res)
                real(4), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
            end function
            real(8) function fmax84(x, y) result(res)
                real(8), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
            end function
            real(8) function fmax48(x, y) result(res)
                real(4), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
            end function
            real(8) function fmin88(x, y) result (res)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
            end function
            real(4) function fmin44(x, y) result (res)
                real(4), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
            end function
            real(8) function fmin84(x, y) result(res)
                real(8), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
            end function
            real(8) function fmin48(x, y) result(res)
                real(4), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
            end function
        end module
        
        real(8) function code(x, y, z)
        use fmin_fmax_functions
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            real(8), intent (in) :: z
            code = fmax(((-30.0d0) * x), (abs((30.0d0 * x)) - 0.2d0))
        end function
        
        public static double code(double x, double y, double z) {
        	return fmax((-30.0 * x), (Math.abs((30.0 * x)) - 0.2));
        }
        
        def code(x, y, z):
        	return fmax((-30.0 * x), (math.fabs((30.0 * x)) - 0.2))
        
        function code(x, y, z)
        	return fmax(Float64(-30.0 * x), Float64(abs(Float64(30.0 * x)) - 0.2))
        end
        
        function tmp = code(x, y, z)
        	tmp = max((-30.0 * x), (abs((30.0 * x)) - 0.2));
        end
        
        code[x_, y_, z_] := N[Max[N[(-30.0 * x), $MachinePrecision], N[(N[Abs[N[(30.0 * x), $MachinePrecision]], $MachinePrecision] - 0.2), $MachinePrecision]], $MachinePrecision]
        
        \begin{array}{l}
        
        \\
        \mathsf{max}\left(-30 \cdot x, \left|30 \cdot x\right| - 0.2\right)
        \end{array}
        
        Derivation
        1. Initial program 43.8%

          \[\mathsf{max}\left(\sqrt{\left({\left(x \cdot 30\right)}^{2} + {\left(y \cdot 30\right)}^{2}\right) + {\left(z \cdot 30\right)}^{2}} - 25, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
        2. Add Preprocessing
        3. Taylor expanded in x around -inf

          \[\leadsto \mathsf{max}\left(\color{blue}{-30 \cdot x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - \frac{1}{5}\right) \]
        4. Step-by-step derivation
          1. lower-*.f6422.0

            \[\leadsto \mathsf{max}\left(-30 \cdot \color{blue}{x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
        5. Applied rewrites22.0%

          \[\leadsto \mathsf{max}\left(\color{blue}{-30 \cdot x}, \left|\left(\sin \left(x \cdot 30\right) \cdot \cos \left(y \cdot 30\right) + \sin \left(y \cdot 30\right) \cdot \cos \left(z \cdot 30\right)\right) + \sin \left(z \cdot 30\right) \cdot \cos \left(x \cdot 30\right)\right| - 0.2\right) \]
        6. Taylor expanded in z around 0

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\color{blue}{\sin \left(30 \cdot y\right) + \cos \left(30 \cdot y\right) \cdot \sin \left(30 \cdot x\right)}\right| - \frac{1}{5}\right) \]
        7. Step-by-step derivation
          1. +-commutativeN/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\cos \left(30 \cdot y\right) \cdot \sin \left(30 \cdot x\right) + \color{blue}{\sin \left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
          2. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right) \cdot \cos \left(30 \cdot y\right) + \sin \color{blue}{\left(30 \cdot y\right)}\right| - \frac{1}{5}\right) \]
          3. lower-fma.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \color{blue}{\cos \left(30 \cdot y\right)}, \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
          4. lower-sin.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \color{blue}{\left(30 \cdot y\right)}, \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
          5. lift-*.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(\color{blue}{30} \cdot y\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
          6. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
          7. lift-*.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
          8. lift-cos.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(30 \cdot y\right)\right)\right| - \frac{1}{5}\right) \]
          9. *-commutativeN/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          10. lift-*.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - \frac{1}{5}\right) \]
          11. lift-sin.f6421.8

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)\right| - 0.2\right) \]
        8. Applied rewrites21.8%

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\color{blue}{\mathsf{fma}\left(\sin \left(30 \cdot x\right), \cos \left(y \cdot 30\right), \sin \left(y \cdot 30\right)\right)}\right| - 0.2\right) \]
        9. Taylor expanded in y around 0

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right)\right| - \frac{1}{5}\right) \]
        10. Step-by-step derivation
          1. lift-sin.f64N/A

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right)\right| - \frac{1}{5}\right) \]
          2. lift-*.f6420.8

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right)\right| - 0.2\right) \]
        11. Applied rewrites20.8%

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|\sin \left(30 \cdot x\right)\right| - 0.2\right) \]
        12. Taylor expanded in x around 0

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot x\right| - \frac{1}{5}\right) \]
        13. Step-by-step derivation
          1. lift-*.f6434.5

            \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot x\right| - 0.2\right) \]
        14. Applied rewrites34.5%

          \[\leadsto \mathsf{max}\left(-30 \cdot x, \left|30 \cdot x\right| - 0.2\right) \]
        15. Add Preprocessing

        Reproduce

        ?
        herbie shell --seed 2025051 
        (FPCore (x y z)
          :name "Gyroid sphere"
          :precision binary64
          (fmax (- (sqrt (+ (+ (pow (* x 30.0) 2.0) (pow (* y 30.0) 2.0)) (pow (* z 30.0) 2.0))) 25.0) (- (fabs (+ (+ (* (sin (* x 30.0)) (cos (* y 30.0))) (* (sin (* y 30.0)) (cos (* z 30.0)))) (* (sin (* z 30.0)) (cos (* x 30.0))))) 0.2)))