Index: cfe/trunk/utils/analyzer/exploded-graph-rewriter.py =================================================================== --- cfe/trunk/utils/analyzer/exploded-graph-rewriter.py +++ cfe/trunk/utils/analyzer/exploded-graph-rewriter.py @@ -409,6 +409,24 @@ self._dump('') + def visit_environment_in_state(self, s, prev_s=None): + self._dump('' + 'Environment: ') + if s.environment is None: + self._dump(' Nothing!') + else: + if prev_s is not None and prev_s.environment is not None: + if s.environment.is_different(prev_s.environment): + self._dump('') + self.visit_environment(s.environment, prev_s.environment) + else: + self._dump(' No changes!') + else: + self._dump('') + self.visit_environment(s.environment) + + self._dump('') + def visit_store(self, s, prev_s=None): self._dump('') @@ -447,8 +465,7 @@ self._dump('
') - def visit_state(self, s, prev_s): - # == Store == + def visit_store_in_state(self, s, prev_s=None): self._dump('Store: ') if s.store is None: self._dump(' Nothing!') @@ -464,23 +481,9 @@ self.visit_store(s.store) self._dump('
') - # == Environment == - self._dump('' - 'Environment: ') - if s.environment is None: - self._dump(' Nothing!') - else: - if prev_s is not None and prev_s.environment is not None: - if s.environment.is_different(prev_s.environment): - self._dump('') - self.visit_environment(s.environment, prev_s.environment) - else: - self._dump(' No changes!') - else: - self._dump('') - self.visit_environment(s.environment) - - self._dump('') + def visit_state(self, s, prev_s): + self.visit_store_in_state(s, prev_s) + self.visit_environment_in_state(s, prev_s) def visit_node(self, node): self._dump('%s [shape=record,label=<'