Skip to content

Commit f1197b3

Browse files
authored
Merge pull request #143 from daejunpark/ci/halmos
test: update halmos tests for new halmos version
2 parents 7f27b7b + 58cc703 commit f1197b3

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

.github/workflows/ci-foundry.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ jobs:
4747
run: python3 -m pip install --upgrade halmos
4848

4949
- name: Run halmos
50-
run: halmos --function testProve --loop 4 --symbolic-storage --test-parallel --solver-parallel --solver-timeout-assertion 0
50+
run: halmos --function testProve --loop 4 --solver-timeout-assertion 0

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
path = lib/forge-std
66
url = https://github.com/MathisGD/forge-std
77
branch = feat/real-gas-consumption
8+
[submodule "lib/halmos-cheatcodes"]
9+
path = lib/halmos-cheatcodes
10+
url = https://github.com/a16z/halmos-cheatcodes
811
[submodule "lib/openzeppelin-contracts"]
912
path = lib/openzeppelin-contracts
1013
url = https://github.com/OpenZeppelin/openzeppelin-contracts

lib/halmos-cheatcodes

Submodule halmos-cheatcodes added at a02072c

test/TestLogarithmicBuckets.t.sol

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
pragma solidity ^0.8.0;
33

44
import {Test} from "forge-std/Test.sol";
5+
import {SymTest} from "halmos-cheatcodes/SymTest.sol";
56
import {
67
LogarithmicBucketsMock, BucketDLLMock, BucketDLL, LogarithmicBuckets
78
} from "./mocks/LogarithmicBucketsMock.sol";
@@ -118,7 +119,11 @@ contract TestLogarithmicBuckets is LogarithmicBucketsMock, Test {
118119
}
119120
}
120121

121-
contract TestProveLogarithmicBuckets is LogarithmicBucketsMock, Test {
122+
contract TestProveLogarithmicBuckets is LogarithmicBucketsMock, Test, SymTest {
123+
function setUpSymbolic() public {
124+
svm.enableSymbolicStorage(address(this));
125+
}
126+
122127
function isPowerOfTwo(uint256 x) public pure returns (bool) {
123128
unchecked {
124129
return x != 0 && (x & (x - 1)) == 0;

0 commit comments

Comments
 (0)