summaryrefslogtreecommitdiff
path: root/Source/BoogieDriver
diff options
context:
space:
mode:
authorGravatar qadeer <unknown>2010-08-11 17:16:29 +0000
committerGravatar qadeer <unknown>2010-08-11 17:16:29 +0000
commit97b315c477bdf4e14c15d16e38f13ec08b3a46d6 (patch)
treeedcb11e613927b66ba5964a6b4d352659f082709 /Source/BoogieDriver
parent78ee8223d2bab10b38f3e42c450126d6171e4536 (diff)
Added the option /extractLoops to extract loops as procedure calls. If either lazyInline or stratifiedInline is greater than 1, the extracted procedure is decorated with the attribute "{:inline 1}". The implementation involved moving the procedure GraphFromImpl from VC.cs to Absy.ssc.
Diffstat (limited to 'Source/BoogieDriver')
-rw-r--r--Source/BoogieDriver/BoogieDriver.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/BoogieDriver/BoogieDriver.cs b/Source/BoogieDriver/BoogieDriver.cs
index aeb0f627..0e99ad9b 100644
--- a/Source/BoogieDriver/BoogieDriver.cs
+++ b/Source/BoogieDriver/BoogieDriver.cs
@@ -529,6 +529,11 @@ namespace Microsoft.Boogie {
program.UnrollLoops(CommandLineOptions.Clo.LoopUnrollCount);
}
+ if (CommandLineOptions.Clo.ExtractLoops)
+ {
+ program.ExtractLoops();
+ }
+
if (CommandLineOptions.Clo.PrintInstrumented) {
program.Emit(new TokenTextWriter(Console.Out));
}