GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/base/output.cpp Lines: 13 13 100.0 %
Date: 2021-05-24 Branches: 3 6 50.0 %

Line Exec Source
1
/******************************************************************************
2
 * Top contributors (to current version):
3
 *   Mathias Preiner, Morgan Deters
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
 * Output utility classes and functions.
14
 */
15
16
#include "base/output.h"
17
18
#include <iostream>
19
20
using namespace std;
21
22
namespace cvc5 {
23
24
/* Definitions of the declared globals from output.h... */
25
26
9399
null_streambuf null_sb;
27
9399
ostream null_os(&null_sb);
28
29
NullC nullStream;
30
31
9399
const std::string Cvc5ostream::s_tab = "  ";
32
9399
const int Cvc5ostream::s_indentIosIndex = ios_base::xalloc();
33
34
9399
DebugC DebugChannel(&cout);
35
9399
WarningC WarningChannel(&cerr);
36
9399
MessageC MessageChannel(&cout);
37
9399
NoticeC NoticeChannel(&null_os);
38
9399
ChatC ChatChannel(&null_os);
39
9399
TraceC TraceChannel(&cout);
40
9399
std::ostream DumpOutC::dump_cout(cout.rdbuf());// copy cout stream buffer
41
9399
DumpOutC DumpOutChannel(&DumpOutC::dump_cout);
42
43
28197
}  // namespace cvc5