Writing State-Based Invariants

Todo

Finish