Pseudocode: Introduce pseudo-value analysis

This commit is contained in:
Alexey Sedunov
2014-05-12 17:42:44 +04:00
parent 3ce96671d9
commit d2c055e9da
103 changed files with 2417 additions and 1432 deletions
@@ -6,17 +6,18 @@ fun foo(a: Array<Int>) {
L0:
1 <START>
v(a: Array<Int>)
w(a)
magic(a: Array<Int>) -> <v0>
w(a|<v0>)
2 mark({ a[1] = 2 })
mark(a[1])
r(a)
r(1)
r(2)
call(a[1], set)
r(a) -> <v1>
r(1) -> <v2>
r(2) -> <v3>
call(a[1] = 2, set|<v1>, <v2>, <v3>) -> <v4>
L1:
1 <END> NEXT:[<SINK>]
1 <END> NEXT:[<SINK>]
error:
<ERROR> PREV:[]
<ERROR> PREV:[]
sink:
<SINK> PREV:[<ERROR>, <END>]
<SINK> PREV:[<ERROR>, <END>]
=====================