diff options
author | qadeer <qadeer@microsoft.com> | 2011-11-09 14:36:32 -0800 |
---|---|---|
committer | qadeer <qadeer@microsoft.com> | 2011-11-09 14:36:32 -0800 |
commit | 29524a38ed773a399011f42526c80ed790ce83d6 (patch) | |
tree | 9cda96b6f41c2eaea296a8ff54ab334ccafba80a /Source/GPUVerify/WriteCollector.cs | |
parent | acd54f7fca4b35dfc516906f95daf7916e8d4b0d (diff) | |
parent | 1388f0d41668c3d3e675a100c815177082e0155b (diff) |
Merge
Diffstat (limited to 'Source/GPUVerify/WriteCollector.cs')
-rw-r--r-- | Source/GPUVerify/WriteCollector.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/GPUVerify/WriteCollector.cs b/Source/GPUVerify/WriteCollector.cs index e8623e3b..d55c5d05 100644 --- a/Source/GPUVerify/WriteCollector.cs +++ b/Source/GPUVerify/WriteCollector.cs @@ -13,15 +13,15 @@ namespace GPUVerify private AccessRecord access = null;
- public WriteCollector(ICollection<Variable> GlobalVariables, ICollection<Variable> TileStaticVariables)
- : base(GlobalVariables, TileStaticVariables)
+ public WriteCollector(INonLocalState NonLocalState)
+ : base(NonLocalState)
{
}
public override AssignLhs VisitSimpleAssignLhs(SimpleAssignLhs node)
{
Debug.Assert(NoWrittenVariable());
- if (GlobalVariables.Contains(node.DeepAssignedVariable) || TileStaticVariables.Contains(node.DeepAssignedVariable))
+ if (NonLocalState.Contains(node.DeepAssignedVariable))
{
access = new AccessRecord(node.DeepAssignedVariable, null, null, null);
}
@@ -37,7 +37,7 @@ namespace GPUVerify {
Debug.Assert(NoWrittenVariable());
- if (!(GlobalVariables.Contains(node.DeepAssignedVariable) || TileStaticVariables.Contains(node.DeepAssignedVariable)))
+ if (!NonLocalState.Contains(node.DeepAssignedVariable))
{
return node;
}
|