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
a01b4790
Commit
a01b4790
authored
Aug 03, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Scalable gate-level abstraction.
parent
5760c322
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
6 deletions
+24
-6
src/aig/gia/giaAbsGla2.c
+5
-5
src/aig/gia/giaAbsVta.c
+1
-1
src/aig/gia/giaUtil.c
+18
-0
No files found.
src/aig/gia/giaAbsGla2.c
View file @
a01b4790
...
...
@@ -1549,8 +1549,8 @@ int Ga2_ManPerform( Gia_Man_t * pAig, Gia_ParVta_t * pPars )
continue
;
assert
(
Lit
>
1
);
// check for counter-examples
//
if ( p->nSatVars > sat_solver2_nvars(p->pSat) )
//
sat_solver2_setnvars( p->pSat, p->nSatVars );
if
(
p
->
nSatVars
>
sat_solver2_nvars
(
p
->
pSat
)
)
sat_solver2_setnvars
(
p
->
pSat
,
p
->
nSatVars
);
nVarsOld
=
p
->
nSatVars
;
for
(
c
=
0
;
;
c
++
)
{
...
...
@@ -1666,9 +1666,9 @@ int Ga2_ManPerform( Gia_Man_t * pAig, Gia_ParVta_t * pPars )
// if abstraction grew more than a certain percentage, force a restart
if
(
pPars
->
nRatioMax
==
0
)
break
;
if
(
Vec_IntSize
(
p
->
vAbs
)
-
nAbsOld
>=
nAbsOld
*
pPars
->
nRatioMax
/
100
)
if
(
(
f
>
20
||
Vec_IntSize
(
p
->
vAbs
)
>
100
)
&&
Vec_IntSize
(
p
->
vAbs
)
-
nAbsOld
>=
nAbsOld
*
pPars
->
nRatioMax
/
100
)
{
if
(
p
->
pPars
->
fVer
yVer
bose
)
if
(
p
->
pPars
->
fVerbose
)
Abc_Print
(
1
,
"Forcing restart because abstraction grew from %d to %d (more than %d %%).
\n
"
,
nAbsOld
,
Vec_IntSize
(
p
->
vAbs
),
pPars
->
nRatioMax
);
break
;
...
...
@@ -1685,7 +1685,7 @@ int Ga2_ManPerform( Gia_Man_t * pAig, Gia_ParVta_t * pPars )
}
finish:
Prf_ManStopP
(
&
p
->
pSat
->
pPrf2
);
if
(
p
->
pPars
->
fVer
yVer
bose
)
if
(
p
->
pPars
->
fVerbose
)
Abc_Print
(
1
,
"
\n
"
);
// analize the results
if
(
pAig
->
pCexSeq
==
NULL
)
...
...
src/aig/gia/giaAbsVta.c
View file @
a01b4790
...
...
@@ -158,7 +158,7 @@ void Gia_VtaSetDefaultParams( Gia_ParVta_t * p )
p
->
nLearnedPerce
=
40
;
// max number of learned clauses
p
->
nTimeOut
=
0
;
// timeout in seconds
p
->
nRatioMin
=
10
;
// stop when less than this % of object is abstracted
p
->
nRatioMax
=
0
;
// restart when more than this % of object is abstracted
p
->
nRatioMax
=
3
0
;
// restart when more than this % of object is abstracted
p
->
fUseTermVars
=
0
;
// use terminal variables
p
->
fUseRollback
=
0
;
// use rollback to the starting number of frames
p
->
fVerbose
=
0
;
// verbose flag
...
...
src/aig/gia/giaUtil.c
View file @
a01b4790
...
...
@@ -847,6 +847,24 @@ int Gia_NodeRef_rec( Gia_Man_t * p, Gia_Obj_t * pNode )
return
Counter
+
1
;
}
/**Function*************************************************************
Synopsis [References the node's MFFC.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int
Gia_ManPoMffcSize
(
Gia_Man_t
*
p
)
{
Gia_ManCreateRefs
(
p
);
return
Gia_NodeDeref_rec
(
p
,
Gia_ObjFanin0
(
Gia_ManPo
(
p
,
0
))
);
}
/**Function*************************************************************
Synopsis [Returns the number of internal nodes in the MFFC.]
...
...
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