Skip to content

Commit f42ba5f

Browse files
anvacaruPetarMax
andauthored
Add forgetBranch cheatcode (#15)
* add forgetBranch cheatcode * Update src/IKontrolCheatsBase.sol --------- Co-authored-by: Petar Maksimović <[email protected]>
1 parent 9b70241 commit f42ba5f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/IKontrolCheatsBase.sol

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ pragma solidity >=0.6.2 <0.9.0;
33
pragma experimental ABIEncoderV2;
44

55
interface KontrolCheatsBase {
6+
enum ComparisonOperator { Equal, NotEqual, LessThanOrEqual, LessThan, GreaterThanOrEqual, GreaterThan }
67
// Expects a call using the CALL opcode to an address with the specified calldata.
78
function expectRegularCall(address,bytes calldata) external;
89
// Expects a call using the CALL opcode to an address with the specified msg.value and calldata.
@@ -35,4 +36,6 @@ interface KontrolCheatsBase {
3536
function freshBytes(uint256) external view returns (bytes memory);
3637
// Returns a symbolic address
3738
function freshAddress() external view returns (address);
39+
// Removes a branching condition from the path constraints
40+
function forgetBranch(uint256, ComparisonOperator, uint256) external;
3841
}

0 commit comments

Comments
 (0)