Function create_entry_code_from_params

Source
pub fn create_entry_code_from_params(
    param_types: &[(GenericTypeId, i16)],
    return_types: &[(GenericTypeId, i16)],
    code_offset: usize,
    config: EntryCodeConfig,
) -> Result<(Vec<Instruction>, Vec<BuiltinName>), BuildError>
Expand description

Returns the entry code to call the function with param_types as its inputs and return_types as outputs, located at code_offset. If finalize_for_proof is true, will make sure to remove the segment arena after calling the function. For testing purposes, finalize_for_proof can be set to false, to avoid a failure of the segment arena validation.