Graphics.Rendering.Chart.Axis.Types:hBufferRect from Chart-1.5.3

Specification

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

\\
x + \frac{x - y}{2}
\end{array}

Reproduce

?
herbie shell --seed 2024039 
(FPCore (x y)
  :name "Graphics.Rendering.Chart.Axis.Types:hBufferRect from Chart-1.5.3"
  :precision binary64

  :herbie-target
  (- (* 1.5 x) (* 0.5 y))

  (+ x (/ (- x y) 2.0)))

Please file a bug report with this information.

Backtrace

member: not a proper list in: 2LC
gather-multiplicative-terms/home/nightlies/herbie/sound-rules/src/core/reduce.rkt1250
simplify-node*/home/nightlies/herbie/sound-rules/src/core/reduce.rkt840
hash-ref!/usr/local/racket/collects/racket/private/more-scheme.rkt3772
hash-ref!/usr/local/racket/collects/racket/private/more-scheme.rkt3772
loop.../private/map.rkt4019
loop.../private/map.rkt4019
f19.../match/compiler.rkt55940
hash-ref!/usr/local/racket/collects/racket/private/more-scheme.rkt3772
approximate/home/nightlies/herbie/sound-rules/src/core/taylor.rkt70
taylor-expr/home/nightlies/herbie/sound-rules/src/patch.rkt890
taylor-alt/home/nightlies/herbie/sound-rules/src/patch.rkt960
gen-series!/home/nightlies/herbie/sound-rules/src/patch.rkt1090
patch-table-run/home/nightlies/herbie/sound-rules/src/patch.rkt2570
(unnamed)/usr/local/racket/collects/racket/contract/private/arrow-val-first.rkt48618
run-iter!/home/nightlies/herbie/sound-rules/src/mainloop.rkt2880
mutate!/home/nightlies/herbie/sound-rules/src/mainloop.rkt3400
run-improve!/home/nightlies/herbie/sound-rules/src/mainloop.rkt3260
get-alternatives/report/home/nightlies/herbie/sound-rules/src/sandbox.rkt1690
(unnamed)/home/nightlies/herbie/sound-rules/src/sandbox.rkt2626
(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