• 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-fast-reorder-module

    Fast-alist enhanced version of vl-reorder-modules.

    Signature
    (vl-fast-reorder-module names x fal) → *
    Arguments
    names — Guard (string-listp names).
    x — Guard (vl-modulelist-p x).
    fal — Guard (equal fal (vl-modulelist-alist x nil)).

    Definitions and Theorems

    Function: vl-fast-reorder-module

    (defun vl-fast-reorder-module (names x fal)
      (declare
           (xargs :guard (and (string-listp names)
                              (vl-modulelist-p x)
                              (equal fal (vl-modulelist-alist x nil)))))
      (let ((__function__ 'vl-fast-reorder-module))
        (declare (ignorable __function__))
        (b* (((when (atom names)) nil)
             (look (hons-get (car names) fal))
             ((when look)
              (cons (cdr look)
                    (vl-fast-reorder-module (cdr names)
                                            x fal))))
          (vl-fast-reorder-module (cdr names)
                                  x fal))))