main_marking5/bf_test4b.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Fri, 25 Nov 2022 00:03:15 +0000
changeset 448 db2a3e3287a9
parent 424 daf561a83ba6
child 463 0315d9983cd0
permissions -rw-r--r--
updated

import M5a._

val urban_bench = 
""">+[<+++++++++++++>-]<[[>+>+<<-]>[<+>-]++++++++
   [>++++++++<-]>.[-]<<>++++++++++[>++++++++++[>++
   ++++++++[>++++++++++[>++++++++++[>++++++++++[>+
   +++++++++[-]<-]<-]<-]<-]<-]<-]<-]++++++++++."""

assert(run(urban_bench, Map()) == 
  Map(0 -> 10, 5 -> 0, 1 -> 0, 6 -> 0, 2 -> 0, 7 -> 0, 3 -> 0, 4 -> 0))