
Go to the source code of this file.
Functions | |
| ABC_NAMESPACE_IMPL_START cadical_solver * | cadical_solver_new (void) |
| DECLARATIONS ///. | |
| void | cadical_solver_delete (cadical_solver *s) |
| int | cadical_solver_addclause (cadical_solver *s, int *begin, int *end) |
| int | cadical_solver_solve (cadical_solver *s, int *begin, int *end, ABC_INT64_T nConfLimit, ABC_INT64_T nInsLimit, ABC_INT64_T nConfLimitGlobal, ABC_INT64_T nInsLimitGlobal) |
| int | cadical_solver_final (cadical_solver *s, int **ppArray) |
| int | cadical_solver_nvars (cadical_solver *s) |
| int | cadical_solver_addvar (cadical_solver *s) |
| void | cadical_solver_setnvars (cadical_solver *s, int n) |
| int | cadical_solver_get_var_value (cadical_solver *s, int v) |
| Vec_Int_t * | cadical_solve_cnf (Cnf_Dat_t *pCnf, char *pArgs, int nConfs, int nTimeLimit, int fSat, int fUnsat, int fPrintCex, int fVerbose) |
| Vec_Int_t * cadical_solve_cnf | ( | Cnf_Dat_t * | pCnf, |
| char * | pArgs, | ||
| int | nConfs, | ||
| int | nTimeLimit, | ||
| int | fSat, | ||
| int | fUnsat, | ||
| int | fPrintCex, | ||
| int | fVerbose ) |
Function*************************************************************
Synopsis [Solves the given CNF using cadical.]
Description []
SideEffects []
SeeAlso []
Definition at line 266 of file cadicalSolver.c.

| int cadical_solver_addclause | ( | cadical_solver * | s, |
| int * | begin, | ||
| int * | end ) |
Function*************************************************************
Synopsis [add clause]
Description [cadical takes x and -x as a literal for a variable x > 0, where 0 is an indicator of the end of a clause. since variables start from 0 in abc, a variable v is translated into v + 1 in cadical.]
SideEffects []
SeeAlso []
Definition at line 90 of file cadicalSolver.c.


| int cadical_solver_addvar | ( | cadical_solver * | s | ) |
Function*************************************************************
Synopsis [add new variable]
Description [emulated using "nVars".]
SideEffects []
SeeAlso []
Definition at line 218 of file cadicalSolver.c.

| void cadical_solver_delete | ( | cadical_solver * | s | ) |
Function*************************************************************
Synopsis [delete solver]
Description []
SideEffects []
SeeAlso []
Definition at line 65 of file cadicalSolver.c.


| int cadical_solver_final | ( | cadical_solver * | s, |
| int ** | ppArray ) |
Function*************************************************************
Synopsis [get unsat core]
Description [following minisat, return number of literals in core, which consists of responsible assumptions, negated. array will be freed by solver.]
SideEffects []
SeeAlso []
Definition at line 170 of file cadicalSolver.c.


| int cadical_solver_get_var_value | ( | cadical_solver * | s, |
| int | v ) |
Function*************************************************************
Synopsis [get value of variable]
Description [cadical returns x (true) or -x (false) for a variable x. note a variable v was translated into v + 1 in cadical.]
SideEffects []
SeeAlso []
Definition at line 250 of file cadicalSolver.c.


| ABC_NAMESPACE_IMPL_START cadical_solver * cadical_solver_new | ( | void | ) |
DECLARATIONS ///.
MACRO DEFINITIONS ///.
CFile****************************************************************
FileName [cadicalSolver.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [SAT solver CaDiCaL by Armin Biere, University of Freiburg]
Synopsis [https://github.com/arminbiere/cadical]
Author [Integrated into ABC by Yukio Miyasaka]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [
] FUNCTION DEFINITIONS /// Function*************************************************************
Synopsis [allocate solver]
Description []
SideEffects []
SeeAlso []
Definition at line 45 of file cadicalSolver.c.


| int cadical_solver_nvars | ( | cadical_solver * | s | ) |
Function*************************************************************
Synopsis [get number of variables]
Description [emulated using "nVars".]
SideEffects []
SeeAlso []
Definition at line 203 of file cadicalSolver.c.

| void cadical_solver_setnvars | ( | cadical_solver * | s, |
| int | n ) |
Function*************************************************************
Synopsis [set number of variables]
Description [not only emulate with "nVars" but also reserve memory.]
SideEffects []
SeeAlso []
Definition at line 233 of file cadicalSolver.c.


| int cadical_solver_solve | ( | cadical_solver * | s, |
| int * | begin, | ||
| int * | end, | ||
| ABC_INT64_T | nConfLimit, | ||
| ABC_INT64_T | nInsLimit, | ||
| ABC_INT64_T | nConfLimitGlobal, | ||
| ABC_INT64_T | nInsLimitGlobal ) |
Function*************************************************************
Synopsis [solve with resource limits]
Description [assumptions and inspection limits are not supported.]
SideEffects []
SeeAlso []
Definition at line 113 of file cadicalSolver.c.

