Test data fixed: mark() instructions added

This commit is contained in:
Andrey Breslav
2013-12-04 14:30:41 +04:00
parent e09d3aab3a
commit 87879ba654
37 changed files with 1358 additions and 976 deletions
+32 -26
View File
@@ -10,33 +10,39 @@ fun foo() {
}
---------------------
L0:
<START>
v(val a = Array<Int>)
call(Array, <init>)
w(a)
r(3)
r(a)
r(10)
r(4)
call(a[10], set)
r(2)
r(a)
r(10)
call(a[10], get)
r(100)
r(a)
r(10)
call(a[10], get)
r(1)
call(+=, plus)
r(a)
r(10)
r(1)
call(a[10], set)
<START>
mark({ val a = Array<Int> 3 a[10] = 4 2 a[10] 100 a[10] += 1 })
v(val a = Array<Int>)
mark(Array<Int>)
call(Array, <init>)
w(a)
r(3)
mark(a[10])
r(a)
r(10)
r(4)
call(a[10], set)
r(2)
mark(a[10])
r(a)
r(10)
call(a[10], get)
r(100)
mark(a[10] += 1)
mark(a[10])
r(a)
r(10)
call(a[10], get)
r(1)
call(+=, plus)
r(a)
r(10)
r(1)
call(a[10], set)
L1:
<END> NEXT:[<SINK>]
<END> NEXT:[<SINK>]
error:
<ERROR> PREV:[]
<ERROR> PREV:[]
sink:
<SINK> PREV:[<ERROR>, <END>]
<SINK> PREV:[<ERROR>, <END>]
=====================