//const int max_elem = 4194304; // for testing const int max_elem = 1024; // for co-simulation void sum (int *a, int *b, int *c, int n);