From d0a06250f82efe318fcc0f7ce80d4286552fe727 Mon Sep 17 00:00:00 2001 From: Clément Pit--Claudel Date: Sat, 22 Aug 2015 20:05:57 -0700 Subject: Add more wishes to the wishlist --- Test/wishlist/naked-function-in-recursive-setting.dfy | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Test/wishlist/naked-function-in-recursive-setting.dfy (limited to 'Test/wishlist/naked-function-in-recursive-setting.dfy') diff --git a/Test/wishlist/naked-function-in-recursive-setting.dfy b/Test/wishlist/naked-function-in-recursive-setting.dfy new file mode 100644 index 00000000..650fc4c3 --- /dev/null +++ b/Test/wishlist/naked-function-in-recursive-setting.dfy @@ -0,0 +1,13 @@ +// RUN: %dafny /compile:0 /print:"%t.print" /dprint:"%t.dprint" /printTooltips "%s" > "%t" +// RUN: %diff "%s.expect" "%t" + +function fact(n: int): int + requires n >= 0 +{ + if n == 0 then + 1 + else ( + assert fact.requires(n-1); //WISH + n * fact(n-1) + ) +} -- cgit v1.2.3