// Sample code for profiling

int abc(int x){
  x=x*10000000;
  while(x>0 || x%3==0)
    x=x-2;
  return x;
  }

int def(int y){
  int i,j;
  for(j=2;j<=100000000;j++)
    for(i=100000000;i>y;i--)
      if(i*j==299900631) return 1;
  return 0;
  }

int ghi(int z){
  int i, j=0;
  for(i=1<<30;i>z;i--)
    j=j+i;
  return j;
  }

int main(){
  int i,k;
  for(i=0;i<13;i++){
    if(i|6789) k=abc(i);
    if(i*i<99) k=def(i);
    if(i%3==0) k=ghi(i);
    }
  return k;
  }


/*
>gcc 42_forProfiling.c -pg
>./a.out
>gprof a.out gmon.out
...
index % time    self  children    called     name
                                                 <spontaneous>
[1]    100.0    0.00   15.15                 main [1]
               12.03    0.00       5/5           ghi [2]
                2.57    0.00      10/10          def [3]
                0.54    0.00      13/13          abc [4]
-----------------------------------------------
               12.03    0.00       5/5           main [1]
[2]     79.4   12.03    0.00       5         ghi [2]
-----------------------------------------------
                2.57    0.00      10/10          main [1]
[3]     17.0    2.57    0.00      10         def [3]
-----------------------------------------------
                0.54    0.00      13/13          main [1]
[4]      3.6    0.54    0.00      13         abc [4]
-----------------------------------------------
...
*/