diff options
author | Nada Amin <namin@alum.mit.edu> | 2014-08-05 11:03:55 +0200 |
---|---|---|
committer | Nada Amin <namin@alum.mit.edu> | 2014-08-05 11:03:55 +0200 |
commit | a2b04d603976cc54ab40d981b4c2866b58c9945e (patch) | |
tree | 068ba022062538a8e9da9145df710bd124a50bc6 /Test/dafny0/ComputationsLoop2.dfy | |
parent | a5be808ee60f37b3e74e03660eab66c95154083e (diff) |
Tests for non-terminating computations. Already passing.
Diffstat (limited to 'Test/dafny0/ComputationsLoop2.dfy')
-rw-r--r-- | Test/dafny0/ComputationsLoop2.dfy | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Test/dafny0/ComputationsLoop2.dfy b/Test/dafny0/ComputationsLoop2.dfy new file mode 100644 index 00000000..d03d7c79 --- /dev/null +++ b/Test/dafny0/ComputationsLoop2.dfy @@ -0,0 +1,17 @@ +// RUN: %dafny /compile:0 /print:"%t.print" /dprint:"%t.dprint" "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+function KeepDoin'It(x: nat): nat
+{
+ KeepDoin'ItToo(x + 1)
+}
+
+function KeepDoin'ItToo(x: nat): nat
+{
+ KeepDoin'It(x + 1)
+}
+
+lemma Test(r: nat)
+{
+ assert KeepDoin'It(20) == r;
+}
\ No newline at end of file |