Installation Instructions:

1. Download DOOP (r160113) and soot-fact-generation (r958) from http://doop.program-analysis.org/download.html.

2. Unzip DOOP and soot-fact-generation, then set environment variable DOOP_HOME to the directory where you unpack DOOP by:
   $ export DOOP_HOME=unpack_directory/doop-r160113-bin/

3. Download sootclasses-2.5.0.jar from http://www.sable.mcgill.ca/soot/soot_download.html and then put it in $DOOP_HOME/lib/ directory.
   (DOOP (r160113) provides sootclasses-2.3.0.jar, ELF's facts generator needs sootclasses-2.5.0.jar)

4. Download elf.patch to $DOOP_HOME and then apply it to DOOP by:
   $ cd $DOOP_HOME
   $ patch -p1 < elf.patch

5. Download gen.patch to soot-fact-generation directory and then switch to soot-fact-generation directory, write:
   $ patch -p1 < gen.patch
   $ ./compile
   $ ./install

Now, the ELF has been installed on the top of DOOP.

ELF has the similiar usage with DOOP, except that you cannot use -disable-reflection, -disable-reflective-methods
and -distinguish-no-string-constants options. For running ELF, you can follow the instructions of $DOOP_HOME/README
provided by DOOP.

By default, ELF distinguishes a string constants if it is a class name, a method name or a field name. For fairly
comparing with DOOP, ELF treats the string constants which represent method names or field names as one string
constant while computing the size of points-to set.

Main changes to DOOP:
- soot-fact-generation/src/FactWriter.java, FactGenerator.java, PostDominatorFinder.java
  Generate more facts for reflection analysis, such as the ones involving post dominance.

- gen-import
  Import more facts for reflection analysis.  

  
- logic/library/elf/propagation.logic
  New added file which contains rules for resolving reflective calls by target propagation.

- logic/library/elf/inference.logic
  New added file which includes rules for resolving reflective calls by target inference.

- logic/library/elf/array.logic
  New added file which contains rules for handling methods of java.lang.reflect.Array.
  
- logic/library/elf/reflect-stats.logic
  New added file which contains rules for collecting reflection analysis results.
  
  
- logic/context-sensitive.logic
- logic/library/reflective.logic
  Fix unsound handling of argument passing for reflective invocation.

- logic/library/reflection-delta.logic
  Add place holders for helping target inference.

- logic/library/string-constants.logic
  Distinguish string constants whose values equal method names or field names.

- run
  Add "-ssa" option to fact generator arguments.

- stats-simple
  Output reflection analysis results.

