(vl-extend-expr-with-linestart linestart expr) → new-expr
Function:
(defun vl-extend-expr-with-linestart (linestart expr) (declare (xargs :guard (and (maybe-natp linestart) (vl-expr-p expr)))) (let ((__function__ 'vl-extend-expr-with-linestart)) (declare (ignorable __function__)) (b* ((expr (vl-expr-fix expr)) ((unless linestart) expr) (atts (vl-expr->atts expr)) (atts (vl-extend-atts-with-linestart linestart atts))) (vl-expr-update-atts expr atts))))
Theorem:
(defthm vl-expr-p-of-vl-extend-expr-with-linestart (b* ((new-expr (vl-extend-expr-with-linestart linestart expr))) (vl-expr-p new-expr)) :rule-classes :rewrite)