Get the loc field from a vl-timeunitdecl.
(vl-timeunitdecl->loc x) → loc
This is an ordinary field accessor created by defprod.
Function:
(defun vl-timeunitdecl->loc$inline (x) (declare (xargs :guard (vl-timeunitdecl-p x))) (declare (xargs :guard t)) (let ((__function__ 'vl-timeunitdecl->loc)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (vl-location-fix (cdr (cdr (cdr x))))) :exec (cdr (cdr (cdr x))))))
Theorem:
(defthm vl-location-p-of-vl-timeunitdecl->loc (b* ((loc (vl-timeunitdecl->loc$inline x))) (vl-location-p loc)) :rule-classes :rewrite)
Theorem:
(defthm vl-timeunitdecl->loc$inline-of-vl-timeunitdecl-fix-x (equal (vl-timeunitdecl->loc$inline (vl-timeunitdecl-fix x)) (vl-timeunitdecl->loc$inline x)))
Theorem:
(defthm vl-timeunitdecl->loc$inline-vl-timeunitdecl-equiv-congruence-on-x (implies (vl-timeunitdecl-equiv x x-equiv) (equal (vl-timeunitdecl->loc$inline x) (vl-timeunitdecl->loc$inline x-equiv))) :rule-classes :congruence)