ABC: A System for Sequential Synthesis and Verification
 
Loading...
Searching...
No Matches
giaCSat.c File Reference
#include "gia.h"
Include dependency graph for giaCSat.c:

Go to the source code of this file.

Classes

struct  Cbs_Par_t_
 
struct  Cbs_Que_t_
 
struct  Cbs_Man_t_
 

Macros

#define Cbs_QueForEachEntry(Que, pObj, i)
 
#define Cbs_ClauseForEachVar(p, hClause, pObj)
 
#define Cbs_ClauseForEachVar1(p, hClause, pObj)
 

Typedefs

typedef typedefABC_NAMESPACE_IMPL_START struct Cbs_Par_t_ Cbs_Par_t
 DECLARATIONS ///.
 
typedef struct Cbs_Que_t_ Cbs_Que_t
 

Functions

void Cbs_SetDefaultParams (Cbs_Par_t *pPars)
 FUNCTION DEFINITIONS ///.
 
void Cbs_ManSetConflictNum (Cbs_Man_t *p, int Num)
 
Cbs_Man_tCbs_ManAlloc (Gia_Man_t *pGia)
 
void Cbs_ManStop (Cbs_Man_t *p)
 
Vec_Int_tCbs_ReadModel (Cbs_Man_t *p)
 
int Cbs_ManPropagate (Cbs_Man_t *p, int Level)
 
int Cbs_ManSolve_rec (Cbs_Man_t *p, int Level)
 
int Cbs_ManSolve (Cbs_Man_t *p, Gia_Obj_t *pObj)
 
int Cbs_ManSolve2 (Cbs_Man_t *p, Gia_Obj_t *pObj, Gia_Obj_t *pObj2)
 
void Cbs_ManSatPrintStats (Cbs_Man_t *p)
 
Vec_Int_tCbs_ManSolveMiterNc (Gia_Man_t *pAig, int nConfs, Vec_Str_t **pvStatus, int f0Proved, int fVerbose)
 

Variables

int s_Counter = 0
 

Macro Definition Documentation

◆ Cbs_ClauseForEachVar

#define Cbs_ClauseForEachVar ( p,
hClause,
pObj )
Value:
for ( (p)->pIter = (p)->pClauses.pData + hClause; (pObj = *pIter); (p)->pIter++ )
Cube * p
Definition exorList.c:222

Definition at line 107 of file giaCSat.c.

107#define Cbs_ClauseForEachVar( p, hClause, pObj ) \
108 for ( (p)->pIter = (p)->pClauses.pData + hClause; (pObj = *pIter); (p)->pIter++ )

◆ Cbs_ClauseForEachVar1

#define Cbs_ClauseForEachVar1 ( p,
hClause,
pObj )
Value:
for ( (p)->pIter = (p)->pClauses.pData+hClause+1; (pObj = *pIter); (p)->pIter++ )

Definition at line 109 of file giaCSat.c.

109#define Cbs_ClauseForEachVar1( p, hClause, pObj ) \
110 for ( (p)->pIter = (p)->pClauses.pData+hClause+1; (pObj = *pIter); (p)->pIter++ )

◆ Cbs_QueForEachEntry

#define Cbs_QueForEachEntry ( Que,
pObj,
i )
Value:
for ( i = (Que).iHead; (i < (Que).iTail) && ((pObj) = (Que).pData[i]); i++ )

Definition at line 104 of file giaCSat.c.

104#define Cbs_QueForEachEntry( Que, pObj, i ) \
105 for ( i = (Que).iHead; (i < (Que).iTail) && ((pObj) = (Que).pData[i]); i++ )

Typedef Documentation

◆ Cbs_Par_t

typedef typedefABC_NAMESPACE_IMPL_START struct Cbs_Par_t_ Cbs_Par_t

DECLARATIONS ///.

CFile****************************************************************

FileName [giaCSat.c]

SystemName [ABC: Logic synthesis and verification system.]

PackageName [Scalable AIG package.]

Synopsis [A simple circuit-based solver.]

Author [Alan Mishchenko]

Affiliation [UC Berkeley]

Date [Ver. 1.0. Started - June 20, 2005.]

Revision [

Id
giaCSat.c,v 1.00 2005/06/20 00:00:00 alanmi Exp

]

Definition at line 33 of file giaCSat.c.

◆ Cbs_Que_t

typedef struct Cbs_Que_t_ Cbs_Que_t

Definition at line 53 of file giaCSat.c.

Function Documentation

◆ Cbs_ManAlloc()

Cbs_Man_t * Cbs_ManAlloc ( Gia_Man_t * pGia)

Function*************************************************************

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 153 of file giaCSat.c.

154{
155 Cbs_Man_t * p;
156 p = ABC_CALLOC( Cbs_Man_t, 1 );
157 p->pProp.nSize = p->pJust.nSize = p->pClauses.nSize = 10000;
158 p->pProp.pData = ABC_ALLOC( Gia_Obj_t *, p->pProp.nSize );
159 p->pJust.pData = ABC_ALLOC( Gia_Obj_t *, p->pJust.nSize );
160 p->pClauses.pData = ABC_ALLOC( Gia_Obj_t *, p->pClauses.nSize );
161 p->pClauses.iHead = p->pClauses.iTail = 1;
162 p->vModel = Vec_IntAlloc( 1000 );
163 p->vLevReas = Vec_IntAlloc( 1000 );
164 p->vTemp = Vec_PtrAlloc( 1000 );
165 p->pAig = pGia;
166 Cbs_SetDefaultParams( &p->Pars );
167 return p;
168}
#define ABC_ALLOC(type, num)
Definition abc_global.h:264
#define ABC_CALLOC(type, num)
Definition abc_global.h:265
void Cbs_SetDefaultParams(Cbs_Par_t *pPars)
FUNCTION DEFINITIONS ///.
Definition giaCSat.c:127
struct Cbs_Man_t_ Cbs_Man_t
Definition gia.h:1305
struct Gia_Obj_t_ Gia_Obj_t
Definition gia.h:76
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Cbs_ManPropagate()

int Cbs_ManPropagate ( Cbs_Man_t * p,
int Level )

Function*************************************************************

Synopsis [Propagates all variables.]

Description [Returns 1 if conflict; 0 if no conflict.]

SideEffects []

SeeAlso []

Definition at line 836 of file giaCSat.c.

837{
838 int hClause;
839 Gia_Obj_t * pVar;
840 int i, k;
841 while ( 1 )
842 {
843 Cbs_QueForEachEntry( p->pProp, pVar, i )
844 {
845 if ( (hClause = Cbs_ManPropagateOne( p, pVar, Level )) )
846 return hClause;
847 }
848 p->pProp.iHead = p->pProp.iTail;
849 k = p->pJust.iHead;
850 Cbs_QueForEachEntry( p->pJust, pVar, i )
851 {
852 if ( Cbs_VarIsJust( pVar ) )
853 p->pJust.pData[k++] = pVar;
854 else if ( (hClause = Cbs_ManPropagateTwo( p, pVar, Level )) )
855 return hClause;
856 }
857 if ( k == p->pJust.iTail )
858 break;
859 p->pJust.iTail = k;
860 }
861 return 0;
862}
#define Cbs_QueForEachEntry(Que, pObj, i)
Definition giaCSat.c:104
Here is the caller graph for this function:

◆ Cbs_ManSatPrintStats()

void Cbs_ManSatPrintStats ( Cbs_Man_t * p)

Function*************************************************************

Synopsis [Prints statistics of the manager.]

Description []

SideEffects []

SeeAlso []

Definition at line 1007 of file giaCSat.c.

1008{
1009 printf( "CO = %8d ", Gia_ManCoNum(p->pAig) );
1010 printf( "AND = %8d ", Gia_ManAndNum(p->pAig) );
1011 printf( "Conf = %6d ", p->Pars.nBTLimit );
1012 printf( "JustMax = %5d ", p->Pars.nJustLimit );
1013 printf( "\n" );
1014 printf( "Unsat calls %6d (%6.2f %%) Ave conf = %8.1f ",
1015 p->nSatUnsat, p->nSatTotal? 100.0*p->nSatUnsat/p->nSatTotal :0.0, p->nSatUnsat? 1.0*p->nConfUnsat/p->nSatUnsat :0.0 );
1016 ABC_PRTP( "Time", p->timeSatUnsat, p->timeTotal );
1017 printf( "Sat calls %6d (%6.2f %%) Ave conf = %8.1f ",
1018 p->nSatSat, p->nSatTotal? 100.0*p->nSatSat/p->nSatTotal :0.0, p->nSatSat? 1.0*p->nConfSat/p->nSatSat : 0.0 );
1019 ABC_PRTP( "Time", p->timeSatSat, p->timeTotal );
1020 printf( "Undef calls %6d (%6.2f %%) Ave conf = %8.1f ",
1021 p->nSatUndec, p->nSatTotal? 100.0*p->nSatUndec/p->nSatTotal :0.0, p->nSatUndec? 1.0*p->nConfUndec/p->nSatUndec : 0.0 );
1022 ABC_PRTP( "Time", p->timeSatUndec, p->timeTotal );
1023 ABC_PRT( "Total time", p->timeTotal );
1024}
#define ABC_PRT(a, t)
Definition abc_global.h:255
#define ABC_PRTP(a, t, T)
Definition abc_global.h:258
Here is the caller graph for this function:

◆ Cbs_ManSetConflictNum()

void Cbs_ManSetConflictNum ( Cbs_Man_t * p,
int Num )

Definition at line 137 of file giaCSat.c.

138{
139 p->Pars.nBTLimit = Num;
140}

◆ Cbs_ManSolve()

int Cbs_ManSolve ( Cbs_Man_t * p,
Gia_Obj_t * pObj )

Function*************************************************************

Synopsis [Looking for a satisfying assignment of the node.]

Description [Assumes that each node has flag pObj->fMark0 set to 0. Returns 1 if unsatisfiable, 0 if satisfiable, and -1 if undecided. The node may be complemented. ]

SideEffects [The two procedures differ in the CEX format.]

SeeAlso []

Definition at line 947 of file giaCSat.c.

948{
949 int RetValue = 0;
950 s_Counter = 0;
951 assert( !p->pProp.iHead && !p->pProp.iTail );
952 assert( !p->pJust.iHead && !p->pJust.iTail );
953 assert( p->pClauses.iHead == 1 && p->pClauses.iTail == 1 );
954 p->Pars.nBTThis = p->Pars.nJustThis = p->Pars.nBTThisNc = 0;
955 Cbs_ManAssign( p, pObj, 0, NULL, NULL );
956 if ( !Cbs_ManSolve_rec(p, 0) && !Cbs_ManCheckLimits(p) )
957 Cbs_ManSaveModel( p, p->vModel );
958 else
959 RetValue = 1;
960 Cbs_ManCancelUntil( p, 0 );
961 p->pJust.iHead = p->pJust.iTail = 0;
962 p->pClauses.iHead = p->pClauses.iTail = 1;
963 p->Pars.nBTTotal += p->Pars.nBTThis;
964 p->Pars.nJustTotal = Abc_MaxInt( p->Pars.nJustTotal, p->Pars.nJustThis );
965 if ( Cbs_ManCheckLimits( p ) )
966 RetValue = -1;
967// printf( "%d ", s_Counter );
968 return RetValue;
969}
int Cbs_ManSolve_rec(Cbs_Man_t *p, int Level)
Definition giaCSat.c:875
int s_Counter
Definition giaCSat.c:494
#define assert(ex)
Definition util_old.h:213
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Cbs_ManSolve2()

int Cbs_ManSolve2 ( Cbs_Man_t * p,
Gia_Obj_t * pObj,
Gia_Obj_t * pObj2 )

Definition at line 970 of file giaCSat.c.

971{
972 int RetValue = 0;
973 s_Counter = 0;
974 assert( !p->pProp.iHead && !p->pProp.iTail );
975 assert( !p->pJust.iHead && !p->pJust.iTail );
976 assert( p->pClauses.iHead == 1 && p->pClauses.iTail == 1 );
977 p->Pars.nBTThis = p->Pars.nJustThis = p->Pars.nBTThisNc = 0;
978 Cbs_ManAssign( p, pObj, 0, NULL, NULL );
979 if ( pObj2 )
980 Cbs_ManAssign( p, pObj2, 0, NULL, NULL );
981 if ( !Cbs_ManSolve_rec(p, 0) && !Cbs_ManCheckLimits(p) )
982 Cbs_ManSaveModelAll( p, p->vModel );
983 else
984 RetValue = 1;
985 Cbs_ManCancelUntil( p, 0 );
986 p->pJust.iHead = p->pJust.iTail = 0;
987 p->pClauses.iHead = p->pClauses.iTail = 1;
988 p->Pars.nBTTotal += p->Pars.nBTThis;
989 p->Pars.nJustTotal = Abc_MaxInt( p->Pars.nJustTotal, p->Pars.nJustThis );
990 if ( Cbs_ManCheckLimits( p ) )
991 RetValue = -1;
992// printf( "%d ", s_Counter );
993 return RetValue;
994}
Here is the call graph for this function:

◆ Cbs_ManSolve_rec()

int Cbs_ManSolve_rec ( Cbs_Man_t * p,
int Level )

Function*************************************************************

Synopsis [Solve the problem recursively.]

Description [Returns learnt clause if unsat, NULL if sat or undecided.]

SideEffects []

SeeAlso []

Definition at line 875 of file giaCSat.c.

876{
877 Cbs_Que_t * pQue = &(p->pClauses);
878 Gia_Obj_t * pVar = NULL, * pDecVar;
879 int hClause, hLearn0, hLearn1;
880 int iPropHead, iJustHead, iJustTail;
881 // propagate assignments
882 assert( !Cbs_QueIsEmpty(&p->pProp) );
883 if ( (hClause = Cbs_ManPropagate( p, Level )) )
884 return hClause;
885 // check for satisfying assignment
886 assert( Cbs_QueIsEmpty(&p->pProp) );
887 if ( Cbs_QueIsEmpty(&p->pJust) )
888 return 0;
889 // quit using resource limits
890 p->Pars.nJustThis = Abc_MaxInt( p->Pars.nJustThis, p->pJust.iTail - p->pJust.iHead );
891 if ( Cbs_ManCheckLimits( p ) )
892 return 0;
893 // remember the state before branching
894 iPropHead = p->pProp.iHead;
895 Cbs_QueStore( &p->pJust, &iJustHead, &iJustTail );
896 // find the decision variable
897 if ( p->Pars.fUseHighest )
898 pVar = Cbs_ManDecideHighest( p );
899 else if ( p->Pars.fUseLowest )
900 pVar = Cbs_ManDecideLowest( p );
901 else if ( p->Pars.fUseMaxFF )
902 pVar = Cbs_ManDecideMaxFF( p );
903 else assert( 0 );
904 assert( Cbs_VarIsJust( pVar ) );
905 // chose decision variable using fanout count
906 if ( Gia_ObjRefNum(p->pAig, Gia_ObjFanin0(pVar)) > Gia_ObjRefNum(p->pAig, Gia_ObjFanin1(pVar)) )
907 pDecVar = Gia_Not(Gia_ObjChild0(pVar));
908 else
909 pDecVar = Gia_Not(Gia_ObjChild1(pVar));
910// pDecVar = Gia_NotCond( Gia_Regular(pDecVar), Gia_Regular(pDecVar)->fPhase );
911// pDecVar = Gia_Not(pDecVar);
912 // decide on first fanin
913 Cbs_ManAssign( p, pDecVar, Level+1, NULL, NULL );
914 if ( !(hLearn0 = Cbs_ManSolve_rec( p, Level+1 )) )
915 return 0;
916 if ( pQue->pData[hLearn0] != Gia_Regular(pDecVar) )
917 return hLearn0;
918 Cbs_ManCancelUntil( p, iPropHead );
919 Cbs_QueRestore( &p->pJust, iJustHead, iJustTail );
920 // decide on second fanin
921 Cbs_ManAssign( p, Gia_Not(pDecVar), Level+1, NULL, NULL );
922 if ( !(hLearn1 = Cbs_ManSolve_rec( p, Level+1 )) )
923 return 0;
924 if ( pQue->pData[hLearn1] != Gia_Regular(pDecVar) )
925 return hLearn1;
926 hClause = Cbs_ManResolve( p, Level, hLearn0, hLearn1 );
927// Cbs_ManPrintClauseNew( p, Level, hClause );
928// if ( Level > Cbs_ClauseDecLevel(p, hClause) )
929// p->Pars.nBTThisNc++;
930 p->Pars.nBTThis++;
931 return hClause;
932}
int Cbs_ManPropagate(Cbs_Man_t *p, int Level)
Definition giaCSat.c:836
struct Cbs_Que_t_ Cbs_Que_t
Definition giaCSat.c:53
Gia_Obj_t ** pData
Definition giaCSat.c:59
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Cbs_ManSolveMiterNc()

Vec_Int_t * Cbs_ManSolveMiterNc ( Gia_Man_t * pAig,
int nConfs,
Vec_Str_t ** pvStatus,
int f0Proved,
int fVerbose )

Function*************************************************************

Synopsis [Procedure to test the new SAT solver.]

Description []

SideEffects []

SeeAlso []

Definition at line 1037 of file giaCSat.c.

1038{
1039 extern void Gia_ManCollectTest( Gia_Man_t * pAig );
1040 extern void Cec_ManSatAddToStore( Vec_Int_t * vCexStore, Vec_Int_t * vCex, int Out );
1041 Cbs_Man_t * p;
1042 Vec_Int_t * vCex, * vVisit, * vCexStore;
1043 Vec_Str_t * vStatus;
1044 Gia_Obj_t * pRoot;
1045 int i, status;
1046 abctime clk, clkTotal = Abc_Clock();
1047 assert( Gia_ManRegNum(pAig) == 0 );
1048// Gia_ManCollectTest( pAig );
1049 // prepare AIG
1050 Gia_ManCreateRefs( pAig );
1051 Gia_ManCleanMark0( pAig );
1052 Gia_ManCleanMark1( pAig );
1053 Gia_ManFillValue( pAig ); // maps nodes into trail ids
1054 Gia_ManSetPhase( pAig ); // maps nodes into trail ids
1055 // create logic network
1056 p = Cbs_ManAlloc( pAig );
1057 p->Pars.nBTLimit = nConfs;
1058 // create resulting data-structures
1059 vStatus = Vec_StrAlloc( Gia_ManPoNum(pAig) );
1060 vCexStore = Vec_IntAlloc( 10000 );
1061 vVisit = Vec_IntAlloc( 100 );
1062 vCex = Cbs_ReadModel( p );
1063 // solve for each output
1064 Gia_ManForEachCo( pAig, pRoot, i )
1065 {
1066// printf( "\n" );
1067
1068 Vec_IntClear( vCex );
1069 if ( Gia_ObjIsConst0(Gia_ObjFanin0(pRoot)) )
1070 {
1071 if ( Gia_ObjFaninC0(pRoot) )
1072 {
1073// printf( "Constant 1 output of SRM!!!\n" );
1074 Cec_ManSatAddToStore( vCexStore, vCex, i ); // trivial counter-example
1075 Vec_StrPush( vStatus, 0 );
1076 }
1077 else
1078 {
1079// printf( "Constant 0 output of SRM!!!\n" );
1080 Vec_StrPush( vStatus, 1 );
1081 }
1082 continue;
1083 }
1084 clk = Abc_Clock();
1085 p->Pars.fUseHighest = 1;
1086 p->Pars.fUseLowest = 0;
1087 status = Cbs_ManSolve( p, Gia_ObjChild0(pRoot) );
1088// printf( "\n" );
1089/*
1090 if ( status == -1 )
1091 {
1092 p->Pars.fUseHighest = 0;
1093 p->Pars.fUseLowest = 1;
1094 status = Cbs_ManSolve( p, Gia_ObjChild0(pRoot) );
1095 }
1096*/
1097 Vec_StrPush( vStatus, (char)status );
1098 if ( status == -1 )
1099 {
1100 p->nSatUndec++;
1101 p->nConfUndec += p->Pars.nBTThis;
1102 Cec_ManSatAddToStore( vCexStore, NULL, i ); // timeout
1103 p->timeSatUndec += Abc_Clock() - clk;
1104 continue;
1105 }
1106 if ( status == 1 )
1107 {
1108 if ( f0Proved )
1109 Gia_ManPatchCoDriver( pAig, i, 0 );
1110 p->nSatUnsat++;
1111 p->nConfUnsat += p->Pars.nBTThis;
1112 p->timeSatUnsat += Abc_Clock() - clk;
1113 continue;
1114 }
1115 p->nSatSat++;
1116 p->nConfSat += p->Pars.nBTThis;
1117// Gia_SatVerifyPattern( pAig, pRoot, vCex, vVisit );
1118 Cec_ManSatAddToStore( vCexStore, vCex, i );
1119 p->timeSatSat += Abc_Clock() - clk;
1120 }
1121 Vec_IntFree( vVisit );
1122 p->nSatTotal = Gia_ManPoNum(pAig);
1123 p->timeTotal = Abc_Clock() - clkTotal;
1124 if ( fVerbose )
1126// printf( "RecCalls = %8d. RecClause = %8d. RecNonChro = %8d.\n", p->nRecCall, p->nRecClause, p->nRecNonChro );
1127 Cbs_ManStop( p );
1128 *pvStatus = vStatus;
1129
1130// printf( "Total number of cex literals = %d. (Ave = %d)\n",
1131// Vec_IntSize(vCexStore)-2*p->nSatUndec-2*p->nSatSat,
1132// (Vec_IntSize(vCexStore)-2*p->nSatUndec-2*p->nSatSat)/p->nSatSat );
1133 return vCexStore;
1134}
ABC_INT64_T abctime
Definition abc_global.h:332
typedefABC_NAMESPACE_IMPL_START struct Vec_Int_t_ Vec_Int_t
DECLARATIONS ///.
Definition bblif.c:37
struct Vec_Str_t_ Vec_Str_t
Definition bblif.c:46
void Cec_ManSatAddToStore(Vec_Int_t *vCexStore, Vec_Int_t *vCex, int Out)
Definition cecSolve.c:996
void Cbs_ManSatPrintStats(Cbs_Man_t *p)
Definition giaCSat.c:1007
Cbs_Man_t * Cbs_ManAlloc(Gia_Man_t *pGia)
Definition giaCSat.c:153
Vec_Int_t * Cbs_ReadModel(Cbs_Man_t *p)
Definition giaCSat.c:203
int Cbs_ManSolve(Cbs_Man_t *p, Gia_Obj_t *pObj)
Definition giaCSat.c:947
void Cbs_ManStop(Cbs_Man_t *p)
Definition giaCSat.c:181
void Gia_ManCollectTest(Gia_Man_t *p)
Definition giaDfs.c:232
void Gia_ManFillValue(Gia_Man_t *p)
Definition giaUtil.c:369
struct Gia_Man_t_ Gia_Man_t
Definition gia.h:96
void Gia_ManCleanMark0(Gia_Man_t *p)
Definition giaUtil.c:256
void Gia_ManCreateRefs(Gia_Man_t *p)
Definition giaUtil.c:779
#define Gia_ManForEachCo(p, pObj, i)
Definition gia.h:1236
void Gia_ManSetPhase(Gia_Man_t *p)
Definition giaUtil.c:420
void Gia_ManCleanMark1(Gia_Man_t *p)
Definition giaUtil.c:313
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Cbs_ManStop()

void Cbs_ManStop ( Cbs_Man_t * p)

Function*************************************************************

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 181 of file giaCSat.c.

182{
183 Vec_IntFree( p->vLevReas );
184 Vec_IntFree( p->vModel );
185 Vec_PtrFree( p->vTemp );
186 ABC_FREE( p->pClauses.pData );
187 ABC_FREE( p->pProp.pData );
188 ABC_FREE( p->pJust.pData );
189 ABC_FREE( p );
190}
#define ABC_FREE(obj)
Definition abc_global.h:267
Here is the caller graph for this function:

◆ Cbs_ReadModel()

Vec_Int_t * Cbs_ReadModel ( Cbs_Man_t * p)

Function*************************************************************

Synopsis [Returns satisfying assignment.]

Description []

SideEffects []

SeeAlso []

Definition at line 203 of file giaCSat.c.

204{
205 return p->vModel;
206}
Here is the caller graph for this function:

◆ Cbs_SetDefaultParams()

void Cbs_SetDefaultParams ( Cbs_Par_t * pPars)

FUNCTION DEFINITIONS ///.

Function*************************************************************

Synopsis [Sets default values of the parameters.]

Description []

SideEffects []

SeeAlso []

Definition at line 127 of file giaCSat.c.

128{
129 memset( pPars, 0, sizeof(Cbs_Par_t) );
130 pPars->nBTLimit = 1000; // limit on the number of conflicts
131 pPars->nJustLimit = 100; // limit on the size of justification queue
132 pPars->fUseHighest = 1; // use node with the highest ID
133 pPars->fUseLowest = 0; // use node with the highest ID
134 pPars->fUseMaxFF = 0; // use node with the largest fanin fanout
135 pPars->fVerbose = 1; // print detailed statistics
136}
typedefABC_NAMESPACE_IMPL_START struct Cbs_Par_t_ Cbs_Par_t
DECLARATIONS ///.
Definition giaCSat.c:33
char * memset()
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ s_Counter

int s_Counter = 0

Definition at line 494 of file giaCSat.c.