diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2013-05-27 15:14:42 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2013-05-27 15:14:42 -0700 |
commit | 22bdf624655bfb1673840937e81eea199ddf512c (patch) | |
tree | 6e7a363855338b54de553bc0b277a43397aa1faf /src | |
parent | 19c25fd6aab057b2373717f996fe538507c1b1e1 (diff) | |
download | abc-22bdf624655bfb1673840937e81eea199ddf512c.tar.gz abc-22bdf624655bfb1673840937e81eea199ddf512c.tar.bz2 abc-22bdf624655bfb1673840937e81eea199ddf512c.zip |
Adding a wrapper around clock() for more accurate time counting in ABC.
Diffstat (limited to 'src')
-rw-r--r-- | src/misc/util/abc_global.h | 2 | ||||
-rw-r--r-- | src/sat/bmc/bmcBmc3.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/misc/util/abc_global.h b/src/misc/util/abc_global.h index f824ea43..5d6a8aeb 100644 --- a/src/misc/util/abc_global.h +++ b/src/misc/util/abc_global.h @@ -268,7 +268,7 @@ static inline int Abc_Lit2LitL( int * pMap, int Lit ) { return Abc_LitNo // time counting -typedef ABC_UINT64_T abctime; +typedef ABC_INT64_T abctime; static inline abctime Abc_Clock() { static abctime PeriodNum = 0; diff --git a/src/sat/bmc/bmcBmc3.c b/src/sat/bmc/bmcBmc3.c index 9d399a20..e312e3be 100644 --- a/src/sat/bmc/bmcBmc3.c +++ b/src/sat/bmc/bmcBmc3.c @@ -1248,7 +1248,7 @@ abctime Saig_ManBmcTimeToStop( Saig_ParBmc_t * pPars, abctime nTimeToStopNG ) abctime nTimeToStopGap = pPars->nTimeOutGap ? pPars->nTimeOutGap * CLOCKS_PER_SEC + Abc_Clock(): 0; abctime nTimeToStop = 0; if ( nTimeToStopNG && nTimeToStopGap ) - nTimeToStop = Abc_MinInt( nTimeToStopNG, nTimeToStopGap ); + nTimeToStop = nTimeToStopNG < nTimeToStopGap ? nTimeToStopNG : nTimeToStopGap; else if ( nTimeToStopNG ) nTimeToStop = nTimeToStopNG; else if ( nTimeToStopGap ) |