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

extern "C" void inner_loop_003(struct loop_003_data * data) {
  double * a = data->a;
  double * b = data->b;
  int n = data->n;

  double res = 0.0;
  for (int i = 0; i < n; i++) {
    res += a[i] * b[i];
  }
  data->res = res;
}