Pseudocode: Add valued instructions and unbound values to AbstractPseudoValueTest
This commit is contained in:
@@ -4,7 +4,7 @@ fun test() {
|
||||
test()
|
||||
}
|
||||
---------------------
|
||||
Exception() <v0>: {<: Throwable} NEW()
|
||||
test() <v1>: * NEW()
|
||||
{ throw Exception() test() } <v1>: * COPY
|
||||
Exception() <v0>: {<: Throwable} NEW: call(Exception, <init>) -> <v0>
|
||||
test() <v1>: * NEW: call(test, test) -> <v1>
|
||||
{ throw Exception() test() } <v1>: * COPY
|
||||
=====================
|
||||
|
||||
@@ -3,7 +3,7 @@ fun foo() {
|
||||
return ?: null
|
||||
}
|
||||
---------------------
|
||||
null <v0>: * NEW()
|
||||
return ?: null <v0>: * COPY
|
||||
{ return ?: null } <v0>: * COPY
|
||||
null <v0>: * NEW: r(null) -> <v0>
|
||||
return ?: null <v0>: * COPY
|
||||
{ return ?: null } <v0>: * COPY
|
||||
=====================
|
||||
|
||||
@@ -3,8 +3,8 @@ fun test() {
|
||||
"${throw Exception()} ${1}"
|
||||
}
|
||||
---------------------
|
||||
Exception() <v0>: {<: Throwable} NEW()
|
||||
1 <v1>: * NEW()
|
||||
"${throw Exception()} ${1}" <v2>: * NEW(<v1>)
|
||||
Exception() <v0>: {<: Throwable} NEW: call(Exception, <init>) -> <v0>
|
||||
1 <v1>: * NEW: r(1) -> <v1>
|
||||
"${throw Exception()} ${1}" <v2>: * NEW: magic("${throw Exception()} ${1}"|<v1>) -> <v2>
|
||||
{ "${throw Exception()} ${1}" } <v2>: * COPY
|
||||
=====================
|
||||
|
||||
Reference in New Issue
Block a user