-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### 🕓 Changelog [`halmos`](https://github.com/a16z/halmos) has released support for the following new cheat codes via PRs [#360](a16z/halmos#360) and (small patch) [#364](a16z/halmos#364): ```solidity createCalldata(string contractName); createCalldata(string contractName, bool includeViewFunctions); createCalldata(string filename, string contractName); createCalldata(string filename, string contractName, bool includeViewFunctions); ``` > Please note that `includeViewFunctions` defaults to `false`, if not provided. This PR refactors the `halmos`-based tests to capitalise on these new cheat codes. To verify the correct behaviour of the Vyper compiler for `view` and `pure` functions, we include read-only functions in the calldata creation. --------- Signed-off-by: Pascal Marco Caversaccio <[email protected]>
- Loading branch information
1 parent
7f2aef7
commit c41d54c
Showing
6 changed files
with
96 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
[global] | ||
# Test settings. | ||
function = "testHalmos" # Run tests matching the given prefix. | ||
storage-layout = "generic" # Set the generic storage layout model. | ||
early-exit = true # Stop after a counterexample is found. | ||
ffi = true # Enable the foreign function interface (ffi) cheatcode. | ||
function = "testHalmos" # Run tests matching the given prefix. | ||
loop = 5 # Set the loop unrolling bound. | ||
default-bytes-lengths = "0,32,96,1024" # Set the default length candidates for `bytes` and `string` types. | ||
storage-layout = "generic" # Set the generic storage layout model. | ||
ffi = true # Enable the foreign function interface (ffi) cheatcode. | ||
|
||
# Debugging settings. | ||
statistics = true # Print the statistics. | ||
verbose = 1 # Set the verbosity level for the tests. | ||
verbose = 1 # Set the verbosity level for the tests. | ||
statistics = true # Print the statistics. | ||
early-exit = true # Stop after a counterexample is found. | ||
|
||
# Solver settings. | ||
solver-command = "yices-smt2" # Use the Yices 2 SMT solver. | ||
cache-solver = true # Cache unsatisfiable queries using unsatisfiable cores. | ||
solver-command = "yices-smt2" # Use the Yices 2 SMT solver. | ||
cache-solver = true # Cache unsatisfiable queries using unsatisfiable cores. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters