• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Vwsim
      • Fgl
      • Vl
        • Syntax
        • Loader
          • Preprocessor
          • Vl-loadconfig
          • Vl-loadstate
          • Lexer
          • Parser
          • Vl-load-merge-descriptions
          • Vl-find-basename/extension
          • Vl-load-file
          • Vl-loadresult
          • Vl-find-file
          • Scope-of-defines
          • Vl-flush-out-descriptions
          • Vl-description
          • Vl-read-file
          • Vl-includeskips-report-gather
            • Vl-load-main
            • Extended-characters
            • Vl-load
            • Vl-load-description
            • Vl-preprocess-debug
            • Vl-descriptions-left-to-load
            • Inject-warnings
            • Vl-read-file-report-gather
            • Vl-write-preprocessor-debug-file
            • Vl-load-descriptions
            • Vl-load-files
            • Translate-off
            • Vl-load-read-file-hook
            • Vl-loadstate-pad
            • Vl-read-file-report
            • Vl-load-summary
            • Vl-collect-modules-from-descriptions
            • Vl-loadstate->warnings
            • Vl-iskips-report
            • Vl-descriptionlist
          • Warnings
          • Getting-started
          • Utilities
          • Printer
          • Kit
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Testing-utilities
      • Math
    • Loader

    Vl-includeskips-report-gather

    Signature
    (vl-includeskips-report-gather x lines totalbytes 
                                   totalsavings totalmisses totalhits) 
     
      → 
    (mv lines totalbytes totalsavings totalmisses totalhits)
    Arguments
    x — Guard (vl-includeskips-p x).
    totalbytes — Guard (natp totalbytes).
    totalsavings — Guard (natp totalsavings).
    totalmisses — Guard (natp totalmisses).
    totalhits — Guard (natp totalhits).
    Returns
    totalbytes — Type (natp totalbytes).
    totalsavings — Type (natp totalsavings).
    totalmisses — Type (natp totalmisses).
    totalhits — Type (natp totalhits).

    Definitions and Theorems

    Function: vl-includeskips-report-gather

    (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: natp-of-vl-includeskips-report-gather.totalbytes

    (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: natp-of-vl-includeskips-report-gather.totalsavings

    (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: natp-of-vl-includeskips-report-gather.totalmisses

    (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: natp-of-vl-includeskips-report-gather.totalhits

    (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)