prolog_test_simple
Warning: source_file.prolog:23:
Clauses of parent/2 are not together in the source-file
Earlier definition at source_file.prolog:7
Current predicate: program/0
Use :- discontiguous parent/2. to suppress this message
Warning: source_file.prolog:25:
Clauses of grandparent/2 are not together in the source-file
Earlier definition at source_file.prolog:11
Current predicate: parent/2
Use :- discontiguous grandparent/2. to suppress this message
Warning: source_file.prolog:26:
Clauses of ancestor/2 are not together in the source-file
Earlier definition at source_file.prolog:12
Current predicate: grandparent/2
Use :- discontiguous ancestor/2. to suppress this message
hello world
Hello, world!
no:parent(amy,cathy)
yes:parent(bob,cathy)
yes:grandparent(amy,cathy)
yes:ancestor(amy,cathy)
|
|