1 /* Copyright (c) 2014-2015. 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. */
11 #include "mc_private.h"
12 #include "mc/datatypes.h"
13 #include "mc_hash.hpp"
16 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_hash, mc, "Logging specific to mc_hash");
24 hash_type state_ = 5381ll;
29 state_ = (state_ << 5) + state_ + (std::uint64_t) value;
39 hash_type hash(Snapshot const& snapshot)
41 XBT_DEBUG("START hash %i", snapshot.num_state);
44 // TODO, heap_bytes_used
45 // TODO, root variables
46 // TODO, basic stack frame information
47 // TODO, stack frame local variables
48 XBT_DEBUG("END hash %i", snapshot.num_state);