Skip to documentation
SLOP

tiny.smt.BoolValue

Reference tiny.smt BoolValue

Defined in sat.types.

A truth value that may also be unset.

API (5)

Actions

Public operations.

Fields and members

Public fields and members.

No direct callersNo direct callssat.typesBoolValue
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/smt/src/sat/types.zig:33

zig
/// A truth value that may also be unset. A caller switches on the value `Solver.literalValue`/// returns to read a literal in a satisfying assignment.pub const BoolValue = enum {    /// The variable is unassigned, or the literal names a variable at or above the solver's    /// variable count.    unset,    /// The literal or variable is false.    false,    /// The literal or variable is true.    true,    /// Returns `.true` for true and `.false` for false. The solver and the proof checker record an    /// assigned value through it.    pub fn fromBool(value: bool) BoolValue {        return if (value) .true else .false;    }    /// Returns the opposite value, and `.unset` for `.unset`. The solver and the proof checker read    /// a negated literal's value from its variable's value through it.    pub fn invert(self: BoolValue) BoolValue {        return switch (self) {            .unset => .unset,            .false => .true,            .true => .false,        };    }};

Source: lib/smt/src/root.zig:107

zig
pub const BoolValue = sat.BoolValue;
Called byCallsNo direct callsprivate sourcelib.smt.src.sat.proofproofAssignprivate sourcelib.smt.src.sat.solver.SolverenqueueBoolValuefromBool
Static calls · unresolved targets: 0 · external targets: 0.

Also reachable as

sat.BoolValue, sat.solver.BoolValue.

Audit

Definitions3
Public names12
Members3
Version26.7.0
Revisiondaab053ee433