equal
deleted
inserted
replaced
81 //def run2(pg: String, m: Mem = Map()) = ... |
81 //def run2(pg: String, m: Mem = Map()) = ... |
82 |
82 |
83 |
83 |
84 // testcases |
84 // testcases |
85 // time_needed(1, run2(load_bff("benchmark.bf"))) |
85 // time_needed(1, run2(load_bff("benchmark.bf"))) |
86 // time_needed(1, run2(load_bff("seirpinski.bf"))) |
86 // time_needed(1, run2(load_bff("sierpinski.bf"))) |
87 |
87 |
88 |
88 |
89 |
89 |
90 // (6) Write a function optimise which deletes "dead code" (everything |
90 // (6) Write a function optimise which deletes "dead code" (everything |
91 // that is not a bf-command) and also replaces substrings of the form |
91 // that is not a bf-command) and also replaces substrings of the form |