Skip to main content

eval

Function eval 

Source
pub fn eval(
    cell: &OnceLock<Function>,
    bytes: &[u8],
    inputs: Vec<HostArray>,
) -> Vec<HostArray>
Expand description

Evaluates a serialized function (deserialized once into cell) with the interpreter: the equations that generated code does not specialize.

§Panics

Panics if bytes is not a function of ruxla’s primitives or the evaluation fails (the inputs are those that the function was generated for).