• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • 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-find-basename/extension-aux
            • Vl-find-highest-priority-extension
            • Vl-split-filename
            • Vl-dirxcache
              • Vl-dirxcache-p
              • Vl-dirxcache-fix
              • Vl-make-dirxcache
                • Vl-make-dirxcache-aux
                • Vl-dirxcache-equiv
              • Vl-dirxlist-cache
            • 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
    • Vl-make-dirxcache

    Vl-make-dirxcache-aux

    Signature
    (vl-make-dirxcache-aux files extensions cache) → cache
    Arguments
    files — Files in the directory.
        Guard (string-listp files).
    extensions — Extensions we care about, e.g., "v" "sv", no dots.
        Guard (string-listp extensions).
    cache — Cache we are building.
        Guard (vl-dirxcache-p cache).
    Returns
    cache — Type (vl-dirxcache-p cache).

    Definitions and Theorems

    Function: vl-make-dirxcache-aux

    (defun vl-make-dirxcache-aux (files extensions cache)
      (declare (xargs :guard (and (string-listp files)
                                  (string-listp extensions)
                                  (vl-dirxcache-p cache))))
      (let ((__function__ 'vl-make-dirxcache-aux))
        (declare (ignorable __function__))
        (b* ((cache (vl-dirxcache-fix cache))
             (extensions (string-list-fix extensions))
             ((when (atom files))
              (vl-dirxcache-fix cache))
             ((mv basename extension)
              (vl-split-filename (car files)))
             ((unless (and extension
                           (member-equal extension extensions)))
              (vl-make-dirxcache-aux (cdr files)
                                     extensions cache))
             (basename (hons-copy basename))
             (prev-exts (cdr (hons-get basename cache)))
             (cache (hons-acons basename (cons extension prev-exts)
                                cache)))
          (vl-make-dirxcache-aux (cdr files)
                                 extensions cache))))

    Theorem: vl-dirxcache-p-of-vl-make-dirxcache-aux

    (defthm vl-dirxcache-p-of-vl-make-dirxcache-aux
      (b* ((cache (vl-make-dirxcache-aux files extensions cache)))
        (vl-dirxcache-p cache))
      :rule-classes :rewrite)

    Theorem: vl-make-dirxcache-aux-of-string-list-fix-files

    (defthm vl-make-dirxcache-aux-of-string-list-fix-files
      (equal (vl-make-dirxcache-aux (string-list-fix files)
                                    extensions cache)
             (vl-make-dirxcache-aux files extensions cache)))

    Theorem: vl-make-dirxcache-aux-string-list-equiv-congruence-on-files

    (defthm vl-make-dirxcache-aux-string-list-equiv-congruence-on-files
      (implies
           (str::string-list-equiv files files-equiv)
           (equal (vl-make-dirxcache-aux files extensions cache)
                  (vl-make-dirxcache-aux files-equiv extensions cache)))
      :rule-classes :congruence)

    Theorem: vl-make-dirxcache-aux-of-string-list-fix-extensions

    (defthm vl-make-dirxcache-aux-of-string-list-fix-extensions
      (equal (vl-make-dirxcache-aux files (string-list-fix extensions)
                                    cache)
             (vl-make-dirxcache-aux files extensions cache)))

    Theorem: vl-make-dirxcache-aux-string-list-equiv-congruence-on-extensions

    (defthm
       vl-make-dirxcache-aux-string-list-equiv-congruence-on-extensions
      (implies
           (str::string-list-equiv extensions extensions-equiv)
           (equal (vl-make-dirxcache-aux files extensions cache)
                  (vl-make-dirxcache-aux files extensions-equiv cache)))
      :rule-classes :congruence)

    Theorem: vl-make-dirxcache-aux-of-vl-dirxcache-fix-cache

    (defthm vl-make-dirxcache-aux-of-vl-dirxcache-fix-cache
      (equal (vl-make-dirxcache-aux files
                                    extensions (vl-dirxcache-fix cache))
             (vl-make-dirxcache-aux files extensions cache)))

    Theorem: vl-make-dirxcache-aux-vl-dirxcache-equiv-congruence-on-cache

    (defthm vl-make-dirxcache-aux-vl-dirxcache-equiv-congruence-on-cache
      (implies
           (vl-dirxcache-equiv cache cache-equiv)
           (equal (vl-make-dirxcache-aux files extensions cache)
                  (vl-make-dirxcache-aux files extensions cache-equiv)))
      :rule-classes :congruence)