Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow matching functions when rewriting #4008

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

geo2a
Copy link
Collaborator

@geo2a geo2a commented Jul 30, 2024

This is an experiment to support CSE rules that, when matched on master, leave matching remainders as follows:

_+Bytes__BYTES-HOOKED_Bytes_Bytes_Bytes(
  "#\184r\221",
  _+Bytes__BYTES-HOOKED_Bytes_Bytes_Bytes(
    buf("32", Rule#VarVV0_from_114b9705:SortInt{}),
    _+Bytes__BYTES-HOOKED_Bytes_Bytes_Bytes(
      buf("32", Rule#VarVV1_to_114b9705:SortInt{}),
      buf("32", Rule#VarVV2_value_114b9705:SortInt{}))))

 ==

_+Bytes__BYTES-HOOKED_Bytes_Bytes_Bytes(
  "#\184r\221",
  _+Bytes__BYTES-HOOKED_Bytes_Bytes_Bytes(
    buf("32", VarCALLER_ID:SortInt{}),
    _+Bytes__BYTES-HOOKED_Bytes_Bytes_Bytes(
      buf("32", VarCONTRACT_ID:SortInt{}),
      buf("32", VarVV0_amount_114b9705:SortInt{}))))

these expressions are the same modulo variable renaming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant