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

extern "C" void inner_loop_126(struct loop_126_data * data) {
  uint32_t *a = data->a;
  uint32_t *b = data->b;
  int n = data->n;

  uint32_t res = 0;
  for (int i = 0; i < n; i++) {
    res += a[i] * b[i];
    if (res % 2) {
      res++;
    }
  }
  data->res = res;
}