Debian Codegraph @

test-suite/bugs/bug_20699.v

raw
1 CoInductive strm := { hd : nat; tl : strm }.
2
3 CoFixpoint seq n := {| hd := n; tl := seq (S n) |}.
4
5 Definition test_lazy := Eval lazy in
6 let x := seq in
7 (hd (x 1), hd (x 5)).
8
9 Definition test_vm := Eval vm_compute in
10 let x := seq in
11 (hd (x 1), hd (x 5)).
12
13 Definition test_native := Eval native_compute in
14 let x := seq in
15 (hd (x 1), hd (x 5)).
16
17 Check eq_refl : test_lazy = (1, 5).
18 Check eq_refl : test_lazy = test_vm.
19 Check eq_refl : test_lazy = test_native.