Skip to content

Commit

Permalink
Escape @ in _make_module_name (#4448)
Browse files Browse the repository at this point in the history
Fixes runtimeverification/kontrol#613.
I have verified this change fixes the issue in kontrol with module names
generated from contracts with an `@` symbol on their path.
  • Loading branch information
nwatson22 authored Jun 18, 2024
1 parent ec63f14 commit 2efa074
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyk/src/pyk/proof/reachability.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def formatted_exec_time(self) -> str:
@staticmethod
def _make_module_name(proof_id: str) -> str:
return 'M-' + re.sub(
r'[\[\]]|[_%().:,]+', lambda match: 'bkt' if match.group(0) in ['[', ']'] else '-', proof_id.upper()
r'[\[\]]|[_%().:,@]+', lambda match: 'bkt' if match.group(0) in ['[', ']'] else '-', proof_id.upper()
)

@staticmethod
Expand Down

0 comments on commit 2efa074

Please sign in to comment.