}
public String toString() {
- return "sese enter";
+ return "sese "+id+" enter";
}
public void setFlatExit( FlatSESEExitNode fsexn ) {
}
public String toString() {
- return "seseexit";
+ assert enter != null;
+ return "sese "+enter.getIdentifier()+" exit";
}
public int kind() {
SOURCE_FILES=$(PROGRAM).java
BUILDSCRIPT=~/research/Robust/src/buildscript
-BSFLAGS= -justanalyze -ownership -ownallocdepth 1 -ownwritedots final -enable-assertions -flatirtasks #-recover -ownaliasfile aliases.txt
+BSFLAGS= -mainclass Test -ownership -ownallocdepth 1 -ownwritedots final -enable-assertions -flatirusermethods -ownaliasfile aliases.txt #-justanalyze -recover
all: $(PROGRAM).bin
public class Test {
public static void main( String args[] ) {
-
- /*
- int a = 0;
+
+ int a = 0;
sese {
int x = 3;
}
- a = x;
-
+ a = x;
+ /*
sese {
int y = 4;
y+=4;
sese {
int z = x + y;
z+=6;
- Integer n=new Integer(23);
+ //Integer n=new Integer(23);
}
}
- x = y + z;
+ x = y + z;
*/
+ /*
Integer r = disjoint t1 new Integer(23);
-
int[] s = disjoint t2 new int[10];
-
Integer[] t = disjoint t3 new Integer[10];
+ */
}
}
--- /dev/null
+PROGRAM=test
+
+SOURCE_FILES=$(PROGRAM).java
+
+BUILDSCRIPT=~/research/Robust/src/buildscript
+BSFLAGS= -mainclass Test -ownership -ownallocdepth 1 -ownwritedots final -enable-assertions -flatirusermethods -ownaliasfile aliases.txt #-justanalyze -recover
+
+all: $(PROGRAM).bin
+
+view: PNGs
+ eog *.png &
+
+PNGs: DOTs
+ d2p *COMPLETE*.dot
+
+DOTs: $(PROGRAM).bin
+
+$(PROGRAM).bin: $(SOURCE_FILES)
+ $(BUILDSCRIPT) $(BSFLAGS) -o $(PROGRAM) $(SOURCE_FILES)
+
+clean:
+ rm -f $(PROGRAM).bin
+ rm -fr tmpbuilddirectory
+ rm -f *~
+ rm -f *.dot
+ rm -f *.png
+ rm -f aliases.txt
--- /dev/null
+public class Test {
+
+ public static void main( String args[] ) {
+
+ int n = 10;
+
+ sese {
+
+ int[] a = new int[n];
+ int[] b = new int[n];
+ int[] c = new int[n];
+
+ for( int i = 0; i < n; ++i ) {
+ sese {
+ a[i] = i;
+ b[i] = n - i;
+ }
+ }
+
+ for( int j = 0; j < n; ++j ) {
+ sese {
+ c[j] = a[j] + b[j];
+ }
+ }
+
+ int total = 0;
+ for( int k = 0; k < n; ++k ) {
+ sese {
+ total = total + c[k];
+ }
+ }
+
+ System.out.println( "total is "+total );
+ }
+
+ }
+}