terminatorbubble.c

loading
details
attribute value
description
owner Akihisa Yamada
uploaded 2020-06-20 22:52:04.0
disk size 401 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
int nondet();


int terminatorbubble(int size) {
  int error;
  int b;
  int j;
  int t;
  error=0;
  b=size;
  if (size>0) {
  while (b>=1) {
    if (size<=0) return 0;
    j=1;
    t=0;
    while (j<=b-1) {
      if (j<1 || j>size) { return 0; }
      if (j+1<1 || j+1>size) { return 0; }
      if (nondet()>0){ t=j;}
      j=j+1;
    }
    if (1>t || t>=b) return 0;
    b=t;
  }
  }
  return 0;
}
popout

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

actions get anonymous link download benchmark