Skip to content

Commit

Permalink
add English explanation of mbox_spec
Browse files Browse the repository at this point in the history
  • Loading branch information
m-yac committed Oct 19, 2021
1 parent 09294b3 commit 6a3e269
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions heapster-saw/examples/mbox_proofs.v
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,14 @@ Proof.
vm_compute in e_if0; discriminate e_if0.
Qed.

(*
In English, the spec for `mbox_randomize m` is:
- If `m` is non-null, the function returns `SUCCESS` and `m->data` is set to
some `data'` such that `m->data[i] = data'[i]` for all `i` such that
`i < m->strt` or `i >= m->len`.
- Otherwise, the function returns MBOX_NULL_ERROR.
*)

Definition SUCCESS := intToBv 32 0.
Definition MBOX_NULL_ERROR := intToBv 32 23.

Expand Down

0 comments on commit 6a3e269

Please sign in to comment.