Skip to content

Commit 7316ae4

Browse files
Javadoc
1 parent f1ec4d2 commit 7316ae4

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

src/main/java/it/unipr/analysis/taint/TaintAbstractDomain.java

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,13 @@
2727
public abstract class TaintAbstractDomain
2828
implements ValueDomain<TaintAbstractDomain>, BaseLattice<TaintAbstractDomain> {
2929

30-
static int STACK_LIMIT = 32;
30+
/**
31+
* The stack limit.
32+
*/
33+
protected static int STACK_LIMIT = 32;
3134

3235
/**
33-
* The abstract stack domain
36+
* The abstract stack domain.
3437
*/
3538
private final ArrayList<TaintElement> stack;
3639

@@ -870,8 +873,22 @@ else if (isTop())
870873
return this.stack.get(STACK_LIMIT - 1);
871874
}
872875

876+
/**
877+
* Yields the set of opcodes that push taint elements.
878+
*
879+
* @return the set of opcodes that push taint elements
880+
*/
873881
public abstract Set<Operator> getTaintedOpcode();
874882

883+
/**
884+
* Utility for creating a concrete instance of {@link TaintAbstractDomain}
885+
* given the stack and the memory.
886+
*
887+
* @param list the stack
888+
* @param memory the memory
889+
*
890+
* @return a new concrete instance of {@link TaintAbstractDomain}
891+
*/
875892
public abstract TaintAbstractDomain mk(ArrayList<TaintElement> list, TaintElement memory);
876893

877894
}

0 commit comments

Comments
 (0)