1 import M5a._  | 
         | 
     2   | 
     1   | 
         | 
     2 def urbanmain() = { | 
     3   | 
     3   | 
     4 import scala.concurrent._  | 
     4   import M5a._  | 
     5 import scala.concurrent.duration._  | 
         | 
     6 import ExecutionContext.Implicits.global  | 
         | 
     7 import scala.language.postfixOps   | 
         | 
     8   | 
     5   | 
     9 lazy val f = Future { | 
     6   import scala.concurrent._  | 
    10 val urban_bench =   | 
     7   import scala.concurrent.duration._  | 
    11 """>+[<+++++++++++++>-]<[[>+>+<<-]>[<+>-]++++++++  | 
     8   import ExecutionContext.Implicits.global  | 
         | 
     9   import scala.language.postfixOps   | 
         | 
    10   | 
         | 
    11   lazy val f = Future { | 
         | 
    12     val urban_bench =   | 
         | 
    13       """>+[<+++++++++++++>-]<[[>+>+<<-]>[<+>-]++++++++  | 
    12    [>++++++++<-]>.[-]<<>++++++++++[>++++++++++[>++  | 
    14    [>++++++++<-]>.[-]<<>++++++++++[>++++++++++[>++  | 
    13    ++++++++[>++++++++++[>++++++++++[>++++++++++[>+  | 
    15    ++++++++[>++++++++++[>++++++++++[>++++++++++[>+  | 
    14    +++++++++[-]<-]<-]<-]<-]<-]<-]<-]++++++++++."""  | 
    16    +++++++++[-]<-]<-]<-]<-]<-]<-]<-]++++++++++."""  | 
    15   | 
    17   | 
    16 assert(run(urban_bench, Map()) ==   | 
    18   assert(run(urban_bench, Map()) == Map(0 -> 10, 5 -> 0, 1 -> 0, 6 -> 0, 2 -> 0, 7 -> 0, 3 -> 0, 4 -> 0))  | 
    17   Map(0 -> 10, 5 -> 0, 1 -> 0, 6 -> 0, 2 -> 0, 7 -> 0, 3 -> 0, 4 -> 0))  | 
         | 
    18   | 
    19   | 
         | 
    20   }  | 
         | 
    21   | 
         | 
    22   Await.result(f, 32 second)  | 
    19 }  | 
    23 }  | 
    20   | 
         | 
    21 Await.result(f, 32 second)  | 
         |