2008-08-17 | Paul Boddie | file changeset files shortlog | Introduced the active_value attribute in order to track instructions which affect the current value, thus making optimisations slightly more transparent. Introduced the elimination of context checking where the target and context are known. |
paul@101 | 1 | #!/usr/bin/env python |
paul@101 | 2 | |
paul@101 | 3 | a = 1 |
paul@101 | 4 | b = 0 |
paul@101 | 5 | c = a and b |
paul@101 | 6 | d = a or b |
paul@101 | 7 | e = a and b or not a and not b |
paul@101 | 8 | |
paul@101 | 9 | # vim: tabstop=4 expandtab shiftwidth=4 |