• 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
        • Mlib
          • Scopestack
          • Filtering-by-name
          • Vl-namefactory
          • Substitution
          • Allexprs
          • Hid-tools
          • Vl-consteval
          • Range-tools
          • Lvalexprs
          • Hierarchy
          • Finding-by-name
          • Expr-tools
          • Expr-slicing
          • Stripping-functions
          • Stmt-tools
            • Vl-rebuild-caselist
            • Vl-stmt-atomicstmts
            • Vl-compoundstmt->stmts
            • Change-vl-compoundstmt
            • Vl-compoundstmt->vardecls
            • Vl-compoundstmt->paramdecls
            • Vl-compoundstmt->exprs
            • Vl-compoundstmt->ctrl
            • Vl-atomicstmt-p
            • Vl-atomicstmtlist-p
            • Vl-stmt->atts
            • Vl-vardecllist->initvals
            • Vl-assignstmt-p
            • Vl-whilestmt-p
            • Vl-timingstmt-p
            • Vl-repeatstmt-p
            • Vl-foreverstmt-p
            • Vl-enablestmt-p
            • Vl-waitstmt-p
            • Vl-nullstmt-p
            • Vl-ifstmt-p
            • Vl-forstmt-p
            • Vl-casestmt-p
          • Modnamespace
          • Vl-parse-expr-from-str
          • Welltyped
          • Reordering-by-name
          • Flat-warnings
          • Genblob
          • Expr-building
          • Datatype-tools
          • Syscalls
          • Relocate
          • Expr-cleaning
          • Namemangle
          • Caremask
          • Port-tools
          • Lvalues
        • Server
        • Kit
        • Printer
        • Esim-vl
        • Well-formedness
      • Sv
      • Fgl
      • Vwsim
      • Vl
      • X86isa
      • Svl
      • Rtl
    • Software-verification
    • Math
    • Testing-utilities
  • Mlib

Stmt-tools

Additional functions for working with statements.

Subtopics

Vl-rebuild-caselist
Vl-stmt-atomicstmts
(vl-stmt-atomicstmts x) returns a flat list of all atomic statements in the statement x.
Vl-compoundstmt->stmts
Get all immediate sub-statements from any compound statement.
Change-vl-compoundstmt
Mutate a compound statement.
Vl-compoundstmt->vardecls
Get the declarations, if any, from an arbitrary compound (non-atomic) statement.
Vl-compoundstmt->paramdecls
Get the declarations, if any, from an arbitrary compound (non-atomic) statement.
Vl-compoundstmt->exprs
Get all immediate sub-expressions from any compound statement.
Vl-compoundstmt->ctrl
Get the timing control, if any, from an arbitrary compound (non-atomic) statement.
Vl-atomicstmt-p
Recognizer for atomic statements (those with no sub-statements).
Vl-atomicstmtlist-p
(vl-atomicstmtlist-p x) recognizes lists where every element satisfies vl-atomicstmt-p.
Vl-stmt->atts
Get the attributes from any statement.
Vl-vardecllist->initvals
Vl-assignstmt-p
Vl-whilestmt-p
Vl-timingstmt-p
Vl-repeatstmt-p
Vl-foreverstmt-p
Vl-enablestmt-p
Vl-waitstmt-p
Vl-nullstmt-p
Vl-ifstmt-p
Vl-forstmt-p
Vl-casestmt-p