-
Notifications
You must be signed in to change notification settings - Fork 22
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
Coq small fixes #1108
base: main
Are you sure you want to change the base?
Coq small fixes #1108
Conversation
f7cb54f
to
e39e7cd
Compare
@@ -56,3 +82,9 @@ Definition asserts (_ : unit) : unit := | |||
end in | |||
tt. | |||
''' | |||
_CoqProject = ''' | |||
-R ./ TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add name of create instead of TODO.
// TODO: | ||
// fn test() { | ||
// let add : fn(i32, i32) -> i32 = |x, y| x + y; | ||
// let _ = (|x : &u8| { x + x })(&2); | ||
|
||
// fn f<F : FnOnce() -> u8> (g: F) -> u8 { | ||
// g() + 2 | ||
// } | ||
|
||
// f(|| { | ||
// 23 | ||
// }); | ||
// // Prints "foobar". | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Support closures.
e04856e
to
5afea93
Compare
a4ab210
to
ddec63c
Compare
Let's look at that together to chat about CI, and merge |
Lasse and I are looking at that PR right now |
0150344
to
ff429a0
Compare
ff429a0
to
197d1a3
Compare
# - name: build and run coq on tests | ||
# env: | ||
# FILES: assert attribute-opaque enum-struct-variant | ||
# NOT_SUPPORTED_FILES: attributes cli conditional-match constructor-as-closure cyclic-modules enum-repr even dyn functions | ||
# run: | | ||
# for f in $FILES; do \ | ||
# cd hax/tests/$f && \ | ||
# nix run . into coq && \ | ||
# cd ../../.. | ||
# done | ||
# for f in $FILES; do \ | ||
# cd hax/tests/$f/proofs/coq/extraction && \ | ||
# nix-shell --packages coq coqPackages.coq-record-update --run "coq_makefile -f _CoqProject -o Makefile" && \ | ||
# nix-shell --packages coq coqPackages.coq-record-update --run "make" && \ | ||
# cd ../../../../../../ | ||
# done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Run Coq on (working) snapshot files. Still have to get full coverage.
@W95Psp The Coq code should work now. Seems to be an issue with |
No description provided.