Consider the following program: Perform at least the following optimizations: Removal of the if in the innermost

Question:

Consider the following program:image text in transcribed

Perform at least the following optimizations:

  • Removal of the if in the innermost loop (line 14)
  • Loop unrolling (line 13)
  • Constant propagation
  • Floating-point to fixed-point conversion
  • Avoidance of all accesses to arrays

Please provide the optimized version of the program after each of the transformations and do also check for consistent results!

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: