X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/257911c6117e14fe757b77d9720cbfa88c86fa3c..69aaa26fa5228c31e55086fa166479732a9cd1b7:/src/mc/mc_private.hpp diff --git a/src/mc/mc_private.hpp b/src/mc/mc_private.hpp index d12942f6fd..008fe29f3b 100644 --- a/src/mc/mc_private.hpp +++ b/src/mc/mc_private.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2007-2019. 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. */ @@ -12,30 +12,13 @@ #include "src/mc/mc_forward.hpp" #include "src/xbt/memory_map.hpp" -namespace simgrid { -namespace mc { - -struct DerefAndCompareByActorsCountAndUsedHeap { - template bool operator()(X const& a, Y const& b) - { - return std::make_pair(a->actors_count, a->heap_bytes_used) < std::make_pair(b->actors_count, b->heap_bytes_used); - } -}; -} -} - /********************************* MC Global **********************************/ XBT_PRIVATE void MC_init_dot_output(); XBT_PRIVATE extern FILE* dot_output; -XBT_PRIVATE void MC_show_deadlock(void); - -/********************************** Snapshot comparison **********************************/ - -//#define MC_DEBUG 1 -#define MC_VERBOSE 1 +XBT_PRIVATE void MC_show_deadlock(); /********************************** Miscellaneous **********************************/ namespace simgrid { @@ -45,7 +28,7 @@ XBT_PRIVATE void find_object_address(std::vector const& map simgrid::mc::ObjectInformation* result); XBT_PRIVATE -int snapshot_compare(Snapshot* s1, Snapshot* s2); +bool snapshot_equal(const Snapshot* s1, const Snapshot* s2); // Move is somewhere else (in the LivenessChecker class, in the Session class?): extern XBT_PRIVATE xbt_automaton_t property_automaton;