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

clr_match tactic #19

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

clr_match tactic #19

wants to merge 1 commit into from

Commits on Oct 29, 2024

  1. clr_match tactic

    Often times my goal looks like this:
    
    ```
    (match
      match multifill ["dataSlot"]
        (match
          match
            match
              match
    	    Ok evm Inhabited.default🇪⟦mstore evm (OfNat.ofNat 0) account.val.cast⟧🇪⟦state_prep⟧🇪⟦res.2⟧⟦"key"↦key⟧⟦"slot"↦slot⟧⟦"_1"↦account.val.cast⟧ with
              | Ok evm store => ...
              | s => s with
            | Ok evm store => ...
            | s => s with
          | Ok evm store => ...
          | s => s with
        | Ok evm store => ...
        | s => s
    ...)
    ```
    
    which can't simplify becasue `Ok` is wrapped in `insert` or `setEvm`
    functions.  This tactic will move those under the `Ok` in order to
    progress matches and then try to reclaim the inserts.
    jkopanski committed Oct 29, 2024
    Configuration menu
    Copy the full SHA
    c12a3d2 View commit details
    Browse the repository at this point in the history