blob: b728a2228a325410ef9fda8416bf816ef4da6e37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/*
* command.cpp
*
* Created on: Nov 25, 2009
* Author: dejan
*/
#include "command.h"
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);
}
|