(vl-portdecl-strip x) → new-x
Function:
(defun vl-portdecl-strip (x) (declare (xargs :guard (vl-portdecl-p x))) (let ((__function__ 'vl-portdecl-strip)) (declare (ignorable __function__)) (b* (((vl-portdecl x) (vl-portdecl-fix x))) (b* ((loc ((lambda (x) (declare (ignore x)) *vl-fakeloc*) x.loc)) (type (vl-datatype-strip x.type)) (default (vl-maybe-expr-strip x.default)) (atts ((lambda (x) (declare (ignore x)) nil) x.atts))) (change-vl-portdecl x :loc loc :type type :default default :atts atts)))))
Theorem:
(defthm vl-portdecl-p-of-vl-portdecl-strip (b* ((new-x (vl-portdecl-strip x))) (vl-portdecl-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-portdecl-strip-of-vl-portdecl-fix-x (equal (vl-portdecl-strip (vl-portdecl-fix x)) (vl-portdecl-strip x)))
Theorem:
(defthm vl-portdecl-strip-vl-portdecl-equiv-congruence-on-x (implies (vl-portdecl-equiv x x-equiv) (equal (vl-portdecl-strip x) (vl-portdecl-strip x-equiv))) :rule-classes :congruence)