Function mlem::execute
[−]
[src]
pub fn execute(
program: Program,
input: Vec<u64>,
limit: Option<u64>
) -> (Outcome, u64, Vec<u64>)
Given a Program (that is, a Vec of Instructions), this function will manage creating a Machine and hooking up its Input and Output for you. It returns a tuple of the final outcome of the program, the number of instructions executed, and a Vector of the output.