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

Function function_lookup

crates/aiur/src/trace.rs:570–580  ·  view source on GitHub ↗
(
  multiplicity: G,
  function_index: G,
  inputs: &[G],
  output: &[G],
)

Source from the content-addressed store, hash-verified

568 *callables.get(&chip.name).ok_or("unknown chip callable")?;
569 if chip.inputs.len()
570 != program.inputs[callable].width() + depth_words(&chip.name)
571 || chip.output.len() != program.outputs[callable].width()
572 {
573 return Err("circuit interface width mismatch".into());
574 }
575 indices(&chip.inputs, chip.width)?;
576 for p in chip.constraints.iter().chain(&chip.output) {
577 p.validate(chip.width, field)?;
578 }
579 for send in &chip.sends {
580 send.enable.validate(chip.width, field)?;
581 for p in &send.args {
582 p.validate(chip.width, field)?;
583 }

Callers 1

populate_rowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected