• 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-slow-reorder-vardecl
                • Vl-fast-reorder-vardecl
              • Vl-reorder-fundecls
              • Vl-reorder-modules
            • Datatype-tools
            • Syscalls
            • Allexprs
            • Lvalues
            • Port-tools
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-reorder-vardecls

    Vl-slow-reorder-vardecl

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

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

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

    Theorem: vl-slow-reorder-vardecl-removal

    (defthm vl-slow-reorder-vardecl-removal
      (equal (vl-slow-reorder-vardecl names x)
             (vl-reorder-vardecls names x)))

    Definitions and Theorems

    Function: vl-slow-reorder-vardecl

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