diff options
Diffstat (limited to 'Test/lazyinline/bar7.bpl')
-rw-r--r-- | Test/lazyinline/bar7.bpl | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Test/lazyinline/bar7.bpl b/Test/lazyinline/bar7.bpl new file mode 100644 index 00000000..0eff6a7d --- /dev/null +++ b/Test/lazyinline/bar7.bpl @@ -0,0 +1,27 @@ +var x: int;
+var y: int;
+
+procedure {:inline 1} bar()
+modifies y;
+{
+ y := y + 1;
+}
+
+procedure {:inline 1} foo()
+modifies x, y;
+{
+ x := x + 1;
+ assert x != y;
+ call bar();
+ call bar();
+ x := x + 1;
+ assert x == y;
+}
+
+procedure main()
+requires x == y;
+modifies x, y;
+{
+ call foo();
+}
+
|