svcomp-b-13-c.pl

loading
details
attribute value
description
owner Johannes Waldmann
uploaded 2017-08-17 03:45:08.0
disk size 608 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
%Source: Ports of programs found in TPDB/C/AProVE_numeric
%query:test_fun(g,g,g).
% source: http://cl2-informatik.uibk.ac.at/mercurial.cgi/TPDB/file/72cccd64ec42/C/AProVE_numeric/svcomp_b.13.c

test_fun(X, Y, Z) :- loop(X, Y, Z, 0).

loop(X, Y, Z, C) :- X > Z, loop_body(X, Y, Z, C).
loop(X, Y, Z, C) :- Y > Z, loop_body(X, Y, Z, C).
loop(X, Y, Z, C) :- X =< Z, Y =< Z.

loop_body(X, Y, Z, C) :- X > Z, X1 is X - 1, C1 is C + 1, loop(X1, Y, Z, C1).
loop_body(X, Y, Z, C) :- X =< Z, Y > Z, Y1 is Y - 1, C1 is C + 1, loop(X, Y1, Z, C1).
loop_body(X, Y, Z, C) :- X =< Z, Y =< Z, C1 is C + 1, loop(X, Y, Z, C1).
popout

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

actions get anonymous link download benchmark