summaryrefslogtreecommitdiff
path: root/test/coq/pass/while_PP_terminating.sail
blob: 00a4450b9e54f21c892f1b1a57c3cdfbd1f46d7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
default Order dec

$include <prelude.sail>

function test n : int -> int = {
  i : int = 1;
  j : int = 1;
  while i < n do {
    j = i * j;
    i = i + 1
  };
  j
}