• 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
          • 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-atom-toohard

    Signature
    (vl-atom-toohard x) → ans
    Arguments
    x — Guard (vl-expr-p x).
    Returns
    ans — NIL if the atom is okay, or X otherwise.
        Type (equal (vl-expr-p ans) (if ans t nil)).

    Definitions and Theorems

    Function: vl-atom-toohard

    (defun vl-atom-toohard (x)
      (declare (xargs :guard (vl-expr-p x)))
      (declare (xargs :guard (vl-atom-p x)))
      (let ((__function__ 'vl-atom-toohard))
        (declare (ignorable __function__))
        (b* ((x (vl-expr-fix x))
             (guts (vl-atom->guts x))
             ((when (or (vl-fast-id-p guts)
                        (vl-fast-constint-p guts)
                        (vl-fast-weirdint-p guts)))
              nil))
          x)))

    Theorem: return-type-of-vl-atom-toohard

    (defthm return-type-of-vl-atom-toohard
      (b* ((ans (vl-atom-toohard x)))
        (equal (vl-expr-p ans) (if ans t nil)))
      :rule-classes :rewrite)

    Theorem: vl-atom-toohard-of-vl-expr-fix-x

    (defthm vl-atom-toohard-of-vl-expr-fix-x
      (equal (vl-atom-toohard (vl-expr-fix x))
             (vl-atom-toohard x)))

    Theorem: vl-atom-toohard-vl-expr-equiv-congruence-on-x

    (defthm vl-atom-toohard-vl-expr-equiv-congruence-on-x
      (implies (vl-expr-equiv x x-equiv)
               (equal (vl-atom-toohard x)
                      (vl-atom-toohard x-equiv)))
      :rule-classes :congruence)