X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a497c1d62e1064de5a4d765dc43cb9e71243ba95..89a8ddc975b0e3ecd348d5a9a9b9d3de8b579b2b:/src/mc/mc_compare.cpp diff --git a/src/mc/mc_compare.cpp b/src/mc/mc_compare.cpp index fc84a15db9..a5bf48afb1 100644 --- a/src/mc/mc_compare.cpp +++ b/src/mc/mc_compare.cpp @@ -15,7 +15,6 @@ #include "src/internal_config.h" #include "src/mc/mc_forward.hpp" #include "src/mc/mc_safety.h" -#include "src/mc/LivenessChecker.hpp" #include "src/mc/mc_private.h" #include "src/mc/mc_smx.h" #include "src/mc/mc_dwarf.hpp" @@ -147,9 +146,9 @@ static int compare_areas_with_type(ComparisonState& state, if (type->subtype && type->subtype->type == DW_TAG_subroutine_type) return (addr_pointed1 != addr_pointed2); - if (addr_pointed1 == nullptr && addr_pointed2 == NULL) + if (addr_pointed1 == nullptr && addr_pointed2 == nullptr) return 0; - if (addr_pointed1 == nullptr || addr_pointed2 == NULL) + if (addr_pointed1 == nullptr || addr_pointed2 == nullptr) return 1; if (!state.compared_pointers.insert( std::make_pair(addr_pointed1, addr_pointed2)).second) @@ -542,23 +541,5 @@ int snapshot_compare(int num1, simgrid::mc::Snapshot* s1, int num2, simgrid::mc: return errors > 0 || hash_result; } -int snapshot_compare(mc_state_t state1, mc_state_t state2) -{ - simgrid::mc::Snapshot* s1 = state1->system_state; - simgrid::mc::Snapshot* s2 = state2->system_state; - int num1 = state1->num; - int num2 = state2->num; - return snapshot_compare(num1, s1, num2, s2); -} - -int snapshot_compare(simgrid::mc::VisitedState* state1, simgrid::mc::VisitedState* state2) -{ - simgrid::mc::Snapshot* s1 = state1->system_state; - simgrid::mc::Snapshot* s2 = state2->system_state; - int num1 = state1->num; - int num2 = state2->num; - return snapshot_compare(num1, s1, num2, s2); -} - } }