• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
            • Vl-slow-find-net/reg-range
            • Vl-ss-find-range
            • Vl-maybe-range-size
            • Vl-range-resolved-p
            • Vl-range-size
            • Vl-maybe-range-resolved-p
            • Vl-simplevar->range
            • Vl-simplereg->range
            • Vl-simplenet->range
            • Vl-make-n-bit-range
            • Vl-simplevar->signedp
            • Vl-simpletype->signedp
            • Vl-simpletype->range
            • Vl-simplereg->signedp
            • Vl-simplenet->signedp
            • Vl-simplenet->nettype
            • Vl-simplereglist-p
            • Vl-simplereg-p
              • Vl-simpletype-p
              • Vl-simplenet-p
              • Vl-simplevar-p
            • Lvalexprs
            • Hierarchy
            • Finding-by-name
            • Expr-tools
            • Expr-slicing
            • Stripping-functions
            • Stmt-tools
            • Modnamespace
            • Vl-parse-expr-from-str
            • Welltyped
            • Reordering-by-name
            • 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
    • Range-tools

    Vl-simplereg-p

    Signature
    (vl-simplereg-p x) → *
    Arguments
    x — Guard (vl-vardecl-p x).

    Definitions and Theorems

    Function: vl-simplereg-p

    (defun vl-simplereg-p (x)
     (declare (xargs :guard (vl-vardecl-p x)))
     (let ((__function__ 'vl-simplereg-p))
      (declare (ignorable __function__))
      (b* (((vl-vardecl x) x))
       (and
        (not x.constp)
        (not x.varp)
        (not x.lifetime)
        (eq (vl-datatype-kind x.type)
            :vl-coretype)
        (b* (((vl-coretype x.type) x.type))
         (and
           (or (eq x.type.name :vl-reg)
               (eq x.type.name :vl-logic))
           (atom x.type.udims)
           (or (atom x.type.pdims)
               (and (atom (cdr x.type.pdims))
                    (mbe :logic (vl-range-p (car x.type.pdims))
                         :exec (not (eq (car x.type.pdims)
                                        :vl-unsized-dimension)))))))))))

    Theorem: vl-simplereg-p-of-vl-vardecl-fix-x

    (defthm vl-simplereg-p-of-vl-vardecl-fix-x
      (equal (vl-simplereg-p (vl-vardecl-fix x))
             (vl-simplereg-p x)))

    Theorem: vl-simplereg-p-vl-vardecl-equiv-congruence-on-x

    (defthm vl-simplereg-p-vl-vardecl-equiv-congruence-on-x
      (implies (vl-vardecl-equiv x x-equiv)
               (equal (vl-simplereg-p x)
                      (vl-simplereg-p x-equiv)))
      :rule-classes :congruence)