/* Compare sequential and parallel sum of array by block partition * Example run: * civl verify -inputB=6 -inputW=3 blockAdderBad.cvl * or (if you want to find the minimal counterexample) * civl verify -inputB=6 -inputW=3 blockAdderBad.cvl -min */ #include $input int B = 6; // upper bound on array length $input int W = 3; // upper bound on number of workers $input int N; // array length $assume(N>=1 && N<=B); $input int P; // number of workers $assume(P>=1 && P<=W); $input double a[N]; double adder_seq() { double s = 0.0; for (int i=0; i