A Safety Property for a Queue Limit

A safety invariant can rule out a state with too many queued items. A finite bad prefix can demonstrate a violation.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace a one-slot queue
  2. Check each state transition

Trace a one-slot queue

After accepting the first pending item, another accepted insertion without a removal would exceed one. See full-queue policies.

Check each state transition

A test or model can verify that the limit remains in force through accepted, rejected, and removed cases. Safety and liveness explain why capacity and future processing are different claims.[1]

References

  1. Benjamin C. Pierce et al., Software Foundations ↩