tiny.smt.choir.names.type_names
Defined in choir.names.
The names of the dialect's three types, boolean, bv and array.
API (3)
Values and defaults
Public values and defaults.
array: The name every array type shares,smt.array.boolean: The name of the Boolean type,smt.bool.bv: The name every bit-vector type shares,smt.bv.
Source
Source: lib/smt/src/choir/names.zig:20
zig
/// The names of the dialect's three types, `boolean`, `bv` and `array`. Code that turns a type back/// into a solver sort compares the type's name with these constants to tell the three types apart./// The dialect registers its types under these names, and the type getters of `SmtDialect` build/// types under them. The namespace and the `dialect` file re-export it.pub const type_names = struct { /// The name of the Boolean type, `smt.bool`. Code that turns a type into a solver sort compares /// the type's name with this constant to recognize a Boolean value. `SmtDialect.getBoolType` /// returns the type. pub const boolean = "smt.bool"; /// The name every bit-vector type shares, `smt.bv`. Code compares a type's name with this /// constant before it reads a bit-vector's width. Each bit-vector type carries its width as /// decimal text, such as `64`, in a key separate from this name, and this name stays the same /// for every width. `SmtDialect.getBitVecType` builds these types, and `SmtDialect.bitVecWidth` /// reads the width back. pub const bv = "smt.bv"; /// The name every array type shares, `smt.array`. Code compares a type's name with this /// constant before it reads an array's widths. Each array type carries its index width and its /// element width as text, such as `8:32`, in a key separate from this name, and this name stays /// the same for every pair of widths. `SmtDialect.getArrayType` builds these types, and /// `SmtDialect.arrayShape` reads the widths back. pub const array = "smt.array";};Also reachable as
choir.dialect.type_names, choir.type_names.
Audit
| Definitions | 4 |
|---|---|
| Public names | 12 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |