pub struct MachineAnalyzer<DL>{
pub enable_overlap: u8,
pub enable_profile: u8,
pub enable_steplog: u8,
pub enable_coverage: u8,
pub machine: MachineAssign<DL>,
pub profile: MachineProfile,
pub overlap: MachineOverlap,
pub steplog: MachineStepLog,
pub coverage: MachineCoverage,
}
Fields§
§enable_overlap: u8
§enable_profile: u8
§enable_steplog: u8
§enable_coverage: u8
§machine: MachineAssign<DL>
§profile: MachineProfile
§overlap: MachineOverlap
§steplog: MachineStepLog
§coverage: MachineCoverage
Implementations§
Source§impl<DL> MachineAnalyzer<DL>
impl<DL> MachineAnalyzer<DL>
pub fn new( machine: MachineAssign<DL>, profile: MachineProfile, overlap: MachineOverlap, steplog: MachineStepLog, coverage: MachineCoverage, ) -> Self
pub fn run(&mut self) -> Result<i8, Error>
Trait Implementations§
Source§impl<DL> CoreMachine for MachineAnalyzer<DL>
impl<DL> CoreMachine for MachineAnalyzer<DL>
type REG = u64
type MEM = <MachineAssign<DL> as CoreMachine>::MEM
fn pc(&self) -> &Self::REG
fn update_pc(&mut self, pc: Self::REG)
fn commit_pc(&mut self)
fn memory(&self) -> &Self::MEM
fn memory_mut(&mut self) -> &mut Self::MEM
fn registers(&self) -> &[Self::REG]
fn set_register(&mut self, idx: usize, value: Self::REG)
fn isa(&self) -> u8
fn version(&self) -> u32
Source§impl<DL> Display for MachineAnalyzer<DL>
impl<DL> Display for MachineAnalyzer<DL>
Auto Trait Implementations§
impl<DL> Freeze for MachineAnalyzer<DL>
impl<DL> !RefUnwindSafe for MachineAnalyzer<DL>
impl<DL> !Send for MachineAnalyzer<DL>
impl<DL> !Sync for MachineAnalyzer<DL>
impl<DL> Unpin for MachineAnalyzer<DL>
impl<DL> !UnwindSafe for MachineAnalyzer<DL>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more