{
// chunkSize must be a power of two
assert(chunkSize == 0 || isPowerOf2(chunkSize));
- assert(totalSize >= 0);
// set up initial chunk.
curAddr = startAddr;
size_type index =
(int64_t)std::floor((val - min_bucket) / bucket_size);
- assert(index >= 0 && index < size());
+ assert(index < size());
cvec[index] += number;
sum += val * number;
size_t bytes_to_read = data_len > 1024 ? 1024 : data_len;
len = read((uint8_t*)&str, bytes_to_read);
str[bytes_to_read] = 0;
+ assert(len >= data_len);
data_len -= len;
- assert(data_len >= 0);
DPRINTF(VNC, "Buffer: %s\n", str);
}
if (blks[i].isValid()) {
assert(blks[i].task_id < ContextSwitchTaskId::NumTaskId);
occupanciesTaskId[blks[i].task_id]++;
+ assert(blks[i].tickInserted <= curTick());
Tick age = curTick() - blks[i].tickInserted;
- assert(age >= 0);
int age_index;
if (age / SimClock::Int::us < 10) { // <10us