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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/aig/saig/saigAbsPba.c b/src/aig/saig/saigAbsPba.c
index 574371ff..a42515f3 100644
--- a/src/aig/saig/saigAbsPba.c
+++ b/src/aig/saig/saigAbsPba.c
@@ -254,6 +254,7 @@ 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;
if ( fVerbose )
@@ -295,7 +296,7 @@ Abc_PrintTime( 1, "Preparing", clock() - clk );
// set runtime limit
if ( TimeLimit )
- sat_solver_set_runtime_limit( pSat, clock() + TimeLimit * CLOCKS_PER_SEC );
+ sat_solver_set_runtime_limit( pSat, nTimeToStop );
// run SAT solver
clk = clock();