diff options
author | akashlal <unknown> | 2013-04-18 17:50:18 +0530 |
---|---|---|
committer | akashlal <unknown> | 2013-04-18 17:50:18 +0530 |
commit | a2fcc9e7617800e2139a9cbbfa720222e4c1b6f5 (patch) | |
tree | 48d4d5b6d86968a058ffbbe9661518ec763b9204 /Test/AbsHoudini/test8.bpl | |
parent | 308a4d37f063384cb8de166b248d9377c904e77c (diff) |
Nice clean re-implementation of AbstractHoudini. And tests
Diffstat (limited to 'Test/AbsHoudini/test8.bpl')
-rw-r--r-- | Test/AbsHoudini/test8.bpl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Test/AbsHoudini/test8.bpl b/Test/AbsHoudini/test8.bpl new file mode 100644 index 00000000..12eab481 --- /dev/null +++ b/Test/AbsHoudini/test8.bpl @@ -0,0 +1,21 @@ +var g: int;
+
+procedure main()
+modifies g;
+{
+ g := 0;
+ call foo();
+ assert g == 1;
+}
+
+procedure {:inline 1} foo()
+modifies g;
+{
+ call bar();
+}
+
+procedure bar()
+modifies g;
+{
+ g := g + 1;
+}
\ No newline at end of file |