summaryrefslogtreecommitdiff
path: root/src/expr/command.h
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2012-08-06 19:36:46 +0000
committerMorgan Deters <mdeters@gmail.com>2012-08-06 19:36:46 +0000
commitf40384bda966082f940054dcd258e382ad454265 (patch)
treef3a377af2be5f29a6d9c3ce3e3fab9fb0db44d5f /src/expr/command.h
parentd847992670fb6b868521a80ae83f02e6c0722288 (diff)
Cleanup of some command stuff, fixes broken Java build.
Diffstat (limited to 'src/expr/command.h')
-rw-r--r--src/expr/command.h61
1 files changed, 32 insertions, 29 deletions
diff --git a/src/expr/command.h b/src/expr/command.h
index 9f1722f9f..242817575 100644
--- a/src/expr/command.h
+++ b/src/expr/command.h
@@ -600,61 +600,64 @@ public:
};/* class DatatypeDeclarationCommand */
class CVC4_PUBLIC RewriteRuleCommand : public Command {
+public:
+ typedef std::vector< std::vector< Expr > > Triggers;
protected:
typedef std::vector< Expr > VExpr;
VExpr d_vars;
VExpr d_guards;
Expr d_head;
Expr d_body;
- typedef std::vector< std::vector< Expr > > Triggers;
Triggers d_triggers;
public:
- RewriteRuleCommand(const VExpr & vars,
- const std::vector< Expr> & guards,
- const Expr & head, const Expr & body,
- Triggers d_triggers
- ) throw();
- RewriteRuleCommand(const VExpr & vars,
- const Expr & head, const Expr & body) throw();
+ RewriteRuleCommand(const std::vector<Expr>& vars,
+ const std::vector<Expr>& guards,
+ Expr head,
+ Expr body,
+ const Triggers& d_triggers) throw();
+ RewriteRuleCommand(const std::vector<Expr>& vars,
+ Expr head,
+ Expr body) throw();
~RewriteRuleCommand() throw() {}
- const VExpr & getVars() const throw();
- const VExpr & getGuards() const throw();
- const Expr & getHead() const throw();
- const Expr & getBody() const throw();
- const Triggers & getTriggers() const throw();
+ const std::vector<Expr>& getVars() const throw();
+ const std::vector<Expr>& getGuards() const throw();
+ Expr getHead() const throw();
+ Expr getBody() const throw();
+ const Triggers& getTriggers() const throw();
void invoke(SmtEngine* smtEngine) throw();
Command* exportTo(ExprManager* exprManager, ExprManagerMapCollection& variableMap);
Command* clone() const;
};/* class RewriteRuleCommand */
class CVC4_PUBLIC PropagateRuleCommand : public Command {
+public:
+ typedef std::vector< std::vector< Expr > > Triggers;
protected:
typedef std::vector< Expr > VExpr;
VExpr d_vars;
VExpr d_guards;
VExpr d_heads;
Expr d_body;
- typedef std::vector< std::vector< Expr > > Triggers;
Triggers d_triggers;
bool d_deduction;
public:
- PropagateRuleCommand(const VExpr & vars,
- const VExpr & guards,
- const VExpr & heads,
- const Expr & body,
- Triggers d_triggers,
- /* true if we want a deduction rule */
- bool d_deduction = false
- ) throw();
- PropagateRuleCommand(const VExpr & vars,
- const VExpr & heads, const Expr & body,
+ PropagateRuleCommand(const std::vector<Expr>& vars,
+ const std::vector<Expr>& guards,
+ const std::vector<Expr>& heads,
+ Expr body,
+ const Triggers& d_triggers,
+ /* true if we want a deduction rule */
+ bool d_deduction = false) throw();
+ PropagateRuleCommand(const std::vector<Expr>& vars,
+ const std::vector<Expr>& heads,
+ Expr body,
bool d_deduction = false) throw();
~PropagateRuleCommand() throw() {}
- const VExpr & getVars() const throw();
- const VExpr & getGuards() const throw();
- const VExpr & getHeads() const throw();
- const Expr & getBody() const throw();
- const Triggers & getTriggers() const throw();
+ const std::vector<Expr>& getVars() const throw();
+ const std::vector<Expr>& getGuards() const throw();
+ const std::vector<Expr>& getHeads() const throw();
+ Expr getBody() const throw();
+ const Triggers& getTriggers() const throw();
bool isDeduction() const throw();
void invoke(SmtEngine* smtEngine) throw();
Command* exportTo(ExprManager* exprManager, ExprManagerMapCollection& variableMap);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback