diff options
author | 2010-03-27 15:57:02 +0000 | |
---|---|---|
committer | 2010-03-27 15:57:02 +0000 | |
commit | be76b6af359ea61bc71e59efb4802ff01cce728c (patch) | |
tree | 22e894bedaac5f5d8fc29c498042e2ff9bf7767c /test-suite/complexity/lettuple.v | |
parent | eab11e537905472fdcc3257bc9913df82c82b3e4 (diff) |
Fixing bug #2279 (printing nested let-in was in exponential time)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@12887 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'test-suite/complexity/lettuple.v')
-rw-r--r-- | test-suite/complexity/lettuple.v | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test-suite/complexity/lettuple.v b/test-suite/complexity/lettuple.v new file mode 100644 index 000000000..f97decf0a --- /dev/null +++ b/test-suite/complexity/lettuple.v @@ -0,0 +1,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 Print f. |