author | Christian Urban <christian.urban@kcl.ac.uk> |
Fri, 23 Dec 2022 16:59:59 +0000 | |
changeset 457 | 9cf317975ae7 |
parent 424 | daf561a83ba6 |
child 463 | 0315d9983cd0 |
permissions | -rw-r--r-- |
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))