|
Revision 4601, 276 bytes
(checked in by pmoura, 7 weeks ago)
|
|
Added svn:mime-type property to source files (set to text/x-logtalk).
|
-
Property svn:mime-type set to
text/x-logtalk
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | |
|---|
| 2 | :- object(database, |
|---|
| 3 | imports(solver, proof_tree, tracer)). |
|---|
| 4 | |
|---|
| 5 | :- public(p/1). |
|---|
| 6 | :- private(q/2, r/1, s/1, t/2). |
|---|
| 7 | :- dynamic(p/1, q/2, r/1, s/1, t/2). |
|---|
| 8 | |
|---|
| 9 | p(X) :- q(X, Y), r(Y). |
|---|
| 10 | |
|---|
| 11 | q(X, Y) :- s(X), t(X, Y). |
|---|
| 12 | |
|---|
| 13 | r(a). |
|---|
| 14 | r(b). |
|---|
| 15 | |
|---|
| 16 | s(1). |
|---|
| 17 | s(2). |
|---|
| 18 | s(3). |
|---|
| 19 | |
|---|
| 20 | t(1, a). |
|---|
| 21 | t(2, b). |
|---|
| 22 | |
|---|
| 23 | :- end_object. |
|---|