cairo_lang_sierra_generator::executables

Function collect_executables

source
pub fn collect_executables(
    db: &dyn SierraGenGroup,
    executable_function_ids: HashMap<ConcreteFunctionWithBodyId, Vec<SmolStr>>,
    sierra_program: &Program,
) -> HashMap<SmolStr, Vec<FunctionId>>
Expand description

Extract Sierra function ids for executable functions based on syntactic function ids.

This functions accepts executable function ids, found with find_executable_function_ids, and finds their corresponding Sierra ids in a Sierra program. The returned function ids are grouped by the executable attribute name, and sorted by full path.