#include "src/mc/ObjectInformation.hpp"
#include "src/mc/Variable.hpp"
-#ifdef HAVE_SMPI
+#if HAVE_SMPI
#include "src/smpi/private.h"
#endif
using simgrid::mc::remote;
-extern "C" {
-
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_compare, xbt,
"Logging specific to mc_compare in mc");
-}
-
namespace simgrid {
namespace mc {
{
xbt_assert(r1 && r2, "Missing region.");
-#ifdef HAVE_SMPI
+#if HAVE_SMPI
if (r1->storage_type() == simgrid::mc::StorageType::Privatized) {
xbt_assert(process_index >= 0);
if (r2->storage_type() != simgrid::mc::StorageType::Privatized)
num1 = ((mc_state_t) state1)->num;
num2 = ((mc_state_t) state2)->num;
} else { /* Safety or comm determinism MC */
- s1 = ((mc_visited_state_t) state1)->system_state;
- s2 = ((mc_visited_state_t) state2)->system_state;
- num1 = ((mc_visited_state_t) state1)->num;
- num2 = ((mc_visited_state_t) state2)->num;
+ s1 = ((simgrid::mc::VisitedState*) state1)->system_state;
+ s2 = ((simgrid::mc::VisitedState*) state2)->system_state;
+ num1 = ((simgrid::mc::VisitedState*) state1)->num;
+ num2 = ((simgrid::mc::VisitedState*) state2)->num;
}
int errors = 0;