• 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
          • 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
            • Port-expressions
              • Vl-atomicportexprlist->internalnames
              • Vl-port-direction
              • Vl-portlist->internalnames
              • Vl-portexpr->internalnames
              • Vl-portdecls-with-dir
              • Vl-plainarglist-blankfree-p
              • Vl-namedarglist-blankfree-p
              • Vl-modinstlist-blankfree-p
              • Vl-ports-from-portdecls
              • Vl-portlist-wellformed-p
              • Vl-maybe-portexpr-p
              • Vl-portexpr-p
                • Vl-atomicportexpr-p
                • Vl-atomicportexpr->internalname
                • Vl-port->internalnames
                • Vl-atomicportexprlist-p
                • Vl-port-wellformed-p
                • Vl-plainarg-blankfree-p
                • Vl-namedarg-blankfree-p
                • Vl-modinst-blankfree-p
                • Vl-arguments-blankfree-p
              • Vl-directionlist
            • Lvalues
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Port-expressions

    Vl-portexpr-p

    Recognizes all expressions that can validly occur in a (non-blank) port.

    Signature
    (vl-portexpr-p x) → okp
    Arguments
    x — Guard (vl-expr-p x).
    Returns
    okp — Type (booleanp okp).

    Definitions and Theorems

    Function: vl-portexpr-p

    (defun vl-portexpr-p (x)
      (declare (xargs :guard (vl-expr-p x)))
      (let ((__function__ 'vl-portexpr-p))
        (declare (ignorable __function__))
        (b* (((when (vl-atomicportexpr-p x)) t)
             ((when (vl-fast-atom-p x)) nil)
             ((vl-nonatom x)))
          (and (eq x.op :vl-concat)
               (vl-atomicportexprlist-p x.args)))))

    Theorem: booleanp-of-vl-portexpr-p

    (defthm booleanp-of-vl-portexpr-p
      (b* ((okp (vl-portexpr-p x)))
        (booleanp okp))
      :rule-classes :type-prescription)

    Theorem: vl-portexpr-p-of-vl-expr-fix-x

    (defthm vl-portexpr-p-of-vl-expr-fix-x
      (equal (vl-portexpr-p (vl-expr-fix x))
             (vl-portexpr-p x)))

    Theorem: vl-portexpr-p-vl-expr-equiv-congruence-on-x

    (defthm vl-portexpr-p-vl-expr-equiv-congruence-on-x
      (implies (vl-expr-equiv x x-equiv)
               (equal (vl-portexpr-p x)
                      (vl-portexpr-p x-equiv)))
      :rule-classes :congruence)