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

Update more precise smt address encoding PR #641

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

msooseth
Copy link
Collaborator

Description

This is an update to #376 that makes it work for the test cases added to that PR. As per @d-xo 's description:

This adds some more assertions during encoding around the values of symbolic addresses. Still needed is a pass that asserts that all symbolic addresses are pairwise distinct with all known concrete addresses.

I have added the part that they are pairwise distinct. It is also working now because it checks the addresses before they get erased through the revert that VMFailure does. So the generation of the constraints is done before the VMFailure's revert. This fixes the underlying issue that I think may have been created since that PR.

Checklist

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

d-xo and others added 3 commits January 28, 2025 12:53
Adds constraints that ensure that symbolic addresses that are used to
key the contracts mapping cannot alias any other keys.
@msooseth msooseth mentioned this pull request Jan 28, 2025
4 tasks
@msooseth msooseth changed the title Upd more precise smt address encoding Update more precise smt address encoding PR Jan 28, 2025
@msooseth msooseth force-pushed the upd-more-precise-smt-address-encoding branch from 29d9599 to 69b702b Compare January 28, 2025 17:20
@msooseth msooseth marked this pull request as ready for review January 30, 2025 11:05
@msooseth msooseth requested a review from blishko January 30, 2025 11:05
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.

2 participants