BENCHMUL.b 878 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Input file : ./tests/inputs/BENCHMUL.EXE
  3. * File type : EXE
  4. */
  5. #include "dcc.h"
  6. void main ()
  7. /* Takes no parameters.
  8. * High-level language prologue code.
  9. */
  10. {
  11. int loc1;
  12. int loc2;
  13. long loc3;
  14. long loc4;
  15. int loc5;
  16. printf ("enter number of iterations\n");
  17. scanf ("%ld", &loc0);
  18. printf ("executing %ld iterations\n", loc4);
  19. scanf ("%d", &loc1);
  20. scanf ("%d", &loc2);
  21. loc3 = 1;
  22. while ((loc3 <= loc4)) {
  23. loc5 = 1;
  24. while ((loc5 <= 40)) {
  25. loc1 = (((((((((((((((((((((((((loc1 * loc1) * loc1) * loc1) * loc1) * loc1) * loc1) * loc1) * loc1) * loc1) * loc1) * loc1) * loc1) * loc1) * loc1) * loc1) * loc1) * loc1) * loc1) * loc1) * loc1) * loc1) * loc1) * loc1) * loc1) * 3);
  26. loc5 = (loc5 + 1);
  27. } /* end of while */
  28. loc3 = (loc3 + 1);
  29. } /* end of while */
  30. printf ("a=%d\n", loc1);
  31. }