Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
objectification of MC simcall achieved -- many tests still failing
[simgrid.git] / src / mc / ModelChecker.hpp
index cf5c3c6..434609c 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007-2020. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2007-2021. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -22,7 +22,7 @@ namespace mc {
 class ModelChecker {
   CheckerSide checker_side_;
   /** String pool for host names */
-  std::set<std::string> hostnames_;
+  std::set<std::string, std::less<>> hostnames_;
   // This is the parent snapshot of the current state:
   PageStore page_store_{500};
   std::unique_ptr<RemoteSimulation> remote_simulation_;
@@ -48,10 +48,15 @@ public:
   void start();
   void shutdown();
   void resume(simgrid::mc::RemoteSimulation& get_remote_simulation);
-  void handle_events(int fd, short events);
   void wait_for_requests();
   void handle_simcall(Transition const& transition);
 
+  /* Interactions with the simcall observer */
+  bool simcall_is_pending(int aid, int times_considered);
+  bool simcall_is_visible(int aid);
+  std::string simcall_to_string(int aid, int times_considered);
+  std::string simcall_dot_label(int aid, int times_considered);
+
   XBT_ATTRIB_NORETURN void exit(int status);
 
   bool checkDeadlock();