Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jcp19 committed Jul 23, 2024
1 parent 3a6f9f4 commit 55323c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/slayers/path/scion/raw_spec.gobra
Original file line number Diff line number Diff line change
Expand Up @@ -858,8 +858,9 @@ requires offset + path.HopLen * segLen <= len(raw)
requires acc(sl.Bytes(raw, 0, len(raw)), R56)
decreases
pure func hopFieldsBytePositions(raw []byte, offset int, currHFIdx int, segLen int, hops seq[io.IO_HF]) bool {
return forall i int :: { hops[i] } 0 <= i && i < len(hops) ==>
hops[i] == path.BytesToIO_HF(raw, 0, offset + path.HopLen * (currHFIdx + i), len(raw))
return forall i, j int :: { hops[i], path.BytesToIO_HF(raw, 0, j, len(raw))} 0 <= i && i < len(hops) ==>
(j == offset + path.HopLen * (currHFIdx + i)) &&
hops[i] == path.BytesToIO_HF(raw, 0, j, len(raw))
}

ghost
Expand Down

0 comments on commit 55323c1

Please sign in to comment.