-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #955 from soot-oss/doc/how2startATool
Improve Documentation website
- Loading branch information
Showing
41 changed files
with
3,078 additions
and
2,510 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Analysis Input | ||
i.e. What should be analyzed - an `AnalysisInputLocation` points to code input SootUp can analyze. | ||
We ship multiple Subclasses that can handle different code input. | ||
|
||
### Java Runtime | ||
- Java <=8: `DefaultRTJaAnalysisInputLocation` current rt.jar (or point to any rt.jar as its just a usual .jar file) | ||
- Java >=9: `JRTFilesystemAnalysisInputLocation` | ||
|
||
If you have errors like Java.lang.String, Java.lang.Object, ... you are most likely missing this AnalysisInput. | ||
|
||
### Java Bytecode .class, .jar, .war | ||
- `JavaClassPathAnalysisInputLocation` - its the equivalent of the classpath you would pass to the java executable i.e. point to root(s) of package(s). | ||
|
||
### Java Sourcecode .java | ||
- `OTFCompileAnalysisInputLocation` - you can point directly to .java files or pass a String with Java sourcecode, SootUp delegates to the `JavaCompiler` and transform the bytecode from the compiler to Jimple | ||
- `JavaSourcePathInputLocation` [***experimental!***]{Has huge problems with exceptional flow!} - points to a directory that is the root source directory (containing the package directory structure). | ||
|
||
### Jimple .jimple | ||
- `JimpleAnalysisInputLocation` - needs a Path to a .jimple file or a directory. | ||
|
||
### Android Bytecode .dex | ||
- `ApkAnalysisInputLocation` - currenlty uses dex2jar internally - A SootUp solution to directly generate Jimple is WIP! | ||
|
||
|
||
### Java cli arguments to configure SootUp | ||
We created a [Utility](tool_setup.md) that parses a String of java command line arguments and configures SootUp respectively. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
# Functionalities and Utilities | ||
# BuiltIn Analyses | ||
More to come! | ||
|
||
#### LocalLivenessAnalyser | ||
### LocalLivenessAnalyser | ||
|
||
LocalLivenessAnalyser is used for querying for the list of live local variables before and after a given <code>Stmt</code>. | ||
|
||
Example: | ||
|
||
![LocalLiveness Example](./figures/LocalLiveness%20Example.png) | ||
![LocalLiveness Example](assets/figures/LocalLiveness%20Example.png) | ||
|
||
The live local variables before and after each <code>Stmt</code> will be calculated after generating an instance of LocalLivenessAnalyser as shown the example above. They can be queried by using the methods <code>getLiveLocalsBeforeStmt</code> and <code>getLiveLocalsAfterStmt</code>. | ||
|
||
#### DominanceFinder | ||
### DominanceFinder | ||
|
||
DomianceFinder is used for querying for the immediate dominator and dominance frontiers for a given basic block. | ||
|
||
Example: ![DominanceFinder Example](figures/DominanceFinder%20Example.png) | ||
Example: ![DominanceFinder Example](assets/figures/DominanceFinder%20Example.png) | ||
|
||
After generating an instance of DominanceFinder for a <code>BlockGraph</code>, we will get the immediate dominator and dominance frontiers for each basic block. The both properties can be queried by using the methods<code>getImmediateDominator</code>and<code>getDominanceFrontiers</code>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.