From 14923f6fd120eee686aa03054a3b584b1085d958 Mon Sep 17 00:00:00 2001 From: Fish Date: Tue, 14 Nov 2023 12:06:54 -0700 Subject: [PATCH] Hack: PCode-AIL lifting now drops all statements after calls for SPARC32. --- ailment/converter_pcode.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ailment/converter_pcode.py b/ailment/converter_pcode.py index af19006..4ba7014 100644 --- a/ailment/converter_pcode.py +++ b/ailment/converter_pcode.py @@ -151,6 +151,10 @@ def _convert(self) -> Block: self._convert_current_op() self._statement_idx += 1 + if "sparc:" in self._irsb.arch.name and self._irsb.arch.bits == 32: + if self._current_op.opcode == OpCode.CALL: + break + return Block(self._irsb.addr, self._irsb.size, statements=self._statements) def _convert_current_op(self) -> None: