Skip to main content

Module vm

Module vm 

Source
Expand description

Symbolic VM state and execution rules.

Re-exportsยง

pub(crate) use step::RelevantItem; ๐Ÿ”’
use rustc_hir::def_id::DefId; ๐Ÿ”’
use rustc_middle::mir::Body; ๐Ÿ”’
use rustc_middle::mir::Local; ๐Ÿ”’
use rustc_middle::ty::TyCtxt; ๐Ÿ”’
use std::cell::RefCell; ๐Ÿ”’
use z3::Context; ๐Ÿ”’
use z3::ast::Int; ๐Ÿ”’
use crate::compat::FxHashMap; ๐Ÿ”’
use crate::compat::FxHashSet; ๐Ÿ”’
use crate::vm::constructor_policy::ConstructorMirMode; ๐Ÿ”’
use self::diagnostics::Diagnostics; ๐Ÿ”’
use self::method_cache::CachedMethodResult; ๐Ÿ”’
use self::state::AllocId; ๐Ÿ”’
use self::state::Constraints; ๐Ÿ”’
use self::state::FrameState; ๐Ÿ”’
use self::state::InlineCtx; ๐Ÿ”’
use self::state::MemoryEvent; ๐Ÿ”’
use self::state::MemoryUnit; ๐Ÿ”’
use self::state::OwnershipTransfer; ๐Ÿ”’
use self::state::SavedCallerFrame; ๐Ÿ”’

Modulesยง

arithmetic ๐Ÿ”’
call_contracts ๐Ÿ”’
constructor_policy ๐Ÿ”’
Constructor MIR selection used by the symbolic VM.
container ๐Ÿ”’
Container layout, length, and backing-allocation queries.
contract_expr ๐Ÿ”’
Contract-fact expressions and shared numeric operations.
contract_facts ๐Ÿ”’
diagnostics ๐Ÿ”’
Path-scoped diagnostic evidence and its current MIR source location.
display ๐Ÿ”’
Debug and diagnostic display for the symbolic VM.
exec ๐Ÿ”’
Execute retained path items in the symbolic VM.
inline ๐Ÿ”’
inspection ๐Ÿ”’
VM observations and optional tracing used by verification and other checkers.
iterator ๐Ÿ”’
materialize ๐Ÿ”’
Materialize external fields and pointee values in symbolic memory.
memory ๐Ÿ”’
Symbolic memory model for the VM.
method_cache ๐Ÿ”’
mir_rules ๐Ÿ”’
parameters ๐Ÿ”’
range ๐Ÿ”’
region ๐Ÿ”’
Region (lifetime) helpers shared by the VM and the property checker.
state ๐Ÿ”’
Supporting symbolic VM state types and operations.
step ๐Ÿ”’
MIR items retained by the backward slicer for VM execution.

Structsยง

VmExecutor ๐Ÿ”’
Executes MIR using an immutable context and a path-local symbolic state.
VmState ๐Ÿ”’
Path-local memory, constraints, frames, and diagnostics.