diff options
author | Dejan Jovanović <dejan.jovanovic@gmail.com> | 2009-11-26 03:24:04 +0000 |
---|---|---|
committer | Dejan Jovanović <dejan.jovanovic@gmail.com> | 2009-11-26 03:24:04 +0000 |
commit | a47310931191a69bddc45bea4a0cf63e3379c2fb (patch) | |
tree | e18e62d8c2cfa9d3728e8458adf5609a03c0d059 /src/util/command.cpp | |
parent | fad7938f682c0cb07ecf6cb71e2efb878eecad1f (diff) |
Commands and the eclipse C++ project settings.
Diffstat (limited to 'src/util/command.cpp')
-rw-r--r-- | src/util/command.cpp | 55 |
1 files changed, 41 insertions, 14 deletions
diff --git a/src/util/command.cpp b/src/util/command.cpp index db03a9189..b728a2228 100644 --- a/src/util/command.cpp +++ b/src/util/command.cpp @@ -1,18 +1,45 @@ -/********************* -*- C++ -*- */ -/** command.cpp - ** This file is part of the CVC4 prototype. - ** Copyright (c) 2009 The Analysis of Computer Systems Group (ACSys) - ** Courant Institute of Mathematical Sciences - ** New York University - ** See the file COPYING in the top-level source directory for licensing - ** information. - ** - **/ +/* + * command.cpp + * + * Created on: Nov 25, 2009 + * Author: dejan + */ -#include "util/command.h" -#include "smt/smt_engine.h" +#include "command.h" -namespace CVC4 { +using namespace CVC4; +AssertCommand::AssertCommand(const Expr& e) : + d_expr(e) +{ +} + +void AssertCommand::invoke(CVC4::SmtEngine* smt_engine) +{ + smt_engine->assert(d_expr); +} + +CheckSatCommand::CheckSatCommand() +{ +} + +CheckSatCommand::CheckSatCommand(const Expr& e): + d_expr(e) +{ +} + +void CheckSatCommand::invoke(CVC4::SmtEngine* smt_engine) +{ + smt_engine->checkSat(d_expr); +} + +QueryCommand::QueryCommand(const Expr& e): + d_expr(e) +{ +} + +void QueryCommand::invoke(CVC4::SmtEngine* smt_engine) +{ + smt_engine->query(d_expr); +} -}/* CVC4 namespace */ |