diff options
Diffstat (limited to 'algorithm.tex')
-rw-r--r-- | algorithm.tex | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/algorithm.tex b/algorithm.tex index c275a03..e43e804 100644 --- a/algorithm.tex +++ b/algorithm.tex @@ -52,24 +52,21 @@ int main() { \begin{subfigure}[b]{0.6\linewidth} \begin{minted}[fontsize=\footnotesize]{c} main() { - 19: x9 = 1 - 18: int32[stack(0)] = x9 - 17: x8 = 2 - 16: int32[stack(4)] = x8 - 15: x7 = 3 - 14: int32[stack(8)] = x7 - 13: x3 = 0 - 12: x2 = 1 - 11: x1 = 0 - 10: nop - 9: if (x1 <s 3) goto 8 else goto 3 - 8: x6 = stack(0) (int) - 7: x5 = int32[x6 + x1 * 4 + 0] - 6: x3 = x3 + x5 + 0 (int) - 5: x1 = x1 + x2 + 0 (int) - 4: goto 9 - 3: x4 = x3 goto 1 - 2: x4 = 0 + 16: x9 = 1 + 15: int32[stack(0)] = x9 + 14: x8 = 2 + 13: int32[stack(4)] = x8 + 12: x7 = 3 + 11: int32[stack(8)] = x7 + 10: x3 = 0 + 9: nop + 8: x1 = 0 + 7: x6 = stack(0) (int) + 6: x5 = int32[x6 + x1 * 4 + 0] + 5: x3 = x3 + x5 + 0 (int) + 4: x1 = x1 + 1 (int) + 3: if (x1 <s 3) goto 7 else goto 2 + 2: x4 = x3 1: return x4 } \end{minted} |