From 0d08ec191bf3f15ae89dc243877d9295b3004bc6 Mon Sep 17 00:00:00 2001 From: qunyanm Date: Mon, 8 Feb 2016 15:22:06 -0800 Subject: Fix issue 120. Need to wrap operations that are "lit lifted" and turned into boogie function calls with "Lit" function. --- Test/dafny4/Bug120.dfy | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Test/dafny4/Bug120.dfy (limited to 'Test/dafny4/Bug120.dfy') 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 -- cgit v1.2.3