File: test16.elpi

package info (click to toggle)
elpi 2.0.7-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 50,296 kB
  • sloc: ml: 18,791; makefile: 229; python: 95; sh: 7
file content (13 lines) | stat: -rw-r--r-- 330 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
:functional 
pred p i:int, o:int.

pred f o:int, o:int, o:int.

% the variables of f are not used in the output, therefore, p remains functional 
p 4 Y :- f Z X W, Y = 4.

% case similar to the previous one, where the output is not instantiated 
% all the variables in the body are never returned
p 5 Y :- f Z X W, f X Z T.

main.