Cancel like terms

Specification

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

\\
\left(1 + x\right) - x
\end{array}

Reproduce

?
herbie shell --seed 2024196 
(FPCore (x)
  :name "Cancel like terms"
  :precision binary64
  (- (+ 1.0 x) x))

Please file a bug report with this information.

Backtrace

vector-set!: contract violation expected: exact-nonnegative-integer? given: -1 argument position: 2nd first argument...: '#(#f #t #f #f #f)LC
backward-pass/home/nightlies/rival/main/eval/adjust.rkt80
rival-machine-adjust/home/nightlies/rival/main/eval/run.rkt980
rival-machine-full/home/nightlies/rival/main/eval/main.rkt160
rival-apply/home/nightlies/rival/main/eval/main.rkt560
(unnamed)/usr/local/racket/collects/racket/contract/private/arrow-val-first.rkt48618
(unnamed)/home/nightlies/herbie/zane-odyssey-timeline/src/sampling.rkt1594
ival-eval/home/nightlies/herbie/zane-odyssey-timeline/src/sampling.rkt1530
<eval-prog-real>/home/nightlies/herbie/zane-odyssey-timeline/src/sampling.rkt1882
predict-errors/home/nightlies/herbie/zane-odyssey-timeline/src/explain.rkt860
explain/home/nightlies/herbie/zane-odyssey-timeline/src/explain.rkt7360
explain!/home/nightlies/herbie/zane-odyssey-timeline/src/mainloop.rkt3390
mutate!/home/nightlies/herbie/zane-odyssey-timeline/src/mainloop.rkt620
run-improve!/home/nightlies/herbie/zane-odyssey-timeline/src/mainloop.rkt480
get-alternatives/report/home/nightlies/herbie/zane-odyssey-timeline/src/sandbox.rkt1670
(unnamed)/home/nightlies/herbie/zane-odyssey-timeline/src/sandbox.rkt2616
(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