main_testing5/bf_test7.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Thu, 06 Jun 2024 19:14:33 +0100
changeset 489 d51cacc92480
parent 475 59e005dcf163
permissions -rw-r--r--
updated to Scala 3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
475
59e005dcf163 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 461
diff changeset
     1
59e005dcf163 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 461
diff changeset
     2
def urbanmain() = {
59e005dcf163 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 461
diff changeset
     3
59e005dcf163 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 461
diff changeset
     4
  import M5b._
263
5a16bcb4105e updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
475
59e005dcf163 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 461
diff changeset
     6
  //println(combine(optimise(load_bff("benchmark.bf"))).length)
59e005dcf163 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 461
diff changeset
     7
  //println(combine(optimise(load_bff("mandelbrot.bf"))).length)
348
b5b6ed38c2f2 updated jars
Christian Urban <christian.urban@kcl.ac.uk>
parents: 286
diff changeset
     8
475
59e005dcf163 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 461
diff changeset
     9
  assert(combine(optimise(load_bff("benchmark.bf"))).length == 134)
59e005dcf163 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 461
diff changeset
    10
  assert(combine(optimise(load_bff("mandelbrot.bf"))).length == 6509)
59e005dcf163 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 461
diff changeset
    11
}