summaryrefslogtreecommitdiffstats
path: root/src/opt/dar
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2012-07-07 18:15:08 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2012-07-07 18:15:08 -0700
commit4760983a461142eacceeed45ddcf5598e6a389a2 (patch)
tree87afc6370242742e1571cc42ff7824a9d8ce722f /src/opt/dar
parent3aab7245738a69f1dd4d898493d5dabf6596ea61 (diff)
downloadabc-4760983a461142eacceeed45ddcf5598e6a389a2.tar.gz
abc-4760983a461142eacceeed45ddcf5598e6a389a2.tar.bz2
abc-4760983a461142eacceeed45ddcf5598e6a389a2.zip
Fixing time primtouts throughout the code.
Diffstat (limited to 'src/opt/dar')
-rw-r--r--src/opt/dar/darLib.c4
-rw-r--r--src/opt/dar/darScript.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/opt/dar/darLib.c b/src/opt/dar/darLib.c
index 67a5f59e..acf49b02 100644
--- a/src/opt/dar/darLib.c
+++ b/src/opt/dar/darLib.c
@@ -592,7 +592,7 @@ Dar_Lib_t * Dar_LibRead()
***********************************************************************/
void Dar_LibStart()
{
-// int 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
diff --git a/src/opt/dar/darScript.c b/src/opt/dar/darScript.c
index be67b212..b59626af 100644
--- a/src/opt/dar/darScript.c
+++ b/src/opt/dar/darScript.c
@@ -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();