1 /* Copyright (c) 2014-2017. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
13 #include "mc/datatypes.h"
14 #include "src/mc/mc_hash.hpp"
15 #include "src/mc/mc_private.hpp"
16 #include "src/mc/mc_snapshot.hpp"
19 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_hash, mc, "Logging specific to mc_hash");
27 hash_type state_ = 5381LL;
33 state_ = (state_ << 5) + state_ + state_;
43 hash_type hash(Snapshot const& snapshot)
45 XBT_DEBUG("START hash %i", snapshot.num_state);
48 // TODO, heap_bytes_used
49 // TODO, root variables
50 // TODO, basic stack frame information
51 // TODO, stack frame local variables
52 XBT_DEBUG("END hash %i", snapshot.num_state);