pub fn stack_function_popn(
    state: &AbstractState,
    function_index: FunctionHandleIndex,
) -> Result<AbstractState, VMError> {
    let state_copy = state.clone();
    let mut state = state.clone();
    let function_handle = state_copy.module.function_handle_at(function_index);
    let function_signature = state_copy
        .module
        .function_signature_at(function_handle.signature);
    let number_of_pops = function_signature.arg_types.iter().len();
    for _ in 0..number_of_pops {
        state = stack_pop(&state)?;
    }
    Ok(state)
}
/// Pop the number of stack values required to call the function
/// at `function_index`
Pop the number of stack values required to call the function
at `function_index`
Pop the number of stack values required to call the function at ` function_index `
pub fn stack_function_popn(
    state: &AbstractState,
    function_index: FunctionHandleIndex,
) -> Result<AbstractState, VMError> {
    let state_copy = state.clone();
    let mut state = state.clone();
    let function_handle = state_copy.module.function_handle_at(function_index);
    let function_signature = state_copy
        .module
        .function_signature_at(function_handle.signature);
    let number_of_pops = function_signature.arg_types.iter().len();
    for _ in 0..number_of_pops {
        state = stack_pop(&state)?;
    }
    Ok(state)
}
pub fn stack_function_popn ( state : & AbstractState , function_index : FunctionHandleIndex , ) -> Result < AbstractState , VMError > { let state_copy = state . clone ( ) ; let mut state = state . clone ( ) ; let function_handle = state_copy . module . function_handle_at ( function_index ) ; let function_signature = state_copy . module . function_signature_at ( function_handle . signature ) ; let number_of_pops = function_signature . arg_types . iter ( ) . len ( ) ; for _ in 0 .. number_of_pops { state = stack_pop ( & state ) ? ; } Ok ( state ) }
Pop the number of stack values required to call the function
at `function_index`
Pop the number of stack values required to call the function at ` function_index `
state
&AbstractState
function_index
FunctionHandleIndex