Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
another bunch of cleanups
[simgrid.git] / src / mc / checker / Checker.cpp
1 /* Copyright (c) 2016-2019. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #include "src/mc/checker/Checker.hpp"
8 #include "src/mc/ModelChecker.hpp"
9 #include "xbt/asserts.h"
10
11 namespace simgrid {
12 namespace mc {
13
14 Checker::Checker(Session& s) : session_(&s)
15 {
16   xbt_assert(mc_model_checker);
17   xbt_assert(mc_model_checker->getChecker() == nullptr);
18   mc_model_checker->setChecker(this);
19 }
20
21 } // namespace mc
22 } // namespace simgrid