• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
          • Preprocessor
          • Vl-loadconfig
          • Lexer
          • Vl-loadstate
          • Parser
            • Parse-expressions
            • Parse-udps
            • Vl-genelements
            • Parse-paramdecls
            • Parse-blockitems
            • Parse-utils
            • Parse-insts
            • Parse-datatype
            • Parse-functions
            • Parse-datatypes
            • Parse-strengths
            • Vl-parse-genvar-declaration
            • Vl-parse
            • Parse-ports
              • Parse-port-types
                • Vl-parsed-portdecl-head
                  • Vl-parsed-portdecl-head-fix
                  • Vl-parsed-portdecl-head-equiv
                  • Make-vl-parsed-portdecl-head
                  • Vl-parsed-portdecl-head->nettype
                  • Vl-parsed-portdecl-head->implicit-p
                  • Vl-parsed-portdecl-head->explicit-p
                  • Vl-parsed-portdecl-head->var-p
                  • Vl-parsed-portdecl-head->type
                  • Change-vl-parsed-portdecl-head
                  • Vl-parsed-portdecl-head-p
                  • Vl-parse-port-declaration-head-2012
                  • Vl-parse-ansi-port-header
                • Sv-ansi-portdecls
                • Creating-portdecls/vardecls
                • Sv-non-ansi-portdecls
                • Verilog-2005-ports
                • Sv-ansi-port-interpretation
                • Verilog-2005-portdecls
              • Seq
              • Parse-packages
            • Vl-load-merge-descriptions
            • Scope-of-defines
            • Vl-load-file
            • Vl-flush-out-descriptions
            • Vl-description
            • Vl-loadresult
            • Vl-read-file
            • Vl-find-basename/extension
            • Vl-find-file
            • Vl-read-files
            • Extended-characters
            • Vl-load
            • Vl-load-main
            • Vl-load-description
            • Vl-descriptions-left-to-load
            • Inject-warnings
            • Vl-load-descriptions
            • Vl-load-files
            • Vl-load-summary
            • Vl-collect-modules-from-descriptions
            • Vl-descriptionlist
          • Transforms
          • Lint
          • Mlib
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-parsed-portdecl-head

    Vl-parsed-portdecl-head-p

    Recognizer for vl-parsed-portdecl-head structures.

    Signature
    (vl-parsed-portdecl-head-p x) → *

    Definitions and Theorems

    Function: vl-parsed-portdecl-head-p

    (defun vl-parsed-portdecl-head-p (x)
     (declare (xargs :guard t))
     (let ((__function__ 'vl-parsed-portdecl-head-p))
      (declare (ignorable __function__))
      (and
       (consp x)
       (eq (car x) :vl-parsed-portdecl-head)
       (std::prod-consp (cdr x))
       (std::prod-consp (std::prod-car (cdr x)))
       (std::prod-consp (std::prod-cdr (cdr x)))
       (std::prod-consp (std::prod-cdr (std::prod-cdr (cdr x))))
       (b*
        ((nettype (std::prod-car (std::prod-car (cdr x))))
         (var-p (std::prod-cdr (std::prod-car (cdr x))))
         (explicit-p (std::prod-car (std::prod-cdr (cdr x))))
         (implicit-p
              (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x)))))
         (type (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x))))))
        (and (vl-maybe-nettypename-p nettype)
             (booleanp var-p)
             (booleanp explicit-p)
             (booleanp implicit-p)
             (vl-datatype-p type))))))

    Theorem: consp-when-vl-parsed-portdecl-head-p

    (defthm consp-when-vl-parsed-portdecl-head-p
      (implies (vl-parsed-portdecl-head-p x)
               (consp x))
      :rule-classes :compound-recognizer)