Newer
Older
//
// Created by ghofrane on 5/4/22.
//
#ifndef PMC_SOG_CNDFS_H
#define PMC_SOG_CNDFS_H
static constexpr uint8_t MAX_THREADS=64;
ModelCheckBaseMT * mMcl;
spot::twa_graph_ptr mAa;
atomic<uint8_t> mIdThread;
static void threadHandler(void *context);
std::thread* mlThread[MAX_THREADS];
std::mutex mMutex;
void spawnThreads();
typedef struct _state{
LDDState *left;
const spot::twa_graph_state* right;
vector<pair<_state* , int>> new_successors ;
bool isAcceptance = false;
bool isConstructed = false;
} _state;
// vector<pair<_state , int>> new_successors;
list<spot::formula> transitionNames;
vector<bdd>temp;
CNDFS(ModelCheckBaseMT *mcl,const spot::twa_graph_ptr &af,const uint16_t& nbTh);
void computeSuccessors(_state *state);
void dfsBlue(_state *state);
_state* getInitialState();
_state* buildState(LDDState* left, spot::state* right, vector<pair<_state *, int>> succ, bool acc, bool constructed);