/* * Benchmarks used in the paper "Commutativity of Reducers" * which was published at TACAS 2015 and * written by Yu-Fang Chen, Chih-Duo Hong, Nishant Sinha, and Bow-Yaw Wang. * http://link.springer.com/chapter/10.1007%2F978-3-662-46681-0_9 * * We checks if a function is "deterministic" w.r.t. all possible permutations * of an input array. Such property is desirable for reducers in the * map-reduce programming model. It ensures that the program always computes * the same results on the same input data set. */ #define N 5 #define fun sep extern void abort(void); #include void reach_error() { assert(0); } int sep (int x[N]) { long long ret =0; for(int i=0;i