(vl-assignlist-delayredux x delta &key vecp state-onlyp) → (mv new-x delta)
Function:
(defun vl-assignlist-delayredux-fn (x delta vecp state-onlyp) (declare (xargs :guard (and (vl-assignlist-p x) (vl-delta-p delta)))) (let ((__function__ 'vl-assignlist-delayredux)) (declare (ignorable __function__)) (b* (((when (atom x)) (mv nil delta)) ((mv car delta) (vl-assign-delayredux (car x) delta :vecp vecp :state-onlyp state-onlyp)) ((mv cdr delta) (vl-assignlist-delayredux (cdr x) delta :vecp vecp :state-onlyp state-onlyp))) (mv (cons car cdr) delta))))
Theorem:
(defthm vl-assignlist-p-of-vl-assignlist-delayredux.new-x (implies (and (force (vl-assignlist-p x)) (force (vl-delta-p delta))) (b* (((mv ?new-x ?delta) (vl-assignlist-delayredux-fn x delta vecp state-onlyp))) (vl-assignlist-p new-x))) :rule-classes :rewrite)
Theorem:
(defthm vl-delta-p-of-vl-assignlist-delayredux.delta (implies (and (force (vl-assignlist-p x)) (force (vl-delta-p delta))) (b* (((mv ?new-x ?delta) (vl-assignlist-delayredux-fn x delta vecp state-onlyp))) (vl-delta-p delta))) :rule-classes :rewrite)