Skip to content
Snippets Groups Projects
Commit a2330244 authored by Ghofrane Amaimi's avatar Ghofrane Amaimi
Browse files

add structures of a new node and edge of the product

parent e4210388
No related branches found
No related tags found
1 merge request!6Feature/ufscc emptiness check
Pipeline #4956 failed
...@@ -16,19 +16,24 @@ using namespace std; ...@@ -16,19 +16,24 @@ using namespace std;
bool red=false; bool red=false;
bool blue=false; bool blue=false;
thread_local bool cyan = false; thread_local bool cyan = false;
struct product_node{
struct new_state{
ModelCheckBaseMT &left; ModelCheckBaseMT &left;
shared_ptr<spot::twa_graph> right; shared_ptr<spot::twa_graph> right;
}; };
struct product_node_succ{ struct new_state_succ{
vector<pair<LDDState*, int> > succ_left; LDDState *succ_left;
spot::twa_succ_iterator &sadd structures of a new node and edge of the product ucc_right; spot::twa_succ_iterator *succ_right;
}; };
vector<new_state_succ> successors_new_node;
std::mutex mtx; std::mutex mtx;
//CNDFS::CNDFS(auto mK, const shared_ptr<spot::twa_graph> &mAa) : mK(mK), mAa(mAa) {} //j'ai un problème de passage des paramétres dans le constructeur(pointeur vs adresse)
//CNDFS::CNDFS(ModelCheckBaseMT *mMcl, const shared_ptr<spot::twa_graph> &mAa) : mMcl(mMcl), mAa(mAa) {}
CNDFS::~CNDFS()=default; CNDFS::~CNDFS()=default;
//structure qui represente le produit de 2 états //structure qui represente le produit de 2 états
...@@ -63,7 +68,6 @@ CNDFS::~CNDFS()=default; ...@@ -63,7 +68,6 @@ CNDFS::~CNDFS()=default;
} }
//void CNDFS::spawnThreads(int n, ModelCheckBaseMT &mcl, shared_ptr<spot::twa_graph> af ) //void CNDFS::spawnThreads(int n, ModelCheckBaseMT &mcl, shared_ptr<spot::twa_graph> af )
//{ //{
// std::vector<thread> threads(n); // std::vector<thread> threads(n);
......
...@@ -11,9 +11,9 @@ class CNDFS { ...@@ -11,9 +11,9 @@ class CNDFS {
private: private:
static ModelCheckBaseMT *mMcl; static ModelCheckBaseMT *mMcl;
//shared_ptr<spot::twa_graph> mAa; shared_ptr<spot::twa_graph> mAa;
public: public:
//CNDFS(auto mK, const shared_ptr<spot::twa_graph> &mAa); //CNDFS(ModelCheckBaseMT *mMcl, const shared_ptr<spot::twa_graph> &mAa);
virtual ~CNDFS(); virtual ~CNDFS();
//static void DfsBlue(); //static void DfsBlue();
......
...@@ -528,6 +528,7 @@ int main(int argc, char **argv) ...@@ -528,6 +528,7 @@ int main(int argc, char **argv)
// cout <<"pointeur sur BA "<< typeid(aa).name() <<endl; // cout <<"pointeur sur BA "<< typeid(aa).name() <<endl;
CNDFS cndfs; CNDFS cndfs;
//CNDFS cndfs(*mcl, aa);
//cndfs.DfsBlue(*mcl, aa); //cndfs.DfsBlue(*mcl, aa);
thread thread_1 (cndfs.DfsBlue,ref(*mcl),ref(aa)); thread thread_1 (cndfs.DfsBlue,ref(*mcl),ref(aa));
thread thread_2 (cndfs.DfsBlue,ref(*mcl),ref(aa)); thread thread_2 (cndfs.DfsBlue,ref(*mcl),ref(aa));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment