void LivenessChecker::run()
{
XBT_INFO("Check the liveness property %s", _sg_mc_property_file.get().c_str());
- MC_automaton_load(_sg_mc_property_file.get().c_str());
+ mcapi::get().automaton_load(_sg_mc_property_file.get().c_str());
XBT_DEBUG("Starting the liveness algorithm");
mc::session->initialize();
session->execute(transition);
}
+#if SIMGRID_HAVE_MC
+void mc_api::automaton_load(const char *file) const
+{
+ MC_automaton_load(file);
+}
+#endif
+
void mc_api::log_state() const
{
session->log_state();
void s_initialize() const;
void s_close() const;
void execute(Transition const& transition) const;
+
+ // Global APIs
+ #if SIMGRID_HAVE_MC
+ void automaton_load(const char *file) const;
+ #endif
};
} // namespace mc