diff --git a/W3/main.aux b/W3/main.aux index 98a242d..fa1ce6f 100644 --- a/W3/main.aux +++ b/W3/main.aux @@ -3,6 +3,10 @@ \@writefile{toc}{\contentsline {subsection}{\numberline {1)}Intermediate code}{1}{}\protected@file@percent } \@writefile{toc}{\contentsline {subsection}{\numberline {2)}MIPS code}{2}{}\protected@file@percent } \@writefile{toc}{\contentsline {section}{\numberline {Task 2}}{2}{}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {Task 3}}{2}{}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {A}Intermediate code generation}{3}{}\protected@file@percent } -\gdef \@abspage@last{8} +\@writefile{toc}{\contentsline {subsection}{\numberline {1)}\texttt {z := x >= y}}{2}{}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {2)}\texttt {w := !z}}{2}{}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {3)}\texttt {z := x >= y, w := !z}}{2}{}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {Task 3}}{3}{}\protected@file@percent } +\@writefile{toc}{\contentsline {subsubsection}{\numberline {a)}}{3}{}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {A}Intermediate code generation}{4}{}\protected@file@percent } +\gdef \@abspage@last{9} diff --git a/W3/main.fdb_latexmk b/W3/main.fdb_latexmk index 978a13f..6b88ebf 100644 --- a/W3/main.fdb_latexmk +++ b/W3/main.fdb_latexmk @@ -1,5 +1,5 @@ # Fdb version 3 -["lualatex"] 1652625398 "/home/nikolaj/Code/Datalogi/2022B4-IPS/IPS_W-assignments/W3/main.tex" "main.pdf" "main" 1652625400 +["lualatex"] 1652803257 "/home/nikolaj/Code/Datalogi/2022B4-IPS/IPS_W-assignments/W3/main.tex" "main.pdf" "main" 1652803258 "/home/nikolaj/.local/share/fonts/AntikorMono/AntikorMono-Medium.ttf" 1611081972 103940 8e55892035a16215c54dd867754fccc1 "" "/home/nikolaj/.texlive/texmf-var/luatex-cache/generic/fonts/otl/antikormono-medium.luc" 1651323665 104754 23ebedc62154e273369ad441e4fed323 "" "/home/nikolaj/.texlive/texmf-var/luatex-cache/generic/fonts/otl/lmroman10-bold.luc" 1650282221 128371 e7304f80c7b50597b0633dcda00e60a9 "" @@ -14,7 +14,8 @@ "/home/nikolaj/.texlive/texmf-var/luatex-cache/generic/fonts/otl/lmroman9-regular.luc" 1650456839 127921 c90eb6ae5f8a306e2567001f7c35a1ca "" "/home/nikolaj/.texlive/texmf-var/luatex-cache/generic/names/luaotfload-lookup-cache.luc" 1652619475 1364 5feba282216f2b9f6eec7317e7dda3c7 "" "/home/nikolaj/.texlive/texmf-var/luatex-cache/generic/names/luaotfload-names.luc.gz" 1651323659 341600 1597a54d96fec9bc135c0799b8b573f7 "" - "/home/nikolaj/Code/Datalogi/2022B4-IPS/IPS_W-assignments/W3/main.tex" 1652625398 1951 351880421c0fc77f1b4ba4848d7a98c5 "" + "/home/nikolaj/Code/Datalogi/2022B4-IPS/IPS_W-assignments/W3/main.tex" 1652803256 2386 6931b16d652c840eb4bb170cf82253b6 "" + "/usr/share/fonts/OTF/lmroman10-bold.otf" 1593426288 111240 0af0b64d6d3df41bead3f9de314afbd4 "" "/usr/share/fonts/OTF/lmroman10-regular.otf" 1593426288 111536 ae9d1b331000d544f47e5223081b7b54 "" "/usr/share/fonts/OTF/lmroman12-bold.otf" 1593426288 110496 b9c8767d4cc3bf3f4b21f676bf89aa78 "" "/usr/share/fonts/OTF/lmroman12-regular.otf" 1593426288 110400 d844cffffa1af59f9d2bb1bfdb6f1a2c "" @@ -202,8 +203,8 @@ "/var/lib/texmf/web2c/luahbtex/lualatex.fmt" 1652348949 4561207 f654a70ada34c37686970d61677ed13a "" "appendix_a.tex" 1652625160 6037 54a4e11630243c2fa19813e803314f71 "" "fasto.sty" 1652614481 1401 a6d806798c61bebd8e4080170252a195 "" - "main.aux" 1652625400 637 cc70af0592d9a7b79f291b77d4d7322c "lualatex" - "main.tex" 1652625398 1951 351880421c0fc77f1b4ba4848d7a98c5 "" + "main.aux" 1652803258 1079 4bcb71dc4a4206d16b1191cdbcb8b458 "lualatex" + "main.tex" 1652803256 2386 6931b16d652c840eb4bb170cf82253b6 "" (generated) "main.aux" "main.log" diff --git a/W3/main.log b/W3/main.log index 24098f4..cac4794 100644 --- a/W3/main.log +++ b/W3/main.log @@ -1,4 +1,4 @@ -This is LuaHBTeX, Version 1.15.0 (TeX Live 2022/Arch Linux) (format=lualatex 2022.5.12) 15 MAY 2022 16:36 +This is LuaHBTeX, Version 1.15.0 (TeX Live 2022/Arch Linux) (format=lualatex 2022.5.12) 17 MAY 2022 18:00 restricted system commands enabled. file:line:error style messages enabled. **/home/nikolaj/Code/Datalogi/2022B4-IPS/IPS_W-assignments/W3/main.tex @@ -632,27 +632,38 @@ LaTeX Font Info: Font shape `TU/AntikorMonoMedium(0)/m/n' will be (Font) scaled to size 8.09995pt on input line 41. [1 -{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] [2] (./appendix_a.tex +{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] + +LaTeX Font Warning: Font shape `TU/AntikorMonoMedium(0)/b/n' undefined +(Font) using `TU/AntikorMonoMedium(0)/m/n' instead on input line 115. + LaTeX Font Info: Font shape `TU/AntikorMonoMedium(0)/m/n' will be -(Font) scaled to size 10.79993pt on input line 1. +(Font) scaled to size 10.79993pt on input line 115. +LaTeX Font Info: Font shape `TU/AntikorMonoMedium(0)/b/n' will be +(Font) scaled to size 10.79993pt on input line 122. +[2] [3] (./appendix_a.tex LaTeX Font Info: Font shape `TU/AntikorMonoMedium(0)/m/n' will be (Font) scaled to size 8.99994pt on input line 1. - [3] [4] [5] [6] [7]) [8] (./main.aux)) + [4] [5] [6] [7] [8]) [9] (./main.aux) + +LaTeX Font Warning: Some font shapes were not available, defaults substituted. + +) Here is how much of LuaTeX's memory you used: - 17434 strings out of 477762 + 17435 strings out of 477762 125009,794899 words of node,token memory allocated 506 words of node memory still in use: 6 hlist, 2 vlist, 2 rule, 2 glue, 4 kern, 1 glyph, 7 attribute, 55 glue_spec, 7 attribute_list, 2 write nodes - avail lists: 2:1576,3:143,4:1998,5:1966,6:95,7:4318,8:47,9:5450,10:7,11:156 - 37560 multiletter control sequences out of 65536+600000 - 61 fonts using 5083911 bytes + avail lists: 2:2216,3:145,4:2284,5:2362,6:102,7:4882,8:47,9:6570,10:7,11:156 + 37561 multiletter control sequences out of 65536+600000 + 61 fonts using 5084231 bytes 104i,7n,101p,518b,488s stack positions out of 5000i,500n,10000p,200000b,80000s - -Output written on main.pdf (8 pages, 120182 bytes). + +Output written on main.pdf (9 pages, 123844 bytes). -PDF statistics: 106 PDF objects out of 1000 (max. 8388607) - 69 compressed objects within 1 object stream +PDF statistics: 116 PDF objects out of 1000 (max. 8388607) + 75 compressed objects within 1 object stream 0 named destinations out of 1000 (max. 131072) 16 words of extra memory for PDF output out of 10000 (max. 100000000) diff --git a/W3/main.pdf b/W3/main.pdf index 0119b0b..4d59a7c 100644 Binary files a/W3/main.pdf and b/W3/main.pdf differ diff --git a/W3/main.synctex.gz b/W3/main.synctex.gz index b1d47f4..9b74562 100644 Binary files a/W3/main.synctex.gz and b/W3/main.synctex.gz differ diff --git a/W3/main.tex b/W3/main.tex index cbac4dc..db009d1 100644 --- a/W3/main.tex +++ b/W3/main.tex @@ -112,7 +112,37 @@ label3: \section{} +\subsection{\texttt{z := x >= y}} + +\begin{lstlisting} +sub v, y, x +slti z, v, 1 +\end{lstlisting} + +\subsection{\texttt{w := !z}} + +\begin{lstlisting} +slt w, R0, z +\end{lstlisting} + +\subsection{\texttt{z := x >= y, w := !z}} + +\begin{lstlisting} +slt w, x, y +\end{lstlisting} + +\newpage \section{} +\subsubsection{} +\begin{lstlisting} +bool* y = (bool*)malloc(n); +int i = 0; +while (i < n) { + ne = myop(ne, x[i]); + y[i] = ne; + i++; +} +\end{lstlisting} \newpage \appendix diff --git a/W3/report.pdf b/W3/report.pdf new file mode 100644 index 0000000..4d59a7c Binary files /dev/null and b/W3/report.pdf differ