Sat.VarRepresentation of integer variables and boolean literals.
A variable or boolean literal. Note that each variable and boolean literal is associated with a specific model. It is an error to mix variables or literals from different models.
type t_bool = [ `Bool ] tA boolean literal.
type t_int = [ `Int ] tAn integer variable.
Add a new bounded integer variable to a model.
Restrict the new bounded integer variable to a domain.
val to_index : 'a t -> intExpose the underlying index of a variable.
Assert that a variable is a boolean variable. Raises Invalid_argument for a variable x that does not satisfy 0 <= x <= 1.
Convert a variable to an integer variable. Raises Invalid_argument on complemented boolean literals.
val to_string : 'a t -> stringReturn a string representing the variable or boolean literal.
val pp : Stdlib.Format.formatter -> 'a t -> unitPretty-printer for variables and boolean literals.