Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
abc
Commits
a40c13a9
Commit
a40c13a9
authored
Jul 22, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Recording and reusing learned util clauses in bmc2.
parent
2379dea4
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
3 deletions
+22
-3
src/aig/gia/giaAbsRef.c
+1
-1
src/aig/gia/giaUtil.c
+2
-0
src/aig/saig/saigBmc2.c
+17
-1
src/misc/extra/extraUtilMisc.c
+1
-1
src/sat/bsat/satSolver.c
+1
-0
No files found.
src/aig/gia/giaAbsRef.c
View file @
a40c13a9
...
...
@@ -207,7 +207,7 @@ void Rnm_ManCollect_rec( Gia_Man_t * p, Gia_Obj_t * pObj, Vec_Int_t * vObjs, int
}
void
Rnm_ManCollect
(
Rnm_Man_t
*
p
)
{
Gia_Obj_t
*
pObj
;
Gia_Obj_t
*
pObj
=
NULL
;
int
i
;
// mark const/PIs/PPIs
Gia_ManIncrementTravId
(
p
->
pGia
);
...
...
src/aig/gia/giaUtil.c
View file @
a40c13a9
...
...
@@ -1461,6 +1461,8 @@ unsigned * Gia_ObjComputeTruthTable( Gia_Man_t * p, Gia_Obj_t * pObj )
pTruth
=
Gla_ObjTruthElem
(
p
,
Gia_ObjCioId
(
pRoot
)
);
else
if
(
Gia_ObjIsAnd
(
pRoot
)
)
pTruth
=
Gla_ObjTruthNode
(
p
,
pRoot
);
else
pTruth
=
NULL
;
return
(
unsigned
*
)
Gla_ObjTruthDup
(
p
,
Gla_ObjTruthFree2
(
p
),
pTruth
,
Gia_ObjIsCo
(
pObj
)
&&
Gia_ObjFaninC0
(
pObj
)
);
}
...
...
src/aig/saig/saigBmc2.c
View file @
a40c13a9
...
...
@@ -671,7 +671,7 @@ Abc_Cex_t * Saig_BmcGenerateCounterExample( Saig_Bmc_t * p )
int
Saig_BmcSolveTargets
(
Saig_Bmc_t
*
p
,
int
nStart
,
int
*
pnOutsSolved
)
{
Aig_Obj_t
*
pObj
;
int
i
,
VarNum
,
Lit
,
RetValue
;
int
i
,
k
,
VarNum
,
Lit
,
status
,
RetValue
;
assert
(
Vec_PtrSize
(
p
->
vTargets
)
>
0
);
if
(
p
->
pSat
->
qtail
!=
p
->
pSat
->
qhead
)
{
...
...
@@ -688,7 +688,23 @@ int Saig_BmcSolveTargets( Saig_Bmc_t * p, int nStart, int * pnOutsSolved )
Lit
=
toLitCond
(
VarNum
,
Aig_IsComplement
(
pObj
)
);
RetValue
=
sat_solver_solve
(
p
->
pSat
,
&
Lit
,
&
Lit
+
1
,
(
ABC_INT64_T
)
p
->
nConfMaxOne
,
(
ABC_INT64_T
)
0
,
(
ABC_INT64_T
)
0
,
(
ABC_INT64_T
)
0
);
if
(
RetValue
==
l_False
)
// unsat
{
// add final unit clause
Lit
=
lit_neg
(
Lit
);
status
=
sat_solver_addclause
(
p
->
pSat
,
&
Lit
,
&
Lit
+
1
);
assert
(
status
);
// add learned units
for
(
k
=
0
;
k
<
veci_size
(
&
p
->
pSat
->
unit_lits
);
k
++
)
{
Lit
=
veci_begin
(
&
p
->
pSat
->
unit_lits
)[
k
];
status
=
sat_solver_addclause
(
p
->
pSat
,
&
Lit
,
&
Lit
+
1
);
assert
(
status
);
}
veci_resize
(
&
p
->
pSat
->
unit_lits
,
0
);
// propagate units
sat_solver_compress
(
p
->
pSat
);
continue
;
}
if
(
RetValue
==
l_Undef
)
// undecided
return
l_Undef
;
// generate counter-example
...
...
src/misc/extra/extraUtilMisc.c
View file @
a40c13a9
...
...
@@ -2402,7 +2402,7 @@ void Extra_NpnTest()
clock_t
clk
=
clock
();
word
*
pFuncs
;
int
*
pComp
,
*
pPerm
;
int
i
,
k
,
nUnique
=
0
;
int
i
;
//
, k, nUnique = 0;
/*
// read functions
pFuncs = Extra_NpnRead( "C:\\_projects\\abc\\_TEST\\allan\\lib6var5M.txt", nFuncs );
...
...
src/sat/bsat/satSolver.c
View file @
a40c13a9
...
...
@@ -1526,6 +1526,7 @@ int sat_solver_solve(sat_solver* s, lit* begin, lit* end, ABC_INT64_T nConfLimit
return
l_False
;
}
////////////////////////////////////////////////
veci_resize
(
&
s
->
unit_lits
,
0
);
// set the external limits
s
->
nCalls
++
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment