ack.pl

loading
details
attribute value
description
owner Johannes Waldmann
uploaded 2017-08-17 03:45:07.0
disk size 213 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: ack(i,i,o).

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

% mode: ack[i,i,o]
ack(0,N,s(N)).                  % :- int(N).
ack(s(M),0,A) :- ack(M,s(0),A).
ack(s(M),s(N),A) :- ack(s(M),N,A1),ack(M,A1,A).

popout

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

actions get anonymous link download benchmark