Files
mercury/tests/tabling/repeat.m
Zoltan Somogyi b99cb7b77e Add the file tests/tabling/repeat.m, which I accidentally left out of my
Estimated hours taken: 0

Add the file tests/tabling/repeat.m, which I accidentally left out of my
recent changes.
1999-04-22 08:10:05 +00:00

31 lines
557 B
Mathematica

% This test case checks that we correctly handle the trivial case of the same
% subgoal being called twice, without recursion.
:- module repeat.
:- interface.
:- import_module io.
:- pred main(io__state::di, io__state::uo) is det.
:- implementation.
:- import_module int, list.
:- import_module std_util.
main -->
{ solutions(p, Solns1) },
io__write(Solns1),
io__write_string("\n"),
{ solutions(p, Solns2) },
io__write(Solns2),
io__write_string("\n").
:- pragma minimal_model(p/1).
:- pred p(int).
:- mode p(out) is nondet.
p(1).
p(2).
p(3).