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

Medusa fails to extract or use some important values from precomputed constants #503

Open
ggrieco-tob opened this issue Nov 4, 2024 · 0 comments

Comments

@ggrieco-tob
Copy link
Member

This example was extracted from balancer-core:

contract Q {
    uint constant BONE = 10**18;
    uint constant MINFEE = BONE / 10**6;    

   function a(uint x) public {
      if (x == MINFEE) { assert(false); }
   }
}

To reproduce (only tested for a minute or so):

$ medusa fuzz --compilation-target constant.sol --target-contracts Q
@ggrieco-tob ggrieco-tob changed the title Medusa fails to extract or use some important constants Medusa fails to extract or use some important values from precomputed constants Nov 4, 2024
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

No branches or pull requests

1 participant