7 #include "model-assert.h"
18 static void task(void * param) {
21 if (a != EMPTY && a != ABORT)
22 atomic_load_explicit(&x[a], memory_order_relaxed);
25 int user_main(int argc, char **argv)
28 atomic_store_explicit(&x[0], 0, memory_order_relaxed);
29 atomic_store_explicit(&x[1], 0, memory_order_relaxed);
31 thrd_create(&t, task, 0);
32 //atomic_store_explicit(&x[1], 37, memory_order_relaxed);
41 if (a!=1 && a!=2 && a!=4 && a!= EMPTY)
43 if (b!=1 && b!=2 && b!=4 && b!= EMPTY)
45 if (c!=1 && c!=2 && c!=4 && a!= EMPTY)
47 if (a!=EMPTY && b!=EMPTY && c!=EMPTY && (a+b+c)!=7)
50 printf("a=%d b=%d c=%d\n",a,b,c);
51 MODEL_ASSERT(correct);