cws/cw05.tex
changeset 234 5dcc339114f7
parent 233 5f36d04d23a5
child 237 ecda54182ae5
--- a/cws/cw05.tex	Thu Dec 06 18:37:17 2018 +0000
+++ b/cws/cw05.tex	Thu Dec 06 18:50:53 2018 +0000
@@ -463,7 +463,16 @@
   worthwhile overall (of course for the \pcode{>A}'s and so on, the compiler incurs a
   penalty). Luckily, after you have performed all
   optimisations in (5) - (7), you can expect that the
-  \pcode{benchmark.bf} program runs four to five times faster.\hfill{[2 Marks]}
+  \pcode{benchmark.bf} program runs four to five times faster.
+  You can also test whether your compiler produces the correct result
+  by for example testing
+
+  \begin{center}
+  \pcode{run(load_bff("sierpinski.bf")) == run4(load_bff("sierpinski.bf"))}
+  \end{center}
+
+  which should return true for all the different compiler stages. \\ 
+  \mbox{}\hfill{[2 Marks]}
 \end{itemize}  
 
 \end{document}