Skip to content
Snippets Groups Projects
Commit 7744f597 authored by Chiheb Amer Abid's avatar Chiheb Amer Abid
Browse files

modifié : src/ModelCheckBaseMT.cpp

	modifié :         src/ModelCheckerTh.cpp
	modifié :         src/main.cpp
parent d9a2375e
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ void ModelCheckBaseMT::loadNet()
ModelCheckBaseMT::~ModelCheckBaseMT()
{
cout<<__func__<<endl;
}
......
......@@ -228,16 +228,13 @@ void ModelCheckerTh::ComputeTh_Succ()
}
ModelCheckerTh::~ModelCheckerTh() {
m_finish=true;
cout<<"Destructor"<<endl;
pthread_barrier_wait(&m_barrier_threads);
cout<<"Before builder..."<<endl;
pthread_barrier_wait(&m_barrier_builder);
cout<<"After barrier..."<<endl;
m_finish=true;
pthread_barrier_wait(&m_barrier_threads);
pthread_barrier_wait(&m_barrier_builder);
for (int i = 0; i < m_nb_thread; i++)
{
cout<<"thread "<<i<<endl;
pthread_join(m_list_thread[i], NULL);
}
cout<<"Exit Destructor"<<endl;
}
......@@ -157,18 +157,17 @@ int main(int argc, char** argv)
mcl->loadNet();
auto k =
std::make_shared<SogKripkeTh>(d,mcl,R.getListTransitionAP(),R.getListPlaceAP());
cout<<"Want to save the graph in a dot file ?";
/* cout<<"Want to save the graph in a dot file ?";
cin>>c;
if (c=='y')
{
fstream file;
string st(argv[3]);
st+=".dot";
file.open(st.c_str(),fstream::out);
spot::print_dot(file, k,"ka");
file.close();
} ;
} */ ;
// Performing on the fly Modelchecking
cout<<"Performing on the fly Modelchecking"<<endl;
......
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