From: bdemsky Date: Sun, 15 Feb 2009 20:26:48 +0000 (+0000) Subject: final corrections X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f27b4e65b8eb50652d2e2ba54ae615d9cc4efa54;p=IRC.git final corrections --- diff --git a/Robust/src/Benchmarks/Performance/Fractal.java b/Robust/src/Benchmarks/Performance/Fractal.java index 47e61d31..131cbd2a 100644 --- a/Robust/src/Benchmarks/Performance/Fractal.java +++ b/Robust/src/Benchmarks/Performance/Fractal.java @@ -5,7 +5,7 @@ task t1(StartupObject s{initialstate}) { int width = 3200; int height = 3200; - int group = 640; + int group = 2; int h = height / group; for(int i = 0; i < group; i++) { @@ -107,12 +107,18 @@ public class Fractal { int scaleda,scaledb; float adelta = (this.alen/appletWidth); float bdelta = (this.blen/appletHeight); + float bspan = (this.blen/group); int[] ps = this.pixels; int length = ps.length; int id = this.id; int group = this.group; - float startb = bmin + bdelta * id; - float endb = bmax - bdelta * (group - id - 1); + float startb = bmin + bspan * id; + float endb; + if ((id+1)==group) + endb=bmax; + else + endb=bmin+bspan*(id+1); + int count=0; for(a=amin;a0) { scaleda=(int)((a - amin)*appletWidth/(amax - amin)); scaledb=(int)((b - bmin)*appletHeight/(bmax - bmin)); @@ -143,6 +150,7 @@ public class Fractal { } } } + System.printString(count+"\n"); } } diff --git a/Robust/src/Benchmarks/Performance/makefile b/Robust/src/Benchmarks/Performance/makefile index 59ab097b..7075e74e 100644 --- a/Robust/src/Benchmarks/Performance/makefile +++ b/Robust/src/Benchmarks/Performance/makefile @@ -1,4 +1,4 @@ -FLAGS=-optimize -recover +FLAGS=-optimize -recover -fastcheck default: ../../buildscript ${FLAGS} -o FractalBR Fractal.java