equal
deleted
inserted
replaced
210 |
210 |
211 // testcases |
211 // testcases |
212 |
212 |
213 //println(optimise(load_bff("collatz.bf"))) |
213 //println(optimise(load_bff("collatz.bf"))) |
214 //optimise(load_bff("benchmark.bf")) // should have inserted 0's |
214 //optimise(load_bff("benchmark.bf")) // should have inserted 0's |
215 //optimise(load_bff("mandelbrot.bf")).length // => 11203 |
215 //optimise(load_bff("mandelbrot.bf")).length // => 11205 |
216 |
216 |
217 //time_needed(1, run3(load_bff("benchmark.bf"))) |
217 //time_needed(1, run3(load_bff("benchmark.bf"))) |
|
218 //time_needed(1, run3(load_bff("mandelbrot.bf"))) |
218 |
219 |
219 |
220 |
220 |
221 |
221 // (7) Write a function combine which replaces sequences |
222 // (7) Write a function combine which replaces sequences |
222 // of repated increment and decrement commands by appropriate |
223 // of repated increment and decrement commands by appropriate |