(bin-digit-chars-value1 x val) → *
Function:
(defun bin-digit-chars-value1 (x val) (declare (type unsigned-byte val)) (declare (xargs :guard (bin-digit-char-list*p x))) (let ((acl2::__function__ 'bin-digit-chars-value1)) (declare (ignorable acl2::__function__)) (mbe :logic (if (consp x) (bin-digit-chars-value1 (cdr x) (+ (bin-digit-char-value (car x)) (ash (nfix val) 1))) (nfix val)) :exec (if (consp x) (bin-digit-chars-value1 (cdr x) (the unsigned-byte (+ (the (unsigned-byte 8) (if (eql (car x) #\1) 1 0)) (the unsigned-byte (ash (the unsigned-byte val) 1))))) (the unsigned-byte val)))))