Skip to content

Commit

Permalink
Fix lower bound for length
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeypospelov committed Sep 4, 2023
1 parent aced3ce commit 44b128e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ object ObjectMapCollectionApi {
val sizeLowerBound = mkIte(mkBvSignedGreaterExpr(srcMapSize, dstMapSize), srcMapSize, dstMapSize)
val sizeUpperBound = mkBvAddExpr(srcMapSize, dstMapSize)
pathConstraints += mkBvSignedGreaterOrEqualExpr(mergedMapSize, sizeLowerBound)
pathConstraints += mkBvSignedGreaterOrEqualExpr(mergedMapSize, sizeUpperBound)
pathConstraints += mkBvSignedLessOrEqualExpr(mergedMapSize, sizeUpperBound)
memory.write(UMapLengthLValue(dstRef, mapType), mergedMapSize, guard = trueExpr)
}
}

0 comments on commit 44b128e

Please sign in to comment.