Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

prolog_test_simple

Language: Layout:
+ ] Show input
Absolute running time: 0.07 sec, cpu time: 0.02 sec, memory peak: 3 Mb, absolute service time: 0,07 sec 
latest |  history
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)