• 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
            • Vl-modulelist-remove-toohard
            • Vl-modinstlist-remove-toohard
            • Vl-initiallist-remove-toohard
              • Vl-gateinstlist-remove-toohard
              • Vl-assignlist-remove-toohard
              • Vl-alwayslist-remove-toohard
              • Vl-module-remove-toohard
              • Vl-atom-toohard
              • Vl-design-remove-toohard
              • Vl-op-toohard-p
              • *toohard-ops*
              • *not-toohard-ops*
            • 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
    • Remove-toohard

    Vl-initiallist-remove-toohard

    Signature
    (vl-initiallist-remove-toohard x warnings) 
      → 
    (mv warnings new-x)
    Arguments
    x — Guard (vl-initiallist-p x).
    warnings — Guard (vl-warninglist-p warnings).
    Returns
    warnings — Type (vl-warninglist-p warnings).
    new-x — Type (vl-initiallist-p new-x).

    Definitions and Theorems

    Function: vl-initiallist-remove-toohard

    (defun vl-initiallist-remove-toohard (x warnings)
     (declare (xargs :guard (and (vl-initiallist-p x)
                                 (vl-warninglist-p warnings))))
     (let ((__function__ 'vl-initiallist-remove-toohard))
      (declare (ignorable __function__))
      (b*
       (((when (atom x)) (mv (ok) nil))
        ((mv warnings cdr-prime)
         (vl-initiallist-remove-toohard (cdr x)
                                        warnings))
        (x1 (vl-initial-fix (car x)))
        (car-exprs (vl-initial-allexprs x1))
        (car-hard (vl-exprlist-toohard-subexpr car-exprs))
        ((when car-hard)
         (mv
          (fatal
           :type :vl-dropped-initial
           :msg
           "Deleting ~a0 because it has unsupported ~
                             subexpression ~a1. This deletion may cause our ~
                             analysis to be flawed."
           :args (list x1 car-hard))
          cdr-prime))
        (x-prime (cons x1 cdr-prime)))
       (mv warnings x-prime))))

    Theorem: vl-warninglist-p-of-vl-initiallist-remove-toohard.warnings

    (defthm vl-warninglist-p-of-vl-initiallist-remove-toohard.warnings
      (b* (((mv ?warnings ?new-x)
            (vl-initiallist-remove-toohard x warnings)))
        (vl-warninglist-p warnings))
      :rule-classes :rewrite)

    Theorem: vl-initiallist-p-of-vl-initiallist-remove-toohard.new-x

    (defthm vl-initiallist-p-of-vl-initiallist-remove-toohard.new-x
      (b* (((mv ?warnings ?new-x)
            (vl-initiallist-remove-toohard x warnings)))
        (vl-initiallist-p new-x))
      :rule-classes :rewrite)

    Theorem: vl-initiallist-remove-toohard-of-vl-initiallist-fix-x

    (defthm vl-initiallist-remove-toohard-of-vl-initiallist-fix-x
      (equal (vl-initiallist-remove-toohard (vl-initiallist-fix x)
                                            warnings)
             (vl-initiallist-remove-toohard x warnings)))

    Theorem: vl-initiallist-remove-toohard-vl-initiallist-equiv-congruence-on-x

    (defthm
     vl-initiallist-remove-toohard-vl-initiallist-equiv-congruence-on-x
     (implies (vl-initiallist-equiv x x-equiv)
              (equal (vl-initiallist-remove-toohard x warnings)
                     (vl-initiallist-remove-toohard x-equiv warnings)))
     :rule-classes :congruence)

    Theorem: vl-initiallist-remove-toohard-of-vl-warninglist-fix-warnings

    (defthm vl-initiallist-remove-toohard-of-vl-warninglist-fix-warnings
     (equal
         (vl-initiallist-remove-toohard x (vl-warninglist-fix warnings))
         (vl-initiallist-remove-toohard x warnings)))

    Theorem: vl-initiallist-remove-toohard-vl-warninglist-equiv-congruence-on-warnings

    (defthm
     vl-initiallist-remove-toohard-vl-warninglist-equiv-congruence-on-warnings
     (implies (vl-warninglist-equiv warnings warnings-equiv)
              (equal (vl-initiallist-remove-toohard x warnings)
                     (vl-initiallist-remove-toohard x warnings-equiv)))
     :rule-classes :congruence)