perfectg.c

loading
details
attribute value
description
owner Johannes Waldmann
uploaded 2017-08-17 03:45:23.0
disk size 258 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 perfectg(int x){
  int y1, y2, y3;

  if(x <= 1) goto D;

  y1=x;
  y2=x;
  y3=x;

 A:y1 = y1-1;
   if(y1 == 0) goto D;
 B:if(y2 < y1) goto F;
   y2 = y2-y1;
   goto B;
 F:if(y2 != 0) goto C;
   y3 = y3 - y1;
 C:y2 = x;
   goto A;
 D:return (y3 == 0);
}
popout

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

actions get anonymous link download benchmark