Skip to content

Commit

Permalink
CN: Fix lemmata tests (#454)
Browse files Browse the repository at this point in the history
These tests are not enabled in the CI yet (they should be, but I couldn't figure it out and I'm away for the next 1.5 weeks).

`as_auto_mutual_dt` was deleted because there's [a check in CN](https://github.com/rems-project/cerberus/blob/556171a17fca94b6aaf76bccfa7db63833428113/backend/cn/lib/wellTyped.ml#L2443-L2444) which prevents the indirect recursion used in [as_auto_mutual_dt/tree16.error.c](https://github.com/rems-project/cerberus/blob/master/tests/cn/tree16/as_auto_mutual_dt/tree16.error.c) from passing.

Tested with the following:
```sh
➜  coqc --version
The Coq Proof Assistant, version 8.19.2
compiled with OCaml 4.14.1
```
  • Loading branch information
dc-mak authored Jul 30, 2024
1 parent 556171a commit 20d9d5c
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 371 deletions.
2 changes: 1 addition & 1 deletion tests/cn/mutual_rec/coq_lemmas/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

all:
coq_makefile -f _CoqProject -o Makefile.coq
cn --lemmata theories/Gen_Spec.v ../mutual_rec.c
cn verify --lemmata theories/Gen_Spec.v ../mutual_rec.c
make -f Makefile.coq

2 changes: 1 addition & 1 deletion tests/cn/mutual_rec/coq_lemmas/theories/Setup.v
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Lemma merge_flip: forall xs ys,
Proof.
intros.
unfold merge.
rewrite plus_comm.
rewrite PeanoNat.Nat.add_comm.
apply merge_w_flip.
auto.
Qed.
Expand Down
8 changes: 0 additions & 8 deletions tests/cn/tree16/as_auto_mutual_dt/coq_lemmas/Makefile

This file was deleted.

9 changes: 0 additions & 9 deletions tests/cn/tree16/as_auto_mutual_dt/coq_lemmas/_CoqProject

This file was deleted.

174 changes: 0 additions & 174 deletions tests/cn/tree16/as_auto_mutual_dt/coq_lemmas/theories/CN_Lib.v

This file was deleted.

86 changes: 0 additions & 86 deletions tests/cn/tree16/as_auto_mutual_dt/coq_lemmas/theories/Inst_Spec.v

This file was deleted.

90 changes: 0 additions & 90 deletions tests/cn/tree16/as_auto_mutual_dt/coq_lemmas/theories/Setup.v

This file was deleted.

2 changes: 1 addition & 1 deletion tests/cn/tree16/as_mutual_dt/coq_lemmas/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

all:
coq_makefile -f _CoqProject -o Makefile.coq
cn --lemmata theories/Gen_Spec.v ../tree16.c
cn verify --lemmata theories/Gen_Spec.v ../tree16.c
make -f Makefile.coq

Loading

0 comments on commit 20d9d5c

Please sign in to comment.