Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  dep+plain.litmus   Sprache: unbekannt

 
Spracherkennung für: .litmus vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

C dep+plain

(*
 * Result: Never
 *
 * This litmus test demonstrates that in LKMM, plain accesses
 * carry dependencies much like accesses to registers:
 * The data stored to *z1 and *z2 by P0() originates from P0()'s
 * READ_ONCE(), and therefore using that data to compute the
 * conditional of P0()'s if-statement creates a control dependency
 * from that READ_ONCE() to P0()'s WRITE_ONCE().
 *)

{}

P0(int *x, int *y, int *z1, int *z2)
{
 int a = READ_ONCE(*x);
 *z1 = a;
 *z2 = *z1;
 if (*z2 == 1)
  WRITE_ONCE(*y, 1);
}

P1(int *x, int *y)
{
 int r = smp_load_acquire(y);
 smp_store_release(x, r);
}

exists (x=1 /\ y=1)

[ Dauer der Verarbeitung: 0.29 Sekunden  ]

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge