/* * Command line execution: * civl verify -por=new -inputNTHREADS=10 -inputN=20 threadprivate.cvl */ #include #include $input int NTHREADS; $input int N; #define OWNS(numIters, threadId, index) ((index)%NTHREADS==threadId) $heap h; $proc threads[NTHREADS]; int calculate_sum(int length, int *_pglobal) { int sum = 0; for (int j=0; j