pub fn execute_action(
module: &Module,
request: &ActionRequest,
) -> Result<ActionResult, RuntimeError>Expand description
Execute an action against the given module and state.
- Find the action (function) in the module
- Check preconditions
- Extract field assignments from
ensuresand compute new state - Validate postconditions against new state
- Validate invariants against new state