Pretty-print a function definition.
(pprint-fundef fdef options) → lines
This is always at the top level, so we initialize the indentation level of the body to 1.
Function:
(defun pprint-fundef (fdef options) (declare (xargs :guard (and (fundefp fdef) (pprint-options-p options)))) (let ((__function__ 'pprint-fundef)) (declare (ignorable __function__)) (b* (((fundef fdef) fdef)) (append (pprint-one-line (msg "~@0 ~@1 {" (pprint-tyspecseq fdef.tyspec) (pprint-fun-declor fdef.declor)) 0) (pprint-block-item-list fdef.body 1 options) (pprint-one-line "}" 0)))))
Theorem:
(defthm msg-listp-of-pprint-fundef (b* ((lines (pprint-fundef fdef options))) (msg-listp lines)) :rule-classes :rewrite)