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

cpp mini example for demo #165

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

cpp mini example for demo #165

wants to merge 7 commits into from

Conversation

nd-certora
Copy link
Contributor

No description provided.

Copy link
Contributor

@shellygr shellygr left a comment

Choose a reason for hiding this comment

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

nits and question about the foundry manual test

Comment on lines 77 to 78
_actualB0 = token0.balanceOf(address(cpp));
_actualB1 = token0.balanceOf(address(cpp));
Copy link
Contributor

Choose a reason for hiding this comment

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

both token0?
where is the assertion?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is actually not used, thanks.

the call to:
invariant_reserve(); has the assert but it is commented out to demonstrate the fact that the bug is critical. I think I will separate it to two tests:

  1. show that the manual crafted one causes the violation to be violated
  2. show that the bug is critical

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