Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions crates/clazel-tls/src/connection/framing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ impl View for Buffer {
type V = State;
closed spec fn view(&self) -> State { self.bytes@ }
}
/// The mode-indexed invariant is the framing spec's, for callers outside this module.
pub proof fn lemma_wf_mode(buffer: &Buffer, protected: bool)
ensures buffer.wf_mode(protected) == super::framing_spec::wf_mode(buffer@, protected),
{
}

impl Buffer {
/// Immutable parser mode selected at construction.
pub closed spec fn protected_mode(&self) -> bool { self.protected }
Expand Down
Loading
Loading