mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-20 00:15:27 +00:00
Estimated hours taken: 5
Branches: main
runtime/mercury_minimal_model.c:
The fixpoint loop for detecting whether we have returned all answers
to all consumers had an incorrect termination condition. Fix the bug,
and rewrite the loop to be clearer by putting its test at the bottom,
to make text order and temporal order agree.
At each iteration of the fixpoint algorithm, check whether the
generator doing the completion operation is still the leader.
Fix a bug in the recording of leaders at coups.
runtime/mercury_minimal_model.[ch]:
library/table_builtin.m:
Add support for recording, for each generator, the deepest of the
nearest common ancestor between the generator and one of its consumers.
We will need this soon.
tests/tabling/Mmakefile:
Record that we now pass the coup2 test case.
tests/tabling/sg.{m,exp}:
Test the tabling of the same generation predicate in the out,out mode
as well as the in,out mode.