mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 09:53:36 +00:00
Estimated hours taken: 1.5 Fix a couple of bugs related to pruning of impure goals with no output variables. compiler/det_analysis.m: Fix a bug: the compiler was automatically inserting pruning across impure goals with no output variables. That should happen only for pure or semipure goals. To prevent pruning in those cases, I changed it so that impure goals with no output variables are not considered single-solution contexts. doc/reference_manual.texi: Document the above-mentioned change. compiler/clause_to_proc.m: Fix a bug: when converting a bunch of clauses into a disjunction, clause_to_proc.m was not computing the proper purity annotation on the goal_info for the disjunction. tests/hard_coded/Mmakefile: tests/hard_coded/impure_prune.m: tests/hard_coded/impure_prune.exp: A test case for the above-mentioned changes to det_analysis.m and clause_to_proc.m.
2 lines
6 B
Plaintext
2 lines
6 B
Plaintext
X = 3
|