#include <simgrid_config.h>
#include <xbt/base.h>
#include <xbt/automaton.h>
-#include <xbt/memory.hpp>
#include "src/mc/mc_state.h"
#include "src/mc/checker/Checker.hpp"
int depth = 0;
bool exploration_started = false;
- Pair(unsigned long expanded_pairs);
- ~Pair();
+ explicit Pair(unsigned long expanded_pairs);
+ ~Pair() = default;
Pair(Pair const&) = delete;
Pair& operator=(Pair const&) = delete;
};
struct XBT_PRIVATE VisitedPair {
- int num = 0;
+ int num;
int other_num = 0; /* Dot output for */
std::shared_ptr<simgrid::mc::State> graph_state = nullptr; /* System state included */
- xbt_automaton_state_t automaton_state = nullptr;
+ xbt_automaton_state_t automaton_state;
std::shared_ptr<const std::vector<int>> atomic_propositions;
std::size_t heap_bytes_used = 0;
int actors_count = 0;
int pair_num, xbt_automaton_state_t automaton_state,
std::shared_ptr<const std::vector<int>> atomic_propositions,
std::shared_ptr<simgrid::mc::State> graph_state);
- ~VisitedPair();
+ ~VisitedPair() = default;
};
class XBT_PRIVATE LivenessChecker : public Checker {
public:
- LivenessChecker(Session& session);
- ~LivenessChecker();
+ explicit LivenessChecker(Session& session);
+ ~LivenessChecker() = default;
void run() override;
RecordTrace getRecordTrace() override;
std::vector<std::string> getTextualTrace() override;