• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
        • Warnings
        • Getting-started
        • Utilities
        • Printer
        • Kit
        • Mlib
          • Scopestack
          • Hid-tools
          • Filtering-by-name
          • Vl-interface-mocktype
          • Stripping-functions
          • Genblob
          • Expr-tools
          • Extract-vl-types
          • Hierarchy
          • Range-tools
          • Finding-by-name
          • Stmt-tools
          • Modnamespace
          • Flat-warnings
          • Reordering-by-name
            • Vl-reorder-portdecls
            • Vl-reorder-vardecls
            • Vl-reorder-fundecls
            • Vl-reorder-modules
              • Vl-slow-reorder-module
                • Vl-fast-reorder-module
            • Datatype-tools
            • Syscalls
            • Allexprs
            • Lvalues
            • Port-tools
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-reorder-modules

    Vl-slow-reorder-module

    Non fast-alist version of vl-reorder-modules, used when the lists are really short.

    Signature
    (vl-slow-reorder-module names x) → *
    Arguments
    names — Guard (string-listp names).
    x — Guard (vl-modulelist-p x).

    You should ordinarily never reason about this because of the following rule, which we leave enabled.

    Theorem: vl-slow-reorder-module-removal

    (defthm vl-slow-reorder-module-removal
      (equal (vl-slow-reorder-module names x)
             (vl-reorder-modules names x)))

    Definitions and Theorems

    Function: vl-slow-reorder-module

    (defun vl-slow-reorder-module (names x)
      (declare (xargs :guard (and (string-listp names)
                                  (vl-modulelist-p x))))
      (let ((__function__ 'vl-slow-reorder-module))
        (declare (ignorable __function__))
        (b* (((when (atom names)) nil)
             (decl (vl-find-module (car names) x))
             ((when decl)
              (cons decl
                    (vl-slow-reorder-module (cdr names)
                                            x))))
          (vl-slow-reorder-module (cdr names)
                                  x))))