Package qilin.core.config
Class PointerAnalysisComponents
java.lang.Object
qilin.core.config.PointerAnalysisComponents
Centralizes the two cross-cutting policy decisions (heap abstraction, ignore-type context
selector wrapping) that used to be copy-pasted, identically, across every
qilin.pta.tools.* constructor.-
Method Summary
Modifier and TypeMethodDescriptionstatic ContextSelectorcreateContextSelector(PointerAnalysisConfig config, View view, ContextSensitivity contextSensitivity) static HeapAbstractorcreateHeapAbstractor(PointerAnalysisConfig config, PAG pag) static ContextSelectorwrapIgnoreTypesGuard(PointerAnalysisConfig config, View view, ContextSelector base) Wrapsbasewith aHeuristicSelectorguard that forces an empty context for ignore-types, when the config asks for it; otherwise returnsbaseunchanged.
-
Method Details
-
createHeapAbstractor
-
createContextSelector
public static ContextSelector createContextSelector(PointerAnalysisConfig config, View view, ContextSensitivity contextSensitivity) -
wrapIgnoreTypesGuard
public static ContextSelector wrapIgnoreTypesGuard(PointerAnalysisConfig config, View view, ContextSelector base) Wrapsbasewith aHeuristicSelectorguard that forces an empty context for ignore-types, when the config asks for it; otherwise returnsbaseunchanged.
-