• 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
          • Modnamespace
          • Vl-parse-expr-from-str
          • Welltyped
          • Reordering-by-name
          • Flat-warnings
          • Genblob
          • Expr-building
          • Datatype-tools
          • Syscalls
          • Relocate
          • Expr-cleaning
            • Vl-exprlist-clean-selects
            • Vl-expr-clean-selects1
            • Vl-maybe-merge-selects-aux
            • Vl-merge-consts
            • Vl-maybe-merge-selects
            • Vl-expr-clean-selects
            • Vl-elim-nested-concats
            • Vl-expr-clean-concats
          • 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

Expr-cleaning

Functions for cleaning up ugly expressions.

Subtopics

Vl-exprlist-clean-selects
(vl-exprlist-clean-selects x ss) maps vl-expr-clean-selects across a list.
Vl-expr-clean-selects1
Core routine behind vl-expr-clean-selects.
Vl-maybe-merge-selects-aux
Identify a sequence of decreasing bit- and part-selects.
Vl-merge-consts
Consolidate concatenations of constants.
Vl-maybe-merge-selects
Merge together concatenations like {foo[3], foo[2], foo[1]} into prettier expressions like foo[3:1].
Vl-expr-clean-selects
Simplify concatenations and selects in an expression.
Vl-elim-nested-concats
Flatten out nested concatenations like {a, b, {c, d}, { { e, f } }} into {a, b, c, d, e, f}.
Vl-expr-clean-concats
Flatten concatenations and try to merge adjacent, compatible wires within them into larger part-selects.