• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
            • Vl-modulelist-condcheck
            • Vl-condcheck-fix
            • Vl-expr-condcheck
            • Vl-condcheck-negate
            • Vl-module-condcheck
              • Vl-exprctxalist-condcheck
              • Vl-design-condcheck
            • Selfassigns
            • Leftright-check
            • Dupeinst-check
            • Oddexpr-check
            • Remove-toohard
            • Qmarksize-check
            • 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
    • Condcheck

    Vl-module-condcheck

    (vl-module-condcheck x) carries our our condcheck on all the expressions in a module, and adds any resulting warnings to the module.

    Signature
    (vl-module-condcheck x) → new-x
    Arguments
    x — Guard (vl-module-p x).
    Returns
    new-x — Type (vl-module-p new-x), given the guard.

    Definitions and Theorems

    Function: vl-module-condcheck

    (defun vl-module-condcheck (x)
     (declare (xargs :guard (vl-module-p x)))
     (let ((__function__ 'vl-module-condcheck))
      (declare (ignorable __function__))
      (b* ((ctxexprs (vl-module-ctxexprs x))
           (new-warnings (vl-exprctxalist-condcheck ctxexprs)))
        (change-vl-module x
                          :warnings (append new-warnings
                                            (vl-module->warnings x))))))

    Theorem: vl-module-p-of-vl-module-condcheck

    (defthm vl-module-p-of-vl-module-condcheck
      (implies (and (force (vl-module-p x)))
               (b* ((new-x (vl-module-condcheck x)))
                 (vl-module-p new-x)))
      :rule-classes :rewrite)