Statistics.Correlation.Kendall:numOfTiesBy from math-functions-0.1.5.2

Specification

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

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

Reproduce

?
herbie shell --seed 2024277 
(FPCore (x)
  :name "Statistics.Correlation.Kendall:numOfTiesBy from math-functions-0.1.5.2"
  :precision binary64

  :alt
  (! :herbie-platform default (- (* x x) x))

  (* x (- x 1.0)))

Please file a bug report with this information.

Backtrace

vector-set!: contract violation expected: exact-nonnegative-integer? given: '(0 1) argument position: 2nd first argument...: '#(0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...LC
compute-local-errors/home/nightlies/herbie/zane-concrete-values/src/core/localize.rkt2160
actual-errors/home/nightlies/herbie/zane-concrete-values/src/core/explain.rkt350
generate-timelines/home/nightlies/herbie/zane-concrete-values/src/core/explain.rkt4980
explain!/home/nightlies/herbie/zane-concrete-values/src/core/mainloop.rkt3230
run-improve!/home/nightlies/herbie/zane-concrete-values/src/core/mainloop.rkt450
get-alternatives/report/home/nightlies/herbie/zane-concrete-values/src/api/sandbox.rkt1860
(unnamed)/home/nightlies/herbie/zane-concrete-values/src/api/sandbox.rkt2826
(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