• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
        • Svex-stvs
          • Svtv-data
          • Defsvtv$
          • Svtv-run
          • Defsvtv-phasewise
          • Svtv
          • Svtv-spec
          • Defsvtv
          • Process.lisp
          • Svtv-doc
          • Svtv-chase$
          • Svtv-versus-stv
          • Svtv-debug-fsm
          • Structure.lisp
          • Svtv-debug
            • Vcd.lisp
              • Elab-mod->vcd-wires
              • Vcd-scope
              • Vcd-wire
                • Vcd-wire-fix
                • Vcd-wire-equiv
                • Make-vcd-wire
                • Change-vcd-wire
                • Vcd-wire->name
                • Vcd-wire->msb
                • Vcd-wire->lsb
                • Vcd-wire->code
                • Vcd-wire-p
                • Vcd-print-4vec-aux
                • Vcd-dump-delta
                • Vcd-wirelist-add-to-wiremap
                • Vcd-print-header
                • Vcd-dump-first-snapshot-aux
                • Vcd-dump-delta-aux
                • Vcd-wiremap
                • 4vecarr
                • Vcd-print-wiredecls
                • Vcd-4vec-bitstr
                • Vcd-index->codechars
                • Vcd-wire->width
                • Vcd-index->codestr
                • Vcd-dump-first-snapshot
                • Vcd-wirelist
              • Debug.lisp
            • Def-pipeline-thm
            • Expand.lisp
            • Def-cycle-thm
            • Svtv-utilities
            • Svtv-debug$
            • Defsvtv$-phasewise
          • Svex-decomposition-methodology
          • Sv-versus-esim
          • Svex-decomp
          • Svex-compose-dfs
          • Svex-compilation
          • Moddb
          • Svmods
          • Svstmt
          • Sv-tutorial
          • Expressions
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vcd-wire

    Vcd-wire-p

    Recognizer for vcd-wire structures.

    Signature
    (vcd-wire-p x) → *

    Definitions and Theorems

    Function: vcd-wire-p

    (defun vcd-wire-p (x)
      (declare (xargs :guard t))
      (let ((__function__ 'vcd-wire-p))
        (declare (ignorable __function__))
        (and (mbe :logic (and (alistp x)
                              (equal (strip-cars x)
                                     '(name msb lsb code)))
                  :exec (fty::alist-with-carsp x '(name msb lsb code)))
             (b* ((name (cdr (std::da-nth 0 x)))
                  (msb (cdr (std::da-nth 1 x)))
                  (lsb (cdr (std::da-nth 2 x)))
                  (code (cdr (std::da-nth 3 x))))
               (and (stringp name)
                    (integerp msb)
                    (integerp lsb)
                    (stringp code))))))

    Theorem: consp-when-vcd-wire-p

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