Skip to content

Commit

Permalink
feat: enable via-IR
Browse files Browse the repository at this point in the history
  • Loading branch information
QGarchery committed Sep 5, 2023
1 parent c98b4fb commit bb19b22
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions certora/scripts/verifyAccrueInterest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ certoraRun \
certora/harness/MorphoHarness.sol \
--verify MorphoHarness:certora/specs/AccrueInterest.spec \
--solc_allow_path src \
--solc_via_ir \
--solc_optimize 4294967295 \
--msg "Morpho Blue Accrue Interest" \
"$@"
2 changes: 2 additions & 0 deletions certora/scripts/verifyConsistentState.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ certoraRun \
certora/harness/MorphoHarness.sol \
--verify MorphoHarness:certora/specs/ConsistentState.spec \
--solc_allow_path src \
--solc_via_ir \
--solc_optimize 4294967295 \
--msg "Morpho Blue Consistent State" \
"$@"
2 changes: 2 additions & 0 deletions certora/scripts/verifyExactMath.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ certoraRun \
certora/harness/MorphoHarness.sol \
src/mocks/OracleMock.sol \
--verify MorphoHarness:certora/specs/ExactMath.spec \
--solc_via_ir \
--solc_optimize 4294967295 \
--prover_args '-smt_hashingScheme plaininjectivity' \
--msg "Morpho Blue Exact Math" \
"$@"
2 changes: 2 additions & 0 deletions certora/scripts/verifyExitLiquidity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ certoraRun \
certora/harness/MorphoHarness.sol \
--verify MorphoHarness:certora/specs/ExitLiquidity.spec \
--solc_allow_path src \
--solc_via_ir \
--solc_optimize 4294967295 \
--msg "Morpho Blue Exit Liquidity" \
"$@"
2 changes: 2 additions & 0 deletions certora/scripts/verifyHealth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ certoraRun \
certora/harness/MorphoHarness.sol \
certora/munged/mocks/OracleMock.sol \
--verify MorphoHarness:certora/specs/Health.spec \
--solc_via_ir \
--solc_optimize 4294967295 \
--prover_args '-smt_hashingScheme plaininjectivity' \
--msg "Morpho Blue Health Check" \
"$@"
2 changes: 2 additions & 0 deletions certora/scripts/verifyLibSummary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ make -C certora munged
certoraRun \
certora/harness/MorphoHarness.sol \
--verify MorphoHarness:certora/specs/LibSummary.spec \
--solc_via_ir \
--solc_optimize 4294967295 \
--msg "Morpho Blue Lib Summary" \
"$@"
2 changes: 2 additions & 0 deletions certora/scripts/verifyLiveness.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ certoraRun \
certora/harness/MorphoInternalAccess.sol \
--verify MorphoInternalAccess:certora/specs/Liveness.spec \
--solc_allow_path src \
--solc_via_ir \
--solc_optimize 4294967295 \
--msg "Morpho Blue Liveness" \
"$@"
2 changes: 2 additions & 0 deletions certora/scripts/verifyRatioMath.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ certoraRun \
certora/harness/MorphoHarness.sol \
--verify MorphoHarness:certora/specs/RatioMath.spec \
--solc_allow_path src \
--solc_via_ir \
--solc_optimize 4294967295 \
--prover_args '-smt_hashingScheme plaininjectivity' \
--msg "Morpho Blue Ratio Math" \
"$@"
2 changes: 2 additions & 0 deletions certora/scripts/verifyReentrancy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ make -C certora munged
certoraRun \
certora/harness/MorphoHarness.sol \
--verify MorphoHarness:certora/specs/Reentrancy.spec \
--solc_via_ir \
--solc_optimize 4294967295 \
--prover_args '-enableStorageSplitting false' \
--msg "Morpho Blue Reentrancy" \
"$@"
2 changes: 2 additions & 0 deletions certora/scripts/verifyReverts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ make -C certora munged
certoraRun \
certora/harness/MorphoHarness.sol \
--verify MorphoHarness:certora/specs/Reverts.spec \
--solc_via_ir \
--solc_optimize 4294967295 \
--msg "Morpho Blue Reverts" \
"$@"
2 changes: 2 additions & 0 deletions certora/scripts/verifyTransfer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ certoraRun \
certora/dispatch/ERC20USDT.sol \
certora/dispatch/ERC20NoRevert.sol \
--verify TransferHarness:certora/specs/Transfer.spec \
--solc_via_ir \
--solc_optimize 4294967295 \
--msg "Morpho Blue Transfer" \
"$@"

0 comments on commit bb19b22

Please sign in to comment.