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