We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7bf98c commit 07e0993Copy full SHA for 07e0993
pkg/slayers/path/scion/base.go
@@ -137,9 +137,7 @@ func (s *Base) DecodeFromBytes(data []byte) (r error) {
137
if s.PathMeta.SegLen[i] > 0 && s.NumINF == 0 {
138
s.NumINF = i + 1
139
}
140
- // (VerifiedSCION) Cannot assert bounds of uint:
141
- // https://github.com/viperproject/gobra/issues/192
142
- //@ assume int(s.PathMeta.SegLen[i]) >= 0
+ //@ assert 0 <= int(s.PathMeta.SegLen[i])
143
s.NumHops += int(s.PathMeta.SegLen[i])
144
145
// We must check the validity of NumHops. It is possible to fit more than 64 hops in
0 commit comments