• 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
              • Vl-modulelist-apply-binddelta
              • Vl-interfacelist-apply-binddelta
              • Vl-bindelim-main
              • Vl-bindelim-bindlist
              • Vl-bindelim-find-global-target
              • Vl-interfacelist-bindelim
              • Vl-modulelist-bindelim
              • Vl-interface-bindelim
              • Vl-module-bindelim
              • Vl-bindelim-institem
              • Vl-warn-bindintentlist-undefined
              • Vl-warn-bindintent-undefined
                • Vl-interfacelist-bindelim-insttable
                • Vl-modulelist-bindelim-insttable
                • Vl-warn-binddelta-undefined
                • Vl-interface-bindelim-insttable
                • Vl-interface-apply-binddelta
                • Vl-design-bindelim-pass2
                • Vl-bindelim-modinstlist-add-atts
                • Vl-module-bindelim-insttable
                • Vl-module-apply-binddelta
                • Vl-bindelim-modinst-add-atts
                • Vl-design-bindelim-pass1
                • Vl-bindcontext
                • Vl-bindintent->modinsts
                • Vl-bindelim-insttable
                • Vl-bindintentlist->modinsts
                • Vl-binddelta
                • Vl-design-bindelim
                • Vl-bindelim-institemlist
              • Argresolve
              • Basicsanity
              • 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
    • Basic-bind-elim

    Vl-warn-bindintent-undefined

    Signature
    (vl-warn-bindintent-undefined modname intent warnings) 
      → 
    warnings
    Arguments
    modname — Guard (stringp modname).
    intent — Guard (vl-bindintent-p intent).
    warnings — Guard (vl-warninglist-p warnings).
    Returns
    warnings — Type (vl-warninglist-p warnings).

    Definitions and Theorems

    Function: vl-warn-bindintent-undefined

    (defun vl-warn-bindintent-undefined (modname intent warnings)
     (declare (xargs :guard (and (stringp modname)
                                 (vl-bindintent-p intent)
                                 (vl-warninglist-p warnings))))
     (let ((__function__ 'vl-warn-bindintent-undefined))
      (declare (ignorable __function__))
      (b* (((vl-bindintent intent)))
       (fatal
        :type :vl-warn-bind-undefined
        :msg
        "~a0: bind statement targets module ~s1, but this modules ~
                     isn't defined."
        :args (list intent.source (string-fix modname))))))

    Theorem: vl-warninglist-p-of-vl-warn-bindintent-undefined

    (defthm vl-warninglist-p-of-vl-warn-bindintent-undefined
      (b* ((warnings
                (vl-warn-bindintent-undefined modname intent warnings)))
        (vl-warninglist-p warnings))
      :rule-classes :rewrite)

    Theorem: vl-warn-bindintent-undefined-of-str-fix-modname

    (defthm vl-warn-bindintent-undefined-of-str-fix-modname
      (equal (vl-warn-bindintent-undefined (str-fix modname)
                                           intent warnings)
             (vl-warn-bindintent-undefined modname intent warnings)))

    Theorem: vl-warn-bindintent-undefined-streqv-congruence-on-modname

    (defthm vl-warn-bindintent-undefined-streqv-congruence-on-modname
     (implies
      (streqv modname modname-equiv)
      (equal
          (vl-warn-bindintent-undefined modname intent warnings)
          (vl-warn-bindintent-undefined modname-equiv intent warnings)))
     :rule-classes :congruence)

    Theorem: vl-warn-bindintent-undefined-of-vl-bindintent-fix-intent

    (defthm vl-warn-bindintent-undefined-of-vl-bindintent-fix-intent
     (equal
        (vl-warn-bindintent-undefined modname (vl-bindintent-fix intent)
                                      warnings)
        (vl-warn-bindintent-undefined modname intent warnings)))

    Theorem: vl-warn-bindintent-undefined-vl-bindintent-equiv-congruence-on-intent

    (defthm
     vl-warn-bindintent-undefined-vl-bindintent-equiv-congruence-on-intent
     (implies
      (vl-bindintent-equiv intent intent-equiv)
      (equal
          (vl-warn-bindintent-undefined modname intent warnings)
          (vl-warn-bindintent-undefined modname intent-equiv warnings)))
     :rule-classes :congruence)

    Theorem: vl-warn-bindintent-undefined-of-vl-warninglist-fix-warnings

    (defthm vl-warn-bindintent-undefined-of-vl-warninglist-fix-warnings
      (equal (vl-warn-bindintent-undefined
                  modname
                  intent (vl-warninglist-fix warnings))
             (vl-warn-bindintent-undefined modname intent warnings)))

    Theorem: vl-warn-bindintent-undefined-vl-warninglist-equiv-congruence-on-warnings

    (defthm
     vl-warn-bindintent-undefined-vl-warninglist-equiv-congruence-on-warnings
     (implies
      (vl-warninglist-equiv warnings warnings-equiv)
      (equal
          (vl-warn-bindintent-undefined modname intent warnings)
          (vl-warn-bindintent-undefined modname intent warnings-equiv)))
     :rule-classes :congruence)