mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 18:03:36 +00:00
Estimated hours taken: 2 Branches: main Enable loop invariant hoisting for goals that have no input arguments. compiler/loop_inv.m: Delete the code which was explicitly disable loop invariant hoisting for "const goals", i.e. goals that have no input arguments. (Why was this code there in the first place?) Instead, add some code to prevent loop invariant hoisting for goals that cannot succeed. tests/hard_coded/Mmakefile: Enable loop_inv_test1, since we now pass it. tests/hard_coded/loop_inv_test1.exp: New file, containing the expected output for this test. tests/hard_coded/loop_inv_test1.m: Delete the comment which said that we don't pass this test.
4 lines
57 B
Plaintext
4 lines
57 B
Plaintext
enter two integers, one on each line
|
|
R1 = 4233
|
|
R2 = 5333
|