• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
        • Warnings
        • Getting-started
        • Utilities
        • Printer
        • Kit
        • Mlib
          • Scopestack
          • Hid-tools
          • Filtering-by-name
          • Vl-interface-mocktype
          • Stripping-functions
          • Genblob
          • Expr-tools
          • Extract-vl-types
          • Hierarchy
          • Range-tools
          • Finding-by-name
          • Stmt-tools
            • Vl-rebuild-caselist
            • Vl-stmt-atomicstmts
            • Vl-compoundstmt->stmts
            • Vl-compoundstmt->exprs
            • Vl-compoundstmt->vardecls
            • Change-vl-compoundstmt
            • Vl-compoundstmt->paramdecls
            • Vl-compoundstmt->ctrl
            • Vl-atomicstmtlist-p
            • Vl-stmt->atts
            • Vl-atomicstmt-p
              • Vl-timingstmt-p
              • Vl-repeatstmt-p
              • Vl-foreverstmt-p
              • Vl-assignstmt-p
              • Vl-whilestmt-p
              • Vl-waitstmt-p
              • Vl-nullstmt-p
              • Vl-ifstmt-p
              • Vl-forstmt-p
              • Vl-dostmt-p
              • Vl-casestmt-p
              • Vl-callstmt-p
              • Vl-exprlistlist
            • Modnamespace
            • Flat-warnings
            • Reordering-by-name
            • Datatype-tools
            • Syscalls
            • Allexprs
            • Lvalues
            • Port-tools
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Stmt-tools

    Vl-atomicstmt-p

    Recognizer for atomic statements (those with no sub-statements).

    Signature
    (vl-atomicstmt-p x) → *
    Arguments
    x — Guard (vl-stmt-p x).

    Definitions and Theorems

    Function: vl-atomicstmt-p

    (defun vl-atomicstmt-p (x)
      (declare (xargs :guard (vl-stmt-p x)))
      (let ((__function__ 'vl-atomicstmt-p))
        (declare (ignorable __function__))
        (let ((kind (vl-stmt-kind x)))
          (or (eq kind :vl-nullstmt)
              (eq kind :vl-assignstmt)
              (eq kind :vl-deassignstmt)
              (eq kind :vl-callstmt)
              (eq kind :vl-disablestmt)
              (eq kind :vl-eventtriggerstmt)
              (eq kind :vl-returnstmt)
              (eq kind :vl-breakstmt)
              (eq kind :vl-continuestmt)))))

    Theorem: vl-atomicstmt-p-of-vl-stmt-fix-x

    (defthm vl-atomicstmt-p-of-vl-stmt-fix-x
      (equal (vl-atomicstmt-p (vl-stmt-fix x))
             (vl-atomicstmt-p x)))

    Theorem: vl-atomicstmt-p-vl-stmt-equiv-congruence-on-x

    (defthm vl-atomicstmt-p-vl-stmt-equiv-congruence-on-x
      (implies (vl-stmt-equiv x x-equiv)
               (equal (vl-atomicstmt-p x)
                      (vl-atomicstmt-p x-equiv)))
      :rule-classes :congruence)