public class Util extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
nativeSpec
TODO: Make these properties?
|
| Constructor and Description |
|---|
Util() |
public static String nativeSpec
public static void setNativeSpec(String xmlFile)
public static String getNativeSpec()
public static void addDefaultSelectors(AnalysisOptions options, IClassHierarchy cha)
IllegalArgumentException - if options is nullpublic static void addBypassLogic(AnalysisOptions options, AnalysisScope scope, ClassLoader cl, String xmlFile, IClassHierarchy cha) throws IllegalArgumentException
IllegalArgumentException - if scope is nullIllegalArgumentException - if cl is nullIllegalArgumentException - if options is nullIllegalArgumentException - if scope is nullpublic static void addBypassLogic(AnalysisOptions options, AnalysisScope scope, ClassLoader cl, XMLMethodSummaryReader summary, IClassHierarchy cha) throws IllegalArgumentException
IllegalArgumentExceptionpublic static Iterable<Entrypoint> makeMainEntrypoints(AnalysisScope scope, IClassHierarchy cha)
scope - cha - IllegalArgumentException - if scope is nullpublic static Iterable<Entrypoint> makeMainEntrypoints(ClassLoaderReference clr, IClassHierarchy cha)
public static Iterable<Entrypoint> makeMainEntrypoints(AnalysisScope scope, IClassHierarchy cha, String className)
public static Iterable<Entrypoint> makeMainEntrypoints(AnalysisScope scope, IClassHierarchy cha, String[] classNames)
public static Iterable<Entrypoint> makeMainEntrypoints(ClassLoaderReference loaderRef, IClassHierarchy cha, String[] classNames) throws IllegalArgumentException, IllegalArgumentException, IllegalArgumentException
IllegalArgumentException - if classNames == nullIllegalArgumentException - if (classNames != null) and (0 < classNames.length) and (classNames[0] == null)IllegalArgumentException - if classNames.length == 0public static <T> Set<T> setify(Iterator<? extends T> x)
Iteratorpublic static <T> void checkGraphSubset(com.ibm.wala.util.graph.Graph<T> supG,
com.ibm.wala.util.graph.Graph<T> subG)
supG - subG - IllegalArgumentException - if subG is nullIllegalArgumentException - if supG is nullpublic static CallGraphBuilder makeRTABuilder(AnalysisOptions options, AnalysisCache cache, IClassHierarchy cha, AnalysisScope scope)
options - options that govern call graph constructioncha - governing class hierarchyscope - representation of the analysis scopepublic static SSAPropagationCallGraphBuilder makeZeroCFABuilder(AnalysisOptions options, AnalysisCache cache, IClassHierarchy cha, AnalysisScope scope)
options - options that govern call graph constructioncha - governing class hierarchyscope - representation of the analysis scopepublic static SSAPropagationCallGraphBuilder makeZeroCFABuilder(AnalysisOptions options, AnalysisCache cache, IClassHierarchy cha, AnalysisScope scope, ContextSelector customSelector, SSAContextInterpreter customInterpreter)
options - options that govern call graph constructioncha - governing class hierarchyscope - representation of the analysis scopecustomSelector - user-defined context selector, or null if nonecustomInterpreter - user-defined context interpreter, or null if noneIllegalArgumentException - if options is nullpublic static SSAPropagationCallGraphBuilder makeZeroOneCFABuilder(AnalysisOptions options, AnalysisCache cache, IClassHierarchy cha, AnalysisScope scope)
options - options that govern call graph constructioncha - governing class hierarchyscope - representation of the analysis scopepublic static SSAPropagationCallGraphBuilder makeVanillaZeroOneCFABuilder(AnalysisOptions options, AnalysisCache cache, IClassHierarchy cha, AnalysisScope scope, ContextSelector customSelector, SSAContextInterpreter customInterpreter)
options - options that govern call graph constructioncha - governing class hierarchyscope - representation of the analysis scopecustomSelector - user-defined context selector, or null if nonecustomInterpreter - user-defined context interpreter, or null if noneIllegalArgumentException - if options is nullpublic static SSAPropagationCallGraphBuilder makeVanillaZeroOneCFABuilder(AnalysisOptions options, AnalysisCache cache, IClassHierarchy cha, AnalysisScope scope)
options - options that govern call graph constructioncha - governing class hierarchyscope - representation of the analysis scopepublic static SSAPropagationCallGraphBuilder makeZeroOneCFABuilder(AnalysisOptions options, AnalysisCache cache, IClassHierarchy cha, AnalysisScope scope, ContextSelector customSelector, SSAContextInterpreter customInterpreter)
options - options that govern call graph constructioncha - governing class hierarchyscope - representation of the analysis scopecustomSelector - user-defined context selector, or null if nonecustomInterpreter - user-defined context interpreter, or null if noneIllegalArgumentException - if options is nullpublic static SSAPropagationCallGraphBuilder makeZeroContainerCFABuilder(AnalysisOptions options, AnalysisCache cache, IClassHierarchy cha, AnalysisScope scope)
options - options that govern call graph constructioncha - governing class hierarchyscope - representation of the analysis scopeIllegalArgumentException - if options is nullpublic static SSAPropagationCallGraphBuilder makeZeroOneContainerCFABuilder(AnalysisOptions options, AnalysisCache cache, IClassHierarchy cha, AnalysisScope scope)
options - options that govern call graph constructioncha - governing class hierarchyscope - representation of the analysis scopeIllegalArgumentException - if options is nullpublic static SSAPropagationCallGraphBuilder makeZeroOneContainerCFABuilder(AnalysisOptions options, AnalysisCache cache, IClassHierarchy cha, AnalysisScope scope, ContextSelector appSelector, SSAContextInterpreter appInterpreter)
public static SSAPropagationCallGraphBuilder makeNCFABuilder(int n, AnalysisOptions options, AnalysisCache cache, IClassHierarchy cha, AnalysisScope scope)
CallGraphBuilder that uses call-string context sensitivity,
with call-string length limited to n, and a context-sensitive
allocation-site-based heap abstraction.public static SSAPropagationCallGraphBuilder makeVanillaNCFABuilder(int n, AnalysisOptions options, AnalysisCache cache, IClassHierarchy cha, AnalysisScope scope)
CallGraphBuilder that uses call-string context sensitivity,
with call-string length limited to n, and a context-sensitive
allocation-site-based heap abstraction. Standard optimizations in the heap
abstraction like smushing of strings are disabled.public static SSAPropagationCallGraphBuilder makeVanillaZeroOneContainerCFABuilder(AnalysisOptions options, AnalysisCache cache, IClassHierarchy cha, AnalysisScope scope)
options - options that govern call graph constructioncha - governing class hierarchyscope - representation of the analysis scopeIllegalArgumentException - if options is nullpublic static void addDefaultBypassLogic(AnalysisOptions options, AnalysisScope scope, ClassLoader cl, IClassHierarchy cha)
Copyright © 2015. All rights reserved.