Skip to main content

Module target

Module target 

Source

StructsΒ§

FunctionTarget
Collected verification data for a single function under analysis.
PrepareTargets
Analysis pass that finds all verification targets.
StructTarget
Collected verification data for a struct that owns methods marked with #[rapx::verify].
TraitEnsurance
Collected verification data for an impl unsafe Trait for Type block.
VerifyTargetCollector
Visitor that collects targets annotated with #[rapx::verify].

FunctionsΒ§

build_raw_ptr_deref_checks πŸ”’
Build (pseudo-checkpoint, properties) pairs for every raw pointer dereference in the target function.
build_static_mut_checks πŸ”’
Build (pseudo-checkpoint, properties) pairs for every static mut access in the target function.
build_type_invariants_from_params πŸ”’
For each function parameter (and the return type), look up the type’s invariants from std-type-invariants.json and create preconditions.
collect_properties_from_named_attrs πŸ”’
collect_type_invariants πŸ”’
Look up the type path in the DB and add instantiated invariants to results.
get_contract_from_annotation πŸ”’
Parses requires contracts from source-level RAPx annotations attached to a definition.
get_struct_invariants_from_annotation πŸ”’
Parses struct invariants from source-level RAPx annotations attached to a struct definition.
get_trait_contracts_from_annotation πŸ”’
Parses trait safety contracts from #[rapx::ensures(...)] on unsafe trait methods, grouped by method name.
get_trait_method_requires πŸ”’
instantiate_type_invariant πŸ”’
Create a property from a type invariant entry, substituting the parameter name.
is_drop_impl πŸ”’
is_numeric_field_access πŸ”’
Check if a string looks like a numeric field access (e.g. β€œ0”).
is_rapx_named_attr πŸ”’
resolve_chain_contracts πŸ”’
Follow an unsafe callee’s call chain to find inherited safety contracts.
type_path_key πŸ”’
Generate a normalised type path key for lookups in the type-invariants DB.

Type AliasesΒ§

FnContracts
A list of parsed requires contracts.
StructInvariants
A list of parsed struct invariants.