summaryrefslogtreecommitdiffstats
path: root/src/map/if/ifMap.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2014-02-16 19:49:10 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2014-02-16 19:49:10 -0800
commit2140c1298cee7f7ae7310bf208374447c5a0321e (patch)
tree5c8a26045463ac176828b0a8f6d4b32883dafb35 /src/map/if/ifMap.c
parent46532e6c2f3d0dabdb03daad5c55f6f732311797 (diff)
downloadabc-2140c1298cee7f7ae7310bf208374447c5a0321e.tar.gz
abc-2140c1298cee7f7ae7310bf208374447c5a0321e.tar.bz2
abc-2140c1298cee7f7ae7310bf208374447c5a0321e.zip
Removing unused LMS code.
Diffstat (limited to 'src/map/if/ifMap.c')
-rw-r--r--src/map/if/ifMap.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/src/map/if/ifMap.c b/src/map/if/ifMap.c
index 58f0ad7b..d8f8785f 100644
--- a/src/map/if/ifMap.c
+++ b/src/map/if/ifMap.c
@@ -28,6 +28,7 @@ ABC_NAMESPACE_IMPL_START
////////////////////////////////////////////////////////////////////////
extern char * Dau_DsdMerge( char * pDsd0i, int * pPerm0, char * pDsd1i, int * pPerm1, int fCompl0, int fCompl1, int nVars );
+extern int If_CutDelayRecCost3(If_Man_t* p, If_Cut_t* pCut, If_Obj_t * pObj);
////////////////////////////////////////////////////////////////////////
/// FUNCTION DEFINITIONS ///
@@ -164,15 +165,7 @@ void If_ObjPerformMappingAnd( If_Man_t * p, If_Obj_t * pObj, int Mode, int fPrep
{
// recompute the parameters of the best cut
if ( p->pPars->fUserRecLib )
- {
- assert( Abc_NtkRecIsRunning() + Abc_NtkRecIsRunning2() + Abc_NtkRecIsRunning3() == 1 );
- if ( Abc_NtkRecIsRunning3() )
- pCut->Delay = If_CutDelayRecCost3(p, pCut, pObj);
- else if( Abc_NtkRecIsRunning2() )
- pCut->Delay = If_CutDelayRecCost2(p, pCut, pObj);
- else
- pCut->Delay = If_CutDelayRecCost(p, pCut, pObj);
- }
+ pCut->Delay = If_CutDelayRecCost3(p, pCut, pObj);
else if(p->pPars->fDelayOpt)
pCut->Delay = If_CutDelaySopCost(p,pCut);
else if(p->pPars->nGateSize > 0)
@@ -301,15 +294,7 @@ void If_ObjPerformMappingAnd( If_Man_t * p, If_Obj_t * pObj, int Mode, int fPrep
/// if ( p->pPars->pLutStruct )
/// pCut->Delay = If_CutDelayLutStruct( p, pCut, p->pPars->pLutStruct, p->pPars->WireDelay );
if ( p->pPars->fUserRecLib )
- {
- assert( Abc_NtkRecIsRunning() + Abc_NtkRecIsRunning2() + Abc_NtkRecIsRunning3() == 1 );
- if ( Abc_NtkRecIsRunning3() )
- pCut->Delay = If_CutDelayRecCost3(p, pCut, pObj);
- else if( Abc_NtkRecIsRunning2() )
- pCut->Delay = If_CutDelayRecCost2(p, pCut, pObj);
- else
- pCut->Delay = If_CutDelayRecCost(p, pCut, pObj);
- }
+ pCut->Delay = If_CutDelayRecCost3(p, pCut, pObj);
else if (p->pPars->fDelayOpt)
pCut->Delay = If_CutDelaySopCost(p, pCut);
else if(p->pPars->nGateSize > 0)