Add option '-analyzer-max-loop', which specifies the maximum

number of times the analyzer will go through a loop.

llvm-svn: 104007
This commit is contained in:
Zhongxing Xu
2010-05-18 00:28:37 +00:00
parent 0dd05fb167
commit b013b0bc04
6 changed files with 14 additions and 4 deletions

View File

@@ -798,6 +798,7 @@ static void ParseAnalyzerArgs(AnalyzerOptions &Opts, ArgList &Args,
Args.hasArg(OPT_analyzer_experimental_internal_checks);
Opts.TrimGraph = Args.hasArg(OPT_trim_egraph);
Opts.MaxNodes = getLastArgIntValue(Args, OPT_analyzer_max_nodes,150000,Diags);
Opts.MaxLoop = getLastArgIntValue(Args, OPT_analyzer_max_loop, 3, Diags);
Opts.InlineCall = Args.hasArg(OPT_analyzer_inline_call);
}