Skip to content

Commit 2fe936b

Browse files
committed
pr 378
1 parent b1055a9 commit 2fe936b

4 files changed

Lines changed: 3 additions & 6 deletions

File tree

pkg/addr/host.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515

1616
// +gobra
1717

18-
// @ initEnsures ErrBadHostAddrType.ErrorMem()
19-
// @ initEnsures ErrMalformedHostAddrType.ErrorMem()
20-
// @ initEnsures ErrUnsupportedSVCAddress.ErrorMem()
2118
package addr
2219

2320
import (

pkg/addr/isdas.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func asParseBGP(s string) (retAs AS, retErr error) {
127127
// @ strconv.Exp2to10(30)
128128
// @ strconv.Exp2to10(20)
129129
// @ strconv.Exp2to10(10)
130-
// @ assert _as < strconv.Exp(2, BGPASBits)
130+
// @ assert _as < uint64(strconv.Exp(2, BGPASBits))
131131
return AS(_as), nil
132132
}
133133

verification/dependencies/net/ip.gobra

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func (ip IP) To4(ghost wildcard bool) (res IP) {
8585
}
8686

8787
pure
88-
preserves forall i int :: { &s[i] } 0 <= i && i < len(s) ==> acc(&s[i], R55)
88+
requires forall i int :: { &s[i] } 0 <= i && i < len(s) ==> acc(&s[i], R55)
8989
decreases
9090
func isZeros(s []byte) bool
9191

verification/dependencies/strconv/atoi.gobra

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func Exp2to10(exp int) {
3737
// ParseUint is like ParseInt but for unsigned numbers.
3838
requires base == 0 || (2 <= base && base <= 36)
3939
requires bitSize > 0 && bitSize <= 64
40-
ensures retErr == nil ==> (ret >= 0 && ret < Exp(2, bitSize))
40+
ensures retErr == nil ==> (ret >= 0 && ret < uint64(Exp(2, bitSize)))
4141
ensures retErr != nil ==> retErr.ErrorMem()
4242
decreases _
4343
func ParseUint(s string, base int, bitSize int) (ret uint64, retErr error)

0 commit comments

Comments
 (0)