-
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
Open
cmester0
wants to merge
36
commits into
main
Choose a base branch
from
coq-small-fixes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Coq small fixes #1108
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
aeca05b
Add prefix to names
cmester0 16b3472
fmt
cmester0 b9727e5
Minor fixes
cmester0 37fb5ce
Update concrete ident for record
cmester0 49feac4
Improved enum and records
cmester0 8d53378
Test coq implementation / coverage tests
cmester0 316c39d
fmt
cmester0 5aa766f
CI for coq coverage
cmester0 dc95eea
fmt
cmester0 1f124ab
Remove unused file
cmester0 52106f0
random fmt bug?
cmester0 a134f1a
Update snapshot
cmester0 1801b1c
fmt
cmester0 e5e10ab
Test some snapshots
cmester0 b87a682
fmt
cmester0 f6d7a82
Add example co-inductive/mutual recursion issues with trait
cmester0 00d44cb
Update coq backend
cmester0 e3ff48a
Use core for coq coverage test
cmester0 783fca5
fmt
cmester0 85c4766
snapshot
cmester0 9cf8aec
fmt
cmester0 014525c
Snapshot update
cmester0 5dd787f
CI
cmester0 f4edc30
Minor changes
cmester0 0b6a19c
snapshot
cmester0 b058cf8
CI?
cmester0 6d8a653
wip
W95Psp ff429a0
Fix tests
cmester0 13b86ce
Fix tests
cmester0 197d1a3
CI: nix files for coq coverage example and library
W95Psp 71e0a65
Fixed coverage tests
cmester0 2a69ded
Merge
cmester0 7b28517
CI
cmester0 a1d69f1
fmt
cmester0 d58eb4f
snapshot
cmester0 77687e6
Typo
cmester0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Extract and Run - Coq | ||
|
||
on: [pull_request] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: DeterminateSystems/nix-installer-action@main | ||
- uses: DeterminateSystems/magic-nix-cache-action@main | ||
|
||
- name: ⤵ Install hax | ||
run: | | ||
nix build .\#coq-coverage-example | ||
|
||
# - name: build coverage example | ||
# working-directory: hax/examples/coverage | ||
# run: | | ||
# nix run . into coq | ||
|
||
# - name: install annotated core for coq | ||
# working-directory: hax/proof-libs/coq/coq/generated-core | ||
# run: | | ||
# 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" && \ | ||
# nix-shell --packages coq coqPackages.coq-record-update --run "sudo make install" | ||
|
||
# - name: run coq - coverage | ||
# working-directory: hax/examples/coverage/proofs/coq/extraction | ||
# run: | | ||
# sed 's/_impl_f_/_f_/' < Coverage_Test_instance.v > Coverage_Test_instance.v # TODO: this is a hotfix, should be solved in backend and removed from here. | ||
# 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" | ||
|
||
# - 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 | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.