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

Method execute

crates/aiur/src/execute.rs:211–228  ·  view source on GitHub ↗
(
    &self,
    fun_idx: FunIdx,
    args: Vec<G>,
    io_buffer: &mut IOBuffer,
  )

Source from the content-addressed store, hash-verified

209
210impl Toplevel {
211 pub fn execute(
212 &self,
213 fun_idx: FunIdx,
214 args: Vec<G>,
215 io_buffer: &mut IOBuffer,
216 ) -> Result<(QueryRecord, Vec<G>), ExecError> {
217 if !self.functions[fun_idx].entry {
218 return Err(ExecError::NotEntryFunction(fun_idx));
219 }
220 let mut record = QueryRecord::new(self);
221 let function = &self.functions[fun_idx];
222 let output =
223 function.execute(fun_idx, args, self, &mut record, io_buffer)?;
224 if *QUERY_STATS {
225 dump_query_stats(&record, "final");
226 }
227 Ok((record, output))
228 }
229}
230
231enum ExecEntry<'a> {

Callers 9

mainFunction · 0.45
run_constantFunction · 0.45
run_shard_planFunction · 0.45
mainFunction · 0.45
bytes1_executeFunction · 0.45
bytes2_executeFunction · 0.45
proveMethod · 0.45
rs_aiur_toplevel_executeFunction · 0.45
dispatch_executeFunction · 0.45

Calls 15

dump_query_statsFunction · 0.85
bytes1_executeFunction · 0.85
bytes2_executeFunction · 0.85
read_klimbs_u64Function · 0.85
klimbs_u64_to_biguintFunction · 0.85
biguint_to_klimbs_u64Function · 0.85
build_klimbs_u64Function · 0.85
pushMethod · 0.80
get_index_mutMethod · 0.80
get_infoMethod · 0.80
set_infoMethod · 0.80
bump_range_checkMethod · 0.80

Tested by

no test coverage detected