summaryrefslogtreecommitdiff
path: root/Test
diff options
context:
space:
mode:
authorGravatar qunyanm <unknown>2016-02-08 15:22:06 -0800
committerGravatar qunyanm <unknown>2016-02-08 15:22:06 -0800
commit0d08ec191bf3f15ae89dc243877d9295b3004bc6 (patch)
tree489a9b1d27ff9b06ac537360f8b87afb68e2ee8d /Test
parente9c589851d913a6566c421c87483dc7e94519f91 (diff)
Fix issue 120. Need to wrap operations that are "lit lifted" and turned into
boogie function calls with "Lit" function.
Diffstat (limited to 'Test')
-rw-r--r--Test/dafny4/Bug120.dfy11
-rw-r--r--Test/dafny4/Bug120.dfy.expect2
2 files changed, 13 insertions, 0 deletions
diff --git a/Test/dafny4/Bug120.dfy b/Test/dafny4/Bug120.dfy
new file mode 100644
index 00000000..73553f2a
--- /dev/null
+++ b/Test/dafny4/Bug120.dfy
@@ -0,0 +1,11 @@
+// RUN: %dafny /compile:0 /noNLarith "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+function G(n: nat): nat
+{
+ if n == 0 then 5 else G(n-1)
+}
+
+method Test() {
+ assert G(10) == 5;
+} \ No newline at end of file
diff --git a/Test/dafny4/Bug120.dfy.expect b/Test/dafny4/Bug120.dfy.expect
new file mode 100644
index 00000000..52595bf9
--- /dev/null
+++ b/Test/dafny4/Bug120.dfy.expect
@@ -0,0 +1,2 @@
+
+Dafny program verifier finished with 3 verified, 0 errors