• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
          • Preprocessor
          • Vl-loadconfig
          • Lexer
          • Vl-loadstate
          • Parser
          • Vl-load-merge-descriptions
          • Scope-of-defines
          • Vl-load-file
          • Vl-flush-out-descriptions
          • Vl-description
          • Vl-loadresult
          • Vl-read-file
          • Vl-find-basename/extension
          • Vl-find-file
          • Vl-read-files
            • Vl-read-files-aux
            • Extended-characters
            • Vl-load
            • Vl-load-main
            • Vl-load-description
            • Vl-descriptions-left-to-load
            • Inject-warnings
            • Vl-load-descriptions
            • Vl-load-files
            • Vl-load-summary
            • Vl-collect-modules-from-descriptions
            • Vl-descriptionlist
          • Transforms
          • Lint
          • Mlib
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-read-files

    Vl-read-files-aux

    Tail recursive loop for vl-read-files.

    Signature
    (vl-read-files-aux filenames nrev &key (state 'state)) 
      → 
    (mv errmsg? nrev state)
    Arguments
    filenames — The files to read.
        Guard (string-listp filenames).

    You should never need to reason about this directly, because of the following rule:

    Theorem: vl-read-files-aux-redef

    (defthm vl-read-files-aux-redef
      (equal (vl-read-files-aux filenames acc)
             (b* (((mv errmsg data state)
                   (vl-read-files filenames)))
               (mv errmsg (append acc data) state))))

    Definitions and Theorems

    Function: vl-read-files-aux-fn

    (defun vl-read-files-aux-fn (filenames nrev state)
      (declare (xargs :stobjs (nrev state)))
      (declare (xargs :guard (string-listp filenames)))
      (let ((__function__ 'vl-read-files-aux))
        (declare (ignorable __function__))
        (b* (((when (atom filenames))
              (let ((nrev (nrev-fix nrev)))
                (mv nil nrev state)))
             ((mv okp nrev state)
              (vl-read-file-rchars (car filenames)
                                   nrev))
             ((unless okp)
              (mv (msg "Error reading file ~s0."
                       (car filenames))
                  nrev state)))
          (vl-read-files-aux (cdr filenames)
                             nrev))))