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
3fed7768
Commit
3fed7768
authored
May 01, 2011
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added switch to bmc3, which allows to replace some PIs with constants.
parent
2140c5d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
9 deletions
+21
-9
src/aig/saig/saigBmc3.c
+21
-9
No files found.
src/aig/saig/saigBmc3.c
View file @
3fed7768
...
...
@@ -1008,12 +1008,12 @@ int Saig_ManBmcCreateCnf( Gia_ManBmc_t * p, Aig_Obj_t * pObj, int iFrame )
SeeAlso []
***********************************************************************/
int
Aig_NodeCompareRefs
De
crease
(
Aig_Obj_t
**
pp1
,
Aig_Obj_t
**
pp2
)
int
Aig_NodeCompareRefs
In
crease
(
Aig_Obj_t
**
pp1
,
Aig_Obj_t
**
pp2
)
{
int
Diff
=
Aig_ObjRefs
(
*
pp1
)
-
Aig_ObjRefs
(
*
pp2
);
if
(
Diff
>
0
)
if
(
Diff
<
0
)
return
-
1
;
if
(
Diff
<
0
)
if
(
Diff
>
0
)
return
1
;
return
0
;
}
...
...
@@ -1037,16 +1037,23 @@ void Saig_ManBmcMarkPis( Aig_Man_t * pAig, int nPisAbstract )
if
(
nPisAbstract
<
1
)
return
;
// sort PIs by the number of their fanouts
// Saig_ManForEachPi( pAig, pObj, i )
// printf( "%d=%d ", i, Aig_ObjRefs(pObj) );
// printf( "\n" );
vPis
=
Vec_PtrAlloc
(
100
);
Saig_ManForEachPi
(
pAig
,
pObj
,
i
)
Vec_PtrPush
(
vPis
,
pObj
);
Vec_PtrSort
(
vPis
,
(
int
(
*
)(
void
))
Aig_NodeCompareRefs
De
crease
);
Vec_PtrSort
(
vPis
,
(
int
(
*
)(
void
))
Aig_NodeCompareRefs
In
crease
);
Vec_PtrForEachEntry
(
Aig_Obj_t
*
,
vPis
,
pObj
,
i
)
if
(
i
>
Saig_ManPiNum
(
pAig
)
-
nPisAbstract
)
{
if
(
i
<
nPisAbstract
)
{
pObj
->
fMarkA
=
1
;
// printf( "%d=%d ", Aig_ObjPioNum(pObj), Aig_ObjRefs(pObj) );
}
}
// printf( "\n" );
// print primary inputs
// Saig_ManForEachPi( pAig, pObj, i )
// printf( "%d=%d ", i, Aig_ObjRefs(pObj) );
// printf( "\n" );
}
/**Function*************************************************************
...
...
@@ -1108,7 +1115,8 @@ int Saig_ManBmcScalable( Aig_Man_t * pAig, Saig_ParBmc_t * pPars )
if
(
p
->
pPars
->
nTimeOut
)
sat_solver_set_runtime_limit
(
p
->
pSat
,
clock
()
+
p
->
pPars
->
nTimeOut
*
CLOCKS_PER_SEC
);
// perform frames
// Saig_ManBmcMarkPis( pAig, pPars->nPisAbstract );
Aig_ManRandom
(
1
);
Saig_ManBmcMarkPis
(
pAig
,
pPars
->
nPisAbstract
);
for
(
f
=
0
;
f
<
pPars
->
nFramesMax
;
f
++
)
{
pPars
->
iFrame
=
f
;
...
...
@@ -1129,6 +1137,10 @@ int Saig_ManBmcScalable( Aig_Man_t * pAig, Saig_ParBmc_t * pPars )
if
(
f
==
0
)
Saig_ManForEachLo
(
p
->
pAig
,
pObj
,
i
)
Saig_ManBmcSetLiteral
(
p
,
pObj
,
0
,
0
);
// set PIs to zero if they are marked
Saig_ManForEachPi
(
p
->
pAig
,
pObj
,
i
)
if
(
pObj
->
fMarkA
)
Saig_ManBmcSetLiteral
(
p
,
pObj
,
f
,
Aig_ManRandom
(
0
)
&
1
);
// add the constraints for this frame
Saig_ManForEachPo
(
pAig
,
pObj
,
i
)
{
...
...
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