ex12.koat

loading
details
attribute value
description
owner Johannes Waldmann
uploaded 2017-08-17 03:45:03.0
disk size 577 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
(GOAL COMPLEXITY)
(STARTTERM (FUNCTIONSYMBOLS evalfstart))
(VAR A B C)
(RULES
  evalfstart(A,B,C) -> Com_1(evalfentryin(A,B,C))
  evalfentryin(A,B,C) -> Com_1(evalfbb4in(B,A,C))
  evalfbb4in(A,B,C) -> Com_1(evalfbb2in(A,B,A)) :|: B >= 1
  evalfbb4in(A,B,C) -> Com_1(evalfreturnin(A,B,C)) :|: 0 >= B
  evalfbb2in(A,B,C) -> Com_1(evalfbb1in(A,B,C)) :|: C >= A
  evalfbb2in(A,B,C) -> Com_1(evalfbb3in(A,B,C)) :|: A >= C + 1
  evalfbb1in(A,B,C) -> Com_1(evalfbb2in(A,B,C - 1))
  evalfbb3in(A,B,C) -> Com_1(evalfbb4in(A,B - 1,C))
  evalfreturnin(A,B,C) -> Com_1(evalfstop(A,B,C))
)
popout

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

actions get anonymous link download benchmark