(vl-bitlist->onset x) → onset
Function:
(defun vl-bitlist->onset (x) (declare (xargs :guard (vl-bitlist-p x))) (let ((__function__ 'vl-bitlist->onset)) (declare (ignorable __function__)) (if (atom x) 0 (acl2::logcons (case (vl-bit-fix (car x)) ((:vl-0val :vl-zval) 0) (t 1)) (vl-bitlist->onset (cdr x))))))
Theorem:
(defthm natp-of-vl-bitlist->onset (b* ((onset (vl-bitlist->onset x))) (natp onset)) :rule-classes :type-prescription)
Theorem:
(defthm vl-bitlist->onset-of-vl-bitlist-fix-x (equal (vl-bitlist->onset (vl-bitlist-fix x)) (vl-bitlist->onset x)))
Theorem:
(defthm vl-bitlist->onset-vl-bitlist-equiv-congruence-on-x (implies (vl-bitlist-equiv x x-equiv) (equal (vl-bitlist->onset x) (vl-bitlist->onset x-equiv))) :rule-classes :congruence)