Skip to main content

estimate_stack_depth

Function estimate_stack_depth 

Source
pub fn estimate_stack_depth(ops: &[OpCode]) -> usize
Expand description

Statically estimate the maximum stack depth required to execute ops.

Each opcode is modelled as a pure delta on the stack pointer. The function returns the maximum depth seen.