extern int __VERIFIER_nondet_int(void); int foo(int K,int x){ while (x != K) { if (x > K) { x = x - 1; } else { x = x + 1; } } return 0; }