1 /* Copyright (c) 2015 Regents of the University of California
3 * Author: Brian Demsky <bdemsky@uci.edu>
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * version 2 as published by the Free Software Foundation.
11 #include "execpoint.h"
14 EPValue::EPValue(ExecPoint * ep, EPRecord * epr, const void * _addr, uint64_t ivalue, int ilen) :
20 value(keepbytes(ivalue, ilen)),
28 bool EPValueEquals(EPValue * ep1, EPValue *ep2) {
32 if (ep1->addr != ep2->addr || ep1->len!=ep2->len || ep1->value!=ep2->value)
34 return ExecPointEquals(ep1->execpoint, ep2->execpoint);
37 unsigned int EPValueHash(EPValue *ep) {
38 return ExecPointHash(ep->execpoint) ^ ep->len ^ ep->value ^ ((intptr_t)ep->addr);