Skip to content

Commit

Permalink
collecting concrete values of object instance and arguments at the en…
Browse files Browse the repository at this point in the history
…d of the method
  • Loading branch information
AbdullinAM committed Nov 13, 2023
1 parent 5941abd commit c6aa286
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,16 @@ class SymbolicTraceInstrumenter(
else -> values.nullConstant to values.nullConstant
}
val instrumented = buildList {
if (inst.hasReturnValue) {
addAll(track(inst.returnValue))
}
val currentMethod = inst.parent.method
if (!currentMethod.isStatic) {
addAll(track(values.getThis(currentMethod.klass)))
}
for ((index, type) in currentMethod.argTypes.withIndex()) {
addAll(track(values.getArgument(index, currentMethod, type)))
}
add(
collectorClass.interfaceCall(
returnMethod, traceCollector,
Expand Down

0 comments on commit c6aa286

Please sign in to comment.