Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion chb/arm/ARMInstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,10 @@ def ast_switch_condition_prov(self, astree: ASTInterface) -> Tuple[
jumptable = cast(
"ARMJumpTable", self.armfunction.get_jumptable(self.iaddr))
indexop = jumptable.index_operand
condition = self.xdata.xprs_r[1]
if self.xdata.is_cxpr_ok(0):
condition = self.xdata.cxprs_r[0]
else:
condition = self.xdata.xprs_r[1]
if condition is not None:
(ll_cond, _, _) = indexop.ast_rvalue(astree)
hl_cond = XU.xxpr_to_ast_def_expr(
Expand Down