summaryrefslogtreecommitdiff
path: root/src/smt/command.h
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2019-07-29 15:00:07 -0500
committerGitHub <noreply@github.com>2019-07-29 15:00:07 -0500
commitf71a719b8000e901af141a326ac12bce59a6153d (patch)
treeb11379ca5139cfa9c87121c05cb883bcb453da07 /src/smt/command.h
parent90eddb069c3c9abf96719ac20aff45b44af86207 (diff)
Model blocker feature (#3112)
Diffstat (limited to 'src/smt/command.h')
-rw-r--r--src/smt/command.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/smt/command.h b/src/smt/command.h
index eb3199944..d82399135 100644
--- a/src/smt/command.h
+++ b/src/smt/command.h
@@ -958,6 +958,37 @@ class CVC4_PUBLIC GetModelCommand : public Command
SmtEngine* d_smtEngine;
}; /* class GetModelCommand */
+/** The command to block models. */
+class CVC4_PUBLIC BlockModelCommand : public Command
+{
+ public:
+ BlockModelCommand();
+
+ void invoke(SmtEngine* smtEngine) override;
+ Command* exportTo(ExprManager* exprManager,
+ ExprManagerMapCollection& variableMap) override;
+ Command* clone() const override;
+ std::string getCommandName() const override;
+}; /* class BlockModelCommand */
+
+/** The command to block model values. */
+class CVC4_PUBLIC BlockModelValuesCommand : public Command
+{
+ public:
+ BlockModelValuesCommand(const std::vector<Expr>& terms);
+
+ const std::vector<Expr>& getTerms() const;
+ void invoke(SmtEngine* smtEngine) override;
+ Command* exportTo(ExprManager* exprManager,
+ ExprManagerMapCollection& variableMap) override;
+ Command* clone() const override;
+ std::string getCommandName() const override;
+
+ protected:
+ /** The terms we are blocking */
+ std::vector<Expr> d_terms;
+}; /* class BlockModelValuesCommand */
+
class CVC4_PUBLIC GetProofCommand : public Command
{
public:
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback