test-suite/complexity/guard_illegal_call.v
raw| 1 | (* Examples to check that the guard condition does not evaluate |
| 2 | irrelevant subterms *) |
| 3 | (* Expected time < 1.00s *) |
| 4 | |
| 5 | Fixpoint slow n (s:bool) := |
| 6 | match n with |
| 7 | | 0 => true |
| 8 | | S k => andb (slow k s) (slow k s) |
| 9 | end. |
| 10 | |
| 11 | Timeout 5 Time Fixpoint F s n := |
| 12 | match n with |
| 13 | | 0 => fun _ => 0 |
| 14 | | S k => fun s' => F s k |
| 15 | end (slow 100 s). |