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