blob: 73553f2ad0d0df9b0963d189f7722b6d34483ba6 (
plain)
1
2
3
4
5
6
7
8
9
10
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;
}
|