From: jjenista Date: Fri, 29 Jan 2010 01:22:35 +0000 (+0000) Subject: realized there were two print statements in regression testin different SESEs, breaks... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=82a227fc4b77d1e75243ab0a4b03dfdaea9c698c;p=IRC.git realized there were two print statements in regression testin different SESEs, breaks IO guarantees so chenged to one --- diff --git a/Robust/src/Tests/mlp/regression/test.java b/Robust/src/Tests/mlp/regression/test.java index 87da0340..e55f22a0 100644 --- a/Robust/src/Tests/mlp/regression/test.java +++ b/Robust/src/Tests/mlp/regression/test.java @@ -15,11 +15,14 @@ public class Test { int t = moreWork( x, f ); nullMethodBodyFinalNode(); int r = s+t; - System.out.println( "s+t="+r ); + System.out.println( "s = "+s+ + ", t = "+t+ + ", r = "+r ); } public static int doSomeWork( int x, Foo f ) { float delta = 1.0f; + int out = 0; for( int i = 0; i < x; ++i ) { sese calc { Foo g = new Foo( i ); @@ -68,10 +71,12 @@ public class Test { } } sese prnt { - mightPrint( x, i, sum + (int)delta, g ); + if( i == x - 1 ) { + out = x + i + sum + (int)delta + g.z; + } } } - return x; + return out; } public static int calculateStuff( int sum, int num, int mode ) { @@ -138,10 +143,4 @@ public class Test { return; } } - - public static void mightPrint( int x, int i, int sum, Foo g ) { - if( i == x - 1 ) { - System.out.println( "Results "+i+", "+x+", "+sum+", "+g.z ); - } - } }