• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
        • Svex-stvs
        • Svex-decomposition-methodology
        • Sv-versus-esim
        • Svex-decomp
        • Svex-compose-dfs
        • Svex-compilation
        • Moddb
        • Svmods
          • Address
          • Wire
            • Wire-fix
            • Wire-p
              • Make-wire
              • Wire-equiv
              • Change-wire
              • Wire->name
              • Wire->low-idx
              • Wire->delay
              • Wire->width
              • Wire->type
              • Wire->atts
              • Wirelist
              • Wire->revp
              • Wiretype
            • Module
            • Lhs
            • Path
            • Svar-add-namespace
            • Design
            • Modinst
            • Lhs-add-namespace
            • Modalist
            • Path-add-namespace
            • Modname->submodnames
            • Name
            • Constraintlist-addr-p
            • Svex-alist-addr-p
            • Svar-map-addr-p
            • Lhspairs-addr-p
            • Modname
            • Assigns-addr-p
            • Lhs-addr-p
            • Lhatom-addr-p
            • Modhier-list-measure
            • Attributes
            • Modhier-measure
            • Modhier-list-measure-aux
            • Modhier-loopfreelist-p
            • Modhier-loopfree-p
          • Svstmt
          • Sv-tutorial
          • Expressions
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Wire

    Wire-p

    Recognizer for wire structures.

    Signature
    (wire-p x) → *

    Definitions and Theorems

    Function: wire-p

    (defun wire-p (x)
     (declare (xargs :guard t))
     (let ((__function__ 'wire-p))
      (declare (ignorable __function__))
      (and
        (std::prod-consp x)
        (std::prod-consp (std::prod-car x))
        (std::prod-consp (std::prod-cdr (std::prod-car x)))
        (std::prod-consp (std::prod-cdr x))
        (std::prod-consp (std::prod-car (std::prod-cdr x)))
        (std::prod-consp (std::prod-cdr (std::prod-cdr x)))
        (b* ((name (std::prod-car (std::prod-car x)))
             (width (std::prod-car (std::prod-cdr (std::prod-car x))))
             (low-idx (std::prod-cdr (std::prod-cdr (std::prod-car x))))
             (delay (std::prod-car (std::prod-car (std::prod-cdr x))))
             (?revp (std::prod-cdr (std::prod-car (std::prod-cdr x))))
             (type (std::prod-car (std::prod-cdr (std::prod-cdr x))))
             (atts (std::prod-cdr (std::prod-cdr (std::prod-cdr x)))))
          (and (name-p name)
               (posp width)
               (integerp low-idx)
               (maybe-posp delay)
               (wiretype type)
               (attributes-p atts))))))

    Theorem: consp-when-wire-p

    (defthm consp-when-wire-p
      (implies (wire-p x) (consp x))
      :rule-classes :compound-recognizer)