1 /* Copyright (c) 2014-2019. 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. */
12 #include "mc/datatypes.h"
13 #include "src/mc/mc_hash.hpp"
14 #include "src/mc/mc_private.hpp"
15 #include "src/mc/sosp/mc_snapshot.hpp"
18 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_hash, mc, "Logging specific to mc_hash");
26 hash_type state_ = 5381LL;
32 state_ = (state_ << 5) + state_ + x;
42 hash_type hash(Snapshot const& snapshot)
44 XBT_DEBUG("START hash %i", snapshot.num_state_);
50 // * basic stack frame information
51 // * stack frame local variables
52 XBT_DEBUG("END hash %i", snapshot.num_state_);