Skip to main content

AxEvent

Struct AxEvent 

Source
pub struct AxEvent<'a, B> {
    pub opcode: B,
    pub po: usize,
    pub intra_instruction_order: usize,
    pub thread_id: ThreadId,
    pub name: String,
    pub base: &'a Event<B>,
    pub is_ifetch: bool,
}
Expand description

An AxEvent (axiomatic event) is an event combined with metadata about where and when it was executed in a candidate execution. This can be combined with the footprint analysis to determine various dependency orders on events.

Fields§

§opcode: B

The opcode for the instruction that contained the underlying event

§po: usize

The place of the event in po-order for it’s thread

§intra_instruction_order: usize

If a single instruction contains multiple events, this will order them

§thread_id: ThreadId

The thread id for the event

§name: String

A generated unique name for the event

§base: &'a Event<B>

The underlying event in the SMT trace

§is_ifetch: bool

Is the event an instruction fetch (i.e. base is ReadMem with an ifetch read_kind)

Implementations§

Source§

impl<'a, B: BV> AxEvent<'a, B>

Source

pub fn address(&self) -> Option<&'a Val<B>>

Source

pub fn read_value(&self) -> Option<(&'a Val<B>, u32)>

Source

pub fn write_data(&self) -> Option<(&'a Val<B>, u32)>

Trait Implementations§

Source§

impl<'a, B: Debug> Debug for AxEvent<'a, B>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, B> Freeze for AxEvent<'a, B>
where B: Freeze,

§

impl<'a, B> RefUnwindSafe for AxEvent<'a, B>
where B: RefUnwindSafe,

§

impl<'a, B> Send for AxEvent<'a, B>
where B: Send + Sync,

§

impl<'a, B> Sync for AxEvent<'a, B>
where B: Sync,

§

impl<'a, B> Unpin for AxEvent<'a, B>
where B: Unpin,

§

impl<'a, B> UnsafeUnpin for AxEvent<'a, B>
where B: UnsafeUnpin,

§

impl<'a, B> UnwindSafe for AxEvent<'a, B>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.