#include "key.h" #include "hashtable.h" #include "memory.h" #include "primes.h" #include #include #include #include void verify_hash_instance (bytevec kv_v, ITEMLEN kl, bytevec dv_v, ITEMLEN dl, int N, int *data, char *saw) { char *kv = (char*)kv_v; char *dv = (char*)dv_v; int num, k; assert(kv[0]=='k'); assert(dv[0]=='d'); assert(strcmp(kv+1, dv+1)==0); assert(strlen(kv)+1==kl); assert(strlen(dv)+1==dl); num = atoi(kv+1); for (k=0; k