internal.types.bool
class bool
Extends
internal.core.bool · View complete class API →
Constructors
2
Special methods
27
__invert__(self: Self, /) -> bool
%0 = trunc i8 %self to i1
%1 = xor i1 %0, true
%2 = zext i1 %1 to i8
ret i8 %2
__eq__(self: Self, other: bool, /) -> bool
%0 = icmp eq i8 %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__ne__(self: Self, other: bool, /) -> bool
%0 = icmp ne i8 %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__lt__(self: Self, other: bool, /) -> bool
%0 = icmp ult i8 %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__gt__(self: Self, other: bool, /) -> bool
%0 = icmp ugt i8 %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__le__(self: Self, other: bool, /) -> bool
%0 = icmp ule i8 %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__ge__(self: Self, other: bool, /) -> bool
%0 = icmp uge i8 %self, %other
%1 = zext i1 %0 to i8
ret i8 %1