pub struct LoopBound {
pub bound: Option<u64>,
}Expand description
Estimated loop bound: an upper bound on iteration count.
Fields§
§bound: Option<u64>Estimated maximum iterations
Implementations§
Source§impl LoopBound
impl LoopBound
Sourcepub fn from_interval(interval: &IntervalDomain) -> Self
pub fn from_interval(interval: &IntervalDomain) -> Self
Estimate loop bound from interval [0, n]: bound is n+1 iterations.
Sourcepub fn terminates(&self) -> bool
pub fn terminates(&self) -> bool
Check if the loop is known to terminate.
Auto Trait Implementations§
impl Freeze for LoopBound
impl RefUnwindSafe for LoopBound
impl Send for LoopBound
impl Sync for LoopBound
impl Unpin for LoopBound
impl UnsafeUnpin for LoopBound
impl UnwindSafe for LoopBound
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