Writer
Types
Functions
def payload_from_string (s : String | s ≠ "") : {p : WriterPayload | payload_len p > 0}
def open_writer (path : String | path ≠ "") : {w : Writer | writer_open w = True && bytes_written w = 0}
def write (data : WriterPayload) (1 w : Writer | writer_open w = True) : {out : Writer | writer_open out = True && bytes_written out = bytes_written w + payload_len data}
def close (1 w : Writer | writer_open w = True) : Unit
Uninterpreted
Functions declared as def f ... = uninterpreted: only their signature is known to the verifier; they have no body.
def writer_open : (w : Writer) → Bool
def bytes_written : (w : Writer) → Int
def payload_len : (p : WriterPayload) → Int