GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/base/output.cpp Lines: 13 13 100.0 %
Date: 2021-05-22 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
9400
null_streambuf null_sb;
27
9400
ostream null_os(&null_sb);
28
29
NullC nullStream;
30
31
9400
const std::string Cvc5ostream::s_tab = "  ";
32
9400
const int Cvc5ostream::s_indentIosIndex = ios_base::xalloc();
33
34
9400
DebugC DebugChannel(&cout);
35
9400
WarningC WarningChannel(&cerr);
36
9400
MessageC MessageChannel(&cout);
37
9400
NoticeC NoticeChannel(&null_os);
38
9400
ChatC ChatChannel(&null_os);
39
9400
TraceC TraceChannel(&cout);
40
9400
std::ostream DumpOutC::dump_cout(cout.rdbuf());// copy cout stream buffer
41
9400
DumpOutC DumpOutChannel(&DumpOutC::dump_cout);
42
43
28200
}  // namespace cvc5