summaryrefslogtreecommitdiff
path: root/Test/dafny0/ComputationsLoop.dfy
blob: ecba17e47d0196aa0084c0824b355c4107286fd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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;
}