MCPcopy Create free account
hub / github.com/argumentcomputer/ix / execute_ixvm

Function execute_ixvm

crates/ixvm-codegen/src/aiur_ixvm_runner.rs:31–43  ·  view source on GitHub ↗
(
  toplevel: &Toplevel,
  fun_idx: FunIdx,
  args: Vec<G>,
  io_buffer: &mut IOBuffer,
)

Source from the content-addressed store, hash-verified

29// `AiurSystem::prove_ixvm` — a `&[G]` here would break that bound.
30#[allow(clippy::needless_pass_by_value)]
31pub fn execute_ixvm(
32 toplevel: &Toplevel,
33 fun_idx: FunIdx,
34 args: Vec<G>,
35 io_buffer: &mut IOBuffer,
36) -> Result<(QueryRecord, Vec<G>), ExecError> {
37 if !toplevel.functions[fun_idx].entry {
38 return Err(ExecError::NotEntryFunction(fun_idx));
39 }
40 let mut record = QueryRecord::new(toplevel);
41 let output = execute_generated(fun_idx, &args, &mut record, io_buffer)?;
42 Ok((record, output))
43}

Callers 2

dispatch_executeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected