/* Schedule 1622 of 2025/01/26 23:40:10 */ #include "driver.h" #include "schedule.h" #include <stdlib.h> schedule_t make_schedule() { schedule_t sched; int nthread = 1; sched.kind = SET; sched.num_ops = 3; sched.nthread = nthread; sched.npreAdd = 0; sched.preAdds = NULL; sched.nstep = 3; sched.nsteps = malloc(nthread*sizeof(int)); sched.nsteps[0] = 3; sched.steps = malloc(nthread*sizeof(step_t*)); for (int i=0; i<nthread; i++) sched.steps[i] = malloc(sched.nsteps[i]*sizeof(step_t)); sched.steps[0][0] = schedule_make_step_1(CONTAINS, 2); sched.steps[0][1] = schedule_make_step_1(ADD, 3); sched.steps[0][2] = schedule_make_step_1(CONTAINS, 1); return sched; }