Files
mercury/tests/hard_coded/simplify_multi_arm_switch.exp
Peter Wang c1f535b175 Fix a simplification bug which was introduced with multi-cons_id switch arms.
Branches: main

Fix a simplification bug which was introduced with multi-cons_id switch arms.
Previously a singleton switch could be replaced by the case goal, possibly
with a functor test beforehand, but that's only true if the case arm is
applicable to only a single functor.

compiler/simplify.m:
        As above.

tests/hard_coded/Mercury.options:
tests/hard_coded/Mmakefile:
tests/hard_coded/simplify_multi_arm_switch.exp:
tests/hard_coded/simplify_multi_arm_switch.m:
        Add test case.
2009-07-02 05:31:08 +00:00

2 lines
3 B
Plaintext