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
+BUILDSCRIPT=../../../buildscript
+
+DEBUGFLAGS= -disjoint-debug-callsite f1 main 1
+
+BSFLAGS= -mainclass Test -justanalyze -disjoint -disjoint-k 2 -disjoint-write-dots all -disjoint-write-ihms -disjoint-alias-file aliases.txt normal -enable-assertions
all: $(PROGRAM).bin
DOTs: $(PROGRAM).bin
$(PROGRAM).bin: $(SOURCE_FILES)
- $(BUILDSCRIPT) $(BSFLAGS) -o $(PROGRAM) $(SOURCE_FILES)
+ $(BUILDSCRIPT) $(BSFLAGS) $(DEBUGFLAGS) -o $(PROGRAM) $(SOURCE_FILES)
clean:
rm -f $(PROGRAM).bin
}
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;
- }
+
+
+ static public void main( String[] args ) {
+ Foo a=getAFoo();
+ f1(a);
+ }
+
+ static public void f1( Foo c ) {
+ c.f = getAFoo();
+ }
+ static public Foo getAFoo(){
+ return disjoint NEW new Foo();
+ }
+
}