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
b11344b4
Commit
b11344b4
authored
Sep 04, 2015
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Experiments with SAT-based collapsing.
parent
a207f6c0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
132 additions
and
53 deletions
+132
-53
src/base/abc/abcDfs.c
+1
-1
src/base/abci/abcCollapse.c
+1
-1
src/sat/bmc/bmcClp.c
+122
-50
src/sat/bsat/satSolver.c
+1
-1
src/sat/bsat/satSolver.h
+7
-0
No files found.
src/base/abc/abcDfs.c
View file @
b11344b4
...
@@ -970,7 +970,7 @@ Vec_Int_t * Abc_NtkNodeSupportInt( Abc_Ntk_t * pNtk, int iCo )
...
@@ -970,7 +970,7 @@ Vec_Int_t * Abc_NtkNodeSupportInt( Abc_Ntk_t * pNtk, int iCo )
int
Abc_NtkFunctionalIsoGia_rec
(
Gia_Man_t
*
pNew
,
Abc_Obj_t
*
pNode
)
int
Abc_NtkFunctionalIsoGia_rec
(
Gia_Man_t
*
pNew
,
Abc_Obj_t
*
pNode
)
{
{
int
iLit0
,
iLit1
;
int
iLit0
,
iLit1
;
if
(
Abc_NodeIsTravIdCurrent
(
pNode
)
||
Abc_ObjFaninNum
(
pNode
)
==
0
)
if
(
Abc_NodeIsTravIdCurrent
(
pNode
)
||
Abc_ObjFaninNum
(
pNode
)
==
0
||
Abc_ObjIsCi
(
pNode
)
)
return
pNode
->
iTemp
;
return
pNode
->
iTemp
;
assert
(
Abc_ObjIsNode
(
pNode
)
);
assert
(
Abc_ObjIsNode
(
pNode
)
);
Abc_NodeSetTravIdCurrent
(
pNode
);
Abc_NodeSetTravIdCurrent
(
pNode
);
...
...
src/base/abci/abcCollapse.c
View file @
b11344b4
...
@@ -256,7 +256,7 @@ Abc_Ntk_t * Abc_NtkCollapse( Abc_Ntk_t * pNtk, int fBddSizeMax, int fDualRail, i
...
@@ -256,7 +256,7 @@ Abc_Ntk_t * Abc_NtkCollapse( Abc_Ntk_t * pNtk, int fBddSizeMax, int fDualRail, i
int
Abc_NtkClpOneGia_rec
(
Gia_Man_t
*
pNew
,
Abc_Obj_t
*
pNode
)
int
Abc_NtkClpOneGia_rec
(
Gia_Man_t
*
pNew
,
Abc_Obj_t
*
pNode
)
{
{
int
iLit0
,
iLit1
;
int
iLit0
,
iLit1
;
if
(
Abc_NodeIsTravIdCurrent
(
pNode
)
||
Abc_ObjFaninNum
(
pNode
)
==
0
)
if
(
Abc_NodeIsTravIdCurrent
(
pNode
)
||
Abc_ObjFaninNum
(
pNode
)
==
0
||
Abc_ObjIsCi
(
pNode
)
)
return
pNode
->
iTemp
;
return
pNode
->
iTemp
;
assert
(
Abc_ObjIsNode
(
pNode
)
);
assert
(
Abc_ObjIsNode
(
pNode
)
);
Abc_NodeSetTravIdCurrent
(
pNode
);
Abc_NodeSetTravIdCurrent
(
pNode
);
...
...
src/sat/bmc/bmcClp.c
View file @
b11344b4
This diff is collapsed.
Click to expand it.
src/sat/bsat/satSolver.c
View file @
b11344b4
...
@@ -1861,7 +1861,7 @@ int sat_solver_solve(sat_solver* s, lit* begin, lit* end, ABC_INT64_T nConfLimit
...
@@ -1861,7 +1861,7 @@ int sat_solver_solve(sat_solver* s, lit* begin, lit* end, ABC_INT64_T nConfLimit
int
fConfl
=
sat_solver_propagate
(
s
);
int
fConfl
=
sat_solver_propagate
(
s
);
if
(
fConfl
){
if
(
fConfl
){
sat_solver_analyze_final
(
s
,
fConfl
,
0
);
sat_solver_analyze_final
(
s
,
fConfl
,
0
);
assert
(
s
->
conf_final
.
size
>
0
);
//
assert(s->conf_final.size > 0);
sat_solver_canceluntil
(
s
,
0
);
sat_solver_canceluntil
(
s
,
0
);
return
l_False
;
}
return
l_False
;
}
}
}
...
...
src/sat/bsat/satSolver.h
View file @
b11344b4
...
@@ -234,6 +234,13 @@ static void sat_solver_prepare_enum(sat_solver* s, int * pVars, int nVars )
...
@@ -234,6 +234,13 @@ static void sat_solver_prepare_enum(sat_solver* s, int * pVars, int nVars )
for
(
v
=
0
;
v
<
nVars
;
v
++
)
for
(
v
=
0
;
v
<
nVars
;
v
++
)
veci_push
(
&
s
->
vDeciVars
,
pVars
[
v
]);
veci_push
(
&
s
->
vDeciVars
,
pVars
[
v
]);
}
}
static
void
sat_solver_clean_polarity
(
sat_solver
*
s
,
int
*
pVars
,
int
nVars
)
{
int
i
;
assert
(
veci_size
(
&
s
->
vDeciVars
)
==
0
);
for
(
i
=
0
;
i
<
nVars
;
i
++
)
s
->
polarity
[
pVars
[
i
]]
=
0
;
}
static
int
sat_solver_final
(
sat_solver
*
s
,
int
**
ppArray
)
static
int
sat_solver_final
(
sat_solver
*
s
,
int
**
ppArray
)
{
{
...
...
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