• 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
            • Sd-problem-p
            • Sd-keylist-find-skipped
            • Sd-keylist->indicies
            • Sd-key-p
            • Sd-patalist-compare
            • Sd-analyze-ctxexprs
            • Sd-problemlist-p
            • Sd-patalist-p
            • Sd-keygen
            • Sd-patalist
            • Sd-keylist-p
            • Sd-analyze-modulelist
            • Sd-analyze-module-aux
            • Sd-analyze-module
            • Sd-pp-problem-long
            • Sd-analyze-modulelist-aux
            • Sd-problem-score
              • Sd-pp-problem-header
              • Sd-analyze-design
              • Sd-problem->
              • Sd-pp-problem-brief
              • Sd-pp-problemlist-long
              • Sd-pp-problemlist-brief
              • Sd-natlist-linear-increments-p
              • Sd-keylist-linear-increments-p
            • Vl-lintresult-p
            • Lint-warning-suppression
            • 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
    • Skip-detection

    Sd-problem-score

    Signature
    (sd-problem-score x) → score
    Arguments
    x — Guard (sd-problem-p x).
    Returns
    score — Type (natp score).

    Definitions and Theorems

    Function: sd-problem-score

    (defun sd-problem-score (x)
      (declare (xargs :guard (sd-problem-p x)))
      (let ((__function__ 'sd-problem-score))
        (declare (ignorable __function__))
        (b* (((sd-problem x) x)
             (elem (vl-context1->elem x.ctx))
             (elem-score (cond ((eq (tag elem) :vl-assign) 1)
                               ((eq (tag elem) :vl-always) -1)
                               ((eq (tag elem) :vl-initial) -1)
                               (t 0)))
             (gs-score (cond ((< x.groupsize 4) -1)
                             ((< x.groupsize 5) 0)
                             ((< x.groupsize 8) 3)
                             ((< x.groupsize 10) 4)
                             (t 5)))
             (score (+ x.priority gs-score elem-score)))
          (nfix score))))

    Theorem: natp-of-sd-problem-score

    (defthm natp-of-sd-problem-score
      (b* ((score (sd-problem-score x)))
        (natp score))
      :rule-classes :type-prescription)