extern void abort(void); extern void __assert_fail (const char *__assertion, const char *__file, unsigned int __line, const char *__function) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); extern void __assert_perror_fail (int __errnum, const char *__file, unsigned int __line, const char *__function) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); extern void __assert (const char *__assertion, const char *__file, int __line) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); void reach_error() { ((void) sizeof ((0) ? 1 : 0), __extension__ ({ if (0) ; else __assert_fail ("0", "rangesum.c", 17, __extension__ __PRETTY_FUNCTION__); })); } extern int __VERIFIER_nondet_int(void); int N; void init_nondet(int x[N]) { int i; for (i = 0; i < N; i++) { x[i] = __VERIFIER_nondet_int(); } } int rangesum (int x[N]) { int i; long long ret; ret = 0; int cnt = 0; for (i = 0; i < N; i++) { if( i > N/2){ ret = ret + x[i]; cnt = cnt + 1; } } if ( cnt !=0) return ret / cnt; else return 0; } int main () { N = __VERIFIER_nondet_int(); if (N > 1) { int x[N]; init_nondet(x); int temp; int ret; int ret2; int ret5; ret = rangesum(x); temp=x[0];x[0] = x[1]; x[1] = temp; ret2 = rangesum(x); temp=x[0]; for(int i =0 ; i