ABC: A System for Sequential Synthesis and Verification
 
Loading...
Searching...
No Matches
Gluco2::lbool Class Reference

#include <SolverTypes.h>

Public Member Functions

 lbool (uint8_t v)
 
 lbool ()
 
 lbool (bool x)
 
bool operator== (lbool b) const
 
bool operator!= (lbool b) const
 
lbool operator^ (bool b) const
 
lbool operator&& (lbool b) const
 
lbool operator|| (lbool b) const
 

Friends

int toInt (lbool l)
 
lbool toLbool (int v)
 

Detailed Description

Definition at line 99 of file SolverTypes.h.

Constructor & Destructor Documentation

◆ lbool() [1/3]

Gluco2::lbool::lbool ( uint8_t v)
inlineexplicit

Definition at line 103 of file SolverTypes.h.

103: value(v) { }
Here is the caller graph for this function:

◆ lbool() [2/3]

Gluco2::lbool::lbool ( )
inline

Definition at line 105 of file SolverTypes.h.

105: value(0) { }
Here is the caller graph for this function:

◆ lbool() [3/3]

Gluco2::lbool::lbool ( bool x)
inlineexplicit

Definition at line 106 of file SolverTypes.h.

106: value(!x) { }

Member Function Documentation

◆ operator!=()

bool Gluco2::lbool::operator!= ( lbool b) const
inline

Definition at line 109 of file SolverTypes.h.

109{ return !(*this == b); }
Here is the call graph for this function:

◆ operator&&()

lbool Gluco2::lbool::operator&& ( lbool b) const
inline

Definition at line 112 of file SolverTypes.h.

112 {
113 uint8_t sel = (this->value << 1) | (b.value << 3);
114 uint8_t v = (0xF7F755F4 >> sel) & 3;
115 return lbool(v); }
ABC_NAMESPACE_HEADER_START typedef unsigned char uint8_t
Definition Fxch.h:31
Here is the call graph for this function:

◆ operator==()

bool Gluco2::lbool::operator== ( lbool b) const
inline

Definition at line 108 of file SolverTypes.h.

108{ return (((b.value&2) & (value&2)) | (!(b.value&2)&(value == b.value))) != 0; }
Here is the call graph for this function:

◆ operator^()

lbool Gluco2::lbool::operator^ ( bool b) const
inline

Definition at line 110 of file SolverTypes.h.

110{ return lbool((uint8_t)(value^(uint8_t)b)); }
Here is the call graph for this function:

◆ operator||()

lbool Gluco2::lbool::operator|| ( lbool b) const
inline

Definition at line 117 of file SolverTypes.h.

117 {
118 uint8_t sel = (this->value << 1) | (b.value << 3);
119 uint8_t v = (0xFCFCF400 >> sel) & 3;
120 return lbool(v); }
Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ toInt

int toInt ( lbool l)
friend

Definition at line 125 of file SolverTypes.h.

125{ return l.value; }

◆ toLbool

lbool toLbool ( int v)
friend

Definition at line 117 of file SolverTypes.h.

117{ return lbool((uint8_t)v); }

The documentation for this class was generated from the following file: