MCPcopy Create free account
hub / github.com/ControlCplusControlV/Scribe / get_size_of_stack

Method get_size_of_stack

crates/papyrus/src/miden_generator.rs:472–478  ·  view source on GitHub ↗

Return the size of the stack, accounting for u256 values taking up 8 values.

(&self)

Source from the content-addressed store, hash-verified

470
471 //Return the size of the stack, accounting for u256 values taking up 8 values.
472 fn get_size_of_stack(&self) -> u32 {
473 self.stack
474 .0
475 .iter()
476 .map(|sv| sv.yul_type.miden_stack_width())
477 .sum()
478 }
479
480 //Push a u256 value to the stack. See convert_u256_to_pushes for more details on how u256 segments are pushed.
481 fn push_u256(&mut self, value: U256) {

Callers 2

drop_after_returnsMethod · 0.80

Calls 1

miden_stack_widthMethod · 0.80

Tested by

no test coverage detected