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

extern "C" void inner_loop_010(struct loop_010_data * data) {
  float *a = data->a;
  uint64_t n = data->n;

  bool any = 0;
  bool all = 1;

  for (int i = 0; i < n; i++) {
    if (a[i] < 0.0f) {
      any = 1;
    } else {
      all = 0;
    }
  }
  data->res = all ? 1 : any ? 2 : 3;
}