summaryrefslogtreecommitdiff
path: root/python/examples/asm_to_llil_view.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/examples/asm_to_llil_view.py')
-rw-r--r--python/examples/asm_to_llil_view.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/python/examples/asm_to_llil_view.py b/python/examples/asm_to_llil_view.py
index 18c77547..3b7fb374 100644
--- a/python/examples/asm_to_llil_view.py
+++ b/python/examples/asm_to_llil_view.py
@@ -1,5 +1,5 @@
# Copyright (c) 2019-2022 Vector 35 Inc
-#
+#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
@@ -103,13 +103,18 @@ class DisassemblyAndLowLevelILGraph(FlowGraph):
for line in lines:
if line.il_instruction is None:
# For assembly lines, show address
- line.tokens.insert(0, InstructionTextToken(InstructionTextTokenType.AddressDisplayToken,
- "%.8x" % line.address, line.address))
+ line.tokens.insert(
+ 0, InstructionTextToken(InstructionTextTokenType.AddressDisplayToken, "%.8x" % line.address, line.address)
+ )
line.tokens.insert(1, InstructionTextToken(InstructionTextTokenType.TextToken, " "))
else:
# For IL lines, show IL instruction index
- line.tokens.insert(0, InstructionTextToken(InstructionTextTokenType.AnnotationToken,
- "%8s" % ("[%d]" % line.il_instruction.instr_index)))
+ line.tokens.insert(
+ 0,
+ InstructionTextToken(
+ InstructionTextTokenType.AnnotationToken, "%8s" % ("[%d]" % line.il_instruction.instr_index)
+ )
+ )
line.tokens.insert(1, InstructionTextToken(InstructionTextTokenType.AnnotationToken, " => "))
nodes[block.start].lines = lines