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

Update formal verification #691

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion certora/confs/LibSummary.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"verify": "MorphoHarness:certora/specs/LibSummary.spec",
"rule_sanity": "basic",
"prover_args": [
"-useBitVectorTheory",
"-smt_bitVectorTheory true"
],
"server": "production",
"msg": "Morpho Blue Lib Summary"
Expand Down
2 changes: 1 addition & 1 deletion lib/halmos-cheatcodes
Submodule halmos-cheatcodes updated 1 files
+11 −0 src/SVM.sol
6 changes: 5 additions & 1 deletion test/halmos/HalmosTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import "../../src/Morpho.sol";
import "../../src/libraries/ConstantsLib.sol";
import {MorphoLib} from "../../src/libraries/periphery/MorphoLib.sol";

/// @custom:halmos --symbolic-storage --solver-timeout-assertion 0
/// @custom:halmos --solver-timeout-assertion 0
contract HalmosTest is SymTest, Test {
using MorphoLib for IMorpho;
using MarketParamsLib for MarketParams;
Expand Down Expand Up @@ -49,6 +49,10 @@ contract HalmosTest is SymTest, Test {
vm.stopPrank();
}

function setUpSymbolic() public {
svm.enableSymbolicStorage(address(this));
}

// Call Morpho, assuming interacting with only the defined market for performance reasons.
function _callMorpho(bytes4 selector, address caller) internal {
vm.assume(selector != morpho.extSloads.selector);
Expand Down
Loading