mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-17 18:33:58 +00:00
compiler/simplify_goal_call.m:
As above.
Also improve some comments, some predicate names, and formatting,
as part of a post-commit review.
tests/invalid/loopcheck.err_exp:
tests/warnings/infinite_recursion.exp:
tests/warnings/simple_code.exp:
Expect the predicate name in infinite loop warnings.
tests/tabling/Mercury.options:
tests/tabling/Mmakefile:
Disable warning about the infinite loop this test case tests
not by filtering out lines from the compiler output (which does not
work anymore due to the predicate name causing the warning to spill
onto a second line), but by simply asking the compiler not to generate
the warning.
Fix an old problem: the Mmakefile action for the loopcheck_nondet test case
was modifying a file that did not belong to it.
14 lines
783 B
Plaintext
14 lines
783 B
Plaintext
loopcheck.m:011: In `main'(di, uo):
|
|
loopcheck.m:011: warning: determinism declaration could be tighter.
|
|
loopcheck.m:011: Declared `det', inferred `erroneous'.
|
|
loopcheck.m:020: Error: `:- pragma loop_check' declaration not allowed for
|
|
loopcheck.m:020: procedure with determinism `erroneous'.
|
|
loopcheck.m:020: The pragma requested is only valid for the following
|
|
loopcheck.m:020: determinisms: cc_multi, cc_nondet, det, multi, nondet and
|
|
loopcheck.m:020: semidet.
|
|
loopcheck.m:022: Warning: recursive call to predicate `loop'/1 will lead to
|
|
loopcheck.m:022: infinite recursion.
|
|
loopcheck.m:022: If this recursive call is executed, the procedure will call
|
|
loopcheck.m:022: itself with exactly the same input arguments, leading to
|
|
loopcheck.m:022: infinite recursion.
|