summaryrefslogtreecommitdiff
path: root/Source/Provers/SMTLib/ProverInterface.cs
diff options
context:
space:
mode:
authorGravatar akashlal <unknown>2014-09-29 23:25:18 +0530
committerGravatar akashlal <unknown>2014-09-29 23:25:18 +0530
commit3bff2d35122109b624f233234d657b1dc72e55c3 (patch)
tree88ede719116414b79253c2ec10462decc6495c72 /Source/Provers/SMTLib/ProverInterface.cs
parent1678f5194c0190eeabc495aa151726f87509d448 (diff)
Added a flag to initialize the interpolating TP
Diffstat (limited to 'Source/Provers/SMTLib/ProverInterface.cs')
-rw-r--r--Source/Provers/SMTLib/ProverInterface.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/Provers/SMTLib/ProverInterface.cs b/Source/Provers/SMTLib/ProverInterface.cs
index b85fdec1..01b8f3f6 100644
--- a/Source/Provers/SMTLib/ProverInterface.cs
+++ b/Source/Provers/SMTLib/ProverInterface.cs
@@ -2100,7 +2100,7 @@ namespace Microsoft.Boogie.SMTLib
public class SMTLibInterpolatingProcessTheoremProver : SMTLibProcessTheoremProver
{
- SMTLibInterpolatingProcessTheoremProver(ProverOptions options, VCExpressionGenerator gen,
+ public SMTLibInterpolatingProcessTheoremProver(ProverOptions options, VCExpressionGenerator gen,
SMTLibProverContext ctx)
: base(options, gen, ctx)
{
@@ -2372,6 +2372,9 @@ namespace Microsoft.Boogie.SMTLib
public class Factory : ProverFactory
{
+ // Set programmatically
+ public static bool UseInterpolation = false;
+
public override object SpawnProver(ProverOptions options, object ctxt)
{
//Contract.Requires(ctxt != null);
@@ -2414,6 +2417,9 @@ namespace Microsoft.Boogie.SMTLib
Contract.Requires(ctx != null);
Contract.Ensures(Contract.Result<SMTLibProcessTheoremProver>() != null);
+ if (UseInterpolation)
+ return new SMTLibInterpolatingProcessTheoremProver(options, gen, ctx);
+
return new SMTLibProcessTheoremProver(options, gen, ctx);
}