X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=formal-model%2Fooomem-two-writes%2Fmem.spin;h=9c76c9695c7a81740daa7d5675f3bdbacf69b76e;hb=27afafe29f0395b9f70e7a7e71605598ae3015d3;hp=9202043692079304e5c88460df81cad6a9c15309;hpb=dfa8abef9f88fd28e232b0eab9a105fc50e71959;p=urcu.git diff --git a/formal-model/ooomem-two-writes/mem.spin b/formal-model/ooomem-two-writes/mem.spin index 9202043..9c76c96 100644 --- a/formal-model/ooomem-two-writes/mem.spin +++ b/formal-model/ooomem-two-writes/mem.spin @@ -1,5 +1,18 @@ /* - * mem.spin: Promela code to validate memory barriers with OOO memory. + * mem.spin: Promela code to validate memory barriers with out-of-order memory + * and out-of-order instruction scheduling. + * + * Algorithm verified : + * + * alpha = 0; + * beta = 0; + * + * Process A Process B + * alpha = 1; beta = 1; + * wmb(); rmb(); + * x = beta; y = alpha; + * + * if x = 1, then y = 1 when read. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by