-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suspicous EJson compare in qcert-runtime-core.js #159
Comments
Further, it seems that the JS implementation of Javascript runtime yields:
ImpEJson eval (Coq/OCaml) returns false (not equal) on the same input. |
My wasm implementation can be found here qcert/runtimes/assemblyscript/assembly/index.ts Lines 627 to 652 in a9a5365
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm implementing the last operators for the wasm runtime. I came across the implementation of
EJsonRuntimeCompare
inqcert-runtime-core.js
. It looks a bit suspicious to me. I cannot judge whether it's a bug or not.qcert/runtimes/javascript/qcert-runtime-core.js
Lines 79 to 133 in 0f07b1c
Coq/ImpEJson specifies this compare only for floats and integers. The JS runtime uses the compare on other types (and combinations of two different types) to speed up set union and intersection (
function min
andfunction max
in the linked JS file).The text was updated successfully, but these errors were encountered: