Skip to content

Commit 8f11521

Browse files
authored
Merge pull request boogie-org#119 from smackers/update-boogie
Updated Boogie to the latest commit
2 parents dc4ae72 + 5d7b206 commit 8f11521

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

boogie

Submodule boogie updated 124 files

source/ConstLoop.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,9 +437,7 @@ private HashSet<string> FindConstantLoops(IEnumerable<Implementation> candidates
437437

438438
// set strong array theory
439439
var ua_old = CommandLineOptions.Clo.UseArrayTheory;
440-
var wa_old = CommandLineOptions.Clo.WeakArrayTheory;
441440
CommandLineOptions.Clo.UseArrayTheory = true;
442-
CommandLineOptions.Clo.WeakArrayTheory = false;
443441

444442
var to = CommandLineOptions.Clo.ProverKillTime;
445443
CommandLineOptions.Clo.ProverKillTime = 5;
@@ -476,7 +474,6 @@ private HashSet<string> FindConstantLoops(IEnumerable<Implementation> candidates
476474

477475
// Reset options
478476
CommandLineOptions.Clo.UseArrayTheory = ua_old;
479-
CommandLineOptions.Clo.WeakArrayTheory = wa_old;
480477

481478
CommandLineOptions.Clo.ProverKillTime = to;
482479

source/Driver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,12 @@ public static void Initialize(Configs config)
153153
CommandLineOptions.Clo.PrintInstrumented = true;
154154
CommandLineOptions.Clo.ProcedureInlining = CommandLineOptions.Inlining.Assume;
155155
CommandLineOptions.Clo.StratifiedInliningVerbose = config.verboseMode;
156+
CommandLineOptions.Clo.TypeEncodingMethod = CommandLineOptions.TypeEncoding.Monomorphic;
156157

157158
// /noRemoveEmptyBlocks is needed for field refinement. It ensures that
158159
// we get an actual path in the program (so that we can concretize it)
159160
boogieOptions +=
160161
"/removeEmptyBlocks:0 /coalesceBlocks:0 " +
161-
"/typeEncoding:m " +
162162
"/subsumption:0 ";
163163

164164
InstrumentationConfig.UseOldInstrumentation = false;

source/ExplainError/program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1150,13 +1150,14 @@ private static Expr ExpandITE(IAppliable fun, Expr a, Expr b, Expr c, Expr f, bo
11501150
public static bool ParseCommandLine(string clo)
11511151
{
11521152
//without the next line, it fails to find the right prover!!
1153-
var boogieOptions = "/typeEncoding:m /doModSetAnalysis -timeLimit:100 -removeEmptyBlocks:0 /errorLimit:1 /printInstrumented " + clo;
1153+
var boogieOptions = "/doModSetAnalysis -timeLimit:100 -removeEmptyBlocks:0 /errorLimit:1 /printInstrumented " + clo;
11541154
var oldArgs = boogieOptions.Split(' ');
11551155
string[] args;
11561156
//Custom parser to look and remove RootCause specific options
11571157
var help = ParseArgs(oldArgs, out args);
11581158
CommandLineOptions.Install(new CommandLineOptions());
11591159
CommandLineOptions.Clo.RunningBoogieFromCommandLine = true;
1160+
CommandLineOptions.Clo.TypeEncodingMethod = CommandLineOptions.TypeEncoding.Monomorphic;
11601161
CommandLineOptions.Clo.Parse(args);
11611162
return !help;
11621163
}

0 commit comments

Comments
 (0)