From 3660246ece7a080d237291cd65fe666629b81b2f Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Wed, 22 Apr 2026 17:36:33 +0200 Subject: [PATCH] Fix compile error in eSLIM when ABC_USE_PTHREADS is not used --- src/opt/eslim/windowMan.tpp | 2 +- src/proof/cec/cecProve.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/opt/eslim/windowMan.tpp b/src/opt/eslim/windowMan.tpp index d09b264abe..c540988a38 100644 --- a/src/opt/eslim/windowMan.tpp +++ b/src/opt/eslim/windowMan.tpp @@ -126,7 +126,7 @@ namespace eSLIM { std::cout << "PThreads not available, minimize random window.\n"; std::uniform_int_distribution<> udist(0, windows.size() - 1); int wid = udist(rng); - eSLIM_Man::applyeSLIM(windows[wid], cfg, wlogs[wid]) + eSLIM_Man::applyeSLIM(windows[wid], cfg, wlogs[wid]); #endif } diff --git a/src/proof/cec/cecProve.c b/src/proof/cec/cecProve.c index 8b7aa28681..b309f1a128 100644 --- a/src/proof/cec/cecProve.c +++ b/src/proof/cec/cecProve.c @@ -61,8 +61,10 @@ struct Cec_SproveTrace_t_; static int Cec_SProveCallback( void * pUser, int fSolved, unsigned Result ); static Gia_Man_t * Cec_GiaScorrOld( Gia_Man_t * p, int nTimeOut, Par_Share_t * pShare, struct Cec_ScorrStop_t_ * pStopOut ); static Gia_Man_t * Cec_GiaScorrNew( Gia_Man_t * p, int nTimeOut, Par_Share_t * pShare, struct Cec_ScorrStop_t_ * pStopOut ); +#ifdef ABC_USE_PTHREADS static void Cec_GiaInitThreads( Par_ThData_t * ThData, int nWorkers, Gia_Man_t * p, int nTimeOut, int nTimeOutU, Wlc_Ntk_t * pWlc, int fVerbose, pthread_t * WorkerThread, Par_Share_t * pShare, int * pEngines, int StageId, int NetId, struct Cec_SproveTrace_t_ * pTrace ); static void Cec_GiaStopThreads( Par_ThData_t * ThData, pthread_t * WorkerThread, int nWorkers ); +#endif static int Cec_GiaWaitThreads( Par_ThData_t * ThData, int nWorkers, Gia_Man_t * p, int RetValue, int * pRetEngine ); extern int Ufar_ProveWithTimeout( Wlc_Ntk_t * pNtk, int nTimeOut, int fVerbose, int (*pFuncStop)(int), int RunId );