Skip to content

Commit

Permalink
fix: insertSorted signature
Browse files Browse the repository at this point in the history
  • Loading branch information
QGarchery committed Jul 11, 2024
1 parent 48a104c commit eb24ad8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions certora/specs/DllFifo.spec
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function safeAssumptions() {

invariant linkedToZero(address addr)
isLinkedToZero(addr)
filtered { f -> f.selector != sig:insertSorted(address, uint256).selector }
filtered { f -> f.selector != sig:insertSorted(address, uint256, uint256).selector }
{ preserved remove(address id) {
requireInvariant twoWayLinked(getPrev(id), id);
requireInvariant twoWayLinked(id, getNext(id));
Expand All @@ -81,7 +81,7 @@ rule linkedToZeroPreservedInsertSorted(address id, uint256 value) {
requireInvariant linkedToZero(prev);
requireInvariant inDllIsLinked(prev);

insertSorted(id, value);
insertSorted(id, value, maxIterations());

require prev == getInsertedAfter();
require next == getInsertedBefore();
Expand All @@ -91,7 +91,7 @@ rule linkedToZeroPreservedInsertSorted(address id, uint256 value) {

invariant headWellFormed()
isHeadWellFormed()
filtered { f -> f.selector != sig:insertSorted(address, uint256).selector }
filtered { f -> f.selector != sig:insertSorted(address, uint256, uint256).selector }
{ preserved remove(address id) {
requireInvariant twoWayLinked(getPrev(id), id);
requireInvariant twoWayLinked(id, getNext(id));
Expand All @@ -108,7 +108,7 @@ rule headWellFormedPreservedInsertSorted(address id, uint256 value) {
requireInvariant twoWayLinked(getPrev(next), next);
requireInvariant twoWayLinked(prev, getNext(prev));

insertSorted(id, value);
insertSorted(id, value, maxIterations());

require prev == getInsertedAfter();
require next == getInsertedBefore();
Expand Down Expand Up @@ -211,7 +211,7 @@ rule noNextisTailPreservedInsertSorted(address id, uint256 value) {

invariant inDllIsLinked(address addr)
isInDll(addr) => isLinked(addr)
filtered { f -> f.selector != sig:insertSorted(address, uint256).selector }
filtered { f -> f.selector != sig:insertSorted(address, uint256, uint256).selector }
{ preserved remove(address id) {
requireInvariant twoWayLinked(getPrev(id), id);
requireInvariant twoWayLinked(id, getNext(id));
Expand All @@ -230,7 +230,7 @@ rule inDllIsLinkedPreservedInsertSorted(address id, uint256 value) {
requireInvariant linkedToZero(prev);
requireInvariant inDllIsLinked(prev);

insertSorted(id, value);
insertSorted(id, value, maxIterations());

require prev == getInsertedAfter();
require next == getInsertedBefore();
Expand Down

0 comments on commit eb24ad8

Please sign in to comment.