author | Christian Urban <christian.urban@kcl.ac.uk> |
Mon, 25 Dec 2023 01:10:55 +0100 | |
changeset 482 | 769bda18a43d |
parent 475 | 59e005dcf163 |
permissions | -rw-r--r-- |
263 | 1 |
|
475 | 2 |
def urbanmain() = { |
3 |
||
4 |
import M5b._ |
|
348 | 5 |
|
475 | 6 |
//println(optimise(load_bff("benchmark.bf")).length) |
7 |
//println(optimise(load_bff("mandelbrot.bf")).length) |
|
384 | 8 |
|
475 | 9 |
val urban_l1 = optimise(load_bff("benchmark.bf")).length |
10 |
val urban_l2 = optimise(load_bff("mandelbrot.bf")).length |
|
11 |
||
12 |
assert(urban_l1 == 181) |
|
13 |
assert(urban_l2 == 11203) |
|
14 |
} |