• 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
            • Svtv-spec-run
            • Svtv-spec-fix
            • Make-svtv-spec
            • Svtv-spec-p
              • Svtv-spec-equiv
              • Svtv-spec->override-test-alists
              • Svtv-spec->override-val-alists
              • Svtv-spec->cycle-phases
              • Change-svtv-spec
              • Svtv-spec->namemap
              • Svtv-spec->initst-alist
              • Svtv-spec->in-alists
              • Svtv-spec->probes
              • Svtv-spec->fsm
            • Defsvtv
            • Process.lisp
            • Svtv-doc
            • Svtv-chase$
            • Svtv-versus-stv
            • Svtv-debug-fsm
            • Structure.lisp
            • Svtv-debug
            • 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
    • Svtv-spec

    Svtv-spec-p

    Recognizer for svtv-spec structures.

    Signature
    (svtv-spec-p x) → *

    Definitions and Theorems

    Function: svtv-spec-p

    (defun svtv-spec-p (x)
     (declare (xargs :guard t))
     (let ((__function__ 'svtv-spec-p))
      (declare (ignorable __function__))
      (and
       (mbe
          :logic (and (alistp x)
                      (equal (strip-cars x)
                             '(fsm cycle-phases namemap
                                   probes in-alists override-test-alists
                                   override-val-alists initst-alist)))
          :exec (fty::alist-with-carsp
                     x
                     '(fsm cycle-phases namemap
                           probes in-alists override-test-alists
                           override-val-alists initst-alist)))
       (b* ((fsm (cdr (std::da-nth 0 x)))
            (cycle-phases (cdr (std::da-nth 1 x)))
            (namemap (cdr (std::da-nth 2 x)))
            (probes (cdr (std::da-nth 3 x)))
            (in-alists (cdr (std::da-nth 4 x)))
            (override-test-alists (cdr (std::da-nth 5 x)))
            (override-val-alists (cdr (std::da-nth 6 x)))
            (initst-alist (cdr (std::da-nth 7 x))))
         (and (fsm-p fsm)
              (svtv-cyclephaselist-p cycle-phases)
              (svtv-name-lhs-map-p namemap)
              (svtv-probealist-p probes)
              (svex-alistlist-p in-alists)
              (svex-alistlist-p override-test-alists)
              (svex-alistlist-p override-val-alists)
              (svex-alist-p initst-alist))))))

    Theorem: consp-when-svtv-spec-p

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