Numeric.SpecFunctions:log1p from math-functions-0.1.5.2, B

?

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

Reproduce?

Please include this information when filing a bug report:

herbie shell --seed 2023241 
(FPCore (x)
  :name "Numeric.SpecFunctions:log1p from math-functions-0.1.5.2, B"
  :precision binary64
  (* x (- 1.0 (* x 0.5))))

Backtrace

inexact?: contract violation expected: number? given: (ival (bf "-2.098578716467387692404358116883839070632e323228496") (bf "2.098578716467387692404358116883839070632e323228496"))LC
real->bigfloat/usr/share/racket/pkgs/math-lib/math/private/bigfloat/mpfr.rkt4700
...row-higher-order.rkt:375:33/usr/share/racket/collects/racket/contract/private/arrow-higher-order.rkt37533
arg->precision/home/nightlies/herbie/arb-support/src/programs.rkt13811
f/home/nightlies/herbie/arb-support/src/programs.rkt1902
(unnamed)/home/nightlies/herbie/arb-support/src/ground-truth.rkt232
search-step/home/nightlies/herbie/arb-support/src/searchreals.rkt370
find-intervals/home/nightlies/herbie/arb-support/src/searchreals.rkt870
make-sampler/home/nightlies/herbie/arb-support/src/sampling.rkt940
sample-points/home/nightlies/herbie/arb-support/src/ground-truth.rkt640
setup-context!/home/nightlies/herbie/arb-support/src/mainloop.rkt2930
get-alternatives/report/home/nightlies/herbie/arb-support/src/sandbox.rkt1480
(unnamed)/home/nightlies/herbie/arb-support/src/sandbox.rkt2476
(unnamed)/usr/share/racket/pkgs/profile-lib/main.rkt4010
profile-thunk/usr/share/racket/pkgs/profile-lib/main.rkt90
(unnamed)/usr/share/racket/collects/racket/engine.rkt4224