Skip to content

Conversation

@msooseth
Copy link
Collaborator

@msooseth msooseth commented Jan 6, 2025

Description

Three more prop simplification rules.

Checklist

  • tested locally
  • added automated tests
  • updated the docs
  • updated the changelog

@msooseth msooseth requested a review from blishko January 6, 2025 19:58
go (PNeg (PNeg a)) = a

-- Empty buf
go (PEq (Lit 0) (BufLength k)) = peq k (ConcreteBuf "")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure this is a simplification?
Is it better on the SMT level to compare arrays instead of computing buffer length and comparing it to 0?

@msooseth
Copy link
Collaborator Author

msooseth commented Jan 6, 2025 via email

@blishko
Copy link
Collaborator

blishko commented Jan 7, 2025

I think it's OK. I was just thinking that if ever hevm would couple buffers with length, then asking for length would be much easier.
But I guess that is not going to happen any time soon.

Copy link
Collaborator

@blishko blishko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@msooseth
Copy link
Collaborator Author

msooseth commented Jan 7, 2025

Thanks for the review!

@msooseth msooseth merged commit b44f4b9 into main Jan 7, 2025
9 checks passed
@blishko blishko deleted the more-prop-simp2 branch July 29, 2025 19:10
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.

3 participants