Examples.Basics.ProofTests:f4 from sbv-4.4

Specification

?
\[\mathsf{TRUE}\left(\right)\]
\[\begin{array}{l} \\ \left(x \cdot x + \left(x \cdot 2\right) \cdot y\right) + y \cdot y \end{array} \]
(FPCore (x y) :precision binary64 (+ (+ (* x x) (* (* x 2.0) y)) (* y y)))
double code(double x, double y) {
	return ((x * x) + ((x * 2.0) * y)) + (y * y);
}
real(8) function code(x, y)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    code = ((x * x) + ((x * 2.0d0) * y)) + (y * y)
end function
public static double code(double x, double y) {
	return ((x * x) + ((x * 2.0) * y)) + (y * y);
}
def code(x, y):
	return ((x * x) + ((x * 2.0) * y)) + (y * y)
function code(x, y)
	return Float64(Float64(Float64(x * x) + Float64(Float64(x * 2.0) * y)) + Float64(y * y))
end
function tmp = code(x, y)
	tmp = ((x * x) + ((x * 2.0) * y)) + (y * y);
end
code[x_, y_] := N[(N[(N[(x * x), $MachinePrecision] + N[(N[(x * 2.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] + N[(y * y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left(x \cdot x + \left(x \cdot 2\right) \cdot y\right) + y \cdot y
\end{array}

Reproduce

?
herbie shell --seed 2024321 
(FPCore (x y)
  :name "Examples.Basics.ProofTests:f4 from sbv-4.4"
  :precision binary64
  :pre (TRUE)

  :alt
  (! :herbie-platform default (+ (* x x) (+ (* y y) (* (* x y) 2))))

  (+ (+ (* x x) (* (* x 2.0) y)) (* y y)))

Please file a bug report with this information.

Backtrace

numerator: contract violation expected: rational-number? given: +inf.0LC
egglog-add-exprs/home/nightlies/herbie/varun10p-egglog/src/core/egglog-herbie.rkt4080
final-simplify!/home/nightlies/herbie/varun10p-egglog/src/core/mainloop.rkt3500
extract!/home/nightlies/herbie/varun10p-egglog/src/core/mainloop.rkt810
run-improve!/home/nightlies/herbie/varun10p-egglog/src/core/mainloop.rkt460
get-alternatives/report/home/nightlies/herbie/varun10p-egglog/src/api/sandbox.rkt1860
(unnamed)/home/nightlies/herbie/varun10p-egglog/src/api/sandbox.rkt2826
(unnamed)/usr/share/racket/pkgs/profile-lib/main.rkt4010
profile-thunk/usr/share/racket/pkgs/profile-lib/main.rkt90
(unnamed)/usr/share/racket/collects/racket/engine.rkt4224