summaryrefslogtreecommitdiff
path: root/Source/GPUVerify/IRaceInstrumenter.cs
blob: 2c9d241087c6d6f9ee229035c9bb0012b1b35418 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Boogie;

namespace GPUVerify
{
    interface IRaceInstrumenter
    {
        void AddRaceCheckingCandidateInvariants(WhileCmd wc);
        void AddKernelPrecondition();

        // Summary:
        // Returns whether we should continue.
        // E.g. if race checking code could not be added because
        // the specified accesses to check were read/read or did not exist,
        // this will return false.
        bool AddRaceCheckingInstrumentation();

        BigBlock MakeRaceCheckingStatements(IToken tok);

        void CheckForRaces(BigBlock bb, Variable v, bool ReadWriteOnly);

        void AddRaceCheckingCandidateRequires(Procedure Proc);

        void AddRaceCheckingCandidateEnsures(Procedure Proc);

        void AddNoRaceContract(Procedure Proc);

        void AddNoRaceInvariants(Implementation Impl);
    }
}