GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/parser/cvc/cvc.cpp Lines: 10 10 100.0 %
Date: 2021-03-23 Branches: 9 18 50.0 %

Line Exec Source
1
/*********************                                                        */
2
/*! \file cvc.cpp
3
 ** \verbatim
4
 ** Top contributors (to current version):
5
 **   Andrew Reynolds, Andres Noetzli
6
 ** This file is part of the CVC4 project.
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.\endverbatim
11
 **
12
 ** \brief The parser class for the CVC language.
13
 **
14
 ** The parser class for the CVC language.
15
 **/
16
17
#include "parser/cvc/cvc.h"
18
#include "smt/command.h"
19
20
namespace CVC4 {
21
namespace parser {
22
23
1
void Cvc::forceLogic(const std::string& logic)
24
{
25
1
  Parser::forceLogic(logic);
26
1
  preemptCommand(new SetBenchmarkLogicCommand(logic));
27
1
}
28
29
342
bool Cvc::getTesterName(api::Term cons, std::string& name)
30
{
31
684
  std::stringstream ss;
32
342
  ss << "is_" << cons;
33
342
  name = ss.str();
34
684
  return true;
35
}
36
37
}  // namespace parser
38
26673
}  // namespace CVC4