From e78cae77103b5396ce42d9e33593ea55f9135be0 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Mon, 20 Jan 2025 18:44:25 -0500 Subject: Revert "Add line formatter API and a generic line formatter plugin" This reverts commit 1699c71999d29d32aba5c9f8fea193a661a4b02b. --- python/examples/pseudo_python.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'python/examples') diff --git a/python/examples/pseudo_python.py b/python/examples/pseudo_python.py index 655039fe..6a9e401b 100644 --- a/python/examples/pseudo_python.py +++ b/python/examples/pseudo_python.py @@ -316,7 +316,16 @@ class PseudoPythonFunction(LanguageRepresentationFunction): tokens.append(InstructionTextToken(InstructionTextTokenType.TextToken, ": ")) tokens.append(instr.var.type.get_tokens()) elif instr.operation == HighLevelILOperation.HLIL_FLOAT_CONST: - tokens.append(InstructionTextToken(InstructionTextTokenType.FloatingPointToken, f"{instr.constant:g}")) + # The constant value in the instruction contains the raw bits of the floating point value. Convert + # this to a floating point value and display it. + if instr.size == 4: + value = struct.unpack(" DisassemblyTextLine: tokens = [] -- cgit v1.3.1