der-bf.pl

loading
details
attribute value
description
owner Johannes Waldmann
uploaded 2017-08-17 03:45:07.0
disk size 557 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: p(i,o).
%TWTYPES  :- type p(dt,exp).

p(d(e(t)), const(1)).

p(d(e(const(A))),  const(0)).

p(d(e(X+Y)), DX+DY) :-
        p(d(e(X)),DX), p(d(e(Y)),DY).

p(d(e(X*Y)), X*DY + Y*DX) :-
         p(d(e(X)),DX), p(d(e(Y)),DY).

p(d(d(X)),DDX) :-
        p(d(X),DX), p(d(e(DX)),DDX).


/*TWDESC

Contrived example

*/


/*TWTYPES
dt(d(X)) :- dt(X).
dt(e(X)) :- exp(X).

exp(t).
exp(const(X)) :- num(X).
exp(+(X,Y)) :- exp(X), exp(Y).
exp(*(X,Y)) :- exp(X), exp(Y).

num(0).
num(1).


*/


/*TWDEMO

selected_norms([dt,exp,num]).
query(p(b,b,f,f,f)).

*/

popout

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

actions get anonymous link download benchmark