MCPcopy Create free account
hub / github.com/PolyhedraZK/ExpanderCompilerCollection / stub_impl

Function stub_impl

expander_compiler/src/hints/builtin.rs:268–273  ·  view source on GitHub ↗
(hint_id: usize, inputs: &Vec<F>, num_outputs: usize)

Source from the content-addressed store, hash-verified

266}
267
268pub fn stub_impl<F: Field>(hint_id: usize, inputs: &Vec<F>, num_outputs: usize) -> Vec<F> {
269 match BuiltinHintIds::from_usize(hint_id) {
270 Some(hint_id) => impl_builtin_hint(hint_id, inputs, num_outputs),
271 None => stub_impl_general(hint_id, inputs, num_outputs),
272 }
273}
274
275pub fn random_builtin(mut rand: impl RngCore) -> (usize, usize, usize) {
276 loop {

Callers 8

callMethod · 0.85
eval_unsafeMethod · 0.85
eval_unsafeMethod · 0.85
eval_unsafeMethod · 0.85
eval_unsafeMethod · 0.85
apply_segment_unsafeMethod · 0.85

Calls 2

impl_builtin_hintFunction · 0.85
stub_impl_generalFunction · 0.85

Tested by

no test coverage detected