(vl-includeskips-report-gather x lines totalbytes totalsavings totalmisses totalhits) → (mv lines totalbytes totalsavings totalmisses totalhits)
Function:
(defun vl-includeskips-report-gather (x lines totalbytes totalsavings totalmisses totalhits) (declare (xargs :guard (and (vl-includeskips-p x) (natp totalbytes) (natp totalsavings) (natp totalmisses) (natp totalhits)))) (let ((__function__ 'vl-includeskips-report-gather)) (declare (ignorable __function__)) (b* (((when (atom x)) (mv lines (lnfix totalbytes) (lnfix totalsavings) (lnfix totalmisses) (lnfix totalhits))) ((cons realfile (vl-iskipinfo info)) (car x)) (misses (len info.misses)) (hits (len info.hits)) (fromdisk (* misses info.len)) (savings (* hits info.len)) (reportline (list :fromdisk fromdisk :misses misses :hits hits :savings savings :ctrl info.controller :size info.len :file realfile))) (vl-includeskips-report-gather (cdr x) (cons reportline lines) (+ fromdisk (lnfix totalbytes)) (+ savings (lnfix totalsavings)) (+ misses (lnfix totalmisses)) (+ hits (lnfix totalhits))))))
Theorem:
(defthm natp-of-vl-includeskips-report-gather.totalbytes (b* (((mv ?lines ?totalbytes ?totalsavings ?totalmisses ?totalhits) (vl-includeskips-report-gather x lines totalbytes totalsavings totalmisses totalhits))) (natp totalbytes)) :rule-classes :type-prescription)
Theorem:
(defthm natp-of-vl-includeskips-report-gather.totalsavings (b* (((mv ?lines ?totalbytes ?totalsavings ?totalmisses ?totalhits) (vl-includeskips-report-gather x lines totalbytes totalsavings totalmisses totalhits))) (natp totalsavings)) :rule-classes :type-prescription)
Theorem:
(defthm natp-of-vl-includeskips-report-gather.totalmisses (b* (((mv ?lines ?totalbytes ?totalsavings ?totalmisses ?totalhits) (vl-includeskips-report-gather x lines totalbytes totalsavings totalmisses totalhits))) (natp totalmisses)) :rule-classes :type-prescription)
Theorem:
(defthm natp-of-vl-includeskips-report-gather.totalhits (b* (((mv ?lines ?totalbytes ?totalsavings ?totalmisses ?totalhits) (vl-includeskips-report-gather x lines totalbytes totalsavings totalmisses totalhits))) (natp totalhits)) :rule-classes :type-prescription)