This package contains various functions on booleans values.
castfn g0ofg1_bool (x: Bool):<> bool
castfn g1ofg0_bool (x: bool):<> Bool
fun
int2bool0 (i: int):<> bool = "mac#%"
fun
int2bool1
{i:int} (i: int i):<> bool(i != 0) = "mac#%"
fun
bool2int0 (b: bool):<> natLt(2) = "mac#%"
fun
bool2int1
{b:bool} (b: bool b):<> int(bool2int(b)) = "mac#%"
fun
add_bool0_bool0
(b1: bool, b2: bool):<> bool = "mac#%"
fun
add_bool1_bool1
{b1,b2:bool}
(b1: bool b1, b2: bool b2):<> bool(b1 || b2) = "mac#%"
fun
mul_bool0_bool0
(b1: bool, b2: bool):<> bool = "mac#%"
fun
mul_bool1_bool1
{b1,b2:bool}
(b1: bool b1, b2: bool b2):<> bool(b1 && b2) = "mac#%"
fun
xor_bool0_bool0
(b1: bool, b2: bool):<> bool = "mac#%"
fun
lt_bool0_bool0
(b1: bool, b2: bool):<> bool = "mac#%"
fun
lte_bool0_bool0
(b1: bool, b2: bool):<> bool = "mac#%"
fun
gt_bool0_bool0
(b1: bool, b2: bool):<> bool = "mac#%"
fun
gte_bool0_bool0
(b1: bool, b2: bool):<> bool = "mac#%"
fun
eq_bool0_bool0
(b1: bool, b2: bool):<> bool = "mac#%"
fun
neq_bool0_bool0
(b1: bool, b2: bool):<> bool = "mac#%"
fun print_bool (x: bool): void = "mac#%"
fun prerr_bool (x: bool): void = "mac#%"
fun fprint_bool : fprint_type (bool) = "mac#%"
overload g0ofg1 with g0ofg1_bool // index-erasing
overload g1ofg0 with g1ofg0_bool // index-inducing
overload + with add_bool0_bool0 of 0
overload + with add_bool0_bool1 of 10
overload + with add_bool1_bool0 of 10
overload + with add_bool1_bool1 of 20
overload * with mul_bool0_bool0 of 0
overload * with mul_bool0_bool1 of 10
overload * with mul_bool1_bool0 of 10
overload * with mul_bool1_bool1 of 20
overload = with eq_bool0_bool0 of 0
overload = with eq_bool1_bool1 of 20
overload != with neq_bool0_bool0 of 0
overload != with neq_bool1_bool1 of 20
overload print with print_bool
overload prerr with prerr_bool
overload fprint with fprint_bool
This page is created with ATS by Hongwei Xi and also maintained by Hongwei Xi. |