Skip to documentation
SLOP

tiny.smt.choir.names.type_names

Reference 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.

No direct callersNo direct callschoir.namestype names
Static calls · unresolved targets: unknown · external targets: unknown.

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

Definitions4
Public names12
Members0
Version26.7.0
Revisiondaab053ee433