Skip to content

Commit

Permalink
migration to CVL2. AToken.spec get timedout
Browse files Browse the repository at this point in the history
  • Loading branch information
nisnislevi authored and tadeas-kucera committed Sep 12, 2023
1 parent 27a6d5c commit 38fd449
Show file tree
Hide file tree
Showing 13 changed files with 500 additions and 419 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/certora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
make munged
cd ..
echo "key length" ${#CERTORAKEY}
sh certora/scripts/${{ matrix.rule }}
certoraRun certora/conf/${{ matrix.rule }}
env:
CERTORAKEY: ${{ secrets.CERTORAKEY }}

Expand All @@ -55,9 +55,9 @@ jobs:
max-parallel: 16
matrix:
rule:
- verifyAToken.sh
- verifyPool.sh getReserveNormalizedVariableDebtCheck
- verifyReserveConfiguration.sh
- verifyStableTokenCLI.sh
- verifyUserConfigCLI.sh
- verifyVariableTokenCLI.sh
- AToken.conf
- Pool.conf
- ReserveConfiguration.conf
- StableTokenCLI.conf
- UserConfigCLI.conf
- VariableTokenCLI.conf
15 changes: 15 additions & 0 deletions certora/conf/AToken.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"cloud": "",
"files": [
"certora/harness/ATokenHarness.sol",
"certora/harness/SimpleERC20.sol"
],
"link": [
"ATokenHarness:_underlyingAsset=SimpleERC20"
],
"optimistic_loop": true,
"process": "emv",
"solc": "solc8.10",
"verify": "ATokenHarness:certora/specs/AToken.spec",
"msg": "aToken spec"
}
23 changes: 23 additions & 0 deletions certora/conf/Pool.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"files": [
"certora/harness/ATokenHarness.sol",
"certora/harness/PoolHarness.sol",
"certora/harness/StableDebtTokenHarness.sol",
"certora/munged/protocol/tokenization/VariableDebtToken.sol"
],
"link": [
"ATokenHarness:POOL=PoolHarness"
],
"rule": [
"getReserveNormalizedVariableDebtCheck"
],
"optimistic_loop": true,
"process": "emv",
"cloud": "",
"prover_args": ["-depth 40","-mediumTimeout 700"],
"smt_timeout": "600",
"solc": "solc8.10",
"verify": "PoolHarness:certora/specs/pool.spec",
"msg": "Pool"
}

14 changes: 14 additions & 0 deletions certora/conf/ReserveConfiguration.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"cloud": "",
"files": [
"certora/harness/ReserveConfigurationHarness.sol"
],
"msg": "ReserveConfiguration",
"optimistic_loop": true,
"process": "emv",
"prover_args": [
"-useBitVectorTheory"
],
"solc": "solc8.10",
"verify": "ReserveConfigurationHarness:certora/specs/ReserveConfiguration.spec"
}
13 changes: 13 additions & 0 deletions certora/conf/StableTokenCLI.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"cache": "StableToken",
"cloud": "",
"files": [
"certora/harness/StableDebtTokenHarness.sol:StableDebtTokenHarness"
],
"loop_iter": "4",
"msg": "stableTokenCLI",
"optimistic_loop": true,
"process": "emv",
"solc": "solc8.10",
"verify": "StableDebtTokenHarness:certora/specs/StableDebtToken.spec"
}
14 changes: 14 additions & 0 deletions certora/conf/UserConfigCLI.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"cloud": "",
"files": [
"certora/harness/UserConfigurationHarness.sol"
],
"msg": "UserConfiguration All spec",
"optimistic_loop": true,
"process": "emv",
"prover_args": [
"-useBitVectorTheory"
],
"solc": "solc8.10",
"verify": "UserConfigurationHarness:certora/specs/UserConfiguration.spec"
}
11 changes: 11 additions & 0 deletions certora/conf/VariableTokenCLI.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"cloud": "",
"files": [
"certora/harness/VariableDebtTokenHarness.sol"
],
"msg": "variable debt token",
"optimistic_loop": true,
"process": "emv",
"solc": "solc8.10",
"verify": "VariableDebtTokenHarness:certora/specs/VariableDebtToken.spec"
}
Loading

0 comments on commit 38fd449

Please sign in to comment.