Commit ecf91190 by Yen-Sheng Ho

added callbacks to sat solvers in pdr

parent 4d479048
...@@ -370,6 +370,8 @@ static inline sat_solver * Pdr_ManNewSolver1( sat_solver * pSat, Pdr_Man_t * p, ...@@ -370,6 +370,8 @@ static inline sat_solver * Pdr_ManNewSolver1( sat_solver * pSat, Pdr_Man_t * p,
} }
pSat = (sat_solver *)Cnf_DataWriteIntoSolverInt( pSat, p->pCnf1, 1, fInit ); pSat = (sat_solver *)Cnf_DataWriteIntoSolverInt( pSat, p->pCnf1, 1, fInit );
sat_solver_set_runtime_limit( pSat, p->timeToStop ); sat_solver_set_runtime_limit( pSat, p->timeToStop );
pSat->RunId = p->pPars->RunId;
pSat->pFuncStop = p->pPars->pFuncStop;
return pSat; return pSat;
} }
...@@ -418,6 +420,8 @@ static inline sat_solver * Pdr_ManNewSolver2( sat_solver * pSat, Pdr_Man_t * p, ...@@ -418,6 +420,8 @@ static inline sat_solver * Pdr_ManNewSolver2( sat_solver * pSat, Pdr_Man_t * p,
// pSat = sat_solver_new(); // pSat = sat_solver_new();
sat_solver_setnvars( pSat, 500 ); sat_solver_setnvars( pSat, 500 );
sat_solver_set_runtime_limit( pSat, p->timeToStop ); sat_solver_set_runtime_limit( pSat, p->timeToStop );
pSat->RunId = p->pPars->RunId;
pSat->pFuncStop = p->pPars->pFuncStop;
return pSat; return pSat;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment