mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-17 02:13:54 +00:00
Estimated hours taken: 1
Branches: main
Fix a bug reported by Ian.
compiler/peephole.m:
Document the restriction on the application of the patterns concerning
assignments to redoips.
compiler/opt_util.m:
Fix the bug in the utility predicate used by peephole.m.
tests/hard_coded/opt_dup_bug.{m,exp}:
The test case provided by Ian, with an explanation of the bug.
tests/hard_coded/Mmakefile:
tests/hard_coded/Mercury.options:
Enable the new test case, and run it with the options that expose the
bug if it exists.
4 lines
12 B
Plaintext
4 lines
12 B
Plaintext
"a"
|
|
"b"
|
|
"c"
|