-
Notifications
You must be signed in to change notification settings - Fork 91
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When trying to use a custom getter of an array of integers in storage, halmos fails with:
ValueError: invalid literal for int() with base 10: 'p_i_uint256'
To Reproduce
Run halmos on the following contract:
contract GetterTest {
uint256[3] v;
function getV(uint256 i) public view returns (uint256) {
if (i >= 3) return 0;
return v[i];
}
function testGetter(uint256 i) public view {
assert(i >= 3 || getV(i) == v[i]);
}
}Environment:
- OS: linux
- Python version: 3.11.13
- Halmos and other dependency versions: halmos 0.0.8
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working