(- (/ x0 (- 1 x1)) x0)

Specification

?
\[x0 = 1.855 \land x1 = 0.000209 \lor x0 = 2.985 \land x1 = 0.0186\]
\[\begin{array}{l} \\ \frac{x0}{1 - x1} - x0 \end{array} \]
(FPCore (x0 x1) :precision binary64 (- (/ x0 (- 1.0 x1)) x0))
double code(double x0, double x1) {
	return (x0 / (1.0 - x1)) - x0;
}
real(8) function code(x0, x1)
    real(8), intent (in) :: x0
    real(8), intent (in) :: x1
    code = (x0 / (1.0d0 - x1)) - x0
end function
public static double code(double x0, double x1) {
	return (x0 / (1.0 - x1)) - x0;
}
def code(x0, x1):
	return (x0 / (1.0 - x1)) - x0
function code(x0, x1)
	return Float64(Float64(x0 / Float64(1.0 - x1)) - x0)
end
function tmp = code(x0, x1)
	tmp = (x0 / (1.0 - x1)) - x0;
end
code[x0_, x1_] := N[(N[(x0 / N[(1.0 - x1), $MachinePrecision]), $MachinePrecision] - x0), $MachinePrecision]
\begin{array}{l}

\\
\frac{x0}{1 - x1} - x0
\end{array}

Reproduce

?
herbie shell --seed 2024170 
(FPCore (x0 x1)
  :name "(- (/ x0 (- 1 x1)) x0)"
  :precision binary64
  :pre (or (and (== x0 1.855) (== x1 0.000209)) (and (== x0 2.985) (== x1 0.0186)))

  :alt
  (! :herbie-platform default (/ (* x0 x1) (- 1 x1)))

  (- (/ x0 (- 1.0 x1)) x0))

Please file a bug report with this information.

Backtrace

timeline-push!: contract violation expected: jsexpr? given: '#hash((#t . 5.877471754111438e-39) (unknown . 5.877471754111438e-39) (precondition . 1.0) (valid . 0.0)) in: the repeated argument of (-> symbol? jsexpr? ... void?) contract from: <pkgs>/herbie/timeline.rkt blaming: <pkgs>/herbie/searchreals.rkt (assuming the contract is correct) at: <pkgs>/herbie/timeline.rkt:10:3LC
raise-blame-error/usr/local/racket/collects/racket/contract/private/blame.rkt3460
loop/usr/local/racket/collects/racket/contract/private/list.rkt99112
(unnamed).../private/arrow-val-first.rkt48618
find-intervals/home/nightlies/herbie/zane-job-abstraction3/src/searchreals.rkt860
make-sampler/home/nightlies/herbie/zane-job-abstraction3/src/sampling.rkt1100
sample-points/home/nightlies/herbie/zane-job-abstraction3/src/sampling.rkt2440
setup-context!/home/nightlies/herbie/zane-job-abstraction3/src/mainloop.rkt450
get-alternatives/report/home/nightlies/herbie/zane-job-abstraction3/src/sandbox.rkt1660
(unnamed)/home/nightlies/herbie/zane-job-abstraction3/src/sandbox.rkt2606
(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