Skip to content

Simplification is not equivalent, but it should be #664

Open
@msooseth

Description

@msooseth
      let e = PEq (BufLength (AbstractBuf "esc_buf_CugleWOwEWXP")) (Lit 0)
      let simp = Expr.simplifyProp e
      let simpExpected = PEq (AbstractBuf "esc_buf_CugleWOwEWXP") (ConcreteBuf "")
      assertEqualM "buflen-to-empty" simp simpExpected
      ret <- checkEquivPropAndLHS e simpExpected
      assertBoolM "Must be equivalent" ret

Somehow we get a CEX, even though this simplification is good. I'll look into this. Triggered at: https://github.com/ethereum/hevm/actions/runs/13362022051/job/37313197906?pr=663 in PR #663 by @elopez

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions