summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar MichalMoskal <unknown>2011-02-21 21:54:01 +0000
committerGravatar MichalMoskal <unknown>2011-02-21 21:54:01 +0000
commitcc31c5d516332f1a70f88f4113d69e8987883589 (patch)
tree2d94886636a1cd7ab27213a8b53c13ba4842483a
parenta8ca55329e361d28cd2bebc9a6ce06145cb3e4e4 (diff)
Allow recent Z3 versions to be used
-rw-r--r--Source/Provers/Z3/Prover.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/Provers/Z3/Prover.cs b/Source/Provers/Z3/Prover.cs
index 81fa61a2..c2bb7500 100644
--- a/Source/Provers/Z3/Prover.cs
+++ b/Source/Provers/Z3/Prover.cs
@@ -3,6 +3,9 @@
// Copyright (C) Microsoft Corporation. All Rights Reserved.
//
//-----------------------------------------------------------------------------
+
+//#define RECENT_Z3 // 2.20 or newer
+
using System;
using System.IO;
using System.Diagnostics;
@@ -109,11 +112,18 @@ namespace Microsoft.Boogie.Z3
List<OptionValue/*!*/>/*!*/ result = new List<OptionValue/*!*/>();
AddOption(result, "MODEL_PARTIAL", "true");
- AddOption(result, "MODEL_VALUE_COMPLETION", "false");
+
AddOption(result, "MODEL_HIDE_UNUSED_PARTITIONS", "false");
AddOption(result, "MODEL_V1", "true");
AddOption(result, "ASYNC_COMMANDS", "false");
+#if RECENT_Z3
+ AddOption(result, "AUTO_CONFIG", "false");
+ AddOption(result, "MBQI", "false");
+#else
+ AddOption(result, "MODEL_VALUE_COMPLETION", "false");
+#endif
+
if (!opts.OptimizeForBv) {
// Phase selection means to always try the negative literal polarity first, seems to be good for Boogie.
// The restart parameters change the restart behavior to match Z3 v1, which also seems to be good.