a test
authoryeom <yeom>
Wed, 17 Mar 2010 18:51:07 +0000 (18:51 +0000)
committeryeom <yeom>
Wed, 17 Mar 2010 18:51:07 +0000 (18:51 +0000)
Robust/src/Tests/disjoint/crashTest1/makefile [new file with mode: 0644]
Robust/src/Tests/disjoint/crashTest1/test.java [new file with mode: 0644]

diff --git a/Robust/src/Tests/disjoint/crashTest1/makefile b/Robust/src/Tests/disjoint/crashTest1/makefile
new file mode 100644 (file)
index 0000000..dcb012a
--- /dev/null
@@ -0,0 +1,27 @@
+PROGRAM=test
+
+SOURCE_FILES=$(PROGRAM).java
+
+BUILDSCRIPT=~/research/Robust/src/buildscript
+BSFLAGS= -mainclass Test -justanalyze -disjoint -disjoint-k 1 -disjoint-write-dots final -disjoint-alias-file aliases.txt normal -enable-assertions
+
+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
diff --git a/Robust/src/Tests/disjoint/crashTest1/test.java b/Robust/src/Tests/disjoint/crashTest1/test.java
new file mode 100644 (file)
index 0000000..65ad009
--- /dev/null
@@ -0,0 +1,17 @@
+public class Foo {
+  public Foo() {}
+  public Foo f;
+}
+
+public class Test {
+  static public void main( String[] args ) {
+    Foo a = disjoint A new Foo();
+    f1(a);
+  }
+     
+  static public void f1( Foo c ) {
+    Foo d = new Foo();
+    c.f = d;
+  }
+    
+}