Pseudocode: Introduce pseudo-value analysis
This commit is contained in:
@@ -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>]
|
||||
=====================
|
||||
|
||||
Reference in New Issue
Block a user