Lines Matching full:line

61 def indention(line):
62 for i, c in enumerate(line):
69 indentions = (indention(line) for line in lines)
82 line = i.__next__()
84 if line.startswith(
88 elif line.startswith("remark: "):
90 elif funcre.fullmatch(line):
92 elif regionre.fullmatch(line):
94 elif depthre.fullmatch(line):
96 elif line == " Invariant Accesses: {":
99 if line == " }":
101 line = i.__next__()
102 elif line == " Context:":
104 line = i.__next__()
106 elif line == " Assumed Context:":
108 line = i.__next__()
110 elif line == " Invalid Context:":
112 line = i.__next__()
114 elif line == " Boundary Context:":
116 line = i.__next__()
118 line = i.__next__()
119 while paramre.fullmatch(line):
121 line = i.__next__()
123 elif line == " Arrays {":
126 if line == " }":
128 line = i.__next__()
129 elif line == " Arrays (Bounds as pw_affs) {":
132 if line == " }":
134 line = i.__next__()
135 elif line.startswith(" Alias Groups ("):
138 line = i.__next__()
139 if not line.startswith(" "):
142 elif line == " Statements {":
145 if line == " }":
147 line = i.__next__()
148 elif line == " RAW dependences:":
150 line = i.__next__()
151 while line.startswith(" "):
153 line = i.__next__()
155 elif line == " WAR dependences:":
157 line = i.__next__()
158 while line.startswith(" "):
160 line = i.__next__()
162 elif line == " WAW dependences:":
164 line = i.__next__()
165 while line.startswith(" "):
167 line = i.__next__()
169 elif line == " Reduction dependences:":
171 line = i.__next__()
172 while line.startswith(" "):
174 line = i.__next__()
176 elif line == " Transitive closure of reduction dependences:":
178 line = i.__next__()
179 while line.startswith(" "):
181 line = i.__next__()
183 elif line.startswith("New access function '"):
185 elif line == "Schedule before flattening {":
188 if line == "}":
190 line = i.__next__()
191 elif line == "Schedule after flattening {":
194 if line == "}":
196 line = i.__next__()
199 line = i.__next__()
204 line = i.__next__()
206 if funcre.fullmatch(line):
207 while line.startswith(" "):
209 line = i.__next__()
211 elif line.startswith(
215 line = i.__next__()
216 while not line.startswith("Printing analysis"):
218 line = i.__next__()
222 line = i.__next__()
249 help="Where to add the CHECK lines into the file; 'autodetect' searches for the first 'CHECK' line ind inserts it there",
266 help="Add empty line between different check parts",
310 oldlines = [line.rstrip("\r\n") for line in file.readlines()]
313 for line in oldlines:
314 m = runre.match(line)
320 for line in runlines:
321 if line.endswith("\\"):
322 continuation += line[:-2] + " "
324 newrunlines.append(continuation + line)
329 for line in newrunlines:
330 m = filecheckre.match(line)
384 retlines = [line.replace("\t", " ") for line in retlines.splitlines()]
398 for line, kind in (
399 (line, class1.union(class2))
400 for line, class1, class2 in zip(
409 filtered_retlines.append(line)
415 classified_retlines = (set() for line in retlines)
420 replre.sub(lambda m: replrepl[m.group(0)], line) for line in retlines
423 retlines = [line[indent:] for line in retlines]
426 for line, kind in zip(retlines, classified_retlines):
427 if line:
430 checklines.append("; " + check_prefix + "-LABEL: " + line)
432 checklines.append("; " + check_prefix + ": " + line)
434 checklines.append("; " + check_prefix + ": " + line)
437 checklines.append("; " + check_prefix + "-LABEL: " + line)
439 checklines.append("; " + check_prefix + ": " + line)
441 checklines.append("; " + check_prefix + "-NEXT: " + line)
444 checklines.append("; " + check_prefix + ": " + line)
446 checklines.append("; " + check_prefix + "-NEXT: " + line)
469 for line in oldlines:
470 if checkre.match(line):
477 elif emptyline.fullmatch(line):
478 emptylines.append(line)
482 newlines.append(line)
487 for i, line in enumerate(newlines):
488 if not commentline.fullmatch(line):
495 for line in lines:
496 file.write(line)