Skip to content

Commit 8f7606a

Browse files
committed
ARM:update FP classes for result types
1 parent e5c2984 commit 8f7606a

17 files changed

+1013
-555
lines changed

chb/app/CHVersion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
chbversion: str = "0.3.0-20250812"
1+
chbversion: str = "0.3.0-20250817"

chb/arm/ARMOpcode.py

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -395,64 +395,6 @@ def ast_switch_condition_prov(
395395
else:
396396
return (None, None)
397397

398-
def ast_variable_intro(
399-
self,
400-
astree: ASTInterface,
401-
ctype: Optional[AST.ASTTyp],
402-
hl_lhs: AST.ASTLval,
403-
hl_rhs: AST.ASTExpr,
404-
ll_lhs: AST.ASTLval,
405-
ll_rhs: AST.ASTExpr,
406-
hl_rdefs: List[Optional[ReachingDefFact]],
407-
ll_rdefs: List[Optional[ReachingDefFact]],
408-
defuses: Optional[DefUse],
409-
defuseshigh: Optional[DefUseHigh],
410-
addregdef: bool,
411-
iaddr: str,
412-
annotations: List[str],
413-
bytestring: str) -> Tuple[
414-
List[AST.ASTInstruction], List[AST.ASTInstruction]]:
415-
416-
ll_assign = astree.mk_assign(
417-
ll_lhs,
418-
ll_rhs,
419-
iaddr=iaddr,
420-
bytestring=bytestring,
421-
annotations=annotations)
422-
423-
regdef_lhs = hl_lhs
424-
425-
hl_assigns: List[AST.ASTInstruction] = []
426-
427-
hl_assign = astree.mk_assign(
428-
hl_lhs,
429-
hl_rhs,
430-
iaddr=iaddr,
431-
bytestring=bytestring,
432-
annotations=annotations)
433-
434-
if addregdef:
435-
chklogger.logger.debug(
436-
"Add register definition at %s for %s: %s with %s",
437-
iaddr,
438-
str(ll_lhs),
439-
str(regdef_lhs),
440-
str(hl_rhs))
441-
astree.add_reg_definition(iaddr, regdef_lhs, hl_rhs)
442-
443-
hl_assigns = [hl_assign]
444-
445-
astree.add_instr_mapping(hl_assign, ll_assign)
446-
astree.add_instr_address(hl_assign, [iaddr])
447-
astree.add_expr_mapping(hl_rhs, ll_rhs)
448-
astree.add_lval_mapping(hl_lhs, ll_lhs)
449-
astree.add_expr_reachingdefs(hl_rhs, hl_rdefs)
450-
astree.add_expr_reachingdefs(ll_rhs, ll_rdefs)
451-
astree.add_lval_defuses(hl_lhs, defuses)
452-
astree.add_lval_defuses_high(hl_lhs, defuseshigh)
453-
454-
return (hl_assigns, [ll_assign])
455-
456398
def ast_cc_expr(self, astree: ASTInterface) -> AST.ASTExpr:
457399
cc = self.mnemonic_extension()
458400

chb/arm/ARMOperandKind.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ def ast_lvalue(
726726
def ast_rvalue(
727727
self,
728728
astree: ASTInterface,
729-
iddr: Optional[str] = None,
729+
iaddr: Optional[str] = None,
730730
bytestring: Optional[str] = None,
731731
vtype: Optional[AST.ASTTyp] = None) -> Tuple[
732732
AST.ASTExpr, List[AST.ASTInstruction], List[AST.ASTInstruction]]:

0 commit comments

Comments
 (0)