Linear.Projection:inversePerspective from linear-1.19.1.3, C

Specification

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

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

Reproduce

?
herbie shell --seed 2024246 
(FPCore (x y)
  :name "Linear.Projection:inversePerspective from linear-1.19.1.3, C"
  :precision binary64

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

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

Please file a bug report with this information.

Backtrace

map: contract violation expected: list? given: '(y . #hasheq((errs . (1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...LC
gen-map/usr/local/racket/collects/racket/private/map.rkt2572
actual-errors/home/nightlies/herbie/zane-concrete-values/src/core/explain.rkt350
generate-timelines/home/nightlies/herbie/zane-concrete-values/src/core/explain.rkt4930
explain!/home/nightlies/herbie/zane-concrete-values/src/core/mainloop.rkt3220
run-improve!/home/nightlies/herbie/zane-concrete-values/src/core/mainloop.rkt440
get-alternatives/report/home/nightlies/herbie/zane-concrete-values/src/api/sandbox.rkt1860
(unnamed)/home/nightlies/herbie/zane-concrete-values/src/api/sandbox.rkt2826
(unnamed)/usr/local/racket/share/pkgs/profile-lib/main.rkt4010
profile-thunk/usr/local/racket/share/pkgs/profile-lib/main.rkt90
(unnamed)/usr/local/racket/collects/racket/engine.rkt4224