yosys-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Minisat::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
 

Private Attributes

uint8_t value
 

Friends

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

Detailed Description

Definition at line 94 of file SolverTypes.h.

Constructor & Destructor Documentation

Minisat::lbool::lbool ( uint8_t  v)
inlineexplicit

Definition at line 98 of file SolverTypes.h.

98 : value(v) { }
uint8_t value
Definition: SolverTypes.h:95
Minisat::lbool::lbool ( )
inline

Definition at line 100 of file SolverTypes.h.

100 : value(0) { }
uint8_t value
Definition: SolverTypes.h:95

+ Here is the caller graph for this function:

Minisat::lbool::lbool ( bool  x)
inlineexplicit

Definition at line 101 of file SolverTypes.h.

101 : value(!x) { }
uint8_t value
Definition: SolverTypes.h:95

Member Function Documentation

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

Definition at line 104 of file SolverTypes.h.

104 { return !(*this == b); }
lbool Minisat::lbool::operator&& ( lbool  b) const
inline

Definition at line 107 of file SolverTypes.h.

107  {
108  uint8_t sel = (this->value << 1) | (b.value << 3);
109  uint8_t v = (0xF7F755F4 >> sel) & 3;
110  return lbool(v); }
uint8_t value
Definition: SolverTypes.h:95

+ Here is the call graph for this function:

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

Definition at line 103 of file SolverTypes.h.

103 { return ((b.value&2) & (value&2)) | (!(b.value&2)&(value == b.value)); }
uint8_t value
Definition: SolverTypes.h:95
lbool Minisat::lbool::operator^ ( bool  b) const
inline

Definition at line 105 of file SolverTypes.h.

105 { return lbool((uint8_t)(value^(uint8_t)b)); }
uint8_t value
Definition: SolverTypes.h:95

+ Here is the call graph for this function:

lbool Minisat::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 = (0xFCFCF400 >> sel) & 3;
115  return lbool(v); }
uint8_t value
Definition: SolverTypes.h:95

+ Here is the call graph for this function:

Friends And Related Function Documentation

int toInt ( lbool  l)
friend

Definition at line 120 of file SolverTypes.h.

120 { return l.value; }
lbool toLbool ( int  v)
friend

Definition at line 121 of file SolverTypes.h.

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

Field Documentation

uint8_t Minisat::lbool::value
private

Definition at line 95 of file SolverTypes.h.


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