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

extern "C" void inner_loop_008(struct loop_008_data * data) {
  double *a = data->a;
  int n = data->n;
  double res = 0.0;
  for (int i = 0; i < n; i++) {
    res += a[i];
  }
  data->res = res;
}