pub struct AndersenPTA {
pub num_vars: usize,
pub pts: Vec<BTreeSet<usize>>,
pub copy_edges: Vec<BTreeSet<usize>>,
pub store: Vec<Vec<(usize, usize)>>,
pub load: Vec<Vec<(usize, usize)>>,
}Expand description
A simplified Andersen points-to analysis using a constraint worklist.
Fields§
§num_vars: usizeNumber of variables.
pts: Vec<BTreeSet<usize>>Points-to sets: pts[v] = set of allocation sites.
copy_edges: Vec<BTreeSet<usize>>Copy constraints: copy_edges[a] = {b | pts(a) ⊆ pts(b)}.
store: Vec<Vec<(usize, usize)>>Store constraints: store[a] = set of (src, field).
load: Vec<Vec<(usize, usize)>>Load constraints: load[a] = set of (dst, field).
Implementations§
Trait Implementations§
Source§impl Clone for AndersenPTA
impl Clone for AndersenPTA
Source§fn clone(&self) -> AndersenPTA
fn clone(&self) -> AndersenPTA
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AndersenPTA
impl Debug for AndersenPTA
Source§impl Default for AndersenPTA
impl Default for AndersenPTA
Source§fn default() -> AndersenPTA
fn default() -> AndersenPTA
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AndersenPTA
impl RefUnwindSafe for AndersenPTA
impl Send for AndersenPTA
impl Sync for AndersenPTA
impl Unpin for AndersenPTA
impl UnsafeUnpin for AndersenPTA
impl UnwindSafe for AndersenPTA
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