git @ Cat's Eye Technologies SixtyPical / a759f44
Make tests pass again. Chris Pressey 4 years ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
313313 for routine in program.routines:
314314 context = self.analyze_routine(routine)
315315 if context:
316 for encountered_goto in context.encountered_gotos():
317 fallthru_map.setdefault(encountered_goto.name, set()).add(routine.name)
316 encountered_gotos = list(context.encountered_gotos())
317 if len(encountered_gotos) == 1 and isinstance(encountered_gotos[0].type, RoutineType):
318 fallthru_map.setdefault(encountered_gotos[0].name, set()).add(routine.name)
318319 program.fallthru_map = dict([(k, sorted(v)) for k, v in fallthru_map.iteritems()])
319320
320321 def analyze_routine(self, routine):