Package pascal.taie.analysis.defuse
Class DefUse
java.lang.Object
pascal.taie.analysis.defuse.DefUse
- All Implemented Interfaces:
StmtResult<MultiMap<Var,
Stmt>>
Represents the analysis result of
DefUseAnalysis
, i.e.,
both def-use chain and use-def chain.-
Method Summary
-
Method Details
-
getDefs
- Returns:
- definitions of
var
atstmt
. Ifvar
is not used instmt
or it does not have any definitions, an empty set is returned.
-
getUses
- Returns:
- uses of the variable defined by
stmt
. Ifstmt
does not define any variable or the defined variable does not have any uses, an empty Set is returned.
-
isRelevant
- Specified by:
isRelevant
in interfaceStmtResult<MultiMap<Var,
Stmt>> - Returns:
- if
stmt
is relevant in this result.
-
getResult
StmtResult
for def-use analysis. Note that this result only contains use-def chain, and it is mainly for testing purpose.- Specified by:
getResult
in interfaceStmtResult<MultiMap<Var,
Stmt>> - Returns:
- analysis result of given stmt.
-