(sv::aig-ite-bss-fn-aux c v1 v0) → vv
Function:
(defun sv::aig-ite-bss-fn-aux (c v1 v0) (declare (xargs :guard (and (true-listp v1) (true-listp v0)))) (let ((__function__ 'sv::aig-ite-bss-fn-aux)) (declare (ignorable __function__)) (b* (((mv head1 tail1 end1) (first/rest/end v1)) ((mv head0 tail0 end0) (first/rest/end v0)) ((when (and end1 end0)) (sv::aig-sterm (acl2::aig-ite-fn c head1 head0))) (rst (sv::aig-ite-bss-fn-aux c tail1 tail0)) (head (acl2::aig-ite c head1 head0))) (sv::aig-scons head rst))))
Theorem:
(defthm sv::true-listp-of-aig-ite-bss-fn-aux (b* ((vv (sv::aig-ite-bss-fn-aux c v1 v0))) (true-listp vv)) :rule-classes :type-prescription)
Theorem:
(defthm sv::aig-ite-bss-fn-aux-correct (b* ((vv (sv::aig-ite-bss-fn-aux c v1 v0))) (and (equal (sv::aig-list->s vv env) (if (acl2::aig-eval c env) (sv::aig-list->s v1 env) (sv::aig-list->s v0 env))))))