Fixing function for vl-loadconfig structures.
(vl-loadconfig-fix x) → new-x
Function:
(defun vl-loadconfig-fix$inline (x) (declare (xargs :guard (vl-loadconfig-p x))) (let ((__function__ 'vl-loadconfig-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((edition (vl-edition-fix (cdr (std::da-nth 0 (cdr x))))) (strictp (acl2::bool-fix (cdr (std::da-nth 1 (cdr x))))) (start-files (string-list-fix (cdr (std::da-nth 2 (cdr x))))) (start-names (string-list-fix (cdr (std::da-nth 3 (cdr x))))) (search-path (string-list-fix (cdr (std::da-nth 4 (cdr x))))) (search-exts (string-list-fix (cdr (std::da-nth 5 (cdr x))))) (include-dirs (string-list-fix (cdr (std::da-nth 6 (cdr x))))) (defines (vl-defines-fix (cdr (std::da-nth 7 (cdr x)))) ) (plusargs (string-list-fix (cdr (std::da-nth 8 (cdr x))))) (filemapp (acl2::bool-fix (cdr (std::da-nth 9 (cdr x))))) (debugp (acl2::bool-fix (cdr (std::da-nth 10 (cdr x))))) (flush-tries (pos-fix (cdr (std::da-nth 11 (cdr x))))) (mintime (mintime-fix (cdr (std::da-nth 12 (cdr x)))))) (cons :vl-loadconfig (list (cons 'edition edition) (cons 'strictp strictp) (cons 'start-files start-files) (cons 'start-names start-names) (cons 'search-path search-path) (cons 'search-exts search-exts) (cons 'include-dirs include-dirs) (cons 'defines defines) (cons 'plusargs plusargs) (cons 'filemapp filemapp) (cons 'debugp debugp) (cons 'flush-tries flush-tries) (cons 'mintime mintime)))) :exec x)))
Theorem:
(defthm vl-loadconfig-p-of-vl-loadconfig-fix (b* ((new-x (vl-loadconfig-fix$inline x))) (vl-loadconfig-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-loadconfig-fix-when-vl-loadconfig-p (implies (vl-loadconfig-p x) (equal (vl-loadconfig-fix x) x)))
Function:
(defun vl-loadconfig-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (vl-loadconfig-p acl2::x) (vl-loadconfig-p acl2::y)))) (equal (vl-loadconfig-fix acl2::x) (vl-loadconfig-fix acl2::y)))
Theorem:
(defthm vl-loadconfig-equiv-is-an-equivalence (and (booleanp (vl-loadconfig-equiv x y)) (vl-loadconfig-equiv x x) (implies (vl-loadconfig-equiv x y) (vl-loadconfig-equiv y x)) (implies (and (vl-loadconfig-equiv x y) (vl-loadconfig-equiv y z)) (vl-loadconfig-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm vl-loadconfig-equiv-implies-equal-vl-loadconfig-fix-1 (implies (vl-loadconfig-equiv acl2::x x-equiv) (equal (vl-loadconfig-fix acl2::x) (vl-loadconfig-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm vl-loadconfig-fix-under-vl-loadconfig-equiv (vl-loadconfig-equiv (vl-loadconfig-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-vl-loadconfig-fix-1-forward-to-vl-loadconfig-equiv (implies (equal (vl-loadconfig-fix acl2::x) acl2::y) (vl-loadconfig-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-vl-loadconfig-fix-2-forward-to-vl-loadconfig-equiv (implies (equal acl2::x (vl-loadconfig-fix acl2::y)) (vl-loadconfig-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm vl-loadconfig-equiv-of-vl-loadconfig-fix-1-forward (implies (vl-loadconfig-equiv (vl-loadconfig-fix acl2::x) acl2::y) (vl-loadconfig-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm vl-loadconfig-equiv-of-vl-loadconfig-fix-2-forward (implies (vl-loadconfig-equiv acl2::x (vl-loadconfig-fix acl2::y)) (vl-loadconfig-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)