summaryrefslogtreecommitdiffstats
path: root/algorithm.tex
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2020-06-30 23:31:09 +0100
committerYann Herklotz <git@yannherklotz.com>2020-06-30 23:31:09 +0100
commitf76f76c44520e1fc0d15456b8c5eb929f8495b5b (patch)
tree2e46c3f10cad084f54fbf029e716684e95e56a10 /algorithm.tex
parent0530fdded67c11c8d0b0f34016256f05013d1d42 (diff)
downloadoopsla21_fvhls-f76f76c44520e1fc0d15456b8c5eb929f8495b5b.tar.gz
oopsla21_fvhls-f76f76c44520e1fc0d15456b8c5eb929f8495b5b.zip
Adding more comments
Diffstat (limited to 'algorithm.tex')
-rw-r--r--algorithm.tex33
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}