Adding STL stuff and operator news of snapshot to model-checker. Need to actuallly...
[c11tester.git] / userprog.c
index ba0c867fd195c86b08cee679468f9a93624736a1..5598bfb4b7b6558496b2ea5383d90500d8e014a2 100644 (file)
@@ -8,14 +8,14 @@ static void a(atomic_int *obj)
        int i;
        int ret;
 
-       for (i = 0; i < 10; i++) {
+       for (i = 0; i < 7; i++) {
                printf("Thread %d, loop %d\n", thrd_current(), i);
-               switch (i % 4) {
+               switch (i  ) {
                case 1:
                        ret = atomic_load(obj);
                        printf("Read value: %d\n", ret);
                        break;
-               case 3:
+               case 0:
                        atomic_store(obj, i);
                        printf("Write value: %d\n", i);
                        break;