Added example for attempting to hide a circular predicate dependency.
This commit is contained in:
parent
ecdefa9221
commit
eb730b9f8b
10
examples/hide-circular-dependency.lp
Normal file
10
examples/hide-circular-dependency.lp
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
a(X) :- circle1(X).
|
||||||
|
|
||||||
|
circle1(X) :- circle2(X).
|
||||||
|
circle2(X) :- circle3(X).
|
||||||
|
circle3(X) :- circle1(X).
|
||||||
|
|
||||||
|
#show a/1.
|
||||||
|
%#show circle1/1.
|
||||||
|
%#show circle2/1.
|
||||||
|
%#show circle3/1.
|
Loading…
Reference in New Issue
Block a user