x (used to be hard to sample)

Specification

?
\[x = 0 \lor x = 10\]
\[\begin{array}{l} \\ x \end{array} \]
(FPCore (x) :precision binary64 x)
double code(double x) {
	return x;
}
real(8) function code(x)
    real(8), intent (in) :: x
    code = x
end function
public static double code(double x) {
	return x;
}
def code(x):
	return x
function code(x)
	return x
end
function tmp = code(x)
	tmp = x;
end
code[x_] := x
\begin{array}{l}

\\
x
\end{array}

Reproduce

?
herbie shell --seed 2024146 
(FPCore (x)
  :name "x (used to be hard to sample)"
  :precision binary64
  :pre (or (== x 0.0) (== x 10.0))
  x)

Please file a bug report with this information.

Backtrace

context-vars: contract violation expected: context? given: #<procedure:context>LC
context-varsunknown
context-lookup/home/nightlies/herbie/explanations-trifurcate/src/syntax/types.rkt1100
generate-timelines/home/nightlies/herbie/explanations-trifurcate/src/explain.rkt6140
explain!/home/nightlies/herbie/explanations-trifurcate/src/mainloop.rkt3620
mutate!/home/nightlies/herbie/explanations-trifurcate/src/mainloop.rkt650
run-improve!/home/nightlies/herbie/explanations-trifurcate/src/mainloop.rkt510
get-alternatives/report/home/nightlies/herbie/explanations-trifurcate/src/sandbox.rkt1710
(unnamed)/home/nightlies/herbie/explanations-trifurcate/src/sandbox.rkt2656
(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