pub struct DataflowAnalysis {
pub direction: AnalysisDirection,
pub values: HashMap<usize, AbstractState>,
}Expand description
A dataflow analysis: associates abstract values to program points.
Fields§
§direction: AnalysisDirectionWhether this is a forward or backward analysis
values: HashMap<usize, AbstractState>Abstract values at each program point (indexed by label)
Implementations§
Source§impl DataflowAnalysis
impl DataflowAnalysis
Sourcepub fn new_forward() -> Self
pub fn new_forward() -> Self
Create a new (initially bottom) forward dataflow analysis.
Sourcepub fn new_backward() -> Self
pub fn new_backward() -> Self
Create a new (initially bottom) backward dataflow analysis.
Sourcepub fn at(&self, label: usize) -> AbstractState
pub fn at(&self, label: usize) -> AbstractState
Get the abstract value at a program point.
Sourcepub fn set_at(&mut self, label: usize, state: AbstractState)
pub fn set_at(&mut self, label: usize, state: AbstractState)
Set the abstract value at a program point.
Auto Trait Implementations§
impl Freeze for DataflowAnalysis
impl RefUnwindSafe for DataflowAnalysis
impl Send for DataflowAnalysis
impl Sync for DataflowAnalysis
impl Unpin for DataflowAnalysis
impl UnsafeUnpin for DataflowAnalysis
impl UnwindSafe for DataflowAnalysis
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more