• 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-load-files

    Load a list of files.

    Signature
    (vl-load-files filenames st state) → (mv st state)
    Arguments
    filenames — Guard (string-listp filenames).
    st — Guard (vl-loadstate-p st).
    Returns
    st — Type (vl-loadstate-p st).
    state — Type (state-p1 state), given (force (state-p1 state)).

    Definitions and Theorems

    Function: vl-load-files

    (defun
     vl-load-files (filenames st state)
     (declare (xargs :stobjs (state)))
     (declare (xargs :guard (and (string-listp filenames)
                                 (vl-loadstate-p st))))
     (let
      ((__function__ 'vl-load-files))
      (declare (ignorable __function__))
      (b*
       (((when (atom filenames))
         (mv (vl-loadstate-fix st) state))
        ((mv st state)
         (time$
          (vl-load-file (car filenames) st state)
          :msg "~s0 (loaded ~f1; ~st sec, ~sa bytes)~%"
          :args (list (vl-loadstate-pad st)
                      (car filenames))
          :mintime (vl-loadconfig->mintime (vl-loadstate->config st)))))
       (vl-load-files (cdr filenames)
                      st state))))

    Theorem: vl-loadstate-p-of-vl-load-files.st

    (defthm vl-loadstate-p-of-vl-load-files.st
            (b* (((mv ?st acl2::?state)
                  (vl-load-files filenames st state)))
                (vl-loadstate-p st))
            :rule-classes :rewrite)

    Theorem: state-p1-of-vl-load-files.state

    (defthm state-p1-of-vl-load-files.state
            (implies (force (state-p1 state))
                     (b* (((mv ?st acl2::?state)
                           (vl-load-files filenames st state)))
                         (state-p1 state)))
            :rule-classes :rewrite)

    Theorem: unique-names-after-vl-load-files

    (defthm
     unique-names-after-vl-load-files
     (b*
      (((mv new-st &)
        (vl-load-files filenames st state)))
      (implies
       (uniquep (vl-descriptionlist->names (vl-loadstate->descs st)))
       (no-duplicatesp
            (vl-descriptionlist->names (vl-loadstate->descs new-st))))))