summaryrefslogtreecommitdiff
path: root/Test/aitest0/Intervals.bpl
diff options
context:
space:
mode:
Diffstat (limited to 'Test/aitest0/Intervals.bpl')
-rw-r--r--Test/aitest0/Intervals.bpl15
1 files changed, 15 insertions, 0 deletions
diff --git a/Test/aitest0/Intervals.bpl b/Test/aitest0/Intervals.bpl
index fddce05a..8d40b81d 100644
--- a/Test/aitest0/Intervals.bpl
+++ b/Test/aitest0/Intervals.bpl
@@ -332,3 +332,18 @@ procedure W0(N: real)
assert N - i <= bf0 - 1.0;
}
}
+
+// mod
+
+procedure Mod0(n: int)
+ requires 10 < n;
+{
+ var i: int;
+
+ i := 0;
+ while (i < 10)
+ {
+ i := (i mod n) + 1;
+ }
+ assert i == 10;
+}