summaryrefslogtreecommitdiff
path: root/Source/Provers
diff options
context:
space:
mode:
authorGravatar Rustan Leino <leino@microsoft.com>2012-11-20 18:32:11 -0800
committerGravatar Rustan Leino <leino@microsoft.com>2012-11-20 18:32:11 -0800
commit04990f42dc81b2b46ceb81210278371c3d744a4f (patch)
treeb665593de7574119246aab7c3e72b3666061c02f /Source/Provers
parent9527f8aea5086ab7addf0c058bf4b4df45960a49 (diff)
Diffstat (limited to 'Source/Provers')
-rw-r--r--Source/Provers/SMTLib/Z3.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/Provers/SMTLib/Z3.cs b/Source/Provers/SMTLib/Z3.cs
index 5dfec676..addfa3de 100644
--- a/Source/Provers/SMTLib/Z3.cs
+++ b/Source/Provers/SMTLib/Z3.cs
@@ -36,6 +36,18 @@ namespace Microsoft.Boogie.SMTLib
{
Contract.Ensures(_proverPath != null);
+ // Command line option 'z3exe' always has priority if set
+ if (CommandLineOptions.Clo.Z3ExecutablePath != null) {
+ _proverPath = CommandLineOptions.Clo.Z3ExecutablePath;
+ if (!File.Exists(_proverPath)) {
+ throw new ProverException("Cannot find prover specified with z3exe: " + _proverPath);
+ }
+ if (CommandLineOptions.Clo.Trace) {
+ Console.WriteLine("[TRACE] Using prover: " + _proverPath);
+ }
+ return;
+ }
+
var proverExe = "z3.exe";
if (_proverPath == null) {