Skip to content

Commit

Permalink
re-add LocalSplitter javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Timbals committed Feb 8, 2024
1 parent 337de9c commit da75d07
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,32 @@
import sootup.core.transform.BodyInterceptor;
import sootup.core.views.View;

/**
* A BodyInterceptor that attempts to identify and separate uses of a local variable (definition)
* that are independent of each other.
*
* <p>For example the code:
*
* <pre>
* l0 := @this Test
* l1 = 0
* l2 = 1
* l1 = l1 + 1
* l2 = l2 + 1
* return
* </pre>
*
* to:
*
* <pre>
* l0 := @this Test
* l1#0 = 0
* l2#0 = 1
* l1#1 = l1#0 + 1
* l2#1 = l2#0 + 1
* return
* </pre>
*/
public class LocalSplitter implements BodyInterceptor {

/**
Expand Down

0 comments on commit da75d07

Please sign in to comment.