pub struct WcetLoopBound {
pub head_offset: u64,
pub trip_count: u64,
pub region_instr_count: usize,
pub source: WcetLoopBoundSource,
pub hint: Option<u64>,
}Expand description
One proven-bounded loop inside a bounded function (#778 phase 2). Loops are
listed in ascending head_offset order — the SAME order --wcet-hints
loop_bounds entries are matched by.
Fields§
§head_offset: u64Byte offset of the loop head (backward-branch target) within the function.
trip_count: u64The PROVEN maximum number of body executions (full iterations).
region_instr_count: usizeNumber of instructions inside the loop region (head..=backward branch),
so a consumer can cross-check cycles ≥ trip_count × region_instr_count
(every instruction costs ≥ 1 cycle).
source: WcetLoopBoundSourceHow the trip count was established.
hint: Option<u64>The hint value consumed (present iff source == HintVerified or a
redundant hint was cross-checked against a static proof).
Trait Implementations§
Source§impl Clone for WcetLoopBound
impl Clone for WcetLoopBound
Source§fn clone(&self) -> WcetLoopBound
fn clone(&self) -> WcetLoopBound
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WcetLoopBound
impl Debug for WcetLoopBound
Source§impl<'de> Deserialize<'de> for WcetLoopBound
impl<'de> Deserialize<'de> for WcetLoopBound
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WcetLoopBound
Source§impl PartialEq for WcetLoopBound
impl PartialEq for WcetLoopBound
Source§impl Serialize for WcetLoopBound
impl Serialize for WcetLoopBound
impl StructuralPartialEq for WcetLoopBound
Auto Trait Implementations§
impl Freeze for WcetLoopBound
impl RefUnwindSafe for WcetLoopBound
impl Send for WcetLoopBound
impl Sync for WcetLoopBound
impl Unpin for WcetLoopBound
impl UnsafeUnpin for WcetLoopBound
impl UnwindSafe for WcetLoopBound
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.