pub struct PerFunctionRelevance {
    pub entrypoint_assumptions: BTreeMap<GlobalId, PerBytecodeRelevance>,
    pub per_bytecode_assertions: BTreeMap<CodeOffset, BTreeMap<GlobalId, PerBytecodeRelevance>>,
    pub exitpoint_assertions: BTreeMap<GlobalId, PerBytecodeRelevance>,
    pub ghost_type_param_count: usize,
}
Expand description

A named struct for holding the information on how invariants are relevant to a function.

Fields

entrypoint_assumptions: BTreeMap<GlobalId, PerBytecodeRelevance>

Invariants that needs to be assumed at function entrypoint

  • Key: global invariants that needs to be assumed before the first instruction,
  • Value: the instantiation information per each related invariant.
per_bytecode_assertions: BTreeMap<CodeOffset, BTreeMap<GlobalId, PerBytecodeRelevance>>

For each bytecode at given code offset, the associated value is a map of

  • Key: global invariants that needs to be asserted after the bytecode instruction and
  • Value: the instantiation information per each related invariant.
exitpoint_assertions: BTreeMap<GlobalId, PerBytecodeRelevance>

Invariants that needs to be asserted at function exitpoint

  • Key: global invariants that needs to be assumed before the first instruction,
  • Value: the instantiation information per each related invariant.
ghost_type_param_count: usize

Number of ghost type parameters introduced in order to instantiate all asserted invariants

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.