(sv::aig-ite-bss-fn c v1 v0) → vv
Function:
(defun sv::aig-ite-bss-fn (c v1 v0) (declare (xargs :guard (and (true-listp v1) (true-listp v0)))) (let ((__function__ 'sv::aig-ite-bss-fn)) (declare (ignorable __function__)) (if c (if (eq c t) (llist-fix v1) (sv::aig-ite-bss-fn-aux c v1 v0)) (llist-fix v0))))
Theorem:
(defthm sv::true-listp-of-aig-ite-bss-fn (b* ((vv (sv::aig-ite-bss-fn c v1 v0))) (true-listp vv)) :rule-classes :type-prescription)
Theorem:
(defthm sv::aig-ite-bss-fn-correct (b* ((vv (sv::aig-ite-bss-fn 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))))))