abc-master
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "satVec.h"
#include "satClause.h"
#include "misc/vec/vecSet.h"
#include "satProof2.h"
Go to the source code of this file.
Data Structures | |
struct | sat_solver2_t |
Typedefs | |
typedef struct sat_solver2_t | sat_solver2 |
typedef struct Int2_Man_t_ | Int2_Man_t |
typedef struct varinfo2_t | varinfo2 |
Functions | |
sat_solver2 * | sat_solver2_new (void) |
void | sat_solver2_delete (sat_solver2 *s) |
int | sat_solver2_addclause (sat_solver2 *s, lit *begin, lit *end, int Id) |
int | sat_solver2_simplify (sat_solver2 *s) |
int | sat_solver2_solve (sat_solver2 *s, lit *begin, lit *end, ABC_INT64_T nConfLimit, ABC_INT64_T nInsLimit, ABC_INT64_T nConfLimitGlobal, ABC_INT64_T nInsLimitGlobal) |
void | sat_solver2_rollback (sat_solver2 *s) |
void | sat_solver2_reducedb (sat_solver2 *s) |
double | sat_solver2_memory (sat_solver2 *s, int fAll) |
double | sat_solver2_memory_proof (sat_solver2 *s) |
void | sat_solver2_setnvars (sat_solver2 *s, int n) |
void | Sat_Solver2WriteDimacs (sat_solver2 *p, char *pFileName, lit *assumptionsBegin, lit *assumptionsEnd, int incrementVars) |
void | Sat_Solver2PrintStats (FILE *pFile, sat_solver2 *p) |
int * | Sat_Solver2GetModel (sat_solver2 *p, int *pVars, int nVars) |
void | Sat_Solver2DoubleClauses (sat_solver2 *p, int iVar) |
int | var_is_assigned (sat_solver2 *s, int v) |
int | var_is_partA (sat_solver2 *s, int v) |
void | var_set_partA (sat_solver2 *s, int v, int partA) |
void * | Sat_ProofCore (sat_solver2 *s) |
void * | Sat_ProofInterpolant (sat_solver2 *s, void *pGloVars) |
word * | Sat_ProofInterpolantTruth (sat_solver2 *s, void *pGloVars) |
void | Sat_ProofCheck (sat_solver2 *s) |
Int2_Man_t * | Int2_ManStart (sat_solver2 *pSat, int *pGloVars, int nGloVars) |
FUNCTION DEFINITIONS ///. More... | |
void | Int2_ManStop (Int2_Man_t *p) |
int | Int2_ManChainStart (Int2_Man_t *p, clause *c) |
int | Int2_ManChainResolve (Int2_Man_t *p, clause *c, int iLit, int varA) |
void * | Int2_ManReadInterpolant (sat_solver2 *s) |
static clause * | clause2_read (sat_solver2 *s, cla h) |
static int | clause2_proofid (sat_solver2 *s, clause *c, int varA) |
static int | clause2_is_partA (sat_solver2 *s, int h) |
static void | clause2_set_partA (sat_solver2 *s, int h, int partA) |
static int | clause2_id (sat_solver2 *s, int h) |
static void | clause2_set_id (sat_solver2 *s, int h, int id) |
static int | sat_solver2_nvars (sat_solver2 *s) |
static int | sat_solver2_nclauses (sat_solver2 *s) |
static int | sat_solver2_nlearnts (sat_solver2 *s) |
static int | sat_solver2_nconflicts (sat_solver2 *s) |
static int | sat_solver2_var_value (sat_solver2 *s, int v) |
static int | sat_solver2_var_literal (sat_solver2 *s, int v) |
static void | sat_solver2_act_var_clear (sat_solver2 *s) |
static int | sat_solver2_final (sat_solver2 *s, int **ppArray) |
static abctime | sat_solver2_set_runtime_limit (sat_solver2 *s, abctime Limit) |
static int | sat_solver2_set_learntmax (sat_solver2 *s, int nLearntMax) |
static void | sat_solver2_bookmark (sat_solver2 *s) |
static int | sat_solver2_add_const (sat_solver2 *pSat, int iVar, int fCompl, int fMark, int Id) |
static int | sat_solver2_add_buffer (sat_solver2 *pSat, int iVarA, int iVarB, int fCompl, int fMark, int Id) |
static int | sat_solver2_add_and (sat_solver2 *pSat, int iVar, int iVar0, int iVar1, int fCompl0, int fCompl1, int fMark, int Id) |
static int | sat_solver2_add_xor (sat_solver2 *pSat, int iVarA, int iVarB, int iVarC, int fCompl, int fMark, int Id) |
static int | sat_solver2_add_constraint (sat_solver2 *pSat, int iVar, int iVar2, int fCompl, int fMark, int Id) |
typedef struct Int2_Man_t_ Int2_Man_t |
Definition at line 45 of file satSolver2.h.
typedef struct sat_solver2_t sat_solver2 |
Definition at line 44 of file satSolver2.h.
typedef struct varinfo2_t varinfo2 |
Definition at line 88 of file satSolver2.h.
|
inlinestatic |
Definition at line 184 of file satSolver2.h.
|
inlinestatic |
Definition at line 182 of file satSolver2.h.
|
inlinestatic |
Definition at line 179 of file satSolver2.h.
|
inlinestatic |
Definition at line 178 of file satSolver2.h.
|
inlinestatic |
Definition at line 185 of file satSolver2.h.
|
inlinestatic |
Definition at line 183 of file satSolver2.h.
int Int2_ManChainResolve | ( | Int2_Man_t * | p, |
clause * | c, | ||
int | iLit, | ||
int | varA | ||
) |
Definition at line 134 of file satSolver2i.c.
int Int2_ManChainStart | ( | Int2_Man_t * | p, |
clause * | c | ||
) |
Function*************************************************************
Synopsis [Computing interpolant for a clause.]
Description []
SideEffects []
SeeAlso []
Definition at line 108 of file satSolver2i.c.
void* Int2_ManReadInterpolant | ( | sat_solver2 * | s | ) |
Definition at line 80 of file satSolver2i.c.
Int2_Man_t* Int2_ManStart | ( | sat_solver2 * | pSat, |
int * | pGloVars, | ||
int | nGloVars | ||
) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Managing interpolation manager.]
Description []
SideEffects []
SeeAlso []
Definition at line 56 of file satSolver2i.c.
void Int2_ManStop | ( | Int2_Man_t * | p | ) |
Definition at line 71 of file satSolver2i.c.
void Sat_ProofCheck | ( | sat_solver2 * | s | ) |
void* Sat_ProofCore | ( | sat_solver2 * | s | ) |
Definition at line 1985 of file satSolver2.c.
void* Sat_ProofInterpolant | ( | sat_solver2 * | s, |
void * | pGloVars | ||
) |
word* Sat_ProofInterpolantTruth | ( | sat_solver2 * | s, |
void * | pGloVars | ||
) |
|
inlinestatic |
Definition at line 220 of file satSolver2.h.
|
inlinestatic |
Definition at line 294 of file satSolver2.h.
|
inlinestatic |
Definition at line 275 of file satSolver2.h.
|
inlinestatic |
Definition at line 263 of file satSolver2.h.
|
inlinestatic |
Definition at line 354 of file satSolver2.h.
|
inlinestatic |
Definition at line 319 of file satSolver2.h.
int sat_solver2_addclause | ( | sat_solver2 * | s, |
lit * | begin, | ||
lit * | end, | ||
int | Id | ||
) |
Definition at line 1287 of file satSolver2.c.
|
inlinestatic |
Definition at line 248 of file satSolver2.h.
void sat_solver2_delete | ( | sat_solver2 * | s | ) |
Definition at line 1225 of file satSolver2.c.
|
inlinestatic |
Definition at line 228 of file satSolver2.h.
double sat_solver2_memory | ( | sat_solver2 * | s, |
int | fAll | ||
) |
Definition at line 1692 of file satSolver2.c.
double sat_solver2_memory_proof | ( | sat_solver2 * | s | ) |
Definition at line 1733 of file satSolver2.c.
|
inlinestatic |
Definition at line 195 of file satSolver2.h.
|
inlinestatic |
Definition at line 205 of file satSolver2.h.
sat_solver2* sat_solver2_new | ( | void | ) |
Definition at line 1109 of file satSolver2.c.
|
inlinestatic |
Definition at line 200 of file satSolver2.h.
|
inlinestatic |
Definition at line 190 of file satSolver2.h.
void sat_solver2_reducedb | ( | sat_solver2 * | s | ) |
Definition at line 1406 of file satSolver2.c.
void sat_solver2_rollback | ( | sat_solver2 * | s | ) |
Definition at line 1586 of file satSolver2.c.
|
inlinestatic |
Definition at line 241 of file satSolver2.h.
|
inlinestatic |
Definition at line 234 of file satSolver2.h.
void sat_solver2_setnvars | ( | sat_solver2 * | s, |
int | n | ||
) |
Definition at line 1170 of file satSolver2.c.
int sat_solver2_simplify | ( | sat_solver2 * | s | ) |
Definition at line 996 of file satSolver2.c.
int sat_solver2_solve | ( | sat_solver2 * | s, |
lit * | begin, | ||
lit * | end, | ||
ABC_INT64_T | nConfLimit, | ||
ABC_INT64_T | nInsLimit, | ||
ABC_INT64_T | nConfLimitGlobal, | ||
ABC_INT64_T | nInsLimitGlobal | ||
) |
Definition at line 1835 of file satSolver2.c.
|
inlinestatic |
Definition at line 215 of file satSolver2.h.
|
inlinestatic |
Definition at line 210 of file satSolver2.h.
void Sat_Solver2DoubleClauses | ( | sat_solver2 * | p, |
int | iVar | ||
) |
int* Sat_Solver2GetModel | ( | sat_solver2 * | p, |
int * | pVars, | ||
int | nVars | ||
) |
Function*************************************************************
Synopsis [Returns a counter-example.]
Description []
SideEffects []
SeeAlso []
Definition at line 287 of file satUtil.c.
void Sat_Solver2PrintStats | ( | FILE * | pFile, |
sat_solver2 * | s | ||
) |
void Sat_Solver2WriteDimacs | ( | sat_solver2 * | p, |
char * | pFileName, | ||
lit * | assumptionsBegin, | ||
lit * | assumptionsEnd, | ||
int | incrementVars | ||
) |
Definition at line 123 of file satUtil.c.
int var_is_assigned | ( | sat_solver2 * | s, |
int | v | ||
) |
Definition at line 83 of file satSolver2.c.
int var_is_partA | ( | sat_solver2 * | s, |
int | v | ||
) |
Definition at line 84 of file satSolver2.c.
void var_set_partA | ( | sat_solver2 * | s, |
int | v, | ||
int | partA | ||
) |
Definition at line 85 of file satSolver2.c.