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