Skip to content

Commit

Permalink
utils.py: replace production_for_klabel with symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
anvacaru committed Mar 20, 2024
1 parent a5c401a commit 112e34e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kevm-pyk/src/kevm_pyk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def byte_offset_to_lines(lines: Iterable[str], byte_start: int, byte_width: int)
def KDefinition__expand_macros(defn: KDefinition, term: KInner) -> KInner: # noqa: N802
def _expand_macros(_term: KInner) -> KInner:
if type(_term) is KApply:
prod = defn.production_for_klabel(_term.label)
prod = defn.symbols[_term.label.name]
if any(key in prod.att for key in [Atts.MACRO, Atts.ALIAS, Atts.MACRO_REC, Atts.ALIAS_REC]):
for r in defn.macro_rules:
assert type(r.body) is KRewrite
Expand Down

0 comments on commit 112e34e

Please sign in to comment.