1 |
|
/****************************************************************************** |
2 |
|
* Top contributors (to current version): |
3 |
|
* Andrew Reynolds, Andres Noetzli |
4 |
|
* |
5 |
|
* This file is part of the cvc5 project. |
6 |
|
* |
7 |
|
* Copyright (c) 2009-2021 by the authors listed in the file AUTHORS |
8 |
|
* in the top-level source directory and their institutional affiliations. |
9 |
|
* All rights reserved. See the file COPYING in the top-level source |
10 |
|
* directory for licensing information. |
11 |
|
* **************************************************************************** |
12 |
|
* |
13 |
|
* The parser class for the CVC language. |
14 |
|
*/ |
15 |
|
|
16 |
|
#include "parser/cvc/cvc.h" |
17 |
|
#include "smt/command.h" |
18 |
|
|
19 |
|
namespace cvc5 { |
20 |
|
namespace parser { |
21 |
|
|
22 |
1 |
void Cvc::forceLogic(const std::string& logic) |
23 |
|
{ |
24 |
1 |
Parser::forceLogic(logic); |
25 |
1 |
preemptCommand(new SetBenchmarkLogicCommand(logic)); |
26 |
1 |
} |
27 |
|
|
28 |
556 |
bool Cvc::getTesterName(api::Term cons, std::string& name) |
29 |
|
{ |
30 |
1112 |
std::stringstream ss; |
31 |
556 |
ss << "is_" << cons; |
32 |
556 |
name = ss.str(); |
33 |
1112 |
return true; |
34 |
|
} |
35 |
|
|
36 |
|
} // namespace parser |
37 |
28179 |
} // namespace cvc5 |