diff options
author | MichalMoskal <unknown> | 2011-02-11 19:37:42 +0000 |
---|---|---|
committer | MichalMoskal <unknown> | 2011-02-11 19:37:42 +0000 |
commit | afb3de0ebf0539a89f2073a74f76bd811bee06c0 (patch) | |
tree | 32149207e61a851c614344c4ada8ca792cb0b483 /Source/Provers/TPTP/ProverInterface.cs | |
parent | 3b7e0b36496f504ae62acc61294d5b399feaf11c (diff) |
Get rid of -smtOutput option. Add /proverOpt:OUTPUT=... to SMT and TPTP provers. Add handling of help message about /proverOpt.
Diffstat (limited to 'Source/Provers/TPTP/ProverInterface.cs')
-rw-r--r-- | Source/Provers/TPTP/ProverInterface.cs | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/Source/Provers/TPTP/ProverInterface.cs b/Source/Provers/TPTP/ProverInterface.cs index 2b2590d1..4b710495 100644 --- a/Source/Provers/TPTP/ProverInterface.cs +++ b/Source/Provers/TPTP/ProverInterface.cs @@ -20,6 +20,33 @@ using Microsoft.Boogie.Simplify; namespace Microsoft.Boogie.TPTP
{
+ class TPTPProverOptions : ProverOptions
+ {
+ public string Output = "boogie-vc-@PROC@.tptp";
+
+ protected override bool Parse(string opt)
+ {
+ return
+ ParseString(opt, "OUTPUT", ref Output) ||
+ base.Parse(opt);
+ }
+
+ public override string Help
+ {
+ get
+ {
+ return
+@"
+TPTP-specific options:
+~~~~~~~~~~~~~~~~~~~~~~
+OUTPUT=<string> Store VC in named file. Defaults to boogie-vc-@PROC@.tptp.
+
+" + base.Help;
+ // DIST requires non-public binaries
+ }
+ }
+ }
+
public class TPTPProcessTheoremProver : LogProverInterface
{
private readonly DeclFreeProverContext ctx;
@@ -144,7 +171,7 @@ namespace Microsoft.Boogie.TPTP Contract.Requires(descriptiveName != null);
Contract.Ensures(Contract.Result<TextWriter>() != null);
- string filename = CommandLineOptions.Clo.SMTLibOutputPath;
+ string filename = ((TPTPProverOptions)options).Output;
filename = Helpers.SubstituteAtPROC(descriptiveName, cce.NonNull(filename));
return new StreamWriter(filename, false);
}
@@ -301,6 +328,11 @@ namespace Microsoft.Boogie.TPTP return new DeclFreeProverContext(gen, genOptions);
}
+ public override ProverOptions BlankProverOptions()
+ {
+ return new TPTPProverOptions();
+ }
+
protected virtual TPTPProcessTheoremProver SpawnProver(ProverOptions options,
VCExpressionGenerator gen,
DeclFreeProverContext ctx)
|