Skip to content

Commit a5050ef

Browse files
authored
Merge pull request #139 from morpho-org/certora/update-verification
[Certora] Update verification
2 parents 0b65392 + dedf746 commit a5050ef

File tree

13 files changed

+40
-66
lines changed

13 files changed

+40
-66
lines changed

.github/workflows/certora.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ jobs:
1111
verify:
1212
runs-on: ubuntu-latest
1313

14+
strategy:
15+
fail-fast: false
16+
17+
matrix:
18+
conf:
19+
- DllFifo
20+
- DllSimple
21+
1422
steps:
1523
- uses: actions/checkout@v3
1624

@@ -26,20 +34,13 @@ jobs:
2634
run: |
2735
wget https://github.com/ethereum/solidity/releases/download/v0.8.17/solc-static-linux
2836
chmod +x solc-static-linux
29-
sudo mv solc-static-linux /usr/local/bin/solc8.17
37+
sudo mv solc-static-linux /usr/local/bin/solc-0.8.17
3038
3139
- name: Verify rule ${{ matrix.script }}
3240
run: |
3341
echo "key length" ${#CERTORAKEY}
34-
bash certora/scripts/${{ matrix.script }} --solc solc8.17
42+
make -C certora munged-simple
43+
make -C certora munged-fifo
44+
certoraRun certora/confs/${{ matrix.conf }}.conf
3545
env:
3646
CERTORAKEY: ${{ secrets.CERTORAKEY }}
37-
38-
strategy:
39-
fail-fast: false
40-
max-parallel: 4
41-
42-
matrix:
43-
script:
44-
- dll-fifo.sh
45-
- dll-simple.sh

.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 --error-unknown --test-parallel --solver-parallel --solver-timeout-assertion 0
50+
run: halmos --function testProve --loop 4 --symbolic-storage --test-parallel --solver-parallel --solver-timeout-assertion 0
File renamed without changes.

certora/confs/DllFifo.conf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"files": [
3+
"certora/munged-fifo/MockDLL.sol",
4+
],
5+
"solc": "solc-0.8.17",
6+
"verify": "MockDLL:certora/specs/DllFifo.spec",
7+
"loop_iter": "4",
8+
"optimistic_loop": true,
9+
"rule_sanity": "basic",
10+
"server": "production",
11+
"msg": "FIFO DLL",
12+
}

certora/confs/DllSimple.conf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"files": [
3+
"certora/munged-simple/MockDLL.sol",
4+
],
5+
"solc": "solc-0.8.17",
6+
"verify": "MockDLL:certora/specs/DllSimple.spec",
7+
"loop_iter": "7",
8+
"optimistic_loop": true,
9+
"rule_sanity": "basic",
10+
"server": "production",
11+
"msg": "Simple DLL",
12+
}

certora/makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ munged-simple: $(wildcard ../src/*.sol) applyHarnessSimple.patch
99
record-simple:
1010
diff -ruN ../src munged-simple | sed 's+\.\./src/++g' | sed 's+munged-simple/++g' > applyHarnessSimple.patch
1111

12-
munged-fifo: $(wildcard ../src/*.sol) applyHarnessFIFO.patch
12+
munged-fifo: $(wildcard ../src/*.sol) applyHarnessFifo.patch
1313
@rm -rf munged-fifo
1414
@cp -r ../src munged-fifo
15-
@patch -p0 -d munged-fifo < applyHarnessFIFO.patch
15+
@patch -p0 -d munged-fifo < applyHarnessFifo.patch
1616

1717
record-fifo:
18-
diff -ruN ../src munged-fifo | sed 's+\.\./src/++g' | sed 's+munged-fifo/++g' > applyHarnessFIFO.patch
18+
diff -ruN ../src munged-fifo | sed 's+\.\./src/++g' | sed 's+munged-fifo/++g' > applyHarnessFifo.patch
1919

2020
clean:
2121
rm -rf munged-simple munged-fifo

certora/scripts/dll-fifo.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

certora/scripts/dll-simple.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

certora/scripts/sanity-fifo.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

certora/scripts/sanity-simple.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

certora/specs/sanity.spec

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)