• 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-portlist-check-style

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

    Definitions and Theorems

    Function: vl-portlist-check-style

    (defun vl-portlist-check-style (x warnings)
      (declare (xargs :guard (and (vl-portlist-p x)
                                  (vl-warninglist-p warnings))))
      (declare (xargs :guard (vl-portlist-wellformed-p x)))
      (let ((__function__ 'vl-portlist-check-style))
        (declare (ignorable __function__))
        (b* (((when (atom x)) (ok))
             (warnings (vl-port-check-style (car x) warnings)))
          (vl-portlist-check-style (cdr x)
                                   warnings))))

    Theorem: vl-warninglist-p-of-vl-portlist-check-style

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

    Theorem: vl-portlist-check-style-of-vl-portlist-fix-x

    (defthm vl-portlist-check-style-of-vl-portlist-fix-x
      (equal (vl-portlist-check-style (vl-portlist-fix x)
                                      warnings)
             (vl-portlist-check-style x warnings)))

    Theorem: vl-portlist-check-style-vl-portlist-equiv-congruence-on-x

    (defthm vl-portlist-check-style-vl-portlist-equiv-congruence-on-x
      (implies (vl-portlist-equiv x x-equiv)
               (equal (vl-portlist-check-style x warnings)
                      (vl-portlist-check-style x-equiv warnings)))
      :rule-classes :congruence)

    Theorem: vl-portlist-check-style-of-vl-warninglist-fix-warnings

    (defthm vl-portlist-check-style-of-vl-warninglist-fix-warnings
      (equal (vl-portlist-check-style x (vl-warninglist-fix warnings))
             (vl-portlist-check-style x warnings)))

    Theorem: vl-portlist-check-style-vl-warninglist-equiv-congruence-on-warnings

    (defthm
     vl-portlist-check-style-vl-warninglist-equiv-congruence-on-warnings
     (implies (vl-warninglist-equiv warnings warnings-equiv)
              (equal (vl-portlist-check-style x warnings)
                     (vl-portlist-check-style x warnings-equiv)))
     :rule-classes :congruence)