INNER CODE UNIT · Rust

current_step

GuildOfWeavers/distaff · src/processor/decoder/mod.rs:88

    pub fn current_step(&self) -> usize {
        return self.step;
    }

    /// Returns the max value of the context stack reached during program execution.
    pub fn max_ctx_stack_depth(&self) -> usize {
        // outer-most context doesn't count because it is always just 0
        return self.ctx_stack.len() - 1;
    }

    /// Returns the max value of the loop stack reached during program execution.
    pub fn max_loop_stack_depth(&self) -> usize {
        return self.loop_stack.len();
    }

    /// Returns the state of the stack at the specified `step`.
    #[cfg(test)]
    pub fn get_state(&self, step: usize) -> Vec<u128> {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…