Skip to content

Commit 15c9c75

Browse files
committed
pr 380
1 parent 2227494 commit 15c9c75

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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
@@ -88,7 +88,7 @@ func (ip IP) To4(ghost wildcard bool) (res IP) {
8888
return nil
8989
}
9090

91-
preserves forall i int :: { &s[i] } 0 <= i && i < len(s) ==> acc(&s[i])
91+
requires forall i int :: { &s[i] } 0 <= i && i < len(s) ==> acc(&s[i])
9292
decreases
9393
pure func isZeros(s []byte) bool
9494

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)