// File: kernel.cpp
#include "loop_102.h"
#include <stdint.h>

extern "C" void inner_loop_102(struct loop_102_data *data) {
    uint32_t *histogram = data->histogram;
    uint64_t histogram_size = data->histogram_size;
    uint32_t *records = data->records;
    int64_t num_records = data->num_records;
    for (uint64_t i = 0; i < histogram_size; i++) histogram[i] = 0;
    for (int64_t i = 0; i < num_records; i++) histogram[records[i]] += 1;
}