summaryrefslogtreecommitdiffstats
path: root/src/aig/saig/saigAbsPba.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/aig/saig/saigAbsPba.c')
-rw-r--r--src/aig/saig/saigAbsPba.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/aig/saig/saigAbsPba.c b/src/aig/saig/saigAbsPba.c
index 42744459..9a10edb6 100644
--- a/src/aig/saig/saigAbsPba.c
+++ b/src/aig/saig/saigAbsPba.c
@@ -254,9 +254,9 @@ Vec_Int_t * Saig_ManPbaDerive( Aig_Man_t * pAig, int nInputs, int nStart, int nF
sat_solver * pSat;
Cnf_Dat_t * pCnf;
Aig_Obj_t * pObj;
- int nTimeToStop = time(NULL) + TimeLimit;
int nCoreLits, * pCoreLits;
- int i, iVar, RetValue, clk;
+ int i, iVar, RetValue;
+ clock_t clk;
if ( fVerbose )
{
if ( TimeLimit )
@@ -296,7 +296,7 @@ Abc_PrintTime( 1, "Preparing", clock() - clk );
// set runtime limit
if ( TimeLimit )
- sat_solver_set_runtime_limit( pSat, nTimeToStop );
+ sat_solver_set_runtime_limit( pSat, TimeLimit ? TimeLimit * CLOCKS_PER_SEC + clock(): 0 );
// run SAT solver
clk = clock();