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
4760983a
Commit
4760983a
authored
Jul 07, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing time primtouts throughout the code.
parent
3aab7245
Hide whitespace changes
Inline
Side-by-side
Showing
44 changed files
with
79 additions
and
58 deletions
+79
-58
src/aig/aig/aigCanon.c
+2
-1
src/aig/aig/aigInter.c
+1
-1
src/aig/gia/giaEmbed.c
+2
-1
src/aig/gia/giaForce.c
+1
-1
src/aig/gia/giaSat.c
+2
-1
src/aig/saig/saigAbsCba.c
+1
-1
src/aig/saig/saigHaig.c
+1
-1
src/aig/saig/saigIso.c
+1
-1
src/aig/saig/saigIsoFast.c
+1
-1
src/base/abci/abcCut.c
+1
-1
src/base/abci/abcFraig.c
+1
-1
src/base/abci/abcIvy.c
+1
-1
src/base/abci/abcProve.c
+2
-2
src/base/abci/abcRec.c
+1
-1
src/base/abci/abcRefactor.c
+2
-1
src/base/abci/abcRewrite.c
+1
-1
src/base/abci/fahout_cut.c
+2
-1
src/base/main/mainMC.c
+1
-1
src/bdd/reo/reoTest.c
+1
-1
src/bool/dec/decMan.c
+1
-1
src/demo.c
+1
-1
src/map/amap/amapRule.c
+1
-1
src/map/fpga/fpgaMatch.c
+2
-1
src/map/if/ifCut.c
+1
-1
src/map/if/ifMap.c
+1
-1
src/map/mapper/mapperCut.c
+2
-2
src/opt/cut/abcCut.c
+4
-3
src/opt/dar/darLib.c
+2
-2
src/opt/dar/darScript.c
+2
-1
src/opt/fsim/fsimSim.c
+4
-2
src/opt/fsim/fsimTsim.c
+2
-1
src/opt/fxu/fxuReduce.c
+1
-1
src/opt/mfs/mfsCore.c
+2
-2
src/opt/mfs/mfsCore_.c
+5
-3
src/opt/mfs/mfsGia.c
+2
-1
src/opt/mfs/mfsInter.c
+1
-1
src/opt/mfs/mfsResub_.c
+4
-2
src/opt/nwk/nwkFlow_depth.c
+2
-2
src/proof/cec/cecCorr_updated.c
+5
-4
src/proof/fra/fraInd.c
+2
-1
src/proof/int/intM114p.c
+2
-1
src/sat/bsat/satSolver.c
+2
-1
src/sat/bsat/satSolver2.c
+2
-1
src/sat/msat/msatOrderJ.c
+1
-1
No files found.
src/aig/aig/aigCanon.c
View file @
4760983a
...
...
@@ -175,7 +175,8 @@ void Aig_RManTableResize( Aig_RMan_t * p )
{
Aig_Tru_t
*
pEntry
,
*
pNext
;
Aig_Tru_t
**
pBinsOld
,
**
ppPlace
;
int
nBinsOld
,
Counter
,
i
,
clk
;
int
nBinsOld
,
Counter
,
i
;
clock_t
clk
;
assert
(
p
->
pBins
!=
NULL
);
clk
=
clock
();
// save the old Bins
...
...
src/aig/aig/aigInter.c
View file @
4760983a
...
...
@@ -54,7 +54,7 @@ void Aig_ManInterFast( Aig_Man_t * pManOn, Aig_Man_t * pManOff, int fVerbose )
Cnf_Dat_t
*
pCnfOn
,
*
pCnfOff
;
Aig_Obj_t
*
pObj
,
*
pObj2
;
int
Lits
[
3
],
status
,
i
;
//
in
t clk = clock();
//
clock_
t clk = clock();
assert
(
Aig_ManCiNum
(
pManOn
)
==
Aig_ManCiNum
(
pManOff
)
);
assert
(
Aig_ManCoNum
(
pManOn
)
==
Aig_ManCoNum
(
pManOff
)
);
...
...
src/aig/gia/giaEmbed.c
View file @
4760983a
...
...
@@ -1791,7 +1791,8 @@ void Emb_ManDumpGnuplot( Emb_Man_t * p, char * pName, int fDumpLarge, int fShowI
void
Gia_ManSolveProblem
(
Gia_Man_t
*
pGia
,
Emb_Par_t
*
pPars
)
{
Emb_Man_t
*
p
;
int
i
,
clkSetup
;
int
i
;
clock_t
clkSetup
;
clock_t
clk
;
// Gia_ManTestDistance( pGia );
...
...
src/aig/gia/giaForce.c
View file @
4760983a
...
...
@@ -714,7 +714,7 @@ Vec_Int_t * Frc_ManCollectCos( Frc_Man_t * p )
void
Frc_ManCrossCutTest
(
Frc_Man_t
*
p
,
Vec_Int_t
*
vOrderInit
)
{
Vec_Int_t
*
vOrder
;
//
in
t clk = clock();
//
clock_
t clk = clock();
vOrder
=
vOrderInit
?
vOrderInit
:
Frc_ManCollectCos
(
p
);
printf
(
"CrossCut = %6d
\n
"
,
Frc_ManCrossCut
(
p
,
vOrder
,
0
)
);
printf
(
"CrossCut = %6d
\n
"
,
Frc_ManCrossCut
(
p
,
vOrder
,
1
)
);
...
...
src/aig/gia/giaSat.c
View file @
4760983a
...
...
@@ -354,7 +354,8 @@ void Gia_ManSatExperiment( Gia_Man_t * p )
Gia_Obj_t
*
pObj
;
int
i
,
nLevels
,
nLeaves
,
nNodes
,
nCount
[
2
*
GIA_LIMIT
+
2
]
=
{
0
},
nCountAll
=
0
;
int
Num0
=
0
,
Num1
=
0
;
int
clk
=
clock
(),
nWords
=
0
,
nWords2
=
0
;
clock_t
clk
=
clock
();
int
nWords
=
0
,
nWords2
=
0
;
pMan
=
Gia_ManSatStart
();
// mark the nodes to become roots of leaf-DAGs
Gia_ManSetRefs
(
p
);
...
...
src/aig/saig/saigAbsCba.c
View file @
4760983a
...
...
@@ -787,7 +787,7 @@ Vec_Int_t * Saig_ManCbaFilterInputs( Aig_Man_t * pAig, int iFirstFlopPi, Abc_Cex
{
Saig_ManCba_t
*
p
;
Vec_Int_t
*
vRes
,
*
vReasons
;
in
t
clk
;
clock_
t
clk
;
if
(
Saig_ManPiNum
(
pAig
)
!=
pCex
->
nPis
)
{
printf
(
"Saig_ManCbaFilterInputs(): The PI count of AIG (%d) does not match that of cex (%d).
\n
"
,
...
...
src/aig/saig/saigHaig.c
View file @
4760983a
...
...
@@ -198,7 +198,7 @@ int Aig_ManMapHaigNodes( Aig_Man_t * pHaig )
SeeAlso []
***********************************************************************/
int
Aig_ManHaigVerify
(
Aig_Man_t
*
p
,
Aig_Man_t
*
pAig
,
Aig_Man_t
*
pHaig
,
int
nFrames
,
in
t
clkSynth
)
int
Aig_ManHaigVerify
(
Aig_Man_t
*
p
,
Aig_Man_t
*
pAig
,
Aig_Man_t
*
pHaig
,
int
nFrames
,
clock_
t
clkSynth
)
{
int
nBTLimit
=
0
;
Aig_Man_t
*
pFrames
,
*
pTemp
;
...
...
src/aig/saig/saigIso.c
View file @
4760983a
...
...
@@ -428,7 +428,7 @@ Aig_Man_t * Iso_ManFilterPos( Aig_Man_t * pAig, Vec_Ptr_t ** pvPosEquivs, int fV
Vec_Str_t
*
vStr
,
*
vPrev
;
int
i
,
nPos
;
clock_t
clk
=
clock
();
in
t
clkDup
=
0
,
clkAig
=
0
,
clkIso
=
0
,
clk2
;
clock_
t
clkDup
=
0
,
clkAig
=
0
,
clkIso
=
0
,
clk2
;
*
pvPosEquivs
=
NULL
;
// derive AIG for each PO
...
...
src/aig/saig/saigIsoFast.c
View file @
4760983a
...
...
@@ -181,7 +181,7 @@ Vec_Int_t * Iso_StoCollectInfo( Iso_Sto_t * p, Aig_Obj_t * pPo )
Aig_Man_t
*
pAig
=
p
->
pAig
;
Aig_Obj_t
*
pObj
;
int
i
,
Value
,
Entry
,
*
pPerm
;
//
in
t clk = clock();
//
clock_
t clk = clock();
assert
(
Aig_ObjIsCo
(
pPo
)
);
...
...
src/base/abci/abcCut.c
View file @
4760983a
...
...
@@ -291,7 +291,7 @@ Cut_Man_t * Abc_NtkSeqCuts( Abc_Ntk_t * pNtk, Cut_Params_t * pParams )
Abc_Obj_t * pObj, * pNode;
int i, nIters, fStatus;
Vec_Int_t * vChoices;
in
t clk = clock();
clock_
t clk = clock();
assert( Abc_NtkIsSeq(pNtk) );
assert( pParams->fSeq );
...
...
src/base/abci/abcFraig.c
View file @
4760983a
...
...
@@ -698,7 +698,7 @@ Abc_Ntk_t * Abc_NtkFraigRestore()
Vec_Ptr_t
*
vStore
;
Abc_Ntk_t
*
pNtk
,
*
pFraig
;
int
nWords1
,
nWords2
,
nWordsMin
;
//
in
t clk = clock();
//
clock_
t clk = clock();
// get the stored network
vStore
=
Abc_FrameReadStore
();
...
...
src/base/abci/abcIvy.c
View file @
4760983a
...
...
@@ -543,7 +543,7 @@ int Abc_NtkIvyProve( Abc_Ntk_t ** ppNtk, void * pPars )
// apply AIG rewriting
if
(
pParams
->
fUseRewriting
&&
Abc_NtkNodeNum
(
pNtk
)
>
500
)
{
//
in
t clk = clock();
//
clock_
t clk = clock();
//printf( "Before rwsat = %d. ", Abc_NtkNodeNum(pNtk) );
pParams
->
fUseRewriting
=
0
;
pNtk
=
Abc_NtkBalance
(
pNtkTemp
=
pNtk
,
0
,
0
,
0
);
...
...
src/base/abci/abcProve.c
View file @
4760983a
...
...
@@ -35,7 +35,7 @@ extern int Abc_NtkRefactor( Abc_Ntk_t * pNtk, int nNodeSizeMax, int nConeSizeMa
extern
Abc_Ntk_t
*
Abc_NtkFromFraig
(
Fraig_Man_t
*
pMan
,
Abc_Ntk_t
*
pNtk
);
static
Abc_Ntk_t
*
Abc_NtkMiterFraig
(
Abc_Ntk_t
*
pNtk
,
int
nBTLimit
,
ABC_INT64_T
nInspLimit
,
int
*
pRetValue
,
int
*
pNumFails
,
ABC_INT64_T
*
pNumConfs
,
ABC_INT64_T
*
pNumInspects
);
static
void
Abc_NtkMiterPrint
(
Abc_Ntk_t
*
pNtk
,
char
*
pString
,
in
t
clk
,
int
fVerbose
);
static
void
Abc_NtkMiterPrint
(
Abc_Ntk_t
*
pNtk
,
char
*
pString
,
clock_
t
clk
,
int
fVerbose
);
////////////////////////////////////////////////////////////////////////
...
...
@@ -308,7 +308,7 @@ Abc_Ntk_t * Abc_NtkMiterFraig( Abc_Ntk_t * pNtk, int nBTLimit, ABC_INT64_T nInsp
SeeAlso []
***********************************************************************/
void
Abc_NtkMiterPrint
(
Abc_Ntk_t
*
pNtk
,
char
*
pString
,
in
t
clk
,
int
fVerbose
)
void
Abc_NtkMiterPrint
(
Abc_Ntk_t
*
pNtk
,
char
*
pString
,
clock_
t
clk
,
int
fVerbose
)
{
if
(
!
fVerbose
)
return
;
...
...
src/base/abci/abcRec.c
View file @
4760983a
...
...
@@ -2201,7 +2201,7 @@ int Abc_NtkRecAddCut( If_Man_t * pIfMan, If_Obj_t * pRoot, If_Cut_t * pCut )
unsigned
*
pTruth
;
int
i
,
RetValue
,
nNodes
,
nNodesBeg
,
nInputs
=
s_pMan
->
nVars
,
nLeaves
=
If_CutLeaveNum
(
pCut
);
unsigned
uCanonPhase
;
in
t
clk
,
timeInsert
,
timeBuild
;
clock_
t
clk
,
timeInsert
,
timeBuild
;
//int begin = clock();
assert
(
nInputs
<=
16
);
assert
(
nInputs
==
(
int
)
pCut
->
nLimit
);
...
...
src/base/abci/abcRefactor.c
View file @
4760983a
...
...
@@ -196,7 +196,8 @@ Dec_Graph_t * Abc_NodeRefactor( Abc_ManRef_t * p, Abc_Obj_t * pNode, Vec_Ptr_t *
Abc_Obj_t
*
pFanin
;
Dec_Graph_t
*
pFForm
;
DdNode
*
bNodeFunc
;
int
nNodesSaved
,
nNodesAdded
,
i
,
clk
;
int
nNodesSaved
,
nNodesAdded
,
i
;
clock_t
clk
;
char
*
pSop
;
int
Required
;
...
...
src/base/abci/abcRewrite.c
View file @
4760983a
...
...
@@ -169,7 +169,7 @@ Rwr_ManAddTimeTotal( pManRwr, clock() - clkStart );
// put the nodes into the DFS order and reassign their IDs
{
//
in
t clk = clock();
//
clock_
t clk = clock();
Abc_NtkReassignIds
(
pNtk
);
// ABC_PRT( "time", clock() - clk );
}
...
...
src/base/abci/fahout_cut.c
View file @
4760983a
...
...
@@ -285,7 +285,8 @@ Vec_Int_t * Abc_NtkLutMerge( Abc_Ntk_t * pNtk, Nwk_LMPars_t * pPars )
Vec_Int_t
*
vResult
;
Vec_Ptr_t
*
vStart
,
*
vNext
,
*
vCands1
,
*
vCands2
;
Abc_Obj_t
*
pLut
,
*
pCand
;
int
i
,
k
,
nVertsMax
,
nCands
,
clk
=
clock
();
int
i
,
k
,
nVertsMax
,
nCands
;
clock_t
clk
=
clock
();
// count the number of vertices
nVertsMax
=
0
;
Abc_NtkForEachNode
(
pNtk
,
pLut
,
i
)
...
...
src/base/main/mainMC.c
View file @
4760983a
...
...
@@ -65,7 +65,7 @@ int main( int argc, char * argv[] )
int
fRewrite
=
0
;
int
fNewAlgo
=
1
;
int
fVerbose
=
0
;
in
t
clkTotal
=
clock
();
clock_
t
clkTotal
=
clock
();
if
(
argc
!=
2
)
{
...
...
src/bdd/reo/reoTest.c
View file @
4760983a
...
...
@@ -182,7 +182,7 @@ int Extra_bddReorderTest( DdManager * dd, DdNode * bF )
static
DdManager
*
s_ddmin
;
DdNode
*
bFmin
;
int
nNodes
;
//
in
t clk1;
//
clock_
t clk1;
if
(
s_ddmin
==
NULL
)
s_ddmin
=
Cudd_Init
(
dd
->
size
,
0
,
CUDD_UNIQUE_SLOTS
,
CUDD_CACHE_SLOTS
,
0
);
...
...
src/bool/dec/decMan.c
View file @
4760983a
...
...
@@ -45,7 +45,7 @@ ABC_NAMESPACE_IMPL_START
Dec_Man_t
*
Dec_ManStart
()
{
Dec_Man_t
*
p
;
//
in
t clk = clock();
//
clock_
t clk = clock();
p
=
ABC_ALLOC
(
Dec_Man_t
,
1
);
p
->
pMvcMem
=
Mvc_ManagerStart
();
p
->
vCubes
=
Vec_IntAlloc
(
8
);
...
...
src/demo.c
View file @
4760983a
...
...
@@ -66,7 +66,7 @@ int main( int argc, char * argv[] )
void
*
pAbc
;
char
*
pFileName
;
char
Command
[
1000
];
in
t
clkRead
,
clkResyn
,
clkVer
,
clk
;
clock_
t
clkRead
,
clkResyn
,
clkVer
,
clk
;
//////////////////////////////////////////////////////////////////////////
// get the input file name
...
...
src/map/amap/amapRule.c
View file @
4760983a
...
...
@@ -338,7 +338,7 @@ void Amap_LibCreateRules( Amap_Lib_t * pLib, int fVeryVerbose )
{
Amap_Gat_t
*
pGate
;
int
i
,
nGates
=
0
;
//
in
t clk = clock();
//
clock_
t clk = clock();
pLib
->
fVerbose
=
fVeryVerbose
;
pLib
->
vRules
=
Vec_PtrAlloc
(
100
);
pLib
->
vRulesX
=
Vec_PtrAlloc
(
100
);
...
...
src/map/fpga/fpgaMatch.c
View file @
4760983a
...
...
@@ -667,7 +667,8 @@ Fpga_Cut_t * Fpga_MappingAreaWithoutNode( Fpga_Man_t * p, Fpga_Node_t * pNode, F
{
Fpga_Cut_t * pCut, * pCutBestOld, * pCutRes;
float aAreaCutBest;
int i, clk;
int i;
clock_t clk;
// make sure that at least one cut other than the trivial is present
if ( pNode->pCuts->pNext == NULL )
{
...
...
src/map/if/ifCut.c
View file @
4760983a
...
...
@@ -1407,7 +1407,7 @@ int If_CutCountTotalFanins( If_Man_t * p )
If_Obj_t
*
pObj
;
Vec_Int_t
*
vLeaves
;
int
i
,
nFaninsTotal
=
0
,
Counter
=
0
;
in
t
clk
=
clock
();
clock_
t
clk
=
clock
();
vLeaves
=
Vec_IntAlloc
(
100
);
If_ManForEachObj
(
p
,
pObj
,
i
)
{
...
...
src/map/if/ifMap.c
View file @
4760983a
...
...
@@ -203,7 +203,7 @@ void If_ObjPerformMappingAnd( If_Man_t * p, If_Obj_t * pObj, int Mode, int fPrep
pCut
->
fCompl
=
0
;
if
(
p
->
pPars
->
fTruth
)
{
//
in
t clk = clock();
//
clock_
t clk = clock();
int
RetValue
=
If_CutComputeTruth
(
p
,
pCut
,
pCut0
,
pCut1
,
pObj
->
fCompl0
,
pObj
->
fCompl1
);
// p->timeTruth += clock() - clk;
pCut
->
fUseless
=
0
;
...
...
src/map/mapper/mapperCut.c
View file @
4760983a
...
...
@@ -915,7 +915,7 @@ Map_Cut_t * Map_CutTableConsider( Map_Man_t * pMan, Map_CutTable_t * p, Map_Node
{
Map_Cut_t
*
pCut
;
int
Place
,
i
;
//
in
t clk;
//
clock_
t clk;
// check the cut
Place
=
Map_CutTableLookup
(
p
,
ppNodes
,
nNodes
);
if
(
Place
==
-
1
)
...
...
@@ -996,7 +996,7 @@ Map_Cut_t * Map_CutSortCuts( Map_Man_t * pMan, Map_CutTable_t * p, Map_Cut_t * p
{
Map_Cut_t
*
pListNew
;
int
nCuts
,
i
;
//
in
t clk;
//
clock_
t clk;
// move the cuts from the list into the array
nCuts
=
Map_CutList2Array
(
p
->
pCuts1
,
pList
);
assert
(
nCuts
<=
MAP_CUTS_MAX_COMPUTE
);
...
...
src/opt/cut/abcCut.c
View file @
4760983a
...
...
@@ -77,7 +77,7 @@ Cut_Man_t * Abc_NtkCuts( Abc_Ntk_t * pNtk, Cut_Params_t * pParams )
Vec_Ptr_t
*
vNodes
;
Vec_Int_t
*
vChoices
;
int
i
;
in
t
clk
=
clock
();
clock_
t
clk
=
clock
();
extern
void
Abc_NtkBalanceAttach
(
Abc_Ntk_t
*
pNtk
);
extern
void
Abc_NtkBalanceDetach
(
Abc_Ntk_t
*
pNtk
);
...
...
@@ -163,7 +163,8 @@ void Abc_NtkCutsOracle( Abc_Ntk_t * pNtk, Cut_Oracle_t * p )
{
Abc_Obj_t
*
pObj
;
Vec_Ptr_t
*
vNodes
;
int
i
,
clk
=
clock
();
int
i
;
clock_t
clk
=
clock
();
int
fDrop
=
Cut_OracleReadDrop
(
p
);
assert
(
Abc_NtkIsStrash
(
pNtk
)
);
...
...
@@ -225,7 +226,7 @@ Cut_Man_t * Abc_NtkSeqCuts( Abc_Ntk_t * pNtk, Cut_Params_t * pParams )
Abc_Obj_t * pObj, * pNode;
int i, nIters, fStatus;
Vec_Int_t * vChoices;
in
t clk = clock();
clock_
t clk = clock();
assert( Abc_NtkIsSeq(pNtk) );
assert( pParams->fSeq );
...
...
src/opt/dar/darLib.c
View file @
4760983a
...
...
@@ -592,7 +592,7 @@ Dar_Lib_t * Dar_LibRead()
***********************************************************************/
void
Dar_LibStart
()
{
//
in
t clk = clock();
//
clock_
t clk = clock();
assert
(
s_DarLib
==
NULL
);
s_DarLib
=
Dar_LibRead
();
// printf( "The 4-input library started with %d nodes and %d subgraphs. ", s_DarLib->nObjs - 4, s_DarLib->nSubgrTotal );
...
...
@@ -1189,7 +1189,7 @@ int Dar2_LibEval( Gia_Man_t * p, Vec_Int_t * vCutLits, unsigned uTruth, int fKee
// int fTraining = 0;
Dar_LibObj_t
*
pObj
;
int
Out
,
k
,
Class
,
nNodesSaved
,
nNodesAdded
,
nNodesGained
;
clock_t
clk
=
clock
();
//
clock_t clk = clock();
assert
(
Vec_IntSize
(
vCutLits
)
==
4
);
assert
(
(
uTruth
>>
16
)
==
0
);
// check if the cut exits and assigns leaves and their levels
...
...
src/opt/dar/darScript.c
View file @
4760983a
...
...
@@ -721,7 +721,8 @@ Aig_Man_t * Dar_ManChoiceNew( Aig_Man_t * pAig, Dch_Pars_t * pPars )
int fConstruct = 0;
Aig_Man_t * pMan, * pTemp;
Vec_Ptr_t * vAigs;
int i, clk;
int i;
clock_t clk;
clk = clock();
// vAigs = Dar_ManChoiceSynthesisExt();
...
...
src/opt/fsim/fsimSim.c
View file @
4760983a
...
...
@@ -384,7 +384,8 @@ static inline void Fsim_ManSimulateRound( Fsim_Man_t * p )
void
Fsim_ManSimulateRoundTest
(
Fsim_Man_t
*
p
)
{
Fsim_Obj_t
*
pObj
;
int
i
,
clk
=
clock
();
int
i
;
clock_t
clk
=
clock
();
Fsim_ManForEachObj
(
p
,
pObj
,
i
)
{
}
...
...
@@ -471,7 +472,8 @@ int Fsim_ManSimulate( Aig_Man_t * pAig, Fsim_ParSim_t * pPars )
{
Fsim_Man_t
*
p
;
Sec_MtrStatus_t
Status
;
int
i
,
iOut
,
iPat
,
clk
,
clkTotal
=
clock
(),
clk2
,
clk2Total
=
0
;
int
i
,
iOut
,
iPat
;
clock_t
clk
,
clkTotal
=
clock
(),
clk2
,
clk2Total
=
0
;
assert
(
Aig_ManRegNum
(
pAig
)
>
0
);
if
(
pPars
->
fCheckMiter
)
{
...
...
src/opt/fsim/fsimTsim.c
View file @
4760983a
...
...
@@ -341,7 +341,8 @@ Vec_Ptr_t * Fsim_ManTerSimulate( Aig_Man_t * pAig, int fVerbose )
Fsim_Man_t
*
p
;
Vec_Ptr_t
*
vStates
;
unsigned
**
pBins
,
*
pState
;
int
i
,
nWords
,
nBins
,
clk
,
clkTotal
=
clock
();
int
i
,
nWords
,
nBins
;
clock_t
clk
,
clkTotal
=
clock
();
assert
(
Aig_ManRegNum
(
pAig
)
>
0
);
// create manager
clk
=
clock
();
...
...
src/opt/fxu/fxuReduce.c
View file @
4760983a
...
...
@@ -60,7 +60,7 @@ int Fxu_PreprocessCubePairs( Fxu_Matrix * p, Vec_Ptr_t * vCovers, int nPairsTota
int
nCubes
,
nBitsMax
,
nSum
;
int
CutOffNum
=
-
1
,
CutOffQuant
=
-
1
;
// Suppress "might be used uninitialized"
int
iPair
,
iQuant
,
k
,
c
;
//
in
t clk = clock();
//
clock_
t clk = clock();
char
*
pSopCover
;
int
nFanins
;
...
...
src/opt/mfs/mfsCore.c
View file @
4760983a
...
...
@@ -86,7 +86,7 @@ int Abc_NtkMfsEdgePower( Mfs_Man_t * p, Abc_Obj_t * pNode )
int
Abc_WinNode
(
Mfs_Man_t
*
p
,
Abc_Obj_t
*
pNode
)
{
//
in
t clk;
//
clock_
t clk;
// Abc_Obj_t * pFanin;
// int i;
...
...
@@ -119,7 +119,7 @@ int Abc_WinNode(Mfs_Man_t * p, Abc_Obj_t *pNode)
/*
int Abc_NtkMfsPowerResubNode( Mfs_Man_t * p, Abc_Obj_t * pNode )
{
in
t clk;
clock_
t clk;
Abc_Obj_t * pFanin;
int i;
...
...
src/opt/mfs/mfsCore_.c
View file @
4760983a
...
...
@@ -74,7 +74,7 @@ void Abc_NtkMfsParsDefault( Mfs_Par_t * pPars )
***********************************************************************/
int
Abc_NtkMfsResub
(
Mfs_Man_t
*
p
,
Abc_Obj_t
*
pNode
)
{
in
t
clk
;
clock_
t
clk
;
p
->
nNodesTried
++
;
// prepare data structure for this node
Mfs_ManClean
(
p
);
...
...
@@ -140,7 +140,8 @@ int Abc_NtkMfsNode( Mfs_Man_t * p, Abc_Obj_t * pNode )
float
dProb
;
extern
Hop_Obj_t
*
Abc_NodeIfNodeResyn
(
Bdc_Man_t
*
p
,
Hop_Man_t
*
pHop
,
Hop_Obj_t
*
pRoot
,
int
nVars
,
Vec_Int_t
*
vTruth
,
unsigned
*
puCare
,
float
dProb
);
int
nGain
,
clk
;
int
nGain
;
clock_t
clk
;
p
->
nNodesTried
++
;
// prepare data structure for this node
Mfs_ManClean
(
p
);
...
...
@@ -213,7 +214,8 @@ int Abc_NtkMfs( Abc_Ntk_t * pNtk, Mfs_Par_t * pPars )
Abc_Obj_t
*
pObj
;
Vec_Vec_t
*
vLevels
;
Vec_Ptr_t
*
vNodes
;
int
i
,
k
,
nNodes
,
nFaninMax
,
clk
=
clock
(),
clk2
;
int
i
,
k
,
nNodes
,
nFaninMax
;
clock_t
clk
=
clock
(),
clk2
;
int
nTotalNodesBeg
=
Abc_NtkNodeNum
(
pNtk
);
int
nTotalEdgesBeg
=
Abc_NtkGetTotalFanins
(
pNtk
);
...
...
src/opt/mfs/mfsGia.c
View file @
4760983a
...
...
@@ -205,7 +205,8 @@ int Abc_NtkMfsTryResubOnceGia( Mfs_Man_t * p, int * pCands, int nCands )
int
fVeryVerbose
=
0
;
int
fUseGia
=
1
;
unsigned
*
pData
;
int
i
,
iVar
,
status
,
iOut
,
clk
=
clock
();
int
i
,
iVar
,
status
,
iOut
;
clock_t
clk
=
clock
();
p
->
nSatCalls
++
;
// return -1;
assert
(
p
->
pGia
!=
NULL
);
...
...
src/opt/mfs/mfsInter.c
View file @
4760983a
...
...
@@ -337,7 +337,7 @@ Hop_Obj_t * Abc_NtkMfsInterplate( Mfs_Man_t * p, int * pCands, int nCands )
Hop_Obj_t
*
pFunc
;
int
nFanins
,
status
;
int
c
,
i
,
*
pGloVars
;
//
in
t clk = clock();
//
clock_
t clk = clock();
// p->nDcMints += Abc_NtkMfsInterplateEval( p, pCands, nCands );
...
...
src/opt/mfs/mfsResub_.c
View file @
4760983a
...
...
@@ -143,7 +143,8 @@ int Abc_NtkMfsSolveSatResub( Mfs_Man_t * p, Abc_Obj_t * pNode, int iFanin, int f
int
fVeryVerbose
=
p
->
pPars
->
fVeryVerbose
&&
Vec_PtrSize
(
p
->
vDivs
)
<
80
;
unsigned
*
pData
;
int
pCands
[
MFS_FANIN_MAX
];
int
RetValue
,
iVar
,
i
,
nCands
,
nWords
,
w
,
clk
;
int
RetValue
,
iVar
,
i
,
nCands
,
nWords
,
w
;
clock_t
clk
;
Abc_Obj_t
*
pFanin
;
Hop_Obj_t
*
pFunc
;
assert
(
iFanin
>=
0
);
...
...
@@ -292,7 +293,8 @@ int Abc_NtkMfsSolveSatResub2( Mfs_Man_t * p, Abc_Obj_t * pNode, int iFanin, int
int
fVeryVerbose
=
p
->
pPars
->
fVeryVerbose
&&
Vec_PtrSize
(
p
->
vDivs
)
<
80
;
unsigned
*
pData
,
*
pData2
;
int
pCands
[
MFS_FANIN_MAX
];
int
RetValue
,
iVar
,
iVar2
,
i
,
w
,
nCands
,
clk
,
nWords
,
fBreak
;
int
RetValue
,
iVar
,
iVar2
,
i
,
w
,
nCands
,
nWords
,
fBreak
;
clock_t
clk
;
Abc_Obj_t
*
pFanin
;
Hop_Obj_t
*
pFunc
;
assert
(
iFanin
>=
0
);
...
...
src/opt/nwk/nwkFlow_depth.c
View file @
4760983a
...
...
@@ -465,7 +465,7 @@ Vec_Ptr_t * Nwk_ManRetimeCutForward( Nwk_Man_t * pMan, int nLatches, int fVerbos
Vec_Ptr_t
*
vNodes
;
Nwk_Obj_t
*
pObj
;
int
i
,
RetValue
,
Counter
=
0
,
Counter2
=
0
;
in
t
clk
=
clock
();
clock_
t
clk
=
clock
();
// set the sequential parameters
pMan
->
nLatches
=
nLatches
;
pMan
->
nTruePis
=
Nwk_ManCiNum
(
pMan
)
-
nLatches
;
...
...
@@ -550,7 +550,7 @@ Vec_Ptr_t * Nwk_ManRetimeCutBackward( Nwk_Man_t * pMan, int nLatches, int fVerbo
Vec_Ptr_t
*
vNodes
;
Nwk_Obj_t
*
pObj
;
int
i
,
RetValue
,
Counter
=
0
,
Counter2
=
0
;
in
t
clk
=
clock
();
clock_
t
clk
=
clock
();
// set the sequential parameters
pMan
->
nLatches
=
nLatches
;
pMan
->
nTruePis
=
Nwk_ManCiNum
(
pMan
)
-
nLatches
;
...
...
src/proof/cec/cecCorr_updated.c
View file @
4760983a
...
...
@@ -830,9 +830,10 @@ int Cec_ManLSCorrespondenceClasses( Gia_Man_t * pAig, Cec_ParCor_t * pPars )
Cec_ManSim_t
*
pSim
;
Gia_Man_t
*
pSrm
;
unsigned
*
pInitState
=
NULL
;
int
r
,
RetValue
,
clkTotal
=
clock
();
int
clkSat
=
0
,
clkSim
=
0
,
clkSrm
=
0
;
int
clk2
,
clk
=
clock
();
int
r
,
RetValue
;
clock_t
clkTotal
=
clock
();
clock_t
clkSat
=
0
,
clkSim
=
0
,
clkSrm
=
0
;
clock_t
clk2
,
clk
=
clock
();
ABC_FREE
(
pAig
->
pReprs
);
ABC_FREE
(
pAig
->
pNexts
);
if
(
Gia_ManRegNum
(
pAig
)
==
0
)
...
...
@@ -917,7 +918,7 @@ int Cec_ManLSCorrespondenceClasses( Gia_Man_t * pAig, Cec_ParCor_t * pPars )
int
fChanges
=
1
;
while
(
fChanges
)
{
in
t
clkBmc
=
clock
();
clock_
t
clkBmc
=
clock
();
fChanges
=
0
;
pSrm
=
Gia_ManCorrSpecReduceInit
(
pAig
,
pPars
->
nFrames
,
pPars
->
nPrefix
,
!
pPars
->
fLatchCorr
,
&
vOutputs
,
pPars
->
fUseRings
);
if
(
Gia_ManPoNum
(
pSrm
)
==
0
)
...
...
src/proof/fra/fraInd.c
View file @
4760983a
...
...
@@ -590,7 +590,8 @@ clk2 = clock();
// verify implications using simulation
if ( p->pCla->vImps && Vec_IntSize(p->pCla->vImps) )
{
int Temp, clk = clock();
int Temp;
clock_t clk = clock();
if ( Temp = Fra_ImpVerifyUsingSimulation( p ) )
printf( "Implications failing the simulation test = %d (out of %d). ", Temp, Vec_IntSize(p->pCla->vImps) );
else
...
...
src/proof/int/intM114p.c
View file @
4760983a
...
...
@@ -394,7 +394,8 @@ int Inter_ManPerformOneStepM114p( Inter_Man_t * p, int fUsePudlak, int fUseOther
{
M114p_Solver_t
pSat
;
Vec_Int_t
*
vMapRoots
,
*
vMapVars
;
int
clk
,
status
,
RetValue
;
clock_t
clk
;
int
status
,
RetValue
;
assert
(
p
->
pInterNew
==
NULL
);
// derive the SAT solver
pSat
=
Inter_ManDeriveSatSolverM114p
(
p
->
pInter
,
p
->
pCnfInter
,
...
...
src/sat/bsat/satSolver.c
View file @
4760983a
...
...
@@ -317,7 +317,8 @@ static inline void act_var_rescale(sat_solver* s) {
static inline void act_clause_rescale(sat_solver* s) {
static int Total = 0;
clause** cs = (clause**)vecp_begin(&s->learnts);
int i, clk = clock();
int i;
clock_t clk = clock();
for (i = 0; i < vecp_size(&s->learnts); i++){
unsigned a = clause_activity2(cs[i]);
clause_setactivity2(cs[i], a >> 14);
...
...
src/sat/bsat/satSolver2.c
View file @
4760983a
...
...
@@ -294,7 +294,8 @@ static inline void act_var_rescale(sat_solver2* s) {
static
inline
void
act_clause_rescale
(
sat_solver2
*
s
)
{
static
int
Total
=
0
;
float
*
claActs
=
(
float
*
)
veci_begin
(
&
s
->
claActs
);
int
i
,
clk
=
clock
();
int
i
;
clock_t
clk
=
clock
();
for
(
i
=
0
;
i
<
veci_size
(
&
s
->
claActs
);
i
++
)
claActs
[
i
]
*=
(
float
)
1e-20
;
s
->
cla_inc
*=
(
float
)
1e-20
;
...
...
src/sat/msat/msatOrderJ.c
View file @
4760983a
...
...
@@ -264,7 +264,7 @@ int Msat_OrderVarSelect( Msat_Order_t * p )
Msat_OrderVar_t
*
pVar
,
*
pNext
,
*
pVarBest
;
double
*
pdActs
=
p
->
pSat
->
pdActivity
;
double
dfActBest
;
//
in
t clk = clock();
//
clock_
t clk = clock();
pVarBest
=
NULL
;
dfActBest
=
-
1
.
0
;
...
...
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