summaryrefslogtreecommitdiff
path: root/Source/BoogieDriver
diff options
context:
space:
mode:
authorGravatar qadeer <qadeer@microsoft.com>2011-11-13 17:25:28 -0800
committerGravatar qadeer <qadeer@microsoft.com>2011-11-13 17:25:28 -0800
commit163fc931061c2d3065ec7a0acba817357295c3d2 (patch)
tree12184d064e2a169179c0285cd4c65adab41a7fcc /Source/BoogieDriver
parentc6797daa49abefba4480e5e7c99ce1605edcb083 (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.cs4
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) {