[−][src]Struct solana_libra_bytecode_verifier::abstract_state::AbstractState
Methods
impl AbstractState
[src]
pub fn new(
locals: BTreeMap<LocalIndex, AbstractValue>,
globals: BTreeMap<StructDefinitionIndex, BTreeSet<Nonce>>
) -> Self
[src]
locals: BTreeMap<LocalIndex, AbstractValue>,
globals: BTreeMap<StructDefinitionIndex, BTreeSet<Nonce>>
) -> Self
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]
&self,
idx: FieldDefinitionIndex,
nonce: Nonce
) -> BTreeSet<Nonce>
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]
&mut self,
idx: FieldDefinitionIndex,
nonce: Nonce,
new_nonce: Nonce
)
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]
&mut self,
idx: StructDefinitionIndex,
new_nonce: Nonce
)
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]
&mut self,
to_borrow_from: &BTreeSet<Nonce>,
new_nonce: Nonce
)
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]
fn clone(&self) -> AbstractState
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for AbstractState
[src]
impl Eq for AbstractState
[src]
impl PartialEq<AbstractState> for AbstractState
[src]
fn eq(&self, other: &AbstractState) -> bool
[src]
fn ne(&self, other: &AbstractState) -> bool
[src]
impl StructuralEq for AbstractState
[src]
impl StructuralPartialEq for AbstractState
[src]
Auto Trait Implementations
impl RefUnwindSafe for AbstractState
impl Send for AbstractState
impl Sync for AbstractState
impl Unpin for AbstractState
impl UnwindSafe for AbstractState
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,