runtimeverification / runtimeverification/kontrol
Support signed int `random` cheatcodes
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 122
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
Follow up to https://github.com/runtimeverification/kontrol/pull/877.
Cheatcodes generating fresh signed ints
/// Returns a random `int256` value.
function randomInt() external view returns (int256);
/// Returns a random `int256` value of given bits.
function randomInt(uint256 bits) external view returns (int256);
are challenging to implement because of signed int specifics that cause branching during execution.
We have encountered a relevant (unresolved) issue previously when trying to implement assert functions that involve signed ints too: https://github.com/runtimeverification/kontrol/issues/559.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading follow-up pull request #877 and the unresolved signed-integer issue #559. Use the proposed randomInt() and randomInt(uint256 bits) cheatcode signatures as the scope, and confirm that signed-int generation works despite the branching behavior described in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- solidity
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100