• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
          • Preprocessor
          • Vl-loadconfig
          • Vl-loadstate
          • Lexer
          • Parser
          • Vl-load-merge-descriptions
          • Vl-find-basename/extension
          • Vl-load-file
          • Vl-loadresult
          • Scope-of-defines
          • Vl-find-file
          • Vl-flush-out-descriptions
          • Vl-description
          • Vl-read-file
          • Vl-includeskips-report-gather
          • Vl-load-main
          • Extended-characters
          • Vl-load
          • Vl-load-description
          • Vl-descriptions-left-to-load
          • Inject-warnings
          • Vl-preprocess-debug
          • Vl-write-preprocessor-debug-file
          • Vl-read-file-report-gather
          • Vl-load-descriptions
            • Vl-load-files
            • Translate-off
            • Vl-load-read-file-hook
            • Vl-read-file-report
            • Vl-loadstate-pad
            • 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
      • Math
      • Testing-utilities
    • Loader

    Vl-load-descriptions

    Extend vl-load-description to try to load a list of descriptions.

    Signature
    (vl-load-descriptions names st state) → (mv st state)
    Arguments
    names — Guard (string-listp names).
    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-descriptions

    (defun vl-load-descriptions (names st state)
      (declare (xargs :stobjs (state)))
      (declare (xargs :guard (and (string-listp names)
                                  (vl-loadstate-p st))))
      (let ((__function__ 'vl-load-descriptions))
        (declare (ignorable __function__))
        (b* (((when (atom names))
              (mv (vl-loadstate-fix st) state))
             ((mv st state)
              (vl-load-description (car names)
                                   st state))
             ((mv st state)
              (vl-load-descriptions (cdr names)
                                    st state)))
          (mv st state))))

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

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

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

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

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

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