Average Error: 6.1 → 0.6
Time: 25.5s
Precision: binary64
Cost: 28361
\[2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\right) \]
\[\begin{array}{l} t_1 := \left(c \cdot \left(a + b \cdot c\right)\right) \cdot i\\ t_2 := i \cdot \left(c \cdot \mathsf{fma}\left(c, b, a\right)\right)\\ \mathbf{if}\;t_1 \leq -\infty \lor \neg \left(t_1 \leq 10^{+277}\right):\\ \;\;\;\;2 \cdot \left(\left(\left(z \cdot t - c \cdot \left(b \cdot \left(c \cdot i\right)\right)\right) - a \cdot \left(c \cdot i\right)\right) + x \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \mathsf{fma}\left(y, x, \mathsf{fma}\left(t, z, 0 \cdot t_2 - t_2\right)\right)\\ \end{array} \]
(FPCore (x y z t a b c i)
 :precision binary64
 (* 2.0 (- (+ (* x y) (* z t)) (* (* (+ a (* b c)) c) i))))
(FPCore (x y z t a b c i)
 :precision binary64
 (let* ((t_1 (* (* c (+ a (* b c))) i)) (t_2 (* i (* c (fma c b a)))))
   (if (or (<= t_1 (- INFINITY)) (not (<= t_1 1e+277)))
     (* 2.0 (+ (- (- (* z t) (* c (* b (* c i)))) (* a (* c i))) (* x y)))
     (* 2.0 (fma y x (fma t z (- (* 0.0 t_2) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	return 2.0 * (((x * y) + (z * t)) - (((a + (b * c)) * c) * i));
}
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	double t_1 = (c * (a + (b * c))) * i;
	double t_2 = i * (c * fma(c, b, a));
	double tmp;
	if ((t_1 <= -((double) INFINITY)) || !(t_1 <= 1e+277)) {
		tmp = 2.0 * ((((z * t) - (c * (b * (c * i)))) - (a * (c * i))) + (x * y));
	} else {
		tmp = 2.0 * fma(y, x, fma(t, z, ((0.0 * t_2) - t_2)));
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i)
	return Float64(2.0 * Float64(Float64(Float64(x * y) + Float64(z * t)) - Float64(Float64(Float64(a + Float64(b * c)) * c) * i)))
end
function code(x, y, z, t, a, b, c, i)
	t_1 = Float64(Float64(c * Float64(a + Float64(b * c))) * i)
	t_2 = Float64(i * Float64(c * fma(c, b, a)))
	tmp = 0.0
	if ((t_1 <= Float64(-Inf)) || !(t_1 <= 1e+277))
		tmp = Float64(2.0 * Float64(Float64(Float64(Float64(z * t) - Float64(c * Float64(b * Float64(c * i)))) - Float64(a * Float64(c * i))) + Float64(x * y)));
	else
		tmp = Float64(2.0 * fma(y, x, fma(t, z, Float64(Float64(0.0 * t_2) - t_2))));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(2.0 * N[(N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(c * N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(c * N[(c * b + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, (-Infinity)], N[Not[LessEqual[t$95$1, 1e+277]], $MachinePrecision]], N[(2.0 * N[(N[(N[(N[(z * t), $MachinePrecision] - N[(c * N[(b * N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(y * x + N[(t * z + N[(N[(0.0 * t$95$2), $MachinePrecision] - t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\right)
\begin{array}{l}
t_1 := \left(c \cdot \left(a + b \cdot c\right)\right) \cdot i\\
t_2 := i \cdot \left(c \cdot \mathsf{fma}\left(c, b, a\right)\right)\\
\mathbf{if}\;t_1 \leq -\infty \lor \neg \left(t_1 \leq 10^{+277}\right):\\
\;\;\;\;2 \cdot \left(\left(\left(z \cdot t - c \cdot \left(b \cdot \left(c \cdot i\right)\right)\right) - a \cdot \left(c \cdot i\right)\right) + x \cdot y\right)\\

\mathbf{else}:\\
\;\;\;\;2 \cdot \mathsf{fma}\left(y, x, \mathsf{fma}\left(t, z, 0 \cdot t_2 - t_2\right)\right)\\


\end{array}

Error

Target

Original6.1
Target2.0
Herbie0.6
\[2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \left(a + b \cdot c\right) \cdot \left(c \cdot i\right)\right) \]

Derivation

  1. Split input into 2 regimes
  2. if (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) < -inf.0 or 1e277 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i)

    1. Initial program 55.5

      \[2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\right) \]
    2. Simplified13.9

      \[\leadsto \color{blue}{2 \cdot \left(\mathsf{fma}\left(x, y, z \cdot t\right) - c \cdot \left(\mathsf{fma}\left(b, c, a\right) \cdot i\right)\right)} \]
      Proof
      (*.f64 2 (-.f64 (fma.f64 x y (*.f64 z t)) (*.f64 c (*.f64 (fma.f64 b c a) i)))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (-.f64 (Rewrite<= fma-def_binary64 (+.f64 (*.f64 x y) (*.f64 z t))) (*.f64 c (*.f64 (fma.f64 b c a) i)))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (-.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 (Rewrite<= remove-double-neg_binary64 (neg.f64 (neg.f64 c))) (*.f64 (fma.f64 b c a) i)))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (-.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 (neg.f64 (neg.f64 c)) (*.f64 (Rewrite<= fma-def_binary64 (+.f64 (*.f64 b c) a)) i)))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (-.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 (neg.f64 (neg.f64 c)) (*.f64 (Rewrite<= +-commutative_binary64 (+.f64 a (*.f64 b c))) i)))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (Rewrite=> cancel-sign-sub_binary64 (+.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 (neg.f64 c) (*.f64 (+.f64 a (*.f64 b c)) i))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (Rewrite<= cancel-sign-sub-inv_binary64 (-.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 c (*.f64 (+.f64 a (*.f64 b c)) i))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (-.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 c (+.f64 a (*.f64 b c))) i)))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (-.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 (Rewrite<= *-commutative_binary64 (*.f64 (+.f64 a (*.f64 b c)) c)) i))): 2 points increase in error, 0 points decrease in error
    3. Applied egg-rr10.5

      \[\leadsto 2 \cdot \left(\mathsf{fma}\left(x, y, z \cdot t\right) - \color{blue}{\left(\left(c \cdot i\right) \cdot \left(c \cdot b\right) + \left(c \cdot i\right) \cdot a\right)}\right) \]
    4. Applied egg-rr2.8

      \[\leadsto 2 \cdot \color{blue}{\left(x \cdot y + \left(\left(z \cdot t - c \cdot \left(\left(c \cdot i\right) \cdot b\right)\right) + \left(-c \cdot i\right) \cdot a\right)\right)} \]

    if -inf.0 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) < 1e277

    1. Initial program 0.3

      \[2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\right) \]
    2. Simplified4.7

      \[\leadsto \color{blue}{2 \cdot \left(\mathsf{fma}\left(x, y, z \cdot t\right) - c \cdot \left(\mathsf{fma}\left(b, c, a\right) \cdot i\right)\right)} \]
      Proof
      (*.f64 2 (-.f64 (fma.f64 x y (*.f64 z t)) (*.f64 c (*.f64 (fma.f64 b c a) i)))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (-.f64 (Rewrite<= fma-def_binary64 (+.f64 (*.f64 x y) (*.f64 z t))) (*.f64 c (*.f64 (fma.f64 b c a) i)))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (-.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 (Rewrite<= remove-double-neg_binary64 (neg.f64 (neg.f64 c))) (*.f64 (fma.f64 b c a) i)))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (-.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 (neg.f64 (neg.f64 c)) (*.f64 (Rewrite<= fma-def_binary64 (+.f64 (*.f64 b c) a)) i)))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (-.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 (neg.f64 (neg.f64 c)) (*.f64 (Rewrite<= +-commutative_binary64 (+.f64 a (*.f64 b c))) i)))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (Rewrite=> cancel-sign-sub_binary64 (+.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 (neg.f64 c) (*.f64 (+.f64 a (*.f64 b c)) i))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (Rewrite<= cancel-sign-sub-inv_binary64 (-.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 c (*.f64 (+.f64 a (*.f64 b c)) i))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (-.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 c (+.f64 a (*.f64 b c))) i)))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (-.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 (Rewrite<= *-commutative_binary64 (*.f64 (+.f64 a (*.f64 b c)) c)) i))): 2 points increase in error, 0 points decrease in error
    3. Applied egg-rr5.5

      \[\leadsto 2 \cdot \color{blue}{\left(\mathsf{fma}\left(x, y, z \cdot t\right) + \left(\left(\left(-c\right) \cdot i\right) \cdot \mathsf{fma}\left(b, c, a\right) + \mathsf{fma}\left(-\mathsf{fma}\left(b, c, a\right) \cdot i, c, c \cdot \left(\mathsf{fma}\left(b, c, a\right) \cdot i\right)\right)\right)\right)} \]
    4. Simplified0.3

      \[\leadsto 2 \cdot \color{blue}{\mathsf{fma}\left(y, x, \mathsf{fma}\left(t, z, 0 \cdot \left(i \cdot \left(c \cdot \mathsf{fma}\left(c, b, a\right)\right)\right) - i \cdot \left(c \cdot \mathsf{fma}\left(c, b, a\right)\right)\right)\right)} \]
      Proof
      (*.f64 2 (fma.f64 y x (fma.f64 t z (-.f64 (*.f64 0 (*.f64 i (*.f64 c (fma.f64 c b a)))) (*.f64 i (*.f64 c (fma.f64 c b a))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (fma.f64 t z (-.f64 (*.f64 (Rewrite<= metadata-eval (+.f64 -1 1)) (*.f64 i (*.f64 c (fma.f64 c b a)))) (*.f64 i (*.f64 c (fma.f64 c b a))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (fma.f64 t z (-.f64 (*.f64 (+.f64 -1 1) (*.f64 i (*.f64 c (Rewrite<= fma-def_binary64 (+.f64 (*.f64 c b) a))))) (*.f64 i (*.f64 c (fma.f64 c b a))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (fma.f64 t z (-.f64 (*.f64 (+.f64 -1 1) (*.f64 i (*.f64 c (+.f64 (Rewrite=> *-commutative_binary64 (*.f64 b c)) a)))) (*.f64 i (*.f64 c (fma.f64 c b a))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (fma.f64 t z (-.f64 (*.f64 (+.f64 -1 1) (*.f64 i (*.f64 c (Rewrite<= fma-udef_binary64 (fma.f64 b c a))))) (*.f64 i (*.f64 c (fma.f64 c b a))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (fma.f64 t z (-.f64 (*.f64 (+.f64 -1 1) (Rewrite<= *-commutative_binary64 (*.f64 (*.f64 c (fma.f64 b c a)) i))) (*.f64 i (*.f64 c (fma.f64 c b a))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (fma.f64 t z (-.f64 (*.f64 (+.f64 -1 1) (Rewrite<= associate-*r*_binary64 (*.f64 c (*.f64 (fma.f64 b c a) i)))) (*.f64 i (*.f64 c (fma.f64 c b a))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (fma.f64 t z (-.f64 (Rewrite<= distribute-lft1-in_binary64 (+.f64 (*.f64 -1 (*.f64 c (*.f64 (fma.f64 b c a) i))) (*.f64 c (*.f64 (fma.f64 b c a) i)))) (*.f64 i (*.f64 c (fma.f64 c b a))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (fma.f64 t z (-.f64 (+.f64 (Rewrite=> associate-*r*_binary64 (*.f64 (*.f64 -1 c) (*.f64 (fma.f64 b c a) i))) (*.f64 c (*.f64 (fma.f64 b c a) i))) (*.f64 i (*.f64 c (fma.f64 c b a))))))): 29 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (fma.f64 t z (-.f64 (+.f64 (*.f64 (Rewrite<= neg-mul-1_binary64 (neg.f64 c)) (*.f64 (fma.f64 b c a) i)) (*.f64 c (*.f64 (fma.f64 b c a) i))) (*.f64 i (*.f64 c (fma.f64 c b a))))))): 0 points increase in error, 29 points decrease in error
      (*.f64 2 (fma.f64 y x (fma.f64 t z (-.f64 (+.f64 (*.f64 (neg.f64 c) (Rewrite=> *-commutative_binary64 (*.f64 i (fma.f64 b c a)))) (*.f64 c (*.f64 (fma.f64 b c a) i))) (*.f64 i (*.f64 c (fma.f64 c b a))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (fma.f64 t z (-.f64 (+.f64 (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a))) (*.f64 c (*.f64 (fma.f64 b c a) i))) (*.f64 i (*.f64 c (fma.f64 c b a))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (fma.f64 t z (-.f64 (+.f64 (Rewrite<= *-rgt-identity_binary64 (*.f64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)) 1)) (*.f64 c (*.f64 (fma.f64 b c a) i))) (*.f64 i (*.f64 c (fma.f64 c b a))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (fma.f64 t z (-.f64 (Rewrite<= fma-udef_binary64 (fma.f64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)) 1 (*.f64 c (*.f64 (fma.f64 b c a) i)))) (*.f64 i (*.f64 c (fma.f64 c b a))))))): 53 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (fma.f64 t z (-.f64 (fma.f64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)) 1 (*.f64 c (*.f64 (fma.f64 b c a) i))) (*.f64 i (*.f64 c (Rewrite<= fma-def_binary64 (+.f64 (*.f64 c b) a)))))))): 6 points increase in error, 53 points decrease in error
      (*.f64 2 (fma.f64 y x (fma.f64 t z (-.f64 (fma.f64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)) 1 (*.f64 c (*.f64 (fma.f64 b c a) i))) (*.f64 i (*.f64 c (+.f64 (Rewrite=> *-commutative_binary64 (*.f64 b c)) a))))))): 0 points increase in error, 59 points decrease in error
      (*.f64 2 (fma.f64 y x (fma.f64 t z (-.f64 (fma.f64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)) 1 (*.f64 c (*.f64 (fma.f64 b c a) i))) (*.f64 i (*.f64 c (Rewrite<= fma-udef_binary64 (fma.f64 b c a)))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (fma.f64 t z (-.f64 (fma.f64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)) 1 (*.f64 c (*.f64 (fma.f64 b c a) i))) (Rewrite<= *-commutative_binary64 (*.f64 (*.f64 c (fma.f64 b c a)) i)))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (fma.f64 t z (-.f64 (fma.f64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)) 1 (*.f64 c (*.f64 (fma.f64 b c a) i))) (Rewrite<= associate-*r*_binary64 (*.f64 c (*.f64 (fma.f64 b c a) i))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (fma.f64 t z (Rewrite<= unsub-neg_binary64 (+.f64 (fma.f64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)) 1 (*.f64 c (*.f64 (fma.f64 b c a) i))) (neg.f64 (*.f64 c (*.f64 (fma.f64 b c a) i)))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (fma.f64 t z (+.f64 (fma.f64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)) 1 (*.f64 c (*.f64 (fma.f64 b c a) i))) (Rewrite=> distribute-lft-neg-in_binary64 (*.f64 (neg.f64 c) (*.f64 (fma.f64 b c a) i))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (fma.f64 t z (+.f64 (fma.f64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)) 1 (*.f64 c (*.f64 (fma.f64 b c a) i))) (*.f64 (neg.f64 c) (Rewrite=> *-commutative_binary64 (*.f64 i (fma.f64 b c a)))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (fma.f64 t z (+.f64 (fma.f64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)) 1 (*.f64 c (*.f64 (fma.f64 b c a) i))) (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (fma.f64 t z (Rewrite<= +-commutative_binary64 (+.f64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)) (fma.f64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)) 1 (*.f64 c (*.f64 (fma.f64 b c a) i)))))))): 31 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (Rewrite<= fma-def_binary64 (+.f64 (*.f64 t z) (+.f64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)) (fma.f64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)) 1 (*.f64 c (*.f64 (fma.f64 b c a) i)))))))): 0 points increase in error, 31 points decrease in error
      (*.f64 2 (fma.f64 y x (+.f64 (Rewrite<= *-commutative_binary64 (*.f64 z t)) (+.f64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)) (fma.f64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)) 1 (*.f64 c (*.f64 (fma.f64 b c a) i))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (Rewrite<= associate-+l+_binary64 (+.f64 (+.f64 (*.f64 z t) (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a))) (fma.f64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)) 1 (*.f64 c (*.f64 (fma.f64 b c a) i))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (Rewrite=> +-commutative_binary64 (+.f64 (fma.f64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)) 1 (*.f64 c (*.f64 (fma.f64 b c a) i))) (+.f64 (*.f64 z t) (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (+.f64 (Rewrite=> fma-udef_binary64 (+.f64 (*.f64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)) 1) (*.f64 c (*.f64 (fma.f64 b c a) i)))) (+.f64 (*.f64 z t) (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)))))): 53 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (+.f64 (+.f64 (Rewrite=> *-rgt-identity_binary64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a))) (*.f64 c (*.f64 (fma.f64 b c a) i))) (+.f64 (*.f64 z t) (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)))))): 6 points increase in error, 28 points decrease in error
      (*.f64 2 (fma.f64 y x (+.f64 (+.f64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)) (*.f64 c (*.f64 (fma.f64 b c a) i))) (+.f64 (*.f64 z t) (Rewrite=> associate-*l*_binary64 (*.f64 (neg.f64 c) (*.f64 i (fma.f64 b c a)))))))): 0 points increase in error, 31 points decrease in error
      (*.f64 2 (fma.f64 y x (+.f64 (+.f64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)) (*.f64 c (*.f64 (fma.f64 b c a) i))) (+.f64 (*.f64 z t) (*.f64 (neg.f64 c) (Rewrite<= *-commutative_binary64 (*.f64 (fma.f64 b c a) i))))))): 53 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (+.f64 (+.f64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)) (*.f64 c (*.f64 (fma.f64 b c a) i))) (Rewrite<= cancel-sign-sub-inv_binary64 (-.f64 (*.f64 z t) (*.f64 c (*.f64 (fma.f64 b c a) i))))))): 0 points increase in error, 53 points decrease in error
      (*.f64 2 (fma.f64 y x (Rewrite=> associate-+l+_binary64 (+.f64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)) (+.f64 (*.f64 c (*.f64 (fma.f64 b c a) i)) (-.f64 (*.f64 z t) (*.f64 c (*.f64 (fma.f64 b c a) i)))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (+.f64 (*.f64 (Rewrite=> *-commutative_binary64 (*.f64 i (neg.f64 c))) (fma.f64 b c a)) (+.f64 (*.f64 c (*.f64 (fma.f64 b c a) i)) (-.f64 (*.f64 z t) (*.f64 c (*.f64 (fma.f64 b c a) i))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (+.f64 (*.f64 (Rewrite<= distribute-rgt-neg-in_binary64 (neg.f64 (*.f64 i c))) (fma.f64 b c a)) (+.f64 (*.f64 c (*.f64 (fma.f64 b c a) i)) (-.f64 (*.f64 z t) (*.f64 c (*.f64 (fma.f64 b c a) i))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (+.f64 (*.f64 (Rewrite=> distribute-lft-neg-in_binary64 (*.f64 (neg.f64 i) c)) (fma.f64 b c a)) (+.f64 (*.f64 c (*.f64 (fma.f64 b c a) i)) (-.f64 (*.f64 z t) (*.f64 c (*.f64 (fma.f64 b c a) i))))))): 30 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (+.f64 (Rewrite<= associate-*r*_binary64 (*.f64 (neg.f64 i) (*.f64 c (fma.f64 b c a)))) (+.f64 (*.f64 c (*.f64 (fma.f64 b c a) i)) (-.f64 (*.f64 z t) (*.f64 c (*.f64 (fma.f64 b c a) i))))))): 29 points increase in error, 5 points decrease in error
      (*.f64 2 (fma.f64 y x (Rewrite<= associate-+l+_binary64 (+.f64 (+.f64 (*.f64 (neg.f64 i) (*.f64 c (fma.f64 b c a))) (*.f64 c (*.f64 (fma.f64 b c a) i))) (-.f64 (*.f64 z t) (*.f64 c (*.f64 (fma.f64 b c a) i))))))): 0 points increase in error, 54 points decrease in error
      (*.f64 2 (fma.f64 y x (+.f64 (Rewrite<= fma-udef_binary64 (fma.f64 (neg.f64 i) (*.f64 c (fma.f64 b c a)) (*.f64 c (*.f64 (fma.f64 b c a) i)))) (-.f64 (*.f64 z t) (*.f64 c (*.f64 (fma.f64 b c a) i)))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (fma.f64 y x (Rewrite<= +-commutative_binary64 (+.f64 (-.f64 (*.f64 z t) (*.f64 c (*.f64 (fma.f64 b c a) i))) (fma.f64 (neg.f64 i) (*.f64 c (fma.f64 b c a)) (*.f64 c (*.f64 (fma.f64 b c a) i))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (Rewrite<= fma-def_binary64 (+.f64 (*.f64 y x) (+.f64 (-.f64 (*.f64 z t) (*.f64 c (*.f64 (fma.f64 b c a) i))) (fma.f64 (neg.f64 i) (*.f64 c (fma.f64 b c a)) (*.f64 c (*.f64 (fma.f64 b c a) i))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (+.f64 (Rewrite=> *-commutative_binary64 (*.f64 x y)) (+.f64 (-.f64 (*.f64 z t) (*.f64 c (*.f64 (fma.f64 b c a) i))) (fma.f64 (neg.f64 i) (*.f64 c (fma.f64 b c a)) (*.f64 c (*.f64 (fma.f64 b c a) i)))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (+.f64 (*.f64 x y) (Rewrite=> associate-+l-_binary64 (-.f64 (*.f64 z t) (-.f64 (*.f64 c (*.f64 (fma.f64 b c a) i)) (fma.f64 (neg.f64 i) (*.f64 c (fma.f64 b c a)) (*.f64 c (*.f64 (fma.f64 b c a) i)))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (Rewrite=> associate-+r-_binary64 (-.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 c (*.f64 (fma.f64 b c a) i)) (fma.f64 (neg.f64 i) (*.f64 c (fma.f64 b c a)) (*.f64 c (*.f64 (fma.f64 b c a) i))))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (-.f64 (Rewrite<= fma-udef_binary64 (fma.f64 x y (*.f64 z t))) (-.f64 (*.f64 c (*.f64 (fma.f64 b c a) i)) (fma.f64 (neg.f64 i) (*.f64 c (fma.f64 b c a)) (*.f64 c (*.f64 (fma.f64 b c a) i)))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (Rewrite<= associate-+l-_binary64 (+.f64 (-.f64 (fma.f64 x y (*.f64 z t)) (*.f64 c (*.f64 (fma.f64 b c a) i))) (fma.f64 (neg.f64 i) (*.f64 c (fma.f64 b c a)) (*.f64 c (*.f64 (fma.f64 b c a) i)))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (+.f64 (-.f64 (fma.f64 x y (*.f64 z t)) (*.f64 c (*.f64 (fma.f64 b c a) i))) (Rewrite=> fma-udef_binary64 (+.f64 (*.f64 (neg.f64 i) (*.f64 c (fma.f64 b c a))) (*.f64 c (*.f64 (fma.f64 b c a) i)))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (Rewrite=> associate-+r+_binary64 (+.f64 (+.f64 (-.f64 (fma.f64 x y (*.f64 z t)) (*.f64 c (*.f64 (fma.f64 b c a) i))) (*.f64 (neg.f64 i) (*.f64 c (fma.f64 b c a)))) (*.f64 c (*.f64 (fma.f64 b c a) i))))): 39 points increase in error, 0 points decrease in error
      (*.f64 2 (+.f64 (+.f64 (-.f64 (fma.f64 x y (*.f64 z t)) (*.f64 c (*.f64 (fma.f64 b c a) i))) (*.f64 (neg.f64 i) (Rewrite=> *-commutative_binary64 (*.f64 (fma.f64 b c a) c)))) (*.f64 c (*.f64 (fma.f64 b c a) i)))): 0 points increase in error, 39 points decrease in error
      (*.f64 2 (+.f64 (+.f64 (-.f64 (fma.f64 x y (*.f64 z t)) (*.f64 c (*.f64 (fma.f64 b c a) i))) (Rewrite=> associate-*r*_binary64 (*.f64 (*.f64 (neg.f64 i) (fma.f64 b c a)) c))) (*.f64 c (*.f64 (fma.f64 b c a) i)))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (+.f64 (+.f64 (-.f64 (fma.f64 x y (*.f64 z t)) (*.f64 c (*.f64 (fma.f64 b c a) i))) (*.f64 (Rewrite<= *-commutative_binary64 (*.f64 (fma.f64 b c a) (neg.f64 i))) c)) (*.f64 c (*.f64 (fma.f64 b c a) i)))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (+.f64 (+.f64 (-.f64 (fma.f64 x y (*.f64 z t)) (*.f64 c (*.f64 (fma.f64 b c a) i))) (*.f64 (Rewrite<= distribute-rgt-neg-in_binary64 (neg.f64 (*.f64 (fma.f64 b c a) i))) c)) (*.f64 c (*.f64 (fma.f64 b c a) i)))): 28 points increase in error, 0 points decrease in error
      (*.f64 2 (Rewrite<= associate-+r+_binary64 (+.f64 (-.f64 (fma.f64 x y (*.f64 z t)) (*.f64 c (*.f64 (fma.f64 b c a) i))) (+.f64 (*.f64 (neg.f64 (*.f64 (fma.f64 b c a) i)) c) (*.f64 c (*.f64 (fma.f64 b c a) i)))))): 0 points increase in error, 28 points decrease in error
      (*.f64 2 (+.f64 (-.f64 (fma.f64 x y (*.f64 z t)) (*.f64 c (*.f64 (fma.f64 b c a) i))) (Rewrite<= fma-udef_binary64 (fma.f64 (neg.f64 (*.f64 (fma.f64 b c a) i)) c (*.f64 c (*.f64 (fma.f64 b c a) i)))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (+.f64 (Rewrite=> cancel-sign-sub-inv_binary64 (+.f64 (fma.f64 x y (*.f64 z t)) (*.f64 (neg.f64 c) (*.f64 (fma.f64 b c a) i)))) (fma.f64 (neg.f64 (*.f64 (fma.f64 b c a) i)) c (*.f64 c (*.f64 (fma.f64 b c a) i))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (+.f64 (+.f64 (fma.f64 x y (*.f64 z t)) (*.f64 (neg.f64 c) (Rewrite=> *-commutative_binary64 (*.f64 i (fma.f64 b c a))))) (fma.f64 (neg.f64 (*.f64 (fma.f64 b c a) i)) c (*.f64 c (*.f64 (fma.f64 b c a) i))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (+.f64 (+.f64 (fma.f64 x y (*.f64 z t)) (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)))) (fma.f64 (neg.f64 (*.f64 (fma.f64 b c a) i)) c (*.f64 c (*.f64 (fma.f64 b c a) i))))): 0 points increase in error, 0 points decrease in error
      (*.f64 2 (Rewrite<= associate-+r+_binary64 (+.f64 (fma.f64 x y (*.f64 z t)) (+.f64 (*.f64 (*.f64 (neg.f64 c) i) (fma.f64 b c a)) (fma.f64 (neg.f64 (*.f64 (fma.f64 b c a) i)) c (*.f64 c (*.f64 (fma.f64 b c a) i))))))): 0 points increase in error, 0 points decrease in error
  3. Recombined 2 regimes into one program.
  4. Final simplification0.6

    \[\leadsto \begin{array}{l} \mathbf{if}\;\left(c \cdot \left(a + b \cdot c\right)\right) \cdot i \leq -\infty \lor \neg \left(\left(c \cdot \left(a + b \cdot c\right)\right) \cdot i \leq 10^{+277}\right):\\ \;\;\;\;2 \cdot \left(\left(\left(z \cdot t - c \cdot \left(b \cdot \left(c \cdot i\right)\right)\right) - a \cdot \left(c \cdot i\right)\right) + x \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \mathsf{fma}\left(y, x, \mathsf{fma}\left(t, z, 0 \cdot \left(i \cdot \left(c \cdot \mathsf{fma}\left(c, b, a\right)\right)\right) - i \cdot \left(c \cdot \mathsf{fma}\left(c, b, a\right)\right)\right)\right)\\ \end{array} \]

Alternatives

Alternative 1
Error0.6
Cost2761
\[\begin{array}{l} t_1 := \left(c \cdot \left(a + b \cdot c\right)\right) \cdot i\\ \mathbf{if}\;t_1 \leq -\infty \lor \neg \left(t_1 \leq 10^{+277}\right):\\ \;\;\;\;2 \cdot \left(\left(\left(z \cdot t - c \cdot \left(b \cdot \left(c \cdot i\right)\right)\right) - a \cdot \left(c \cdot i\right)\right) + x \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(\left(x \cdot y + z \cdot t\right) - i \cdot \left(c \cdot \left(b \cdot c\right) + a \cdot c\right)\right)\\ \end{array} \]
Alternative 2
Error1.6
Cost2376
\[\begin{array}{l} t_1 := a + b \cdot c\\ t_2 := c \cdot t_1\\ \mathbf{if}\;t_2 \leq -\infty:\\ \;\;\;\;2 \cdot \left(x \cdot y + \left(z \cdot t - c \cdot \left(i \cdot t_1\right)\right)\right)\\ \mathbf{elif}\;t_2 \leq 2 \cdot 10^{+299}:\\ \;\;\;\;2 \cdot \left(\left(x \cdot y + z \cdot t\right) - i \cdot \left(c \cdot \left(b \cdot c\right) + a \cdot c\right)\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(\left(z \cdot t - c \cdot \left(b \cdot \left(c \cdot i\right)\right)\right) + x \cdot y\right)\\ \end{array} \]
Alternative 3
Error1.8
Cost2248
\[\begin{array}{l} t_1 := a + b \cdot c\\ t_2 := c \cdot t_1\\ \mathbf{if}\;t_2 \leq -\infty:\\ \;\;\;\;2 \cdot \left(x \cdot y - c \cdot \left(i \cdot t_1\right)\right)\\ \mathbf{elif}\;t_2 \leq 2 \cdot 10^{+299}:\\ \;\;\;\;2 \cdot \left(\left(x \cdot y + z \cdot t\right) - t_2 \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(\left(z \cdot t - c \cdot \left(b \cdot \left(c \cdot i\right)\right)\right) + x \cdot y\right)\\ \end{array} \]
Alternative 4
Error1.6
Cost2248
\[\begin{array}{l} t_1 := a + b \cdot c\\ t_2 := c \cdot t_1\\ \mathbf{if}\;t_2 \leq -\infty:\\ \;\;\;\;2 \cdot \left(x \cdot y + \left(z \cdot t - c \cdot \left(i \cdot t_1\right)\right)\right)\\ \mathbf{elif}\;t_2 \leq 2 \cdot 10^{+299}:\\ \;\;\;\;2 \cdot \left(\left(x \cdot y + z \cdot t\right) - t_2 \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(\left(z \cdot t - c \cdot \left(b \cdot \left(c \cdot i\right)\right)\right) + x \cdot y\right)\\ \end{array} \]
Alternative 5
Error22.0
Cost1760
\[\begin{array}{l} t_1 := 2 \cdot \left(z \cdot t - c \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right)\\ t_2 := 2 \cdot \left(x \cdot y + z \cdot t\right)\\ t_3 := 2 \cdot \left(x \cdot y - i \cdot \left(a \cdot c\right)\right)\\ \mathbf{if}\;a \leq -5.6 \cdot 10^{+132}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;a \leq -3.4 \cdot 10^{+69}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq -2.45 \cdot 10^{+36}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 5.8 \cdot 10^{-45}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq 2.7 \cdot 10^{+132}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 1.6 \cdot 10^{+160}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq 2.35 \cdot 10^{+168}:\\ \;\;\;\;\left(c \cdot i\right) \cdot \left(a \cdot -2\right)\\ \mathbf{elif}\;a \leq 3.2 \cdot 10^{+236}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \]
Alternative 6
Error18.4
Cost1752
\[\begin{array}{l} t_1 := c \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\\ t_2 := 2 \cdot \left(x \cdot y + z \cdot t\right)\\ t_3 := 2 \cdot \left(z \cdot t - t_1\right)\\ t_4 := 2 \cdot \left(x \cdot y - t_1\right)\\ \mathbf{if}\;z \leq -510000000000:\\ \;\;\;\;t_2\\ \mathbf{elif}\;z \leq -2.7 \cdot 10^{-25}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;z \leq -5.6 \cdot 10^{-65}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;z \leq -1.75 \cdot 10^{-121}:\\ \;\;\;\;t_4\\ \mathbf{elif}\;z \leq -4.8 \cdot 10^{-148}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;z \leq 1.7 \cdot 10^{-136}:\\ \;\;\;\;t_4\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 7
Error21.9
Cost1496
\[\begin{array}{l} t_1 := i \cdot \left(a \cdot c\right)\\ t_2 := 2 \cdot \left(x \cdot y + z \cdot t\right)\\ t_3 := 2 \cdot \left(x \cdot y - t_1\right)\\ \mathbf{if}\;a \leq -1.4 \cdot 10^{+132}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;a \leq -3.7 \cdot 10^{+68}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq -2.3 \cdot 10^{+36}:\\ \;\;\;\;2 \cdot \left(z \cdot t - t_1\right)\\ \mathbf{elif}\;a \leq 1.6 \cdot 10^{+160}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq 2.35 \cdot 10^{+168}:\\ \;\;\;\;\left(c \cdot i\right) \cdot \left(a \cdot -2\right)\\ \mathbf{elif}\;a \leq 1.7 \cdot 10^{+238}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \]
Alternative 8
Error38.1
Cost1376
\[\begin{array}{l} t_1 := 2 \cdot \left(x \cdot y\right)\\ t_2 := 2 \cdot \left(z \cdot t\right)\\ \mathbf{if}\;z \leq -3.1 \cdot 10^{+79}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;z \leq -31000000:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq -2.7 \cdot 10^{-63}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;z \leq -1.4 \cdot 10^{-120}:\\ \;\;\;\;\left(c \cdot i\right) \cdot \left(a \cdot -2\right)\\ \mathbf{elif}\;z \leq -3.9 \cdot 10^{-148}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;z \leq 7 \cdot 10^{-288}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 2.5 \cdot 10^{-249}:\\ \;\;\;\;\left(i \cdot \left(a \cdot c\right)\right) \cdot -2\\ \mathbf{elif}\;z \leq 700:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 9
Error22.4
Cost1364
\[\begin{array}{l} t_1 := 2 \cdot \left(x \cdot y + z \cdot t\right)\\ t_2 := i \cdot \left(a \cdot c\right)\\ t_3 := 2 \cdot \left(z \cdot t - t_2\right)\\ \mathbf{if}\;i \leq -1.2 \cdot 10^{+185}:\\ \;\;\;\;2 \cdot \left(x \cdot y - t_2\right)\\ \mathbf{elif}\;i \leq -1.75 \cdot 10^{+26}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;i \leq 1.16 \cdot 10^{+24}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;i \leq 2.2 \cdot 10^{+66}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;i \leq 2.4 \cdot 10^{+193}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;\left(c \cdot \left(a + b \cdot c\right)\right) \cdot \left(i \cdot -2\right)\\ \end{array} \]
Alternative 10
Error9.1
Cost1353
\[\begin{array}{l} \mathbf{if}\;a \leq -4600 \lor \neg \left(a \leq 2.8 \cdot 10^{-22}\right):\\ \;\;\;\;2 \cdot \left(\left(x \cdot y + z \cdot t\right) - c \cdot \left(a \cdot i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(\left(z \cdot t - c \cdot \left(b \cdot \left(c \cdot i\right)\right)\right) + x \cdot y\right)\\ \end{array} \]
Alternative 11
Error12.3
Cost1224
\[\begin{array}{l} t_1 := c \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\\ \mathbf{if}\;c \leq -4.2 \cdot 10^{+106}:\\ \;\;\;\;2 \cdot \left(x \cdot y - t_1\right)\\ \mathbf{elif}\;c \leq 4 \cdot 10^{+126}:\\ \;\;\;\;2 \cdot \left(\left(x \cdot y + z \cdot t\right) - c \cdot \left(a \cdot i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(z \cdot t - t_1\right)\\ \end{array} \]
Alternative 12
Error36.9
Cost1115
\[\begin{array}{l} \mathbf{if}\;z \leq -6.5 \cdot 10^{+79} \lor \neg \left(z \leq -32000000 \lor \neg \left(z \leq -1.2 \cdot 10^{-62}\right) \land \left(z \leq -1.15 \cdot 10^{-118} \lor \neg \left(z \leq -4.8 \cdot 10^{-148}\right) \land z \leq 0.175\right)\right):\\ \;\;\;\;2 \cdot \left(z \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(x \cdot y\right)\\ \end{array} \]
Alternative 13
Error37.4
Cost1113
\[\begin{array}{l} t_1 := 2 \cdot \left(x \cdot y\right)\\ t_2 := 2 \cdot \left(z \cdot t\right)\\ \mathbf{if}\;z \leq -1.7 \cdot 10^{+80}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;z \leq -35000000:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq -8.5 \cdot 10^{-63}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;z \leq -6.6 \cdot 10^{-118}:\\ \;\;\;\;\left(c \cdot i\right) \cdot \left(a \cdot -2\right)\\ \mathbf{elif}\;z \leq -4.8 \cdot 10^{-148} \lor \neg \left(z \leq 130000\right):\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 14
Error21.1
Cost1105
\[\begin{array}{l} t_1 := 2 \cdot \left(x \cdot y + z \cdot t\right)\\ \mathbf{if}\;y \leq -2.8 \cdot 10^{-146}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq 1.4 \cdot 10^{-159}:\\ \;\;\;\;2 \cdot \left(z \cdot t - i \cdot \left(a \cdot c\right)\right)\\ \mathbf{elif}\;y \leq 1.7 \cdot 10^{+18} \lor \neg \left(y \leq 3.8 \cdot 10^{+29}\right):\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;\left(c \cdot i\right) \cdot \left(a \cdot -2\right)\\ \end{array} \]
Alternative 15
Error20.5
Cost1100
\[\begin{array}{l} t_1 := \left(c \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right) \cdot -2\\ \mathbf{if}\;c \leq -6.8 \cdot 10^{+106}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;c \leq 2.8 \cdot 10^{+154}:\\ \;\;\;\;2 \cdot \left(x \cdot y + z \cdot t\right)\\ \mathbf{elif}\;c \leq 1.35 \cdot 10^{+174}:\\ \;\;\;\;\left(c \cdot \left(b \cdot \left(c \cdot i\right)\right)\right) \cdot -2\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 16
Error22.9
Cost841
\[\begin{array}{l} \mathbf{if}\;a \leq 1.6 \cdot 10^{+160} \lor \neg \left(a \leq 3.2 \cdot 10^{+167}\right):\\ \;\;\;\;2 \cdot \left(x \cdot y + z \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;\left(c \cdot i\right) \cdot \left(a \cdot -2\right)\\ \end{array} \]
Alternative 17
Error42.8
Cost320
\[2 \cdot \left(z \cdot t\right) \]

Error

Reproduce

herbie shell --seed 2022340 
(FPCore (x y z t a b c i)
  :name "Diagrams.ThreeD.Shapes:frustum from diagrams-lib-1.3.0.3, A"
  :precision binary64

  :herbie-target
  (* 2.0 (- (+ (* x y) (* z t)) (* (+ a (* b c)) (* c i))))

  (* 2.0 (- (+ (* x y) (* z t)) (* (* (+ a (* b c)) c) i))))