Package soot.jimple.spark.geom.dataRep
Class PlainConstraint
- java.lang.Object
-
- soot.jimple.spark.geom.dataRep.PlainConstraint
-
- All Implemented Interfaces:
Numberable
public class PlainConstraint extends Object implements Numberable
The geometric encoding based constraint descriptor.- Author:
- xiao
-
-
Field Summary
Fields Modifier and Type Field Description intcodeIndicate the mapping relation between the two pointers, 1-1, 1-many, ...Pair<IVarAbstraction,IVarAbstraction>exprThe two pointers involved in this constraintSparkFieldfThe field that is involved in a complex constraintSet<Edge>interCallEdgesIf this constraint represents a parameter passing or function return, the corresponding call edge is identified herebooleanisActiveTo indicate if this constraint will be evaluated or notIVarAbstractionotherSideUsed in complex constraint.inttypeThe type of this constraint, e.g.
-
Constructor Summary
Constructors Constructor Description PlainConstraint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IVarAbstractiongetLHS()intgetNumber()IVarAbstractiongetRHS()voidsetLHS(IVarAbstraction newLHS)voidsetNumber(int number)voidsetRHS(IVarAbstraction newRHS)
-
-
-
Field Detail
-
type
public int type
The type of this constraint, e.g. allocation, assignment or complex
-
expr
public Pair<IVarAbstraction,IVarAbstraction> expr
The two pointers involved in this constraint
-
otherSide
public IVarAbstraction otherSide
Used in complex constraint. If this constraint is a store p.f = q, we say otherSide = q
-
code
public int code
Indicate the mapping relation between the two pointers, 1-1, 1-many, ...
-
f
public SparkField f
The field that is involved in a complex constraint
-
interCallEdges
public Set<Edge> interCallEdges
If this constraint represents a parameter passing or function return, the corresponding call edge is identified here
-
isActive
public boolean isActive
To indicate if this constraint will be evaluated or not
-
-
Method Detail
-
setNumber
public void setNumber(int number)
- Specified by:
setNumberin interfaceNumberable
-
getNumber
public int getNumber()
- Specified by:
getNumberin interfaceNumberable
-
getLHS
public IVarAbstraction getLHS()
-
setLHS
public void setLHS(IVarAbstraction newLHS)
-
getRHS
public IVarAbstraction getRHS()
-
setRHS
public void setRHS(IVarAbstraction newRHS)
-
-