summaryrefslogtreecommitdiff
path: root/Source/GPUVerify/WriteCollector.cs
diff options
context:
space:
mode:
authorGravatar qadeer <qadeer@microsoft.com>2011-11-09 14:36:32 -0800
committerGravatar qadeer <qadeer@microsoft.com>2011-11-09 14:36:32 -0800
commit29524a38ed773a399011f42526c80ed790ce83d6 (patch)
tree9cda96b6f41c2eaea296a8ff54ab334ccafba80a /Source/GPUVerify/WriteCollector.cs
parentacd54f7fca4b35dfc516906f95daf7916e8d4b0d (diff)
parent1388f0d41668c3d3e675a100c815177082e0155b (diff)
Merge
Diffstat (limited to 'Source/GPUVerify/WriteCollector.cs')
-rw-r--r--Source/GPUVerify/WriteCollector.cs8
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;
}