Concatenates
(merge-bytes bytes) → merged
Function:
(defun merge-bytes (bytes) (declare (xargs :guard (byte-listp bytes))) (let ((__function__ 'merge-bytes)) (declare (ignorable __function__)) (bitops::merge-unsigneds 8 (reverse bytes))))
Theorem:
(defthm natp-of-merge-bytes (b* ((merged (merge-bytes bytes))) (natp merged)) :rule-classes :type-prescription)
Theorem:
(defthm width-of-merge-bytes (b* ((?merged (merge-bytes bytes))) (implies (and (<= (* 8 (len bytes)) m) (natp m)) (unsigned-byte-p m merged))))