Transform a translation unit.
(copy-fn-transunit tunit target-fn new-fn) → new-tunit
Function:
(defun copy-fn-transunit (tunit target-fn new-fn) (declare (xargs :guard (and (transunitp tunit) (identp target-fn) (identp new-fn)))) (let ((__function__ 'copy-fn-transunit)) (declare (ignorable __function__)) (b* (((transunit tunit) tunit)) (transunit (copy-fn-extdecl-list tunit.decls target-fn new-fn)))))
Theorem:
(defthm transunitp-of-copy-fn-transunit (b* ((new-tunit (copy-fn-transunit tunit target-fn new-fn))) (transunitp new-tunit)) :rule-classes :rewrite)