Skip to content
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

Negative Values in JSON Traces #306

Open
DavePearce opened this issue Dec 11, 2024 · 0 comments
Open

Negative Values in JSON Traces #306

DavePearce opened this issue Dec 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@DavePearce
Copy link
Collaborator

DavePearce commented Dec 11, 2024

(Thanks to @amkCha for pointing this out).

There appears to be some issues with the handling of negative values in json traces. Minimal test:

(module m1)
(defcolumns (X :byte@prove) Y)
(defconstraint c1 () (eq! X Y))

With this trace:

{ "m1": { "X": [1,255,-1], "Y": [1,255,-1] } }

And then this command:

corset check --trace test.json test.lisp

And no failure is reported. Furthermore, with this command:

corset check -eeeeN --trace test.json test.lisp

Then, it crashes.

@DavePearce DavePearce added the bug Something isn't working label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant