svcomp-c-08-c.pl

loading
details
attribute value
description
owner Johannes Waldmann
uploaded 2017-08-17 03:45:08.0
disk size 454 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).
% source: http://cl2-informatik.uibk.ac.at/mercurial.cgi/TPDB/file/72cccd64ec42/C/AProVE_numeric/svcomp_c.08.c

test_fun(I, J) :- loop(I, J, 0).

loop(I, J, C) :- I >= 0, J1 is 0, inner_loop(I, J1, C).
loop(I, J, C) :- I < 0.

inner_loop(I, J, C) :- J =< I - 1, J1 is J + 1, C1 is C + 1, inner_loop(I, J1, C1).
inner_loop(I, J, C) :- J > I - 1, I1 is I - 1, loop(I1, J, C).
popout

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

actions get anonymous link download benchmark