Skip to content

Commit e32dd2e

Browse files
authored
Removed unnecessary precondition (#403)
Precondition is unnecessary, the file succesfully verifies even without it.
1 parent daf9c1d commit e32dd2e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

verification/utils/slices/slices.gobra

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ func Reslice_Bytes(s []byte, start int, end int, p perm) {
8181
ghost
8282
requires 0 < p
8383
requires 0 <= start && start <= end && end <= cap(s)
84-
requires len(s[start:end]) <= cap(s)
8584
requires acc(Bytes(s[start:end], 0, len(s[start:end])), p)
8685
ensures acc(Bytes(s, start, end), p)
8786
decreases
@@ -190,4 +189,4 @@ ensures forall i int :: { &s[subStart:subEnd][i] } 0 <= i && i < len(s[subStart
190189
decreases
191190
pure func AssertSliceOverlap(ghost s []byte, ghost subStart int, ghost subEnd int) Unit {
192191
return Unit{}
193-
}
192+
}

0 commit comments

Comments
 (0)