nesting-ex1.koat

loading
details
attribute value
description
owner Johannes Waldmann
uploaded 2017-08-17 03:45:03.0
disk size 398 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 l0))
(VAR A B C D)
(RULES
  l0(A, B, C, D) -> Com_1(l1(0, B, C, D))
  l1(A, B, C, D) -> Com_1(l2(A, B, 0, 0)) :|: B > 0
  l2(A, B, C, D) -> Com_1(l2(A, B, C + 1, D + C)) :|: C < B
  l2(A, B, C, D) -> Com_1(l1(A + D, B - 1, C, D)) :|: C >= B
  l1(A, B, C, D) -> Com_1(l3(A, B, C, D)) :|: B <= 0
  l3(A, B, C, D) -> Com_1(l3(A - 1, B, C, D)) :|: A > 0
)
popout

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

actions get anonymous link download benchmark