Function:
(defun rename-fn-fundef (fundef old-fn new-fn) (declare (xargs :guard (and (fundefp fundef) (identp old-fn) (identp new-fn)))) (declare (ignorable fundef old-fn new-fn)) (let ((__function__ 'rename-fn-fundef)) (declare (ignorable __function__)) (b* (((fundef fundef) fundef)) (make-fundef :extension fundef.extension :spec (rename-fn-decl-spec-list fundef.spec old-fn new-fn) :declor (rename-fn-declor fundef.declor old-fn new-fn) :asm? fundef.asm? :attribs fundef.attribs :decls (rename-fn-decl-list fundef.decls old-fn new-fn) :body (rename-fn-stmt fundef.body old-fn new-fn)))))
Theorem:
(defthm fundefp-of-rename-fn-fundef (b* ((new-fundef (rename-fn-fundef fundef old-fn new-fn))) (fundefp new-fundef)) :rule-classes :rewrite)