Skip to content

Commit 286e7c7

Browse files
committed
reads on methods not enabled
1 parent 145e921 commit 286e7c7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

DynamoDbEncryption/dafny/StructuredEncryption/src/OptimizedMergeSort.dfy

+4-5
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ module {:options "-functionSyntax:4"} OptimizedMergeSort {
188188
requires lo < hi <= left.Length as BoundedInts.uint64
189189
requires hi <= right.Length as BoundedInts.uint64
190190
requires left != right
191-
reads left, right
191+
// reads left, right
192192
modifies left, right
193193
ensures !where.Either? ==> where == resultPlacement
194194

@@ -321,7 +321,7 @@ module {:options "-functionSyntax:4"} OptimizedMergeSort {
321321
requires Relations.SortedBy(left[lo..mid], lessThanOrEq)
322322
// We store "right" in [mid..hi]
323323
requires Relations.SortedBy(left[mid..hi], lessThanOrEq)
324-
reads left, right
324+
// reads left, right
325325
modifies right
326326
// We do not modify anything before lo
327327
ensures right[..lo] == old(right[..lo]) && left[..lo] == old(left[..lo])
@@ -510,7 +510,7 @@ module {:options "-functionSyntax:4"} OptimizedMergeSort {
510510
requires Relations.TotalOrdering(lessThanOrEq)
511511
requires lo < hi <= left.Length
512512
requires hi <= right.Length && left != right
513-
reads left, right
513+
// reads left, right
514514
modifies left, right
515515
ensures !where.Either? ==> where == resultPlacement
516516

@@ -641,9 +641,8 @@ module {:options "-functionSyntax:4"} OptimizedMergeSort {
641641
requires Relations.SortedBy(left[lo..mid], lessThanOrEq)
642642
// We store "right" in [mid..hi]
643643
requires Relations.SortedBy(left[mid..hi], lessThanOrEq)
644-
// reads left, right
645644
modifies right
646-
reads left, right
645+
// reads left, right
647646
// We do not modify anything before lo
648647
ensures right[..lo] == old(right[..lo]) && left[..lo] == old(left[..lo])
649648
// We do not modify anything above hi

0 commit comments

Comments
 (0)