From 006901ab086127a53fdec82d73529a8fea813d47 Mon Sep 17 00:00:00 2001
From: Matt Wala <wala1@illinois.edu>
Date: Sat, 20 May 2017 18:57:22 -0500
Subject: [PATCH] [ci skip] array_prefixes -> conflicting_array_prefixes

---
 loopy/kernel/__init__.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/loopy/kernel/__init__.py b/loopy/kernel/__init__.py
index 174b6c43a..e8c846fbc 100644
--- a/loopy/kernel/__init__.py
+++ b/loopy/kernel/__init__.py
@@ -58,7 +58,7 @@ class _UniqueVarNameGenerator(UniqueNameGenerator):
 
             array_prefixes.add(match.group(1))
 
-        self.array_prefixes = array_prefixes
+        self.conflicting_array_prefixes = array_prefixes
         self.array_prefix_pattern = array_prefix_pattern
 
     def _name_added(self, name):
@@ -66,7 +66,7 @@ class _UniqueVarNameGenerator(UniqueNameGenerator):
         if match is None:
             return
 
-        self.array_prefixes.add(match.group(1))
+        self.conflicting_array_prefixes.add(match.group(1))
 
     def is_name_conflicting(self, name):
         if name in self.existing_names:
@@ -76,10 +76,10 @@ class _UniqueVarNameGenerator(UniqueNameGenerator):
         # names by appending '_s<NUMBER>'. Make sure that no
         # conflicts can arise from these names.
 
-        # Case 1: a_s0 is already a name, we are trying to insert a
-        # Case 2: a is already a name, we are trying to insert a_s0
+        # Case 1: a_s0 is already a name; we are trying to insert a
+        # Case 2: a is already a name; we are trying to insert a_s0
 
-        if name in self.array_prefixes:
+        if name in self.conflicting_array_prefixes:
             return True
 
         match = self.array_prefix_pattern.match(name)
-- 
GitLab