testing5/bfc.scala
changeset 250 1b08b8ac13fd
parent 236 e461b5325b5e
child 286 5c57c407e27b
equal deleted inserted replaced
249:1997cfcd6334 250:1b08b8ac13fd
   210 
   210 
   211 
   211 
   212 // testcases
   212 // testcases
   213 
   213 
   214 //optimise(load_bff("benchmark.bf"))          // should have inserted 0's
   214 //optimise(load_bff("benchmark.bf"))          // should have inserted 0's
       
   215 //optimise(load_bff("benchmark.bf")).length   // => 181  
   215 //optimise(load_bff("mandelbrot.bf")).length  // => 11203
   216 //optimise(load_bff("mandelbrot.bf")).length  // => 11203
   216  
   217  
   217 //time_needed(1, run3(load_bff("benchmark.bf")))
   218 //time_needed(1, run3(load_bff("benchmark.bf")))
   218 
   219 
   219 
   220 
   295   compute4(pg_opt, jtable(pg_opt), 0, 0, m)
   296   compute4(pg_opt, jtable(pg_opt), 0, 0, m)
   296 }
   297 }
   297 
   298 
   298 // testcases
   299 // testcases
   299 //combine(optimise(load_bff("benchmark.bf"))) // => """>A+B[<A+M>A-A]<A[[....."""
   300 //combine(optimise(load_bff("benchmark.bf"))) // => """>A+B[<A+M>A-A]<A[[....."""
       
   301 //combine(optimise(load_bff("benchmark.bf"))).length // => 134
       
   302 //combine(optimise(load_bff("mandelbrot.bf"))).length // => 6509
   300 
   303 
   301 //time_needed(1, run4(load_bff("benchmark.bf")))
   304 //time_needed(1, run4(load_bff("benchmark.bf")))
   302 
   305 
   303 //time_needed(1, run(load_bff("sierpinski.bf"))) 
   306 //time_needed(1, run(load_bff("sierpinski.bf"))) 
   304 //time_needed(1, run4(load_bff("sierpinski.bf"))) 
   307 //time_needed(1, run4(load_bff("sierpinski.bf")))