diff options
author | 2014-08-05 10:07:12 -0700 | |
---|---|---|
committer | 2014-08-05 10:07:12 -0700 | |
commit | 08ab990d6f1a188c6cc039d6a2289daf41ff52d3 (patch) | |
tree | f6780baada9f7d87f52c0c4e6960197e333db37c /Test/dafny0/ComputationsLoop.dfy | |
parent | 498bff41addc9ca481926f668fb6b69b17b9deda (diff) | |
parent | a2b04d603976cc54ab40d981b4c2866b58c9945e (diff) |
Merge
Diffstat (limited to 'Test/dafny0/ComputationsLoop.dfy')
-rw-r--r-- | Test/dafny0/ComputationsLoop.dfy | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Test/dafny0/ComputationsLoop.dfy b/Test/dafny0/ComputationsLoop.dfy new file mode 100644 index 00000000..b89455a2 --- /dev/null +++ b/Test/dafny0/ComputationsLoop.dfy @@ -0,0 +1,13 @@ +// RUN: %dafny /compile:0 /print:"%t.print" /dprint:"%t.dprint" "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+function KeepDoin'It(x: nat): nat
+ decreases x;
+{
+ KeepDoin'It(x + 1)
+}
+
+lemma Test(r: nat)
+{
+ assert KeepDoin'It(20) == r;
+}
\ No newline at end of file |