Skip to content

Commit

Permalink
different trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
mlimbeck committed Aug 17, 2024
1 parent 155909d commit 439c0e8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions router/dataplane.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ type BatchConn interface {
// @ msgs[i].Mem()
// @ requires forall i int :: { &msgs[i] } 0 <= i && i < len(msgs) ==>
// @ msgs[i].GetFstBuffer() in msgsUBufs
// @ requires forall ubuf []byte :: { ubuf } ubuf in msgsUBufs ==>
// @ requires forall ubuf []byte :: { ubuf in msgsUBufs } ubuf in msgsUBufs ==>
// @ sl.Bytes(ubuf, 0, len(ubuf))
// @ ensures forall i int :: { &msgs[i] } 0 <= i && i < len(msgs) ==>
// @ (msgs[i].Mem() && msgs[i].HasActiveAddr())
Expand All @@ -136,7 +136,7 @@ type BatchConn interface {
// @ forall i int :: { &msgs[i] } 0 <= i && i < n ==> msgs[i].GetN() <= len(msgs[i].GetFstBuffer())
// @ ensures forall i int :: { &msgs[i] } 0 <= i && i < len(msgs) ==>
// @ msgs[i].GetFstBuffer() in msgsUBufs
// @ ensures forall ubuf []byte :: { ubuf } ubuf in msgsUBufs ==>
// @ ensures forall ubuf []byte :: { ubuf in msgsUBufs } ubuf in msgsUBufs ==>
// @ sl.Bytes(ubuf, 0, len(ubuf))
// @ ensures err != nil ==> err.ErrorMem()
// contracts for IO-spec
Expand Down Expand Up @@ -835,7 +835,7 @@ func (d *DataPlane) Run(ctx context.Context /*@, ghost place io.Place, ghost sta
// @ msgs[i].GetAddr() == nil
// @ ensures forall i int :: { &msgs[i] } 0 <= i && i < len(msgs) ==>
// @ msgs[i].GetFstBuffer() in msgsUBufs
// @ ensures forall ubuf []byte :: { ubuf } ubuf in msgsUBufs ==>
// @ ensures forall ubuf []byte :: { ubuf in msgsUBufs } ubuf in msgsUBufs ==>
// @ sl.Bytes(ubuf, 0, len(ubuf))
// @ decreases
// @ outline(
Expand All @@ -847,7 +847,7 @@ func (d *DataPlane) Run(ctx context.Context /*@, ghost place io.Place, ghost sta
// @ msgs[i].Mem() && msgs[i].GetAddr() == nil && msgs[i].HasActiveAddr()
// @ invariant forall i int :: { &msgs[i] } 0 <= i && i < i0 ==>
// @ msgs[i].GetFstBuffer() in msgsUBufs
// @ invariant forall ubuf []byte :: { ubuf } ubuf in msgsUBufs ==>
// @ invariant forall ubuf []byte :: { ubuf in msgsUBufs } ubuf in msgsUBufs ==>
// @ sl.Bytes(ubuf, 0, len(ubuf))
// @ decreases len(msgs) - i0
for i0 := 0; i0 < len(msgs); i0 += 1 {
Expand Down Expand Up @@ -889,7 +889,7 @@ func (d *DataPlane) Run(ctx context.Context /*@, ghost place io.Place, ghost sta
// @ msgs[i].Mem()
// @ invariant forall i int :: { &msgs[i] } 0 <= i && i < len(msgs) ==>
// @ msgs[i].GetFstBuffer() in msgsUBufs
// @ invariant forall ubuf []byte :: { ubuf } ubuf in msgsUBufs ==>
// @ invariant forall ubuf []byte :: { ubuf in msgsUBufs } ubuf in msgsUBufs ==>
// @ sl.Bytes(ubuf, 0, len(ubuf))
// @ invariant writeMsgInv(writeMsgs)
// @ invariant acc(dPtr, _) && *dPtr === d
Expand Down Expand Up @@ -964,7 +964,7 @@ func (d *DataPlane) Run(ctx context.Context /*@, ghost place io.Place, ghost sta
// @ invariant forall i int :: { &msgs[i] } 0 <= i && i < len(msgs) ==> msgs[i].Mem()
// @ invariant forall i int :: { &msgs[i] } 0 <= i && i < len(msgs) ==>
// @ msgs[i].GetFstBuffer() in msgsUBufs
// @ invariant forall ubuf []byte :: { ubuf } ubuf in msgsUBufs ==>
// @ invariant forall ubuf []byte :: { ubuf in msgsUBufs } ubuf in msgsUBufs ==>
// @ sl.Bytes(ubuf, 0, len(ubuf))
// @ invariant writeMsgInv(writeMsgs)
// @ invariant acc(dPtr, _) && *dPtr === d
Expand Down

0 comments on commit 439c0e8

Please sign in to comment.