-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add adder
Test(s)
#400
Comments
(defcolumns
(X3 :i16@prove) (X2 :i16@prove) (X1 :i16@prove) (X0 :i16@prove)
(RES :binary@prove)
)
(defpurefun ((IS-ZERO :binary@loob :force) w3 w2 w1 w0) (+ w3 w2 w1 w0))
(defconstraint c1 ()
(if (IS-ZERO X3 X2 X1 X0)
(vanishes! RES) (eq! RES 1))) And an example trace:
|
Another example (bit shift):
Which accepts this trace:
|
Another one for comparison:
With this trace:
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is my code:
And an example trace:
What we could do is actually enumerate all input / output values and check it really works. We could repeat this for other operators related to field agnosticity.
The text was updated successfully, but these errors were encountered: