• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
        • Warnings
        • Getting-started
        • Utilities
        • Printer
        • Kit
        • Mlib
          • Scopestack
          • Hid-tools
          • Filtering-by-name
          • Vl-interface-mocktype
          • Stripping-functions
          • Genblob
          • Expr-tools
          • Extract-vl-types
          • Hierarchy
          • Range-tools
          • Finding-by-name
          • Stmt-tools
          • Modnamespace
          • Flat-warnings
          • Reordering-by-name
          • Datatype-tools
          • Syscalls
          • Allexprs
          • Lvalues
          • 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->internalname
                • Vl-atomicportexpr-p
                • 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
          • Transforms
        • 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__))
        (or (vl-atomicportexpr-p x)
            (vl-expr-case x
                          :vl-concat (vl-atomicportexprlist-p x.parts)
                          :otherwise nil))))

    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)