Function:
(defun const-prop-fundef (fundef env) (declare (xargs :guard (and (fundefp fundef) (envp env)))) (let ((__function__ 'const-prop-fundef)) (declare (ignorable __function__)) (b* (((fundef fundef) fundef) ((mv spec -) (const-prop-decl-spec-list fundef.spec env)) ((mv declor -) (const-prop-declor fundef.declor env)) ((mv decls -) (const-prop-decl-list fundef.decls env)) ((mv body -) (const-prop-stmt fundef.body (push-scope-env env)))) (make-fundef :extension fundef.extension :spec spec :declor declor :asm? fundef.asm? :decls decls :body body))))
Theorem:
(defthm fundefp-of-const-prop-fundef (b* ((new-fundef (const-prop-fundef fundef env))) (fundefp new-fundef)) :rule-classes :rewrite)