Library CompOptCert.ww_RF

Require Import sflib.

Require Import Axioms.
Require Import Basic.
Require Import DataStructure.
Require Import Loc.
Require Import Language.

Require Import Time.
Require Import Event.
Require Import View.
Require Import Cell.
Require Import Memory.
Require Import TView.
Require Import Local.
Require Import Thread.
Require Import Configuration.
Require Import NPConfiguration.

Set Implicit Arguments.

Write-Write Race Freedom

This file defines the write-write race freedom.
A program contains write-write race, if its execution can reach a promise certified state and does a non-atomic write on some location x at this moment with an unobserved message on the location x.
A program is write-write race free, if it does not contain write-write race.
ww_rf in this file defines the write-write race freedom in promising semantics (PS2.1) and corresponds to the definition in Figure 15 in our paper.
ww_rf_np in this file defines the write-write race freedom in the non-preemptive semantics.

A configuration contains ww-race

Program contains ww-race on promising semantics

The ww-race free program on promising semantics

Program contains ww-race on non-preemptive semantics

The ww-race free program on non-preemptive semantics