Linear.Projection:perspective from linear-1.19.1.3, B

Specification

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

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

Reproduce

?
herbie shell --seed 2024283 
(FPCore (x y)
  :name "Linear.Projection:perspective from linear-1.19.1.3, B"
  :precision binary64

  :alt
  (! :herbie-platform default (if (< x -1721044263414944700000000000000000000000000000000000000000000000000000000000000000) (* (/ (* 2 x) (- x y)) y) (if (< x 83645045635564430) (/ (* x 2) (/ (- x y) y)) (* (/ (* 2 x) (- x y)) y))))

  (/ (* (* x 2.0) y) (- x y)))

Please file a bug report with this information.

Backtrace

eprintf: format string requires 0 arguments, given 1; arguments were: '(#s(si 1 1) #s(si 0 3) #s(si 1 4))LC
err-lsts->split-indices/home/nightlies/herbie/zane-regimes-old/src/core/regimes.rkt2190
option-on-expr/home/nightlies/herbie/zane-regimes-old/src/core/regimes.rkt1200
infer-splitpoints/home/nightlies/herbie/zane-regimes-old/src/core/regimes.rkt560
loop/home/nightlies/herbie/zane-regimes-old/src/core/regimes.rkt412
make-regime!/home/nightlies/herbie/zane-regimes-old/src/core/mainloop.rkt3500
extract!/home/nightlies/herbie/zane-regimes-old/src/core/mainloop.rkt790
run-improve!/home/nightlies/herbie/zane-regimes-old/src/core/mainloop.rkt450
get-alternatives/report/home/nightlies/herbie/zane-regimes-old/src/api/sandbox.rkt1860
(unnamed)/home/nightlies/herbie/zane-regimes-old/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