Test data fixed: mark() instructions added
This commit is contained in:
@@ -18,52 +18,64 @@ fun f(a : Boolean) : Unit {
|
||||
}
|
||||
---------------------
|
||||
L0:
|
||||
<START>
|
||||
v(a : Boolean)
|
||||
w(a)
|
||||
r(1)
|
||||
r(a)
|
||||
r(2)
|
||||
call(toLong, toLong)
|
||||
r(a)
|
||||
r(3)
|
||||
call(foo, foo)
|
||||
call(genfun, genfun)
|
||||
jmp?(L2) NEXT:[r({1}), d({1})]
|
||||
d({1}) NEXT:[<SINK>]
|
||||
<START>
|
||||
v(a : Boolean)
|
||||
w(a)
|
||||
mark({ 1 a 2.toLong() foo(a, 3) genfun<Any>() flfun {1} 3.equals(4) 3 equals 4 1 + 2 a && true a || false })
|
||||
r(1)
|
||||
r(a)
|
||||
mark(2.toLong())
|
||||
mark(toLong())
|
||||
r(2)
|
||||
call(toLong, toLong)
|
||||
mark(foo(a, 3))
|
||||
r(a)
|
||||
r(3)
|
||||
call(foo, foo)
|
||||
mark(genfun<Any>())
|
||||
call(genfun, genfun)
|
||||
mark(flfun {1})
|
||||
mark({1})
|
||||
jmp?(L2) NEXT:[r({1}), d({1})]
|
||||
d({1}) NEXT:[<SINK>]
|
||||
L2:
|
||||
r({1}) PREV:[jmp?(L2)]
|
||||
call(flfun, flfun)
|
||||
r(3)
|
||||
r(4)
|
||||
call(equals, equals)
|
||||
r(3)
|
||||
r(4)
|
||||
call(equals, equals)
|
||||
r(1)
|
||||
r(2)
|
||||
call(+, plus)
|
||||
r(a)
|
||||
jf(L5) NEXT:[r(a && true), r(true)]
|
||||
r(true)
|
||||
r({1}) PREV:[jmp?(L2)]
|
||||
call(flfun, flfun)
|
||||
mark(3.equals(4))
|
||||
mark(equals(4))
|
||||
r(3)
|
||||
r(4)
|
||||
call(equals, equals)
|
||||
mark(3 equals 4)
|
||||
r(3)
|
||||
r(4)
|
||||
call(equals, equals)
|
||||
mark(1 + 2)
|
||||
r(1)
|
||||
r(2)
|
||||
call(+, plus)
|
||||
r(a)
|
||||
jf(L5) NEXT:[r(a && true), r(true)]
|
||||
r(true)
|
||||
L5:
|
||||
r(a && true) PREV:[jf(L5), r(true)]
|
||||
r(a)
|
||||
jt(L6) NEXT:[r(false), r(a || false)]
|
||||
r(false)
|
||||
r(a && true) PREV:[jf(L5), r(true)]
|
||||
r(a)
|
||||
jt(L6) NEXT:[r(false), r(a || false)]
|
||||
r(false)
|
||||
L6:
|
||||
r(a || false) PREV:[jt(L6), r(false)]
|
||||
r(a || false) PREV:[jt(L6), r(false)]
|
||||
L1:
|
||||
<END> NEXT:[<SINK>]
|
||||
<END> NEXT:[<SINK>]
|
||||
error:
|
||||
<ERROR> PREV:[]
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
<SINK> PREV:[<ERROR>, <END>, d({1})]
|
||||
<SINK> PREV:[<ERROR>, <END>, d({1})]
|
||||
L3:
|
||||
<START>
|
||||
mark(1)
|
||||
r(1)
|
||||
L4:
|
||||
<END> NEXT:[<SINK>]
|
||||
<END> NEXT:[<SINK>]
|
||||
error:
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
@@ -74,9 +86,10 @@ sink:
|
||||
---------------------
|
||||
L3:
|
||||
<START>
|
||||
mark(1)
|
||||
r(1)
|
||||
L4:
|
||||
<END> NEXT:[<SINK>]
|
||||
<END> NEXT:[<SINK>]
|
||||
error:
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
@@ -91,6 +104,7 @@ L0:
|
||||
w(a)
|
||||
v(b : Int)
|
||||
w(b)
|
||||
mark({})
|
||||
read (Unit)
|
||||
L1:
|
||||
<END> NEXT:[<SINK>]
|
||||
@@ -104,6 +118,7 @@ fun genfun<T>() : Unit {}
|
||||
---------------------
|
||||
L0:
|
||||
<START>
|
||||
mark({})
|
||||
read (Unit)
|
||||
L1:
|
||||
<END> NEXT:[<SINK>]
|
||||
@@ -119,6 +134,7 @@ L0:
|
||||
<START>
|
||||
v(f : () -> Any)
|
||||
w(f)
|
||||
mark({})
|
||||
read (Unit)
|
||||
L1:
|
||||
<END> NEXT:[<SINK>]
|
||||
|
||||
Reference in New Issue
Block a user