summaryrefslogtreecommitdiffstats
path: root/src/opt
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2020-11-19 19:22:27 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2020-11-19 19:22:27 -0800
commit48f71adacd7727280498f414ad992257c23d76d7 (patch)
tree0ea6fdbc44c8a917b1a8f5b0e7df9b6b998bf82f /src/opt
parentc3699a2043e94107dd963d5c49789807c135927c (diff)
downloadabc-48f71adacd7727280498f414ad992257c23d76d7.tar.gz
abc-48f71adacd7727280498f414ad992257c23d76d7.tar.bz2
abc-48f71adacd7727280498f414ad992257c23d76d7.zip
Integration with several commands.
Diffstat (limited to 'src/opt')
-rw-r--r--src/opt/dar/darScript.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/opt/dar/darScript.c b/src/opt/dar/darScript.c
index f8fa3788..684e85e6 100644
--- a/src/opt/dar/darScript.c
+++ b/src/opt/dar/darScript.c
@@ -848,6 +848,7 @@ pPars->timeSynth = Abc_Clock() - clk;
***********************************************************************/
Aig_Man_t * Dar_ManChoiceNew( Aig_Man_t * pAig, Dch_Pars_t * pPars )
{
+ extern Aig_Man_t * Cec_ComputeChoicesNew( Gia_Man_t * pGia, int fVerbose );
extern Aig_Man_t * Cec_ComputeChoices( Gia_Man_t * pGia, Dch_Pars_t * pPars );
// extern Aig_Man_t * Dch_DeriveTotalAig( Vec_Ptr_t * vAigs );
extern Aig_Man_t * Dch_ComputeChoices( Aig_Man_t * pAig, Dch_Pars_t * pPars );
@@ -870,15 +871,17 @@ clk = Abc_Clock();
pPars->timeSynth = Abc_Clock() - clk;
// perform choice computation
- if ( pPars->fUseGia )
+ if ( pPars->fUseNew )
+ pMan = Cec_ComputeChoicesNew( pGia, pPars->fVerbose );
+ else if ( pPars->fUseGia )
pMan = Cec_ComputeChoices( pGia, pPars );
else
{
pMan = Gia_ManToAigSkip( pGia, 3 );
- Gia_ManStop( pGia );
pMan = Dch_ComputeChoices( pTemp = pMan, pPars );
Aig_ManStop( pTemp );
}
+ Gia_ManStop( pGia );
// create guidence
vPios = Aig_ManOrderPios( pMan, pAig );