pl4.5.2.pl

loading
details
attribute value
description
owner Johannes Waldmann
uploaded 2017-08-17 03:45:07.0
disk size 369 Bytes
downloadable true
type
attribute value
name no_type
processor id 1
description this is the default benchmark type for rejected benchmarks and benchmarks that are not associated with a type.
owning community none
loading contents
%query: s2(i,o).

% mode: s2[i,o]
s2(plus(A,plus(B,C)),D) :- s2(plus(plus(A,B),C),D).
s2(plus(A,B),C) :- s2(plus(B,A),C).
s2(plus(X,0),X).
s2(plus(X,Y),Z) :- s2(X,A), s2(Y,B), s2(plus(A,B),Z).
s2(plus(A,B),C) :- isNat(A), isNat(B), add(A,B,C).

% mode: isNat[i]
isNat(s(X)) :- isNat(X).
isNat(0).

% mode: add[i,i,o]
add(s(X), Y, s(Z)) :- add(X, Y, Z).
add(0, X, X). 

popout

content may be truncated. 'popout' for larger text window.

actions get anonymous link download benchmark