• 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
          • Vl-lint
            • Vl-lintconfig-p
            • Condcheck
            • Lint-warning-suppression
            • Lucid
            • Lvaluecheck
            • Vl-interfacelist-alwaysstyle
            • Truncation-warnings
            • Vl-modulelist-alwaysstyle
            • Skip-detection
            • Vl-lint-report
            • Vl-lintresult
            • Vl::vl-design-sv-use-set
            • Oddexpr-check
            • Leftright-check
            • Duplicate-detect
            • Selfassigns
            • *vl-lint-help*
            • Arith-compare-check
            • Dupeinst-check
            • Qmarksize-check
            • Lint-whole-file-suppression
            • Run-vl-lint-main
            • Logicassign
              • Vl-modulelist-logicassign
              • Vl-vardecllist-logicassign
              • Vl-vardecl-logicassign
                • Vl-module-logicassign
                • Vl-design-logicassign
              • Run-vl-lint
              • Vl-print-certain-warnings
              • Duperhs-check
              • Vl-lint-top
              • Sd-filter-problems
              • Vl-modulelist-add-svbad-warnings
              • Vl-module-add-svbad-warnings
              • Check-case
              • Vl-lint-extra-actions
              • Drop-lint-stubs
              • Vl-lint-print-warnings
              • Drop-user-submodules
              • Check-namespace
              • Vl-lintconfig-loadconfig
              • Vl-lint-design->svex-modalist-wrapper
              • Vl-delete-sd-problems-for-modnames-aux
              • Vl-collect-new-names-from-orignames
              • Vl-lint-print-all-warnings
              • Vl-design-remove-unnecessary-modules
              • Vl-delete-sd-problems-for-modnames
              • Vl-always-check-style
              • Vl-vardecllist-svbad-warnings
              • Vl-vardecl-svbad-warnings
              • Vl-reportcard-remove-suppressed
              • Vl-reportcard-keep-suppressed
              • Vl-alwayslist-check-style
              • Vl-remove-nameless-descriptions
              • Vl-lint-apply-quiet
              • Vl-warninglist-remove-suppressed
              • Vl-warninglist-keep-suppressed
              • Vl-print-eliminated-descs
              • Vl-module-alwaysstyle
              • Vl-jp-reportcard-aux
              • Vl-interface-alwaysstyle
              • Vl-design-alwaysstyle
              • Vl-jp-description-locations
              • Vl-jp-reportcard
              • Vl-pp-stringlist-lines
              • Vl-jp-design-locations
              • Vl-datatype-svbad-p
              • Unpacked-range-check
              • Sd-problem-major-p
              • Vl-alwaysstyle
            • Vl-server
            • Vl-gather
            • Vl-zip
            • Vl-main
            • Split-plusargs
            • Vl-shell
            • Vl-json
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Logicassign

    Vl-vardecl-logicassign

    Signature
    (vl-vardecl-logicassign x warnings) → new-warnings
    Arguments
    x — Guard (vl-vardecl-p x).
    warnings — Guard (vl-warninglist-p warnings).
    Returns
    new-warnings — Type (vl-warninglist-p new-warnings).

    Definitions and Theorems

    Function: vl-vardecl-logicassign

    (defun vl-vardecl-logicassign (x warnings)
     (declare (xargs :guard (and (vl-vardecl-p x)
                                 (vl-warninglist-p warnings))))
     (let ((__function__ 'vl-vardecl-logicassign))
      (declare (ignorable __function__))
      (b*
       (((vl-vardecl x) (vl-vardecl-fix x))
        ((unless x.initval) (ok))
        (reg-p
         (vl-datatype-case
              x.type
              (:vl-coretype (vl-coretypename-equiv x.type.name :vl-reg))
              (:otherwise nil)))
        ((when reg-p) (ok)))
       (warn
        :type :vl-warn-vardecl-assign
        :msg
        "~a0: declaration-time assignment to ~s1 will be treated ~
                    like an 'initial' assignment, not a continuous assignment; ~
                    is that what you meant?"
        :args (list x x.name)))))

    Theorem: vl-warninglist-p-of-vl-vardecl-logicassign

    (defthm vl-warninglist-p-of-vl-vardecl-logicassign
      (b* ((new-warnings (vl-vardecl-logicassign x warnings)))
        (vl-warninglist-p new-warnings))
      :rule-classes :rewrite)

    Theorem: vl-vardecl-logicassign-of-vl-vardecl-fix-x

    (defthm vl-vardecl-logicassign-of-vl-vardecl-fix-x
      (equal (vl-vardecl-logicassign (vl-vardecl-fix x)
                                     warnings)
             (vl-vardecl-logicassign x warnings)))

    Theorem: vl-vardecl-logicassign-vl-vardecl-equiv-congruence-on-x

    (defthm vl-vardecl-logicassign-vl-vardecl-equiv-congruence-on-x
      (implies (vl-vardecl-equiv x x-equiv)
               (equal (vl-vardecl-logicassign x warnings)
                      (vl-vardecl-logicassign x-equiv warnings)))
      :rule-classes :congruence)

    Theorem: vl-vardecl-logicassign-of-vl-warninglist-fix-warnings

    (defthm vl-vardecl-logicassign-of-vl-warninglist-fix-warnings
      (equal (vl-vardecl-logicassign x (vl-warninglist-fix warnings))
             (vl-vardecl-logicassign x warnings)))

    Theorem: vl-vardecl-logicassign-vl-warninglist-equiv-congruence-on-warnings

    (defthm
     vl-vardecl-logicassign-vl-warninglist-equiv-congruence-on-warnings
     (implies (vl-warninglist-equiv warnings warnings-equiv)
              (equal (vl-vardecl-logicassign x warnings)
                     (vl-vardecl-logicassign x warnings-equiv)))
     :rule-classes :congruence)