xbt_swag_foreach(process, simix_global->process_list)
MC_ignore_heap(&(process->process_hookup), sizeof(process->process_hookup));
simgrid::mc::Client::get()->mainLoop();
+ simgrid::mc::processes_time.clear();
}
/**
MC_pre_modelcheck_liveness();
int res = MC_modelcheck_liveness_main();
- /* We're done */
- simgrid::mc::processes_time.clear();
-
return res;
}
void MC_record_replay_from_string(const char* path_string)
{
+ simgrid::mc::processes_time.resize(simix_process_maxpid);
xbt_dynar_t path = MC_record_from_string(path_string);
mc_record_item_t start = &xbt_dynar_get_as(path, 0, s_mc_record_item_t);
MC_record_replay(start, xbt_dynar_length(path));
xbt_dynar_free(&path);
-}
-
-void MC_record_replay_init()
-{
- simgrid::mc::processes_time.resize(simix_process_maxpid);
+ simgrid::mc::processes_time.clear();
}
}
*/
XBT_PRIVATE void MC_record_replay_from_string(const char* data);
-XBT_PRIVATE void MC_record_replay_init(void);
-
SG_END_DECL()
#endif
*/
void SIMIX_run(void)
{
- if(MC_record_path) {
- MC_record_replay_init();
+ if (MC_record_path) {
MC_record_replay_from_string(MC_record_path);
return;
}