ABC: A System for Sequential Synthesis and Verification
 
Loading...
Searching...
No Matches
CaDiCaL::WitnessWriter Struct Reference
Inheritance diagram for CaDiCaL::WitnessWriter:
Collaboration diagram for CaDiCaL::WitnessWriter:

Public Member Functions

 WitnessWriter (File *f)
 
bool write (const vector< int > &a)
 
bool witness (const vector< int > &c, const vector< int > &w, int64_t)
 
- Public Member Functions inherited from CaDiCaL::WitnessIterator
virtual ~WitnessIterator ()
 
virtual bool witness (const std::vector< int > &clause, const std::vector< int > &witness, int64_t id=0)=0
 

Public Attributes

Filefile
 
int64_t witnesses
 

Detailed Description

Definition at line 1609 of file cadical_solver.cpp.

Constructor & Destructor Documentation

◆ WitnessWriter()

CaDiCaL::WitnessWriter::WitnessWriter ( File * f)
inline

Definition at line 1612 of file cadical_solver.cpp.

Member Function Documentation

◆ witness()

bool CaDiCaL::WitnessWriter::witness ( const vector< int > & c,
const vector< int > & w,
int64_t  )
inline

Definition at line 1622 of file cadical_solver.cpp.

1622 {
1623 if (!write (c))
1624 return false;
1625 if (!file->put (' '))
1626 return false;
1627 if (!write (w))
1628 return false;
1629 if (!file->put ('\n'))
1630 return false;
1631 witnesses++;
1632 return true;
1633 }
bool write(const vector< int > &a)
Here is the call graph for this function:

◆ write()

bool CaDiCaL::WitnessWriter::write ( const vector< int > & a)
inline

Definition at line 1613 of file cadical_solver.cpp.

1613 {
1614 for (const auto &lit : a) {
1615 if (!file->put (lit))
1616 return false;
1617 if (!file->put (' '))
1618 return false;
1619 }
1620 return file->put ('0');
1621 }
int lit
Definition satVec.h:130
Here is the caller graph for this function:

Member Data Documentation

◆ file

File* CaDiCaL::WitnessWriter::file

Definition at line 1610 of file cadical_solver.cpp.

◆ witnesses

int64_t CaDiCaL::WitnessWriter::witnesses

Definition at line 1611 of file cadical_solver.cpp.


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