• 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
        • 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
            • Vl-usertype-resolve
            • Vl-datatype-range
            • Vl-datatype-exprtype
            • Vl-datatype-range-conservative
            • Vl-find-structmember
            • Vl-datatype-usertype-elim
            • Vl-packeddimensionlist-total-size
            • Vl-datatype-bitselect-ok
            • Vl-datatype->structmembers
            • Vl-datatype-set-unsigned
            • Vl-packed-datatype-size
            • Vl-datatype-size
          • 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

Datatype-tools

Functions for working with datatypes.

Subtopics

Vl-usertype-resolve
Resolves a datatype of usertype kind to a concrete datatype, i.e. anything but a user typename.
Vl-datatype-range
Get the range, if any, for a data type.
Vl-datatype-exprtype
Get the self-determined type for a datatype.
Vl-datatype-range-conservative
Get the range, if any, for a data type.
Vl-find-structmember
Vl-datatype-usertype-elim
Resolves all usertypes within a datatype, recursively.
Vl-packeddimensionlist-total-size
Given a packeddimensionlist like [5:0][3:1][0:8], multiplies the dimensions together to get the total number of bits, or returns nil on failure.
Vl-datatype-bitselect-ok
Determines whether this datatype can be bitselected.
Vl-datatype->structmembers
Finds the struct members of x when it is a struct or union.
Vl-datatype-set-unsigned
Vl-packed-datatype-size
Get the size for any packed data type.
Vl-datatype-size
Get the size for a data type, including unpacked dimensions.