[][src]Struct solana_libra_bytecode_verifier::abstract_state::AbstractState

pub struct AbstractState { /* fields omitted */ }

Methods

impl AbstractState[src]

pub fn new(
    locals: BTreeMap<LocalIndex, AbstractValue>,
    globals: BTreeMap<StructDefinitionIndex, BTreeSet<Nonce>>
) -> Self
[src]

create a new abstract state

pub fn is_available(&self, idx: LocalIndex) -> bool[src]

checks if local@idx is available

pub fn local(&self, idx: LocalIndex) -> &AbstractValue[src]

returns local@idx

pub fn global(&mut self, idx: StructDefinitionIndex) -> &BTreeSet<Nonce>[src]

returns global@idx

pub fn global_opt(&self, idx: StructDefinitionIndex) -> Option<&BTreeSet<Nonce>>[src]

returns global@idx, None if not present

pub fn remove_local(&mut self, idx: LocalIndex) -> AbstractValue[src]

removes local@idx

pub fn insert_local(&mut self, idx: LocalIndex, value: AbstractValue)[src]

inserts local@idx

pub fn is_safe_to_destroy(&self) -> bool[src]

Return true if self may safely be destroyed

pub fn is_local_safe_to_destroy(&self, idx: LocalIndex) -> bool[src]

Return true if local@idx may safely be destroyed

pub fn destroy_local(&mut self, idx: LocalIndex)[src]

destroys local@idx call only if self.is_local_safe_to_destroy(idx) returns true

pub fn add_nonce(&mut self, nonce: Nonce)[src]

nonce must be fresh

pub fn destroy_nonce(&mut self, nonce: Nonce)[src]

destroys nonce borrows of nonce become borrows of any nonce' such that nonce borrows from nonce'

pub fn is_full(&self, value: &AbstractValue) -> bool[src]

checks if there are any pending borrows on value

pub fn borrowed_nonces_for_field(
    &self,
    idx: FieldDefinitionIndex,
    nonce: Nonce
) -> BTreeSet<Nonce>
[src]

returns the set of nonces borrowing from nonce that might alias some idx-extension of nonce

pub fn borrowed_nonces(&self, nonce: Nonce) -> BTreeSet<Nonce>[src]

returns the set of nonces borrowing from nonce that might alias some extension of nonce

pub fn borrow_field_from_nonce(
    &mut self,
    idx: FieldDefinitionIndex,
    nonce: Nonce,
    new_nonce: Nonce
)
[src]

update self to reflect a borrow of idx from nonce by new_nonce

pub fn borrow_from_local_value(&mut self, idx: LocalIndex, new_nonce: Nonce)[src]

update self to reflect a borrow of a value local@idx by new_nonce

pub fn borrow_from_local_reference(&mut self, idx: LocalIndex, new_nonce: Nonce)[src]

update self to reflect a borrow of a reference local@idx by new_nonce

pub fn borrow_from_global_value(
    &mut self,
    idx: StructDefinitionIndex,
    new_nonce: Nonce
)
[src]

update self to reflect a borrow of a value global@idx by new_nonce

pub fn borrow_from_nonces(
    &mut self,
    to_borrow_from: &BTreeSet<Nonce>,
    new_nonce: Nonce
)
[src]

update self to reflect a borrow from each nonce in to_borrow_from by new_nonce

pub fn is_canonical(&self) -> bool[src]

checks if self is canonical

pub fn construct_canonical_state(&self) -> Self[src]

returns the canonical representation of self

Trait Implementations

impl AbstractDomain for AbstractState[src]

fn join(&mut self, state: &AbstractState) -> JoinResult[src]

attempts to join state to self and returns the result

impl Clone for AbstractState[src]

impl Debug for AbstractState[src]

impl Eq for AbstractState[src]

impl PartialEq<AbstractState> for AbstractState[src]

impl StructuralEq for AbstractState[src]

impl StructuralPartialEq for AbstractState[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,