diff options
author | qadeer <qadeer@microsoft.com> | 2011-11-13 17:25:28 -0800 |
---|---|---|
committer | qadeer <qadeer@microsoft.com> | 2011-11-13 17:25:28 -0800 |
commit | 163fc931061c2d3065ec7a0acba817357295c3d2 (patch) | |
tree | 12184d064e2a169179c0285cd4c65adab41a7fcc /Source/BoogieDriver | |
parent | c6797daa49abefba4480e5e7c99ce1605edcb083 (diff) |
added the option /inlineDepth:n. This option defaults to -1. If the user provides a non-negative number then that number is used to inline
procedures not annotated by {:inline n} attribute.
Diffstat (limited to 'Source/BoogieDriver')
-rw-r--r-- | Source/BoogieDriver/BoogieDriver.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/BoogieDriver/BoogieDriver.cs b/Source/BoogieDriver/BoogieDriver.cs index 5a1f8dc5..83e6009d 100644 --- a/Source/BoogieDriver/BoogieDriver.cs +++ b/Source/BoogieDriver/BoogieDriver.cs @@ -389,8 +389,8 @@ namespace Microsoft.Boogie { inline = true;
}
}
- if (inline && CommandLineOptions.Clo.LazyInlining == 0 &&
- CommandLineOptions.Clo.StratifiedInlining == 0) {
+ if ((inline && CommandLineOptions.Clo.LazyInlining == 0 && CommandLineOptions.Clo.StratifiedInlining == 0) ||
+ CommandLineOptions.Clo.InlineDepth >= 0) {
foreach (Declaration d in TopLevelDeclarations) {
Implementation impl = d as Implementation;
if (impl != null) {
|