namespace simgrid {
namespace mc {
-simgrid::mc::Exploration* Api::initialize(char** argv, simgrid::mc::CheckerAlgorithm algo)
+simgrid::mc::Exploration* Api::initialize(char** argv, simgrid::mc::ExplorationAlgorithm algo)
{
session_ = std::make_unique<simgrid::mc::Session>([argv] {
int i = 1;
simgrid::mc::Exploration* explo;
switch (algo) {
- case CheckerAlgorithm::CommDeterminism:
+ case ExplorationAlgorithm::CommDeterminism:
explo = simgrid::mc::create_communication_determinism_checker(session_.get());
break;
- case CheckerAlgorithm::UDPOR:
+ case ExplorationAlgorithm::UDPOR:
explo = simgrid::mc::create_udpor_checker(session_.get());
break;
- case CheckerAlgorithm::Safety:
+ case ExplorationAlgorithm::Safety:
explo = simgrid::mc::create_safety_checker(session_.get());
break;
- case CheckerAlgorithm::Liveness:
+ case ExplorationAlgorithm::Liveness:
explo = simgrid::mc::create_liveness_checker(session_.get());
break;
namespace simgrid {
namespace mc {
-XBT_DECLARE_ENUM_CLASS(CheckerAlgorithm, Safety, UDPOR, Liveness, CommDeterminism);
+XBT_DECLARE_ENUM_CLASS(ExplorationAlgorithm, Safety, UDPOR, Liveness, CommDeterminism);
/*
** This class aimes to implement FACADE APIs for simgrid. The FACADE layer sits between the CheckerSide
return api;
}
- simgrid::mc::Exploration* initialize(char** argv, simgrid::mc::CheckerAlgorithm algo);
+ simgrid::mc::Exploration* initialize(char** argv, simgrid::mc::ExplorationAlgorithm algo);
// ACTOR APIs
std::vector<simgrid::mc::ActorInformation>& get_actors() const;
#endif
sg_config_init(&argc, argv);
- simgrid::mc::CheckerAlgorithm algo;
+ simgrid::mc::ExplorationAlgorithm algo;
if (_sg_mc_comms_determinism || _sg_mc_send_determinism)
- algo = simgrid::mc::CheckerAlgorithm::CommDeterminism;
+ algo = simgrid::mc::ExplorationAlgorithm::CommDeterminism;
else if (_sg_mc_unfolding_checker)
- algo = simgrid::mc::CheckerAlgorithm::UDPOR;
+ algo = simgrid::mc::ExplorationAlgorithm::UDPOR;
else if (_sg_mc_property_file.get().empty())
- algo = simgrid::mc::CheckerAlgorithm::Safety;
+ algo = simgrid::mc::ExplorationAlgorithm::Safety;
else
- algo = simgrid::mc::CheckerAlgorithm::Liveness;
+ algo = simgrid::mc::ExplorationAlgorithm::Liveness;
int res = SIMGRID_MC_EXIT_SUCCESS;
std::unique_ptr<simgrid::mc::Exploration> checker{simgrid::mc::Api::get().initialize(argv_copy.data(), algo)};