• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
        • Transforms
          • Unparameterization
          • Elaborate
          • Addnames
          • Annotate
            • Increment-elim
            • Make-implicit-wires
            • Basic-bind-elim
            • Argresolve
            • Basicsanity
              • Vl-interfacelist-basicsanity
              • Vl-modport-portlist->names
              • Vl-modulelist-basicsanity
              • Vl-modport-portlist-check-wellformed
              • Vl-modport-port-check-wellformed
              • Vl-interface-check-modinst-is-subinterface
              • Vl-interface-check-modinsts-are-subinterfaces
              • Vl-modport-portcheck
              • Vl-modportlist-portcheck
                • Vl-interface-basicsanity
                • Vl-port-check-style
                • Vl-portlist-check-style
                • Vl-module-basicsanity
                • Vl-portlist-check-wellformed
                • Vl-port-check-wellformed
                • Vl-design-basicsanity
                • Vl-pps-expr-elided
              • Portdecl-sign
              • Enum-names
              • Port-resolve
              • Udp-elim
              • Vl-annotate-design
              • Vl-annotate-module
            • Clean-warnings
            • Eliminitial
            • Custom-transform-hooks
            • Problem-modules
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Basicsanity

    Vl-modportlist-portcheck

    Signature
    (vl-modportlist-portcheck x oknames warnings) → new-warnings
    Arguments
    x — Guard (vl-modportlist-p x).
    oknames — Guard (string-listp oknames).
    warnings — Guard (vl-warninglist-p warnings).
    Returns
    new-warnings — Type (vl-warninglist-p new-warnings).

    Definitions and Theorems

    Function: vl-modportlist-portcheck

    (defun vl-modportlist-portcheck (x oknames warnings)
      (declare (xargs :guard (and (vl-modportlist-p x)
                                  (string-listp oknames)
                                  (vl-warninglist-p warnings))))
      (declare (xargs :guard (setp oknames)))
      (let ((__function__ 'vl-modportlist-portcheck))
        (declare (ignorable __function__))
        (b* (((when (atom x)) (ok))
             (warnings (vl-modport-portcheck (car x)
                                             oknames warnings)))
          (vl-modportlist-portcheck (cdr x)
                                    oknames warnings))))

    Theorem: vl-warninglist-p-of-vl-modportlist-portcheck

    (defthm vl-warninglist-p-of-vl-modportlist-portcheck
      (b* ((new-warnings (vl-modportlist-portcheck x oknames warnings)))
        (vl-warninglist-p new-warnings))
      :rule-classes :rewrite)

    Theorem: vl-modportlist-portcheck-of-vl-modportlist-fix-x

    (defthm vl-modportlist-portcheck-of-vl-modportlist-fix-x
      (equal (vl-modportlist-portcheck (vl-modportlist-fix x)
                                       oknames warnings)
             (vl-modportlist-portcheck x oknames warnings)))

    Theorem: vl-modportlist-portcheck-vl-modportlist-equiv-congruence-on-x

    (defthm
          vl-modportlist-portcheck-vl-modportlist-equiv-congruence-on-x
      (implies
           (vl-modportlist-equiv x x-equiv)
           (equal (vl-modportlist-portcheck x oknames warnings)
                  (vl-modportlist-portcheck x-equiv oknames warnings)))
      :rule-classes :congruence)

    Theorem: vl-modportlist-portcheck-of-string-list-fix-oknames

    (defthm vl-modportlist-portcheck-of-string-list-fix-oknames
      (equal (vl-modportlist-portcheck x (string-list-fix oknames)
                                       warnings)
             (vl-modportlist-portcheck x oknames warnings)))

    Theorem: vl-modportlist-portcheck-string-list-equiv-congruence-on-oknames

    (defthm
       vl-modportlist-portcheck-string-list-equiv-congruence-on-oknames
      (implies
           (str::string-list-equiv oknames oknames-equiv)
           (equal (vl-modportlist-portcheck x oknames warnings)
                  (vl-modportlist-portcheck x oknames-equiv warnings)))
      :rule-classes :congruence)

    Theorem: vl-modportlist-portcheck-of-vl-warninglist-fix-warnings

    (defthm vl-modportlist-portcheck-of-vl-warninglist-fix-warnings
     (equal
      (vl-modportlist-portcheck x oknames (vl-warninglist-fix warnings))
      (vl-modportlist-portcheck x oknames warnings)))

    Theorem: vl-modportlist-portcheck-vl-warninglist-equiv-congruence-on-warnings

    (defthm
     vl-modportlist-portcheck-vl-warninglist-equiv-congruence-on-warnings
     (implies
          (vl-warninglist-equiv warnings warnings-equiv)
          (equal (vl-modportlist-portcheck x oknames warnings)
                 (vl-modportlist-portcheck x oknames warnings-equiv)))
     :rule-classes :congruence)