• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
          • Selfassigns
          • Leftright-check
          • Dupeinst-check
          • Oddexpr-check
          • Remove-toohard
          • Qmarksize-check
            • Vl-modulelist-qmarksize-check
            • Vl-qmark-test-size
            • Vl-expr-qmarksize-check
              • Vl-exprlist-qmarksize-check
            • Vl-module-qmarksize-check
            • Vl-exprctxalist-qmarksize-check
            • Vl-design-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
  • Qmarksize-check

Vl-expr-qmarksize-check

Look throughout an expression for any ?: expressions that have wide tests.

Signature
(vl-expr-qmarksize-check x ctx) → warnings
Arguments
x — Guard (vl-expr-p x).
ctx — Guard (vl-context-p ctx).
Returns
warnings — Type (vl-warninglist-p warnings).

We look through the expression x for any ?: sub-expressions with wide tests, and produce a warning whenever we find one. The ctx is a vl-context-p that says where x occurs, and is just used to generate more meaningful error messages.

Theorem: return-type-of-vl-expr-qmarksize-check.warnings

(defthm return-type-of-vl-expr-qmarksize-check.warnings
  (b* ((?warnings (vl-expr-qmarksize-check x ctx)))
    (vl-warninglist-p warnings))
  :rule-classes :rewrite)

Theorem: return-type-of-vl-exprlist-qmarksize-check.warnings

(defthm return-type-of-vl-exprlist-qmarksize-check.warnings
  (b* ((?warnings (vl-exprlist-qmarksize-check x ctx)))
    (vl-warninglist-p warnings))
  :rule-classes :rewrite)

Subtopics

Vl-exprlist-qmarksize-check