C   55

R+scs

Guest on 20th July 2022 07:10:16 AM

  1. int main() {
  2.   atomic_int x = 0; atomic_int y = 0;
  3.   {{{ { x.store(1,memory_order_seq_cst);
  4.         y.store(1,memory_order_seq_cst); }
  5.   ||| { r1= y.store(2,memory_order_seq_cst);
  6.         r2= x.load(memory_order_seq_cst).readsvalue(0); }  }}}
  7. }

Raw Paste


Login or Register to edit or fork this paste. It's free.