main_marking5/bf_test4b.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Sun, 15 Jan 2023 10:31:30 +0000
changeset 460 39ec5c112312
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))