pub fn execute(
program: &BytecodeProgram,
env: &VmEnv,
) -> Result<VmValue, VmError>Expand description
Execute a BytecodeProgram and return the top-of-stack value after Halt.
A mutable local copy of env is used so that Instruction::StoreVar
does not modify the caller’s environment.