abc-master
|
#include "msatInt.h"
Go to the source code of this file.
Msat_Solver_t* Msat_SolverAlloc | ( | int | nVarsAlloc, |
double | dClaInc, | ||
double | dClaDecay, | ||
double | dVarInc, | ||
double | dVarDecay, | ||
int | fVerbose | ||
) |
Function*************************************************************
Synopsis [Allocates the solver.]
Description [After the solver is allocated, the procedure Msat_SolverClean() should be called to set the number of variables.]
SideEffects []
SeeAlso []
Definition at line 154 of file msatSolverApi.c.
void Msat_SolverClausesDecrement | ( | Msat_Solver_t * | p | ) |
Definition at line 65 of file msatSolverApi.c.
void Msat_SolverClausesDecrementL | ( | Msat_Solver_t * | p | ) |
Definition at line 67 of file msatSolverApi.c.
void Msat_SolverClausesIncrement | ( | Msat_Solver_t * | p | ) |
Definition at line 64 of file msatSolverApi.c.
void Msat_SolverClausesIncrementL | ( | Msat_Solver_t * | p | ) |
Definition at line 66 of file msatSolverApi.c.
void Msat_SolverClean | ( | Msat_Solver_t * | p, |
int | nVars | ||
) |
Function*************************************************************
Synopsis [Prepares the solver.]
Description [Cleans the solver assuming that the problem will involve the given number of variables (nVars). This procedure is useful for many small (incremental) SAT problems, to prevent the solver from being reallocated each time.]
SideEffects []
SeeAlso []
Definition at line 307 of file msatSolverApi.c.
void Msat_SolverFree | ( | Msat_Solver_t * | p | ) |
Function*************************************************************
Synopsis [Frees the solver.]
Description []
SideEffects []
SeeAlso []
Definition at line 386 of file msatSolverApi.c.
int Msat_SolverIncrementSeenId | ( | Msat_Solver_t * | p | ) |
Definition at line 62 of file msatSolverApi.c.
void Msat_SolverMarkClausesStart | ( | Msat_Solver_t * | p | ) |
Definition at line 69 of file msatSolverApi.c.
void Msat_SolverMarkLastClauseTypeA | ( | Msat_Solver_t * | p | ) |
Definition at line 68 of file msatSolverApi.c.
void Msat_SolverPrepare | ( | Msat_Solver_t * | p, |
Msat_IntVec_t * | vVars | ||
) |
Function*************************************************************
Synopsis [Prepares the solver to run on a subset of variables.]
Description []
SideEffects []
SeeAlso []
Definition at line 451 of file msatSolverApi.c.
Msat_ClauseVec_t* Msat_SolverReadAdjacents | ( | Msat_Solver_t * | p | ) |
Function*************************************************************
Synopsis [Reads the clause with the given number.]
Description []
SideEffects []
SeeAlso []
Definition at line 104 of file msatSolverApi.c.
int* Msat_SolverReadAssignsArray | ( | Msat_Solver_t * | p | ) |
Definition at line 56 of file msatSolverApi.c.
int Msat_SolverReadBackTracks | ( | Msat_Solver_t * | p | ) |
Definition at line 58 of file msatSolverApi.c.
Msat_Clause_t* Msat_SolverReadClause | ( | Msat_Solver_t * | p, |
int | Num | ||
) |
Function*************************************************************
Synopsis [Reads the clause with the given number.]
Description []
SideEffects []
SeeAlso []
Definition at line 83 of file msatSolverApi.c.
int Msat_SolverReadClauseNum | ( | Msat_Solver_t * | p | ) |
Definition at line 48 of file msatSolverApi.c.
Msat_IntVec_t* Msat_SolverReadConeVars | ( | Msat_Solver_t * | p | ) |
Function*************************************************************
Synopsis [Reads the clause with the given number.]
Description []
SideEffects []
SeeAlso []
Definition at line 120 of file msatSolverApi.c.
int Msat_SolverReadDecisionLevel | ( | Msat_Solver_t * | p | ) |
Definition at line 50 of file msatSolverApi.c.
int* Msat_SolverReadDecisionLevelArray | ( | Msat_Solver_t * | p | ) |
Definition at line 51 of file msatSolverApi.c.
float* Msat_SolverReadFactors | ( | Msat_Solver_t * | p | ) |
Definition at line 70 of file msatSolverApi.c.
int Msat_SolverReadInspects | ( | Msat_Solver_t * | p | ) |
Definition at line 59 of file msatSolverApi.c.
Msat_ClauseVec_t* Msat_SolverReadLearned | ( | Msat_Solver_t * | p | ) |
Definition at line 54 of file msatSolverApi.c.
Msat_MmStep_t* Msat_SolverReadMem | ( | Msat_Solver_t * | p | ) |
Definition at line 60 of file msatSolverApi.c.
int* Msat_SolverReadModelArray | ( | Msat_Solver_t * | p | ) |
Definition at line 57 of file msatSolverApi.c.
Msat_Clause_t** Msat_SolverReadReasonArray | ( | Msat_Solver_t * | p | ) |
Definition at line 52 of file msatSolverApi.c.
int* Msat_SolverReadSeenArray | ( | Msat_Solver_t * | p | ) |
Definition at line 61 of file msatSolverApi.c.
int Msat_SolverReadVarAllocNum | ( | Msat_Solver_t * | p | ) |
Definition at line 49 of file msatSolverApi.c.
int Msat_SolverReadVarNum | ( | Msat_Solver_t * | p | ) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Simple SAT solver APIs.]
Description []
SideEffects []
SeeAlso []
Definition at line 47 of file msatSolverApi.c.
Msat_IntVec_t* Msat_SolverReadVarsUsed | ( | Msat_Solver_t * | p | ) |
Function*************************************************************
Synopsis [Reads the clause with the given number.]
Description []
SideEffects []
SeeAlso []
Definition at line 136 of file msatSolverApi.c.
Msat_Type_t Msat_SolverReadVarValue | ( | Msat_Solver_t * | p, |
Msat_Var_t | Var | ||
) |
Definition at line 53 of file msatSolverApi.c.
Msat_ClauseVec_t** Msat_SolverReadWatchedArray | ( | Msat_Solver_t * | p | ) |
Definition at line 55 of file msatSolverApi.c.
void Msat_SolverResize | ( | Msat_Solver_t * | p, |
int | nVarsAlloc | ||
) |
Function*************************************************************
Synopsis [Resizes the solver.]
Description [Assumes that the solver contains some clauses, and that it is currently between the calls. Resizes the solver to accomodate more variables.]
SideEffects []
SeeAlso []
Definition at line 242 of file msatSolverApi.c.
|
static |
DECLARATIONS ///.
CFile****************************************************************
FileName [msatSolverApi.c]
PackageName [A C version of SAT solver MINISAT, originally developed in C++ by Niklas Een and Niklas Sorensson, Chalmers University of Technology, Sweden: http://www.cs.chalmers.se/~een/Satzoo.]
Synopsis [APIs of the SAT solver.]
Author [Alan Mishchenko alanm] i@ee cs.be rkel ey.ed u
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - January 1, 2004.]
Revision [
]
Function*************************************************************
Synopsis [Sets up the truth tables.]
Description []
SideEffects []
SeeAlso []
Definition at line 484 of file msatSolverApi.c.
void Msat_SolverSetVerbosity | ( | Msat_Solver_t * | p, |
int | fVerbose | ||
) |
Definition at line 63 of file msatSolverApi.c.