summaryrefslogtreecommitdiff
path: root/Source/Provers
diff options
context:
space:
mode:
authorGravatar qadeer <unknown>2013-11-22 11:19:15 -0800
committerGravatar qadeer <unknown>2013-11-22 11:19:15 -0800
commitf0d11b78f3453b5cfbb524e6d0c7214442814351 (patch)
tree9dc4edc2cba5e3e1a0cce26194bf880b8679f57d /Source/Provers
parent479fe0571200196552e3d415ab3b90e30083b1b2 (diff)
do monomorphic checking
Diffstat (limited to 'Source/Provers')
-rw-r--r--Source/Provers/SMTLib/ProverInterface.cs22
1 files changed, 14 insertions, 8 deletions
diff --git a/Source/Provers/SMTLib/ProverInterface.cs b/Source/Provers/SMTLib/ProverInterface.cs
index 86779a54..6b4f8cb9 100644
--- a/Source/Provers/SMTLib/ProverInterface.cs
+++ b/Source/Provers/SMTLib/ProverInterface.cs
@@ -52,8 +52,9 @@ namespace Microsoft.Boogie.SMTLib
Contract.Requires(options != null);
Contract.Requires(gen != null);
Contract.Requires(ctx != null);
+
InitializeGlobalInformation("UnivBackPred2.smt2");
-
+
this.options = (SMTLibProverOptions)options;
this.ctx = ctx;
this.gen = gen;
@@ -1188,13 +1189,18 @@ namespace Microsoft.Boogie.SMTLib
Contract.Ensures(_backgroundPredicates != null);
//throws ProverException, System.IO.FileNotFoundException;
if (_backgroundPredicates == null) {
- string codebaseString =
- cce.NonNull(Path.GetDirectoryName(cce.NonNull(System.Reflection.Assembly.GetExecutingAssembly().Location)));
-
- // Initialize '_backgroundPredicates'
- string univBackPredPath = Path.Combine(codebaseString, backgroundPred);
- using (StreamReader reader = new System.IO.StreamReader(univBackPredPath)) {
- _backgroundPredicates = reader.ReadToEnd();
+ if (CommandLineOptions.Clo.TypeEncodingMethod == CommandLineOptions.TypeEncoding.Monomorphic)
+ {
+ _backgroundPredicates = "";
+ }
+ else
+ {
+ string codebaseString = cce.NonNull(Path.GetDirectoryName(cce.NonNull(System.Reflection.Assembly.GetExecutingAssembly().Location)));
+ string univBackPredPath = Path.Combine(codebaseString, backgroundPred);
+ using (StreamReader reader = new System.IO.StreamReader(univBackPredPath))
+ {
+ _backgroundPredicates = reader.ReadToEnd();
+ }
}
}
}