Skip to content

Commit

Permalink
checkSymbolic -> symbolic
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestognw committed May 22, 2024
1 parent b4a1141 commit 8366a6d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/formal-verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ jobs:
- name: Install python packages
run: pip install -r fv-requirements.txt
- name: Run Halmos
run: halmos --match-test '^checkSymbolic|^testSymbolic' -vv
run: halmos --match-test '^symbolic|^testSymbolic' -vv
4 changes: 2 additions & 2 deletions scripts/generate/templates/SlotDerivation.t.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {SlotDerivation} from "@openzeppelin/contracts/utils/SlotDerivation.sol";
const array = `\
bytes[] private _array;
function checkSymbolicDeriveArray(uint256 length, uint256 offset) public {
function symbolicDeriveArray(uint256 length, uint256 offset) public {
vm.assume(length > 0);
vm.assume(offset < length);
_assertDeriveArray(length, offset);
Expand Down Expand Up @@ -68,7 +68,7 @@ function testDeriveMapping${name}(${type} memory key) public {
_assertDeriveMapping${name}(key);
}
function checkSymbolicDeriveMapping${name}() public {
function symbolicDeriveMapping${name}() public {
_assertDeriveMapping${name}(svm.create${name}(256, "DeriveMapping${name}Input"));
}
Expand Down
2 changes: 1 addition & 1 deletion test/utils/Arrays.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ contract ArraysTest is Test, SymTest {
_assertSort(values);
}

function checkSymbolicSort() public {
function symbolicSort() public {
uint256[] memory values = new uint256[](3);
for (uint256 i = 0; i < 3; i++) {
values[i] = svm.createUint256("arrayElement");
Expand Down
10 changes: 5 additions & 5 deletions test/utils/ShortStrings.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ contract ShortStringsTest is Test, SymTest {
_assertRoundtripShort(input);
}

function checkSymbolicRoundtripShort() external {
function symbolicRoundtripShort() external {
string memory input = svm.createString(31, "RoundtripShortInput");
_assertRoundtripShort(input);
}
Expand All @@ -24,13 +24,13 @@ contract ShortStringsTest is Test, SymTest {
_assertRoundtripWithFallback(input, fallbackInitial);
}

function checkSymbolicRoundtripWithFallbackLong() external {
function symbolicRoundtripWithFallbackLong() external {
string memory input = svm.createString(256, "RoundtripWithFallbackInput");
string memory fallbackInitial = svm.createString(256, "RoundtripWithFallbackFallbackInitial");
_assertRoundtripWithFallback(input, fallbackInitial);
}

function checkSymbolicRoundtripWithFallbackShort() external {
function symbolicRoundtripWithFallbackShort() external {
string memory input = svm.createString(31, "RoundtripWithFallbackInput");
string memory fallbackInitial = svm.createString(31, "RoundtripWithFallbackFallbackInitial");
_assertRoundtripWithFallback(input, fallbackInitial);
Expand All @@ -46,7 +46,7 @@ contract ShortStringsTest is Test, SymTest {
_assertLengthShort(input);
}

function checkSymbolicLengthShort() external {
function symbolicLengthShort() external {
string memory input = svm.createString(31, "LengthShortInput");
_assertLengthShort(input);
}
Expand All @@ -56,7 +56,7 @@ contract ShortStringsTest is Test, SymTest {
_assertLengthWithFallback(input);
}

function checkSymbolicLengthWithFallback() external {
function symbolicLengthWithFallback() external {
uint256 length = 256;
string memory input = svm.createString(length, "LengthWithFallbackInput");
string memory fallbackInitial = svm.createString(length, "LengthWithFallbackFallbackInitial");
Expand Down
6 changes: 3 additions & 3 deletions test/utils/SlotDerivation.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ contract SlotDerivationTest is Test, SymTest {

bytes[] private _array;

function checkSymbolicDeriveArray(uint256 length, uint256 offset) public {
function symbolicDeriveArray(uint256 length, uint256 offset) public {
vm.assume(length > 0);
vm.assume(offset < length);
_assertDeriveArray(length, offset);
Expand Down Expand Up @@ -182,7 +182,7 @@ contract SlotDerivationTest is Test, SymTest {
_assertDeriveMappingString(key);
}

function checkSymbolicDeriveMappingString() public {
function symbolicDeriveMappingString() public {
_assertDeriveMappingString(svm.createString(256, "DeriveMappingStringInput"));
}

Expand All @@ -207,7 +207,7 @@ contract SlotDerivationTest is Test, SymTest {
_assertDeriveMappingBytes(key);
}

function checkSymbolicDeriveMappingBytes() public {
function symbolicDeriveMappingBytes() public {
_assertDeriveMappingBytes(svm.createBytes(256, "DeriveMappingBytesInput"));
}

Expand Down

0 comments on commit 8366a6d

Please sign in to comment.