(vl-remove-null-statements x) → new-x
Function:
(defun vl-remove-null-statements (x) (declare (xargs :guard (vl-stmtlist-p x))) (let ((__function__ 'vl-remove-null-statements)) (declare (ignorable __function__)) (cond ((atom x) nil) ((vl-nullstmt-p (car x)) (vl-remove-null-statements (cdr x))) (t (cons (car x) (vl-remove-null-statements (cdr x)))))))
Theorem:
(defthm vl-stmtlist-p-of-vl-remove-null-statements (implies (and (force (vl-stmtlist-p x))) (b* ((new-x (vl-remove-null-statements x))) (vl-stmtlist-p new-x))) :rule-classes :rewrite)