Skip to content

Commit dff3dbc

Browse files
committed
Add value
1 parent 2aff842 commit dff3dbc

File tree

1 file changed

+3
-0
lines changed
  • jacodb-panda-dynamic/src/main/kotlin/org/jacodb/panda/dynamic/parser

1 file changed

+3
-0
lines changed

jacodb-panda-dynamic/src/main/kotlin/org/jacodb/panda/dynamic/parser/ProgramToDot.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ fun IRParser.Program.toDot(): String {
7878
bb.insts.forEachIndexed { i, inst ->
7979
val labelLines: MutableList<String> = mutableListOf()
8080
labelLines += "${inst.id}: ${inst.opcode}: ${inst.type}"
81+
if (inst.value != null) {
82+
labelLines += "value = ${inst.value}"
83+
}
8184
if (inst.inputs.isNotEmpty()) {
8285
labelLines += "inputs = ${inst.inputs}"
8386
}

0 commit comments

Comments
 (0)