using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Boogie; using System.Diagnostics; namespace GPUVerify { class NonLocalStateLists : INonLocalState { private List GlobalVariables; private List TileStaticVariables; public NonLocalStateLists() { GlobalVariables = new List(); TileStaticVariables = new List(); } public ICollection getGlobalVariables() { return GlobalVariables; } public ICollection getTileStaticVariables() { return TileStaticVariables; } public ICollection getAllNonLocalVariables() { List all = new List(); all.AddRange(GlobalVariables); all.AddRange(TileStaticVariables); return all; } public bool Contains(Variable v) { return getAllNonLocalVariables().Contains(v); } } }