Pseudocode: don't write full label name when jump on it
This commit is contained in:
+1
-1
@@ -36,4 +36,4 @@ error:
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
<SINK> PREV:[<ERROR>, <END>]
|
||||
=====================
|
||||
=====================
|
||||
+1
-1
@@ -56,4 +56,4 @@ error:
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
<SINK> PREV:[<ERROR>, <END>]
|
||||
=====================
|
||||
=====================
|
||||
+1
-1
@@ -43,4 +43,4 @@ error:
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
<SINK> PREV:[<ERROR>, <END>]
|
||||
=====================
|
||||
=====================
|
||||
+6
-6
@@ -7,16 +7,16 @@ L0:
|
||||
1 <START>
|
||||
2 mark({ {} })
|
||||
mark({})
|
||||
jmp?(L2 [after local declaration]) NEXT:[r({}) -> <v0>, d({})]
|
||||
d({}) NEXT:[<SINK>]
|
||||
jmp?(L2) NEXT:[r({}) -> <v0>, d({})]
|
||||
d({}) NEXT:[<SINK>]
|
||||
L2 [after local declaration]:
|
||||
r({}) -> <v0> PREV:[jmp?(L2 [after local declaration])]
|
||||
r({}) -> <v0> PREV:[jmp?(L2)]
|
||||
L1:
|
||||
1 <END> NEXT:[<SINK>]
|
||||
1 <END> NEXT:[<SINK>]
|
||||
error:
|
||||
<ERROR> PREV:[]
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
<SINK> PREV:[<ERROR>, <END>, d({})]
|
||||
<SINK> PREV:[<ERROR>, <END>, d({})]
|
||||
=====================
|
||||
== anonymous_0 ==
|
||||
{}
|
||||
|
||||
@@ -17,4 +17,4 @@ error:
|
||||
<ERROR> PREV:[throw (throw java.lang.RuntimeException()|<v0>)]
|
||||
sink:
|
||||
<SINK> PREV:[<ERROR>, <END>]
|
||||
=====================
|
||||
=====================
|
||||
@@ -14,4 +14,4 @@ error:
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
<SINK> PREV:[<ERROR>, <END>]
|
||||
=====================
|
||||
=====================
|
||||
@@ -141,10 +141,10 @@ L0:
|
||||
v(val a = object { val y : Int fun inner_bar() { y = 10 } })
|
||||
mark(object { val y : Int fun inner_bar() { y = 10 } })
|
||||
v(val y : Int)
|
||||
jmp?(L2 [after local declaration]) NEXT:[r(object { val y : Int fun inner_bar() { y = 10 } }) -> <v0>, d(fun inner_bar() { y = 10 })]
|
||||
jmp?(L2) NEXT:[r(object { val y : Int fun inner_bar() { y = 10 } }) -> <v0>, d(fun inner_bar() { y = 10 })]
|
||||
d(fun inner_bar() { y = 10 }) NEXT:[<SINK>]
|
||||
L2 [after local declaration]:
|
||||
r(object { val y : Int fun inner_bar() { y = 10 } }) -> <v0> PREV:[jmp?(L2 [after local declaration])]
|
||||
r(object { val y : Int fun inner_bar() { y = 10 } }) -> <v0> PREV:[jmp?(L2)]
|
||||
w(a|<v0>)
|
||||
L1:
|
||||
1 <END> NEXT:[<SINK>]
|
||||
@@ -196,10 +196,10 @@ L0:
|
||||
magic[IMPLICIT_RECEIVER]($x) -> <v0>
|
||||
r(1) -> <v1>
|
||||
w($x|<v0>, <v1>)
|
||||
2 jmp?(L2 [after local declaration]) NEXT:[r(object { val x : Int val y : Int { $x = 1 } fun ggg() { y = 10 } }) -> <v3>, d(fun ggg() { y = 10 })]
|
||||
2 jmp?(L2) NEXT:[r(object { val x : Int val y : Int { $x = 1 } fun ggg() { y = 10 } }) -> <v3>, d(fun ggg() { y = 10 })]
|
||||
d(fun ggg() { y = 10 }) NEXT:[<SINK>]
|
||||
L2 [after local declaration]:
|
||||
r(object { val x : Int val y : Int { $x = 1 } fun ggg() { y = 10 } }) -> <v3> PREV:[jmp?(L2 [after local declaration])]
|
||||
r(object { val x : Int val y : Int { $x = 1 } fun ggg() { y = 10 } }) -> <v3> PREV:[jmp?(L2)]
|
||||
w(a|<v3>)
|
||||
L1:
|
||||
1 <END> NEXT:[<SINK>]
|
||||
@@ -254,13 +254,13 @@ L0:
|
||||
magic[IMPLICIT_RECEIVER]($x) -> <v1>
|
||||
r(2) -> <v2>
|
||||
w($x|<v1>, <v2>)
|
||||
2 jmp?(L2 [after local declaration]) NEXT:[jmp?(L5 [after local declaration]), d(fun foo() { x = 3 })]
|
||||
2 jmp?(L2) NEXT:[jmp?(L5), d(fun foo() { x = 3 })]
|
||||
d(fun foo() { x = 3 }) NEXT:[<SINK>]
|
||||
L2 [after local declaration]:
|
||||
jmp?(L5 [after local declaration]) NEXT:[r(object { var x = 1 { $x = 2 } fun foo() { x = 3 } fun bar() { x = 4 } }) -> <v4>, d(fun bar() { x = 4 })] PREV:[jmp?(L2 [after local declaration])]
|
||||
jmp?(L5) NEXT:[r(object { var x = 1 { $x = 2 } fun foo() { x = 3 } fun bar() { x = 4 } }) -> <v4>, d(fun bar() { x = 4 })] PREV:[jmp?(L2)]
|
||||
d(fun bar() { x = 4 }) NEXT:[<SINK>]
|
||||
L5 [after local declaration]:
|
||||
r(object { var x = 1 { $x = 2 } fun foo() { x = 3 } fun bar() { x = 4 } }) -> <v4> PREV:[jmp?(L5 [after local declaration])]
|
||||
r(object { var x = 1 { $x = 2 } fun foo() { x = 3 } fun bar() { x = 4 } }) -> <v4> PREV:[jmp?(L5)]
|
||||
w(a|<v4>)
|
||||
L1:
|
||||
1 <END> NEXT:[<SINK>]
|
||||
|
||||
@@ -81,4 +81,4 @@ error:
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
<SINK> PREV:[<ERROR>, <END>]
|
||||
=====================
|
||||
=====================
|
||||
@@ -14,11 +14,11 @@ fun f() {
|
||||
L0:
|
||||
1 <START>
|
||||
2 mark({ class LocalClass() { fun f() { val x = "" fun loc() { val x3 = "" } } } })
|
||||
jmp?(L2 [after local declaration]) NEXT:[<END>, d(fun f() { val x = "" fun loc() { val x3 = "" } })]
|
||||
jmp?(L2) NEXT:[<END>, d(fun f() { val x = "" fun loc() { val x3 = "" } })]
|
||||
d(fun f() { val x = "" fun loc() { val x3 = "" } }) NEXT:[<SINK>]
|
||||
L1:
|
||||
L2 [after local declaration]:
|
||||
1 <END> NEXT:[<SINK>] PREV:[jmp?(L2 [after local declaration])]
|
||||
1 <END> NEXT:[<SINK>] PREV:[jmp?(L2)]
|
||||
error:
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
@@ -40,11 +40,11 @@ L3:
|
||||
mark("")
|
||||
r("") -> <v0>
|
||||
w(x|<v0>)
|
||||
jmp?(L5 [after local declaration]) NEXT:[<END>, d(fun loc() { val x3 = "" })]
|
||||
jmp?(L5) NEXT:[<END>, d(fun loc() { val x3 = "" })]
|
||||
d(fun loc() { val x3 = "" }) NEXT:[<SINK>]
|
||||
L4:
|
||||
L5 [after local declaration]:
|
||||
3 <END> NEXT:[<SINK>] PREV:[jmp?(L5 [after local declaration])]
|
||||
3 <END> NEXT:[<SINK>] PREV:[jmp?(L5)]
|
||||
error:
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
|
||||
@@ -13,11 +13,11 @@ L0:
|
||||
1 <START>
|
||||
2 mark({ class B { val a: Int get() { val b: Int return b } } })
|
||||
v(val a: Int get() { val b: Int return b })
|
||||
jmp?(L2 [after local declaration]) NEXT:[<END>, d(get() { val b: Int return b })]
|
||||
jmp?(L2) NEXT:[<END>, d(get() { val b: Int return b })]
|
||||
d(get() { val b: Int return b }) NEXT:[<SINK>]
|
||||
L1:
|
||||
L2 [after local declaration]:
|
||||
1 <END> NEXT:[<SINK>] PREV:[jmp?(L2 [after local declaration])]
|
||||
1 <END> NEXT:[<SINK>] PREV:[jmp?(L2)]
|
||||
error:
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
|
||||
@@ -69,4 +69,4 @@ error:
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
<SINK> PREV:[<ERROR>, <END>]
|
||||
=====================
|
||||
=====================
|
||||
+1
-1
@@ -24,4 +24,4 @@ error:
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
<SINK> PREV:[<ERROR>, <END>]
|
||||
=====================
|
||||
=====================
|
||||
@@ -62,4 +62,4 @@ error:
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
<SINK> PREV:[<ERROR>, <END>]
|
||||
=====================
|
||||
=====================
|
||||
@@ -20,4 +20,4 @@ error:
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
<SINK> PREV:[<ERROR>, <END>]
|
||||
=====================
|
||||
=====================
|
||||
+1
-1
@@ -33,4 +33,4 @@ error:
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
<SINK> PREV:[<ERROR>, <END>]
|
||||
=====================
|
||||
=====================
|
||||
Reference in New Issue
Block a user