• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
        • Transforms
        • Lint
        • Mlib
          • Scopestack
          • Filtering-by-name
          • Vl-namefactory
          • Substitution
          • Allexprs
          • Hid-tools
          • Vl-consteval
          • Range-tools
          • Lvalexprs
          • Hierarchy
          • Finding-by-name
          • Expr-tools
          • Expr-slicing
          • Stripping-functions
          • Stmt-tools
          • Modnamespace
          • Vl-parse-expr-from-str
          • Welltyped
          • Reordering-by-name
            • Vl-reorder-portdecls
              • Vl-slow-reorder-portdecl
              • Vl-fast-reorder-portdecl
              • Vl-reorder-vardecls
              • Vl-reorder-fundecls
              • Vl-reorder-modules
            • Flat-warnings
            • Genblob
            • Expr-building
            • Datatype-tools
            • Syscalls
            • Relocate
            • Expr-cleaning
            • Namemangle
            • Caremask
            • Port-tools
            • Lvalues
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-reorder-portdecls

    Vl-fast-reorder-portdecl

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

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

    Definitions and Theorems

    Function: vl-fast-reorder-portdecl

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