Skip to main content

Module call_graph

Module call_graph 

Source

Functionsยง

direct_calls
Direct call summary per user-defined function (unique + sorted).
find_recursive_fns
Returns the set of user-defined function names that are recursive (directly or mutually).
find_tco_groups
Returns the SCC groups that contain cycles (self or mutual recursion). Each group is a HashSet<String> of function names in the SCC.
ordered_fn_components
Deterministic function emission order for codegen backends.
recursive_callsite_counts
Count recursive callsites per user-defined function, scoped to caller SCC.
recursive_scc_ids
Deterministic recursive SCC id per function (1-based). Non-recursive functions are absent from the returned map.