• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
        • Transforms
        • Lint
          • Vl-lintconfig-p
          • Lucid
          • Skip-detection
          • Vl-lintresult-p
          • Lint-warning-suppression
          • Condcheck
          • Selfassigns
          • Leftright-check
          • Dupeinst-check
          • Oddexpr-check
          • Remove-toohard
          • Qmarksize-check
          • Portcheck
            • Vl-modulelist-portcheck
            • Vl-port-check-style
            • Vl-portlist-check-style
            • Vl-portlist-check-wellformed
            • Vl-module-portcheck
            • Vl-port-check-wellformed
              • Vl-design-portcheck
            • Duplicate-detect
            • Vl-print-certain-warnings
            • Duperhs-check
            • *vl-lint-help*
            • Lint-stmt-rewrite
            • Drop-missing-submodules
            • Check-case
            • Drop-user-submodules
            • Check-namespace
            • Vl-lint
          • Mlib
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Portcheck

    Vl-port-check-wellformed

    Signature
    (vl-port-check-wellformed x) → warnings
    Arguments
    x — Guard (vl-port-p x).
    Returns
    warnings — Type (vl-warninglist-p warnings).

    Definitions and Theorems

    Function: vl-port-check-wellformed

    (defun vl-port-check-wellformed (x)
      (declare (xargs :guard (vl-port-p x)))
      (let ((__function__ 'vl-port-check-wellformed))
        (declare (ignorable __function__))
        (b* ((x (vl-port-fix x))
             ((when (vl-port-wellformed-p x)) nil))
          (fatal :type :vl-bad-port
                 :msg "~a0: ill-formed port expression."
                 :args (list x)
                 :acc nil))))

    Theorem: vl-warninglist-p-of-vl-port-check-wellformed

    (defthm vl-warninglist-p-of-vl-port-check-wellformed
      (b* ((warnings (vl-port-check-wellformed x)))
        (vl-warninglist-p warnings))
      :rule-classes :rewrite)

    Theorem: true-listp-of-vl-port-check-wellformed

    (defthm true-listp-of-vl-port-check-wellformed
      (b* ((warnings (vl-port-check-wellformed x)))
        (true-listp warnings))
      :rule-classes :type-prescription)

    Theorem: vl-port-check-wellformed-under-iff

    (defthm vl-port-check-wellformed-under-iff
      (b* ((warnings (vl-port-check-wellformed x)))
        (iff warnings
             (not (vl-port-wellformed-p x))))
      :rule-classes :rewrite)

    Theorem: vl-port-check-wellformed-of-vl-port-fix-x

    (defthm vl-port-check-wellformed-of-vl-port-fix-x
      (equal (vl-port-check-wellformed (vl-port-fix x))
             (vl-port-check-wellformed x)))

    Theorem: vl-port-check-wellformed-vl-port-equiv-congruence-on-x

    (defthm vl-port-check-wellformed-vl-port-equiv-congruence-on-x
      (implies (vl-port-equiv x x-equiv)
               (equal (vl-port-check-wellformed x)
                      (vl-port-check-wellformed x-equiv)))
      :rule-classes :congruence)