(vl-loadstate-fatal &key type msg args (fn '__function__) st) → new-st
Function:
(defun vl-loadstate-fatal-fn (type msg args fn st) (declare (xargs :guard (and (symbolp type) (stringp msg) (true-listp args) (symbolp fn) (vl-loadstate-p st)))) (let ((__function__ 'vl-loadstate-fatal)) (declare (ignorable __function__)) (b* ((w (make-vl-warning :fatalp t :type type :msg msg :args args :fn fn)) (warnings (vl-loadstate->warnings st)) (st (vl-loadstate-set-warnings (cons w warnings))) (wstr (with-local-ps (vl-print-warning w))) (padded (str::prefix-lines wstr (vl-loadstate-pad st)))) (cw-unformatted padded) st)))
Theorem:
(defthm return-type-of-vl-loadstate-fatal (b* ((new-st (vl-loadstate-fatal-fn type msg args fn st))) (and (vl-loadstate-p new-st) (equal (vl-loadstate->descs new-st) (vl-loadstate->descs st)))) :rule-classes :rewrite)