Skip to content

Commit b091011

Browse files
committed
Test, changelog
1 parent 1230ba0 commit b091011

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
- **Added:**
2+
Treat looping fixpoints as branchless matches as fixpoint subterms
3+
(`#21846 <https://github.com/rocq-prover/rocq/pull/21846>`_,
4+
fixes `#19547 <https://github.com/rocq-prover/rocq/issues/19547>`_,
5+
by Yann Leray).
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
(* cf. https://github.com/rocq-prover/rocq/issues/19547 *)
2+
3+
Inductive Box (A : Type) : Type := box (a : A).
4+
Inductive P : Set := PRec : P -> P.
5+
6+
Fixpoint rec (X : P) : False :=
7+
let boxP : Box P := (fix loop (p : P) : Box P := match p with PRec p' => loop p' end) X in
8+
match boxP with
9+
| box _ p => rec p
10+
end.

0 commit comments

Comments
 (0)