2007-06-18 | paulb | file changeset files shortlog | Redefined the get_distinct_instances method on _Class to return a dictionary mapping instances to distinct instances. Added a program fixer which replaces instances with those from a distinct set for each class. Updated the viewer and test program to show only distinct instances when requested. |
paulb@29 | 1 | a = 1 |
paulb@29 | 2 | b = 2 |
paul@0 | 3 | if a: |
paul@0 | 4 | x = 1 |
paul@0 | 5 | elif b: |
paul@0 | 6 | x = 2 |
paul@0 | 7 | else: |
paul@0 | 8 | x = 3 |