cc paper example, THERE IS A BUG
authorjjenista <jjenista>
Tue, 22 Mar 2011 23:44:06 +0000 (23:44 +0000)
committerjjenista <jjenista>
Tue, 22 Mar 2011 23:44:06 +0000 (23:44 +0000)
Robust/src/Tests/disjoint/cc-paper-example/makefile [new file with mode: 0644]
Robust/src/Tests/disjoint/cc-paper-example/test.java [new file with mode: 0644]

diff --git a/Robust/src/Tests/disjoint/cc-paper-example/makefile b/Robust/src/Tests/disjoint/cc-paper-example/makefile
new file mode 100644 (file)
index 0000000..b36b083
--- /dev/null
@@ -0,0 +1,27 @@
+PROGRAM=test
+
+SOURCE_FILES=$(PROGRAM).java
+
+BUILDSCRIPT=~/research/Robust/src/buildscript
+BSFLAGS= -joptimize -flatirusermethods -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/cc-paper-example/test.java b/Robust/src/Tests/disjoint/cc-paper-example/test.java
new file mode 100644 (file)
index 0000000..ce6644c
--- /dev/null
@@ -0,0 +1,31 @@
+public class Graph {
+  public Node n;
+}
+
+public class Node {
+  public Config c;
+  public Node   n;
+}
+
+public class Config {
+}
+
+
+
+public class Test {
+
+  static public Node nodeFactory() {
+    return disjoint N new Node();
+  }
+
+  static public void main( String[] args ) {
+    Graph g  = disjoint G new Graph();
+    Node  u  = nodeFactory();
+    Node  v  = nodeFactory();
+    Config c = disjoint C new Config();
+
+    g.n = u;
+    u.n = v; u.c = c;
+    v.n = u; v.c = c;
+  }
+}