aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/complexity/lettuple.v
blob: 0690459fc83d3510c5b07eb0d655087ce9dc5ba4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
(* This example checks if printing nested let-in's stays in linear time *)
(* Expected time < 1.00s *)

Definition f (x : nat * nat) :=
  let (a,b) := x in
  let (a,b) := x in
  let (a,b) := x in
  let (a,b) := x in
  let (a,b) := x in
  let (a,b) := x in
  let (a,b) := x in
  let (a,b) := x in
  let (a,b) := x in
  let (a,b) := x in
  let (a,b) := x in
  let (a,b) := x in
  let (a,b) := x in
  let (a,b) := x in
  let (a,b) := x in
  let (a,b) := x in
  let (a,b) := x in
  let (a,b) := x in
  let (a,b) := x in
  let (a,b) := x in
  let (a,b) := x in
  let (a,b) := x in
  0.

Timeout 5 Time Print f.