Build a call graph corresponding to a translation unit.
(call-graph-transunit filepath transunit call-graph) → call-graph$
Function:
(defun call-graph-transunit (filepath transunit call-graph) (declare (xargs :guard (and (filepathp filepath) (transunitp transunit) (call-graphp call-graph)))) (declare (xargs :guard (c$::transunit-annop transunit))) (let ((__function__ 'call-graph-transunit)) (declare (ignorable __function__)) (b* (((transunit transunit) transunit) (info (c$::transunit-info-fix (c$::transunit->info transunit))) (valid-table (c$::transunit-info->table info))) (call-graph-extdecl-list transunit.decls filepath valid-table call-graph))))
Theorem:
(defthm call-graphp-of-call-graph-transunit (b* ((call-graph$ (call-graph-transunit filepath transunit call-graph))) (call-graphp call-graph$)) :rule-classes :rewrite)