1 /* Copyright (c) 2014-2022. 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. */
11 #include "mc/datatypes.h"
12 #include "src/mc/mc_hash.hpp"
13 #include "src/mc/mc_private.hpp"
14 #include "src/mc/sosp/Snapshot.hpp"
17 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_hash, mc, "Logging specific to mc_hash");
25 hash_type state_ = 5381LL;
31 state_ = (state_ << 5) + state_ + x;
33 hash_type value() const { return state_; }
38 hash_type hash(Snapshot const& snapshot)
40 XBT_DEBUG("START hash %ld", snapshot.num_state_);
46 // * basic stack frame information
47 // * stack frame local variables
48 XBT_DEBUG("END hash %ld", snapshot.num_state_);