1 /* Copyright (c) 2007-2017. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
6 #ifndef SIMGRID_MC_PRIVATE_H
7 #define SIMGRID_MC_PRIVATE_H
10 #include "xbt/automaton.h"
13 #include "src/mc/mc_forward.hpp"
14 #include "src/xbt/memory_map.hpp"
21 struct DerefAndCompareByActorsCountAndUsedHeap {
22 template<class X, class Y>
23 bool operator()(X const& a, Y const& b)
25 return std::make_pair(a->actors_count, a->heap_bytes_used) < std::make_pair(b->actors_count, b->heap_bytes_used);
35 /********************************* MC Global **********************************/
37 XBT_PRIVATE void MC_init_dot_output();
39 XBT_PRIVATE extern FILE *dot_output;
41 XBT_PRIVATE void MC_show_deadlock(void);
43 /********************************** Snapshot comparison **********************************/
48 /********************************** Miscellaneous **********************************/
57 XBT_PRIVATE void find_object_address(
58 std::vector<simgrid::xbt::VmMap> const& maps, simgrid::mc::ObjectInformation* result);
61 int snapshot_compare(int num1, simgrid::mc::Snapshot* s1, int num2, simgrid::mc::Snapshot* s2);
63 // Move is somewhere else (in the LivenessChecker class, in the Session class?):
64 extern XBT_PRIVATE xbt_automaton_t property_automaton;