diff options
author | Dan Liew <daniel.liew@imperial.ac.uk> | 2014-05-07 19:36:02 +0100 |
---|---|---|
committer | Dan Liew <daniel.liew@imperial.ac.uk> | 2014-05-07 19:36:02 +0100 |
commit | 8702d84fd360d9c2f11da295d616af4738bfd09a (patch) | |
tree | b3900efaeec0ffc53ab1a8c4a7e826ec66bc086d /Test/inline/test2.bpl.expect | |
parent | 9f555ab92f7cfe9edab8f12277b27cdee1849c32 (diff) |
Enabled the inline lit tests. In order to support expansion2.bpl
we now require the OutputCheck tool. The lit.site.cfg file has
been taught to require that this tool is in the user's PATH
before testing starts.
Diffstat (limited to 'Test/inline/test2.bpl.expect')
-rw-r--r-- | Test/inline/test2.bpl.expect | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/Test/inline/test2.bpl.expect b/Test/inline/test2.bpl.expect new file mode 100644 index 00000000..14521adb --- /dev/null +++ b/Test/inline/test2.bpl.expect @@ -0,0 +1,81 @@ + +var glb: int; + +procedure calculate(); + modifies glb; + + + +implementation calculate() +{ + var x: int; + var y: int; + + anon0: + y := 5; + call x := increase(y); + return; +} + + + +procedure {:inline 1} increase(i: int) returns (k: int); + modifies glb; + + + +implementation {:inline 1} increase(i: int) returns (k: int) +{ + var j: int; + + anon0: + j := i; + j := j + 1; + glb := glb + j; + k := j; + return; +} + + +after inlining procedure calls +procedure calculate(); + modifies glb; + + +implementation calculate() +{ + var x: int; + var y: int; + var inline$increase$0$j: int; + var inline$increase$0$i: int; + var inline$increase$0$k: int; + var inline$increase$0$glb: int; + + anon0: + y := 5; + goto inline$increase$0$Entry; + + inline$increase$0$Entry: + inline$increase$0$i := y; + havoc inline$increase$0$j, inline$increase$0$k; + inline$increase$0$glb := glb; + goto inline$increase$0$anon0; + + inline$increase$0$anon0: + inline$increase$0$j := inline$increase$0$i; + inline$increase$0$j := inline$increase$0$j + 1; + glb := glb + inline$increase$0$j; + inline$increase$0$k := inline$increase$0$j; + goto inline$increase$0$Return; + + inline$increase$0$Return: + x := inline$increase$0$k; + goto anon0$1; + + anon0$1: + return; +} + + + +Boogie program verifier finished with 2 verified, 0 errors |