Home | History | Annotate | Download | only in src
      1 #include <stdio.h>
      2 
      3 __attribute__((noinline)) float E(float c) {
      4     return c * 11.0;
      5 }
      6 __attribute__((noinline)) float D(float c) {
      7     return E(c) / (2.0*E(c+117.0));
      8 }
      9 __attribute__((noinline)) float C(float c) {
     10     return D(c) / (c*11.11111);
     11 }
     12 __attribute__((noinline)) float B(float c) {
     13     return C(c-5000.1) * D(c);
     14 }
     15 __attribute__((noinline)) float A(float c) {
     16     return B(c) / C(c+2.3);
     17 }
     18 
     19 int main() {
     20     float count2 = 0;
     21     for (int i = 0; i < 100; i++) {
     22         float count = 0;
     23         for (float j = 0; j < 10000; ++j) {
     24             count += A(j);
     25         }
     26         for (float k = 0; k < 20000; ++k) {
     27             count = count / C(k);
     28         }
     29         count2 += count;
     30     }
     31     printf("%f", count2);
     32     return 0;
     33 }
     34