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];
const spot::twa_graph_state* right;
vector<pair<_state*, int>> new_successors ;
atomic_bool isAcceptance {false};
atomic_bool isConstructed {false};
bool cyan {false};
atomic_bool blue {false};
atomic_bool red {false};
list<spot::formula> transitionNames;
CNDFS(ModelCheckBaseMT *mcl,const spot::twa_graph_ptr &af,const uint16_t& nbTh);
void computeSuccessors(_state *state);
void dfsBlue(_state *state);
_state* getInitialState();
void dfsRed(_state* state);
void WaitForTestCompleted(_state* state);
atomic_bool awaitCondition(_state* state);
_state* buildState(LDDState* left, spot::state* right, vector<pair<_state *, int>> succ, bool acc, bool constructed,bool cyan);