Callgraph.UsesSourceSeveral useful functions over the callgraph
Iterate over all the functions, in the callgraph order, i.e. from callers to callees. In case of cycles (mutual recursive functions), the order is unspecified.
Iterate over all the functions, in the callgraph reverse order, i.e. from callees to callers. In case of cycles (mutual recursive functions), the order is unspecified.
val iter_on_callers :
(Frama_c_kernel.Kernel_function.t -> unit) ->
Frama_c_kernel.Kernel_function.t ->
unitIterate over all the callers of a given function in a (reverse) depth-first way. Do nothing if the function is not in the callgraph.
val iter_on_callees :
(Frama_c_kernel.Kernel_function.t -> unit) ->
Frama_c_kernel.Kernel_function.t ->
unitIterate over all the callees of a given function in a (reverse) depth-first way. Do nothing if the function is not in the callgraph.