Struct miden_processor::AsmOpInfo
source · pub struct AsmOpInfo { /* private fields */ }
Expand description
Contains assembly instruction and operation index in the sequence corresponding to the specified AsmOp decorator. This index starts from 1 instead of 0.
Implementations§
source§impl AsmOpInfo
impl AsmOpInfo
sourcepub fn new(asmop: AssemblyOp, cycle_idx: u8) -> Self
pub fn new(asmop: AssemblyOp, cycle_idx: u8) -> Self
Returns AsmOpInfo instantiated with the specified assembly instruction string, number of cycles it takes to execute the assembly instruction and op index in sequence of operations corresponding to the current assembly instruction. The first index is 1 instead of 0.
sourcepub fn context_name(&self) -> &str
pub fn context_name(&self) -> &str
Returns the context name for this operation.
sourcepub fn op_generalized(&self) -> String
pub fn op_generalized(&self) -> String
Returns the gerneralized form of assembly instruction corresponding to this state.
sourcepub fn num_cycles(&self) -> u8
pub fn num_cycles(&self) -> u8
Returns the number of VM cycles taken to execute the assembly instruction.
sourcepub fn cycle_idx(&self) -> u8
pub fn cycle_idx(&self) -> u8
Returns the operation index of the operation at the specified clock cycle in the sequence of operations corresponding to the current assembly instruction.
sourcepub const fn should_break(&self) -> bool
pub const fn should_break(&self) -> bool
Returns true
if the debug should break for this line.