Skip to main content

Module write_after_write

Module write_after_write 

Source

Enumsยง

Flow ๐Ÿ”’
Whether control flow continues past this statement/block.

Staticsยง

WRITE_AFTER_WRITE

Functionsยง

check_block ๐Ÿ”’
check_stmt ๐Ÿ”’
collect_reads ๐Ÿ”’
Remove any state variable mentioned in expr from pending (it was read). For nested assignments, delegates to process_expr so writes are handled correctly.
process_assignment_lhs ๐Ÿ”’
Recursively handle a plain-= assignment LHS, tracking each component as a write. For tuple destructuring (x, y) = ..., each element is processed independently.
process_expr ๐Ÿ”’
Process an expression that appears as a statement, tracking writes and reads.
simple_state_var_id ๐Ÿ”’
Returns Some(id) if the expression is a bare state variable identifier (no indexing/member).
walk_named_args ๐Ÿ”’
Walk named call arguments (e.g. {value: expr, gas: expr}) for reads and writes.