• 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-slow-reorder-portdecl

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

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

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

    Theorem: vl-slow-reorder-portdecl-removal

    (defthm vl-slow-reorder-portdecl-removal
      (equal (vl-slow-reorder-portdecl names x)
             (vl-reorder-portdecls names x)))

    Definitions and Theorems

    Function: vl-slow-reorder-portdecl

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