abc-master
|
#include "msatInt.h"
Go to the source code of this file.
Data Structures | |
struct | Msat_Clause_t_ |
DECLARATIONS ///. More... | |
void Msat_ClauseCalcReason | ( | Msat_Solver_t * | p, |
Msat_Clause_t * | pC, | ||
Msat_Lit_t | Lit, | ||
Msat_IntVec_t * | vLits_out | ||
) |
Function*************************************************************
Synopsis [Computes reason of conflict in the given clause.]
Description [If the literal is unassigned, finds the reason by complementing literals in the given cluase (pC). If the literal is assigned, makes sure that this literal is the first one in the clause and computes the complement of all other literals in the clause. Returns the reason in the given array (vLits_out). If the clause is learned, bumps its activity.]
SideEffects []
SeeAlso []
Definition at line 418 of file msatClause.c.
int Msat_ClauseCreate | ( | Msat_Solver_t * | p, |
Msat_IntVec_t * | vLits, | ||
int | fLearned, | ||
Msat_Clause_t ** | pClause_out | ||
) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Creates a new clause.]
Description [Returns FALSE if top-level conflict detected (must be handled); TRUE otherwise. 'pClause_out' may be set to NULL if clause is already satisfied by the top-level assignment.]
SideEffects []
SeeAlso []
Definition at line 58 of file msatClause.c.
void Msat_ClauseFree | ( | Msat_Solver_t * | p, |
Msat_Clause_t * | pC, | ||
int | fRemoveWatched | ||
) |
Function*************************************************************
Synopsis [Deallocates the clause.]
Description []
SideEffects []
SeeAlso []
Definition at line 223 of file msatClause.c.
int Msat_ClauseIsLocked | ( | Msat_Solver_t * | p, |
Msat_Clause_t * | pC | ||
) |
Function*************************************************************
Synopsis [Checks whether the learned clause is locked.]
Description [The clause may be locked if it is the reason of a recent conflict. Such clause cannot be removed from the database.]
SideEffects []
SeeAlso []
Definition at line 278 of file msatClause.c.
void Msat_ClausePrint | ( | Msat_Clause_t * | pC | ) |
Function*************************************************************
Synopsis [Prints the given clause.]
Description []
SideEffects []
SeeAlso []
Definition at line 468 of file msatClause.c.
void Msat_ClausePrintSymbols | ( | Msat_Clause_t * | pC | ) |
Function*************************************************************
Synopsis [Prints the given clause.]
Description []
SideEffects []
SeeAlso []
Definition at line 515 of file msatClause.c.
int Msat_ClausePropagate | ( | Msat_Clause_t * | pC, |
Msat_Lit_t | Lit, | ||
int * | pAssigns, | ||
Msat_Lit_t * | pLit_out | ||
) |
Function*************************************************************
Synopsis [Propages the assignment.]
Description [The literal that has become true (Lit) is given to this procedure. The array of current variable assignments is given for efficiency. The output literal (pLit_out) can be the second watched literal (if TRUE is returned) or the conflict literal (if FALSE is returned). This messy interface is used to improve performance. This procedure accounts for ~50% of the runtime of the solver.]
SideEffects []
SeeAlso []
Definition at line 335 of file msatClause.c.
float Msat_ClauseReadActivity | ( | Msat_Clause_t * | pC | ) |
Function*************************************************************
Synopsis [Reads the activity of the given clause.]
Description []
SideEffects []
SeeAlso []
Definition at line 295 of file msatClause.c.
int Msat_ClauseReadLearned | ( | Msat_Clause_t * | pC | ) |
Function*************************************************************
Synopsis [Access the data field of the clause.]
Description []
SideEffects []
SeeAlso []
Definition at line 255 of file msatClause.c.
int* Msat_ClauseReadLits | ( | Msat_Clause_t * | pC | ) |
Definition at line 257 of file msatClause.c.
int Msat_ClauseReadMark | ( | Msat_Clause_t * | pC | ) |
Definition at line 258 of file msatClause.c.
int Msat_ClauseReadNum | ( | Msat_Clause_t * | pC | ) |
Definition at line 259 of file msatClause.c.
int Msat_ClauseReadSize | ( | Msat_Clause_t * | pC | ) |
Definition at line 256 of file msatClause.c.
int Msat_ClauseReadTypeA | ( | Msat_Clause_t * | pC | ) |
Definition at line 260 of file msatClause.c.
void Msat_ClauseRemoveWatch | ( | Msat_ClauseVec_t * | vClauses, |
Msat_Clause_t * | pC | ||
) |
Function*************************************************************
Synopsis [Removes the given clause from the watched list.]
Description []
SideEffects []
SeeAlso []
Definition at line 444 of file msatClause.c.
void Msat_ClauseSetMark | ( | Msat_Clause_t * | pC, |
int | fMark | ||
) |
Definition at line 262 of file msatClause.c.
void Msat_ClauseSetNum | ( | Msat_Clause_t * | pC, |
int | Num | ||
) |
Definition at line 263 of file msatClause.c.
void Msat_ClauseSetTypeA | ( | Msat_Clause_t * | pC, |
int | fTypeA | ||
) |
Definition at line 264 of file msatClause.c.
int Msat_ClauseSimplify | ( | Msat_Clause_t * | pC, |
int * | pAssigns | ||
) |
Function*************************************************************
Synopsis [Simplifies the clause.]
Description [Assumes everything has been propagated! (esp. watches in clauses are NOT unsatisfied)]
SideEffects []
SeeAlso []
Definition at line 374 of file msatClause.c.
void Msat_ClauseWriteActivity | ( | Msat_Clause_t * | pC, |
float | Num | ||
) |
Function*************************************************************
Synopsis [Sets the activity of the clause.]
Description []
SideEffects []
SeeAlso []
Definition at line 314 of file msatClause.c.
void Msat_ClauseWriteDimacs | ( | FILE * | pFile, |
Msat_Clause_t * | pC, | ||
int | fIncrement | ||
) |
Function*************************************************************
Synopsis [Writes the given clause in a file in DIMACS format.]
Description []
SideEffects []
SeeAlso []
Definition at line 494 of file msatClause.c.