bug fixes
[IRC.git] / Robust / src / Tests / mlp / tinyTest / test.java
1 public class Foo {
2   public Foo() {}
3 }
4
5
6 public class Test {
7
8   public static void main( String args[] ) {
9     
10     int x = Integer.parseInt( args[0] );
11     int y = Integer.parseInt( args[1] );
12
13     //Foo f;
14
15     sese fi {
16       //if( true ) {
17
18       System.out.println( "fi: x="+x+", y="+y );
19
20       x = y + 2;
21       y = 3;         
22
23       //f = new Foo();
24       //}      
25     }
26
27
28     // just for testing root's ability to
29     // realize a single exit after all returns
30     // DOESN'T WORK!
31     /*
32     if( false ) {
33       return;
34     }
35     */
36
37
38     /*
39     //  ADD BACK IN LATER, TO TEST STALLS
40     // shouldn't cause a stall
41     int z = x;
42
43     // stall and get values for y and z
44     x = x + 1;
45
46     // all of these should proceed without stall
47     y = y + 1;
48     x = x + 1;
49     z = z + 1;
50     */
51
52     // see that values from sese fi are
53     // forwarded to this sibling
54     //sese fo {
55     // expecting x=5, y=4
56     System.out.println( "root: x="+x+", y="+y );
57     //}
58
59     /*
60     float xyz = 2.0f;
61     float jjj = Math.abs( xyz );
62     */
63
64
65     //Integer i;
66     //afunc( i );
67   }
68
69   /*
70   public static void afunc( Integer i ) {
71     i = null;
72   }
73   */
74 }