diff options
author | 2011-11-13 17:25:28 -0800 | |
---|---|---|
committer | 2011-11-13 17:25:28 -0800 | |
commit | 163fc931061c2d3065ec7a0acba817357295c3d2 (patch) | |
tree | 12184d064e2a169179c0285cd4c65adab41a7fcc /Test/inline/test7.bpl | |
parent | c6797daa49abefba4480e5e7c99ce1605edcb083 (diff) |
added the option /inlineDepth:n. This option defaults to -1. If the user provides a non-negative number then that number is used to inline
procedures not annotated by {:inline n} attribute.
Diffstat (limited to 'Test/inline/test7.bpl')
-rw-r--r-- | Test/inline/test7.bpl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Test/inline/test7.bpl b/Test/inline/test7.bpl new file mode 100644 index 00000000..b5c6a4c6 --- /dev/null +++ b/Test/inline/test7.bpl @@ -0,0 +1,15 @@ +var g: int;
+
+procedure main()
+modifies g;
+{
+ g := 0;
+ call foo();
+ assert g == 1;
+}
+
+procedure foo()
+modifies g;
+{
+ g := g + 1;
+}
\ No newline at end of file |