(vl-scan-for-tnames-in-base base state) → (mv tnames state)
Function:
(defun vl-scan-for-tnames-in-base (base state) (declare (xargs :stobjs (state))) (declare (xargs :guard (stringp base))) (let ((__function__ 'vl-scan-for-tnames-in-base)) (declare (ignorable __function__)) (b* ((dir (cat *vls-root* "/" base)) ((mv err models state) (oslib::ls-subdirs dir)) ((when err) (raise "Error listing directory ~x0: ~@1~%" dir err) (mv nil state))) (mv (vl-scan-for-tnames-in-base-aux base models) state))))
Theorem:
(defthm vl-tnamelist-p-of-vl-scan-for-tnames-in-base.tnames (b* (((mv ?tnames acl2::?state) (vl-scan-for-tnames-in-base base state))) (vl-tnamelist-p tnames)) :rule-classes :rewrite)
Theorem:
(defthm state-p1-of-vl-scan-for-tnames-in-base.state (implies (force (state-p1 state)) (b* (((mv ?tnames acl2::?state) (vl-scan-for-tnames-in-base base state))) (state-p1 state))) :rule-classes :rewrite)
Theorem:
(defthm true-listp-of-vl-scan-for-tnames-in-base.tnames (b* (((mv ?tnames acl2::?state) (vl-scan-for-tnames-in-base base state))) (true-listp tnames)) :rule-classes :type-prescription)