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@210 | 1 | def f(x): |
paulb@210 | 2 | while x: |
paulb@210 | 3 | y = 3 |
paulb@210 | 4 | x -= 1 |
paulb@210 | 5 | return y |
paulb@210 | 6 | |
paulb@210 | 7 | f(1) |