Fixing function for vl-interface structures.
(vl-interface-fix x) → new-x
Function:
(defun vl-interface-fix$inline (x) (declare (xargs :guard (vl-interface-p x))) (let ((__function__ 'vl-interface-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((name (str-fix (std::prod-car (std::prod-car (std::prod-car (std::prod-car (std::prod-car (cdr x)))))))) (imports (vl-importlist-fix (std::prod-cdr (std::prod-car (std::prod-car (std::prod-car (std::prod-car (cdr x)))))))) (ports (vl-portlist-fix (std::prod-car (std::prod-cdr (std::prod-car (std::prod-car (std::prod-car (cdr x)))))))) (portdecls (vl-portdecllist-fix (std::prod-cdr (std::prod-cdr (std::prod-car (std::prod-car (std::prod-car (cdr x)))))))) (modports (vl-modportlist-fix (std::prod-car (std::prod-car (std::prod-cdr (std::prod-car (std::prod-car (cdr x)))))))) (vardecls (vl-vardecllist-fix (std::prod-cdr (std::prod-car (std::prod-cdr (std::prod-car (std::prod-car (cdr x)))))))) (paramdecls (vl-paramdecllist-fix (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-car (std::prod-car (cdr x)))))))) (fundecls (vl-fundecllist-fix (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-car (std::prod-car (cdr x))))))))) (taskdecls (vl-taskdecllist-fix (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-car (std::prod-car (cdr x))))))))) (typedefs (vl-typedeflist-fix (std::prod-car (std::prod-car (std::prod-car (std::prod-cdr (std::prod-car (cdr x)))))))) (dpiimports (vl-dpiimportlist-fix (std::prod-cdr (std::prod-car (std::prod-car (std::prod-cdr (std::prod-car (cdr x)))))))) (dpiexports (vl-dpiexportlist-fix (std::prod-car (std::prod-cdr (std::prod-car (std::prod-cdr (std::prod-car (cdr x)))))))) (properties (vl-propertylist-fix (std::prod-cdr (std::prod-cdr (std::prod-car (std::prod-cdr (std::prod-car (cdr x)))))))) (sequences (vl-sequencelist-fix (std::prod-car (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x)))))))) (clkdecls (vl-clkdecllist-fix (std::prod-cdr (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x)))))))) (gclkdecls (vl-gclkdecllist-fix (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x)))))))) (defaultdisables (vl-defaultdisablelist-fix (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x))))))))) (binds (vl-bindlist-fix (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x))))))))) (classes (vl-classlist-fix (std::prod-car (std::prod-car (std::prod-car (std::prod-car (std::prod-cdr (cdr x)))))))) (elabtasks (vl-elabtasklist-fix (std::prod-cdr (std::prod-car (std::prod-car (std::prod-car (std::prod-cdr (cdr x)))))))) (modinsts (vl-modinstlist-fix (std::prod-car (std::prod-cdr (std::prod-car (std::prod-car (std::prod-cdr (cdr x)))))))) (assigns (vl-assignlist-fix (std::prod-cdr (std::prod-cdr (std::prod-car (std::prod-car (std::prod-cdr (cdr x)))))))) (aliases (vl-aliaslist-fix (std::prod-car (std::prod-car (std::prod-cdr (std::prod-car (std::prod-cdr (cdr x)))))))) (assertions (vl-assertionlist-fix (std::prod-cdr (std::prod-car (std::prod-cdr (std::prod-car (std::prod-cdr (cdr x)))))))) (cassertions (vl-cassertionlist-fix (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-car (std::prod-cdr (cdr x)))))))) (alwayses (vl-alwayslist-fix (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-car (std::prod-cdr (cdr x))))))))) (initials (vl-initiallist-fix (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-car (std::prod-cdr (cdr x))))))))) (finals (vl-finallist-fix (std::prod-car (std::prod-car (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x)))))))) (generates (vl-genelementlist-fix (std::prod-cdr (std::prod-car (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x)))))))) (genvars (vl-genvarlist-fix (std::prod-car (std::prod-cdr (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x)))))))) (warnings (vl-warninglist-fix (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x))))))))) (minloc (vl-location-fix (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x))))))))) (maxloc (vl-location-fix (std::prod-car (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x)))))))) (atts (vl-atts-fix (std::prod-cdr (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x)))))))) (origname (str-fix (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x)))))))) (comments (vl-commentmap-fix (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x))))))))) (parse-temps (vl-maybe-parse-temps-fix (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x)))))))))) (cons :vl-interface (std::prod-cons (std::prod-cons (std::prod-cons (std::prod-cons (std::prod-cons name imports) (std::prod-cons ports portdecls)) (std::prod-cons (std::prod-cons modports vardecls) (std::prod-cons paramdecls (std::prod-cons fundecls taskdecls)))) (std::prod-cons (std::prod-cons (std::prod-cons typedefs dpiimports) (std::prod-cons dpiexports properties)) (std::prod-cons (std::prod-cons sequences clkdecls) (std::prod-cons gclkdecls (std::prod-cons defaultdisables binds))))) (std::prod-cons (std::prod-cons (std::prod-cons (std::prod-cons classes elabtasks) (std::prod-cons modinsts assigns)) (std::prod-cons (std::prod-cons aliases assertions) (std::prod-cons cassertions (std::prod-cons alwayses initials)))) (std::prod-cons (std::prod-cons (std::prod-cons finals generates) (std::prod-cons genvars (std::prod-cons warnings minloc))) (std::prod-cons (std::prod-cons maxloc atts) (std::prod-cons origname (std::prod-cons comments parse-temps)))))))) :exec x)))
Theorem:
(defthm vl-interface-p-of-vl-interface-fix (b* ((new-x (vl-interface-fix$inline x))) (vl-interface-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-interface-fix-when-vl-interface-p (implies (vl-interface-p x) (equal (vl-interface-fix x) x)))
Function:
(defun vl-interface-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (vl-interface-p acl2::x) (vl-interface-p acl2::y)))) (equal (vl-interface-fix acl2::x) (vl-interface-fix acl2::y)))
Theorem:
(defthm vl-interface-equiv-is-an-equivalence (and (booleanp (vl-interface-equiv x y)) (vl-interface-equiv x x) (implies (vl-interface-equiv x y) (vl-interface-equiv y x)) (implies (and (vl-interface-equiv x y) (vl-interface-equiv y z)) (vl-interface-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm vl-interface-equiv-implies-equal-vl-interface-fix-1 (implies (vl-interface-equiv acl2::x x-equiv) (equal (vl-interface-fix acl2::x) (vl-interface-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm vl-interface-fix-under-vl-interface-equiv (vl-interface-equiv (vl-interface-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-vl-interface-fix-1-forward-to-vl-interface-equiv (implies (equal (vl-interface-fix acl2::x) acl2::y) (vl-interface-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-vl-interface-fix-2-forward-to-vl-interface-equiv (implies (equal acl2::x (vl-interface-fix acl2::y)) (vl-interface-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm vl-interface-equiv-of-vl-interface-fix-1-forward (implies (vl-interface-equiv (vl-interface-fix acl2::x) acl2::y) (vl-interface-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm vl-interface-equiv-of-vl-interface-fix-2-forward (implies (vl-interface-equiv acl2::x (vl-interface-fix acl2::y)) (vl-interface-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)