Coverage Report

Created: 2026-06-12 16:48

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/root/bitcoin/src/util/check.h
Line
Count
Source
1
// Copyright (c) 2019-present The Bitcoin Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5
#ifndef BITCOIN_UTIL_CHECK_H
6
#define BITCOIN_UTIL_CHECK_H
7
8
#include <attributes.h>
9
10
#include <atomic>
11
// We use `util/check.h` to provide the `assert()` macro
12
// to ensure that `NDEBUG` is not defined.
13
#include <cassert> // IWYU pragma: export
14
#include <source_location>
15
#include <stdexcept>
16
#include <string>
17
#include <string_view>
18
#include <type_traits>
19
#include <utility>
20
21
constexpr bool G_FUZZING_BUILD{
22
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
23
    true
24
#else
25
    false
26
#endif
27
};
28
constexpr bool G_ABORT_ON_FAILED_ASSUME{G_FUZZING_BUILD ||
29
#ifdef ABORT_ON_FAILED_ASSUME
30
    true
31
#else
32
    false
33
#endif
34
};
35
36
extern std::atomic<bool> g_enable_dynamic_fuzz_determinism;
37
38
inline bool EnableFuzzDeterminism()
39
1.56k
{
40
1.56k
    if constexpr (G_FUZZING_BUILD) {
41
1.56k
        return true;
42
    } else if constexpr (!G_ABORT_ON_FAILED_ASSUME) {
43
        // Running fuzz tests is always disabled if Assume() doesn't abort
44
        // (ie, non-fuzz non-debug builds), as otherwise tests which
45
        // should fail due to a failing Assume may still pass. As such,
46
        // we also statically disable fuzz determinism in that case.
47
        return false;
48
    } else {
49
        return g_enable_dynamic_fuzz_determinism;
50
    }
51
1.56k
}
52
53
extern bool g_detail_test_only_CheckFailuresAreExceptionsNotAborts;
54
struct test_only_CheckFailuresAreExceptionsNotAborts {
55
0
    test_only_CheckFailuresAreExceptionsNotAborts() { g_detail_test_only_CheckFailuresAreExceptionsNotAborts = true; };
56
0
    ~test_only_CheckFailuresAreExceptionsNotAborts() { g_detail_test_only_CheckFailuresAreExceptionsNotAborts = false; };
57
};
58
59
std::string StrFormatInternalBug(std::string_view msg, const std::source_location& loc);
60
61
class NonFatalCheckError : public std::runtime_error
62
{
63
public:
64
    NonFatalCheckError(std::string_view msg, const std::source_location& loc);
65
};
66
67
/** Internal helper */
68
void assertion_fail(const std::source_location& loc, std::string_view assertion);
69
70
/** Helper for CHECK_NONFATAL() */
71
template <typename T>
72
T&& inline_check_non_fatal(LIFETIMEBOUND T&& val, const std::source_location& loc, std::string_view assertion)
73
0
{
74
0
    if (!val) {
  Branch (74:9): [True: 0, False: 0]
  Branch (74:9): [True: 0, False: 0]
  Branch (74:9): [True: 0, False: 0]
  Branch (74:9): [True: 0, False: 0]
  Branch (74:9): [True: 0, False: 0]
  Branch (74:9): [True: 0, False: 0]
  Branch (74:9): [True: 0, False: 0]
  Branch (74:9): [True: 0, False: 0]
  Branch (74:9): [True: 0, False: 0]
  Branch (74:9): [True: 0, False: 0]
  Branch (74:9): [True: 0, False: 0]
  Branch (74:9): [True: 0, False: 0]
  Branch (74:9): [True: 0, False: 0]
  Branch (74:9): [True: 0, False: 0]
  Branch (74:9): [True: 0, False: 0]
  Branch (74:9): [True: 0, False: 0]
  Branch (74:9): [True: 0, False: 0]
  Branch (74:9): [True: 0, False: 0]
  Branch (74:9): [True: 0, False: 0]
  Branch (74:9): [True: 0, False: 0]
  Branch (74:9): [True: 0, False: 0]
  Branch (74:9): [True: 0, False: 0]
  Branch (74:9): [True: 0, False: 0]
  Branch (74:9): [True: 0, False: 0]
  Branch (74:9): [True: 0, False: 0]
  Branch (74:9): [True: 0, False: 0]
75
0
        if constexpr (G_ABORT_ON_FAILED_ASSUME) {
76
0
            assertion_fail(loc, assertion);
77
0
        }
78
0
        throw NonFatalCheckError{assertion, loc};
79
0
    }
80
0
    return std::forward<T>(val);
81
0
}
Unexecuted instantiation: _Z22inline_check_non_fatalIbEOT_S1_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_check_non_fatalIRKbEOT_S3_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_check_non_fatalIRbEOT_S2_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_check_non_fatalIRPK14JSONRPCRequestEOT_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_check_non_fatalIRPK8UniValueEOT_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_check_non_fatalISt8optionalI13arith_uint256EEOT_S4_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_check_non_fatalIRPN6wallet25DescriptorScriptPubKeyManEEOT_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_check_non_fatalIRKP17ValidationSignalsEOT_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_check_non_fatalIPK11CBlockIndexEOT_S4_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_check_non_fatalIRPK11CBlockIndexEOT_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_check_non_fatalISt10unique_ptrI16CCoinsViewCursorSt14default_deleteIS1_EEEOT_S6_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_check_non_fatalIPN4node12BlockManagerEEOT_S4_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_check_non_fatalISt10shared_ptrIK12CTransactionEEOT_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_check_non_fatalIRP11CBlockIndexEOT_S4_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_check_non_fatalISt8optionalIN10interfaces8BlockRefEEEOT_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_check_non_fatalIRSt10unique_ptrI17ValidationSignalsSt14default_deleteIS1_EEEOT_S7_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_check_non_fatalIP11CBlockIndexEOT_S3_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_check_non_fatalIRKP11CBlockIndexEOT_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_check_non_fatalIRSt10unique_ptrIN4node8WarningsESt14default_deleteIS2_EEEOT_S8_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_check_non_fatalIRSt8optionalIN6kernel11CCoinsStatsEEEOT_S6_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_check_non_fatalIRKSt10unique_ptrI17ValidationSignalsSt14default_deleteIS1_EEEOT_S8_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_check_non_fatalIRKSt8optionalI8CFeeRateEEOT_S6_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_check_non_fatalIRSt10unique_ptrIN10interfaces13BlockTemplateESt14default_deleteIS2_EEEOT_S8_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_check_non_fatalIRKSt10unique_ptrI10CSchedulerSt14default_deleteIS1_EEEOT_S8_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_check_non_fatalISt8optionalI19CMutableTransactionEEOT_S4_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_check_non_fatalIRSt8functionIFbvEEEOT_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
82
83
#if defined(NDEBUG)
84
#error "Cannot compile without assertions!"
85
#endif
86
87
/** Helper for Assert()/Assume() */
88
template <bool IS_ASSERT, typename T>
89
constexpr T&& inline_assertion_check(LIFETIMEBOUND T&& val, [[maybe_unused]] const std::source_location& loc, [[maybe_unused]] std::string_view assertion)
90
8.51M
{
91
8.51M
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
92
8.51M
        if (!val) {
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 8.50M]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 4.70k]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 1.56k]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 1.56k]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 1.56k]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
  Branch (92:13): [True: 0, False: 0]
93
0
            assertion_fail(loc, assertion);
94
0
        }
95
8.51M
    }
96
8.51M
    return std::forward<T>(val);
97
8.51M
}
Unexecuted instantiation: _Z22inline_assertion_checkILb0EbEOT0_S1_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb0EiEOT0_S1_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb0ERKhEOT0_S3_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERP10CCoinsViewEOT0_S4_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
_Z22inline_assertion_checkILb1ERKSt10unique_ptrI14LevelDBContextSt14default_deleteIS1_EEEOT0_S8_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Line
Count
Source
90
8.50M
{
91
8.50M
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
92
8.50M
        if (!val) {
  Branch (92:13): [True: 0, False: 8.50M]
93
0
            assertion_fail(loc, assertion);
94
0
        }
95
8.50M
    }
96
8.50M
    return std::forward<T>(val);
97
8.50M
}
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERSt10unique_ptrI10CoinsViewsSt14default_deleteIS1_EEEOT0_S7_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERSt10unique_ptrI15CCoinsViewCacheSt14default_deleteIS1_EEEOT0_S7_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERKSt8optionalI13arith_uint256EEOT0_S6_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERKSt8optionalI7uint256EEOT0_S6_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERbEOT0_S2_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
_Z22inline_assertion_checkILb1EbEOT0_S1_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Line
Count
Source
90
4.70k
{
91
4.70k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
92
4.70k
        if (!val) {
  Branch (92:13): [True: 0, False: 4.70k]
93
0
            assertion_fail(loc, assertion);
94
0
        }
95
4.70k
    }
96
4.70k
    return std::forward<T>(val);
97
4.70k
}
Unexecuted instantiation: _Z22inline_assertion_checkILb0ERmEOT0_S2_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb0ERKmEOT0_S3_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
_Z22inline_assertion_checkILb1EN4util8ExpectedISt6vectorISt6futureIvESaIS4_EEN10ThreadPool11SubmitErrorEEEEOT0_SB_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Line
Count
Source
90
1.56k
{
91
1.56k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
92
1.56k
        if (!val) {
  Branch (92:13): [True: 0, False: 1.56k]
93
0
            assertion_fail(loc, assertion);
94
0
        }
95
1.56k
    }
96
1.56k
    return std::forward<T>(val);
97
1.56k
}
Unexecuted instantiation: _Z22inline_assertion_checkILb1E10MinisketchEOT0_S2_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ESt8optionalISt6vectorImSaImEEEEOT0_S6_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERPK13MappingResultEOT0_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1EPK15CTxMemPoolEntryEOT0_S4_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ElEOT0_S1_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1EN4util8ExpectedISt6futureIvEN10ThreadPool11SubmitErrorEEEEOT0_S8_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERKbEOT0_S3_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERKSt8optionalIlEEOT0_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERKSt8optionalI8CFeeRateEEOT0_S6_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERKSt8optionalISt6vectorI22transaction_identifierILb1EESaIS3_EEEEOT0_SA_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERPK11CBlockIndexEOT0_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ESt8optionalIN6kernel11CCoinsStatsEEEOT0_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ESt8optionalI14AssumeutxoDataEEOT0_S4_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERSt10unique_ptrI17ChainstateManagerSt14default_deleteIS1_EEEOT0_S7_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ESt8optionalIiEEOT0_S3_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1EN4util6ResultISt17reference_wrapperIN6wallet25DescriptorScriptPubKeyManEEEEEOT0_S8_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ESt8optionalI10OutputTypeEEOT0_S4_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1EN4util6ResultISt7variantIJ14CNoDestination17PubKeyDestination6PKHash10ScriptHash19WitnessV0ScriptHash16WitnessV0KeyHash16WitnessV1Taproot11PayToAnchor14WitnessUnknownEEEEEOT0_SF_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
_Z22inline_assertion_checkILb1ERPKSt8functionIFvSt4spanIKhLm18446744073709551615EEEEEOT0_SA_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Line
Count
Source
90
1.56k
{
91
1.56k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
92
1.56k
        if (!val) {
  Branch (92:13): [True: 0, False: 1.56k]
93
0
            assertion_fail(loc, assertion);
94
0
        }
95
1.56k
    }
96
1.56k
    return std::forward<T>(val);
97
1.56k
}
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERKSt8optionalIN2fs4pathEEEOT0_S7_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb0ERKbEOT0_S3_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb0ERSt8optionalISt4pairI11XOnlyPubKeybEEEOT0_S7_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb0ERKPSt3mapI7uint25614MuSig2SecNonceSt4lessIS1_ESaISt4pairIKS1_S2_EEEEOT0_SE_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1EPKN6wallet9CWalletTxEEOT0_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1EmEOT0_S1_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERKPK7uint256EOT0_S6_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb0ERbEOT0_S2_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERKP11ArgsManagerEOT0_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb0ERPN6wallet14LegacyDataSPKMEEOT0_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERP10CSchedulerEOT0_S4_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERP11ArgsManagerEOT0_S4_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERSt10unique_ptrIN6wallet17SQliteExecHandlerESt14default_deleteIS2_EEEOT0_S8_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERKSt10unique_ptrI17ChainstateManagerSt14default_deleteIS1_EEEOT0_S8_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERSt10unique_ptrIN10interfaces13BlockTemplateESt14default_deleteIS2_EEEOT0_S8_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
_Z22inline_assertion_checkILb1ERSt6atomicIbEEOT0_S4_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Line
Count
Source
90
1.56k
{
91
1.56k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
  Branch (91:9): [Folded - Ignored]
  Branch (91:22): [Folded - Ignored]
  Branch (91:54): [Folded - Ignored]
92
1.56k
        if (!val) {
  Branch (92:13): [True: 0, False: 1.56k]
93
0
            assertion_fail(loc, assertion);
94
0
        }
95
1.56k
    }
96
1.56k
    return std::forward<T>(val);
97
1.56k
}
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERSt8functionIFbvEEEOT0_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERSt10unique_ptrIN4node8WarningsESt14default_deleteIS2_EEEOT0_S8_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1EP10CTxMemPoolEOT0_S3_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERN4util6ResultIN4node18BlockCreateOptionsEEEEOT0_S7_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERPN4util15SignalInterruptEEOT0_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERKN4util6ResultIvEEEOT0_S6_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERSt8optionalI18PresaltedSipHasherEEOT0_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1EPK11CBlockIndexEOT0_S4_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1EP17evhttp_connectionEOT0_S3_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERP14evhttp_requestEOT0_S4_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERPK17evhttp_connectionEOT0_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1EPN10ThreadPool11SubmitErrorEEOT0_S4_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERSt8optionalIN4util15SignalInterruptEEEOT0_S6_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1EN4util6ResultIvEEEOT0_S4_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERSt10unique_ptrI17ValidationSignalsSt14default_deleteIS1_EEEOT0_S7_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERSt10unique_ptrIN4node19KernelNotificationsESt14default_deleteIS2_EEEOT0_S8_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1EP11CBlockIndexEOT0_S3_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERP11CBlockIndexEOT0_S4_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: net_processing.cpp:_Z22inline_assertion_checkILb1EPN12_GLOBAL__N_110CNodeStateEEOT0_S4_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: net_processing.cpp:_Z22inline_assertion_checkILb1ESt10shared_ptrIN12_GLOBAL__N_14PeerEEEOT0_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb0EP11CBlockIndexEOT0_S3_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERKSt8optionalI14AssumeutxoDataEEOT0_S6_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERSt8optionalIN4node15BlockfileCursorEEEOT0_S6_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERKSt10unique_ptrIN4node19KernelNotificationsESt14default_deleteIS2_EEEOT0_S9_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERKPN4util15SignalInterruptEEOT0_S6_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERPN4node11NodeContextEEOT0_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1EPN4node11NodeContextEEOT0_S4_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERPN10interfaces12WalletLoaderEEOT0_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERKSt8optionalImEEOT0_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb0ERKSt8optionalI7uint256EEOT0_S6_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb0ESt8optionalI7uint256EEOT0_S4_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1EPKN4node12ReadRawErrorEEOT0_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1EPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEOT0_S9_RKSt15source_locationSt17basic_string_viewIcS3_E
Unexecuted instantiation: _Z22inline_assertion_checkILb0EjEOT0_S1_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb0ERPKN7TxGraph3RefEEOT0_S6_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: txgraph.cpp:_Z22inline_assertion_checkILb0ERPN12_GLOBAL__N_17ClusterEEOT0_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb0ERSt10unique_ptrIN10CTxMemPool9ChangeSetESt14default_deleteIS2_EEEOT0_S8_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERSt10shared_ptrIK6CBlockEEOT0_S6_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERPK7uint256EOT0_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERKSt8optionalIiEEOT0_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb0ERKP11CBlockIndexEOT0_S5_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1EP10ChainstateEOT0_S3_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ESt10unique_ptrI10ChainstateSt14default_deleteIS1_EEEOT0_S6_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERSt10unique_ptrIN4util19TaskRunnerInterfaceESt14default_deleteIS2_EEEOT0_S8_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERKPK6CBlockEOT0_S6_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ERKPK10CBlockUndoEOT0_S6_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
Unexecuted instantiation: _Z22inline_assertion_checkILb1ESt8optionalI7uint256EEOT0_S4_RKSt15source_locationSt17basic_string_viewIcSt11char_traitsIcEE
98
99
0
#define STR_INTERNAL_BUG(msg) StrFormatInternalBug((msg), std::source_location::current())
100
101
/**
102
 * Identity function. Throw a NonFatalCheckError when the condition evaluates to false
103
 *
104
 * This should only be used
105
 * - where the condition is assumed to be true, not for error handling or validating user input
106
 * - where a failure to fulfill the condition is recoverable and does not abort the program
107
 *
108
 * For example in RPC code, where it is undesirable to crash the whole program, this can be generally used to replace
109
 * asserts or recoverable logic errors. A NonFatalCheckError in RPC code is caught and passed as a string to the RPC
110
 * caller, which can then report the issue to the developers.
111
 */
112
#define CHECK_NONFATAL(condition) \
113
0
    inline_check_non_fatal(condition, std::source_location::current(), #condition)
Unexecuted instantiation: blockchain.cpp:_ZZL12GetUTXOStatsP10CCoinsViewRN4node12BlockManagerEN6kernel17CoinStatsHashTypeERKSt8functionIFvvEEPK11CBlockIndexbENK3$_0clEv
Unexecuted instantiation: blockchain.cpp:_ZZZL15gettxoutsetinfovENK3$_0clERK9RPCMethodRK14JSONRPCRequestENKUlvE_clEv
Unexecuted instantiation: blockchain.cpp:_ZZZL10scanblocksvENK3$_0clERK9RPCMethodRK14JSONRPCRequestENKUlvE0_clEv
114
115
/** Identity function. Abort if the value compares equal to zero */
116
8.46M
#define Assert(val) inline_assertion_check<true>(val, std::source_location::current(), #val)
117
118
/**
119
 * Assume is the identity function.
120
 *
121
 * - Should be used to run non-fatal checks. In debug builds it behaves like
122
 *   Assert()/assert() to notify developers and testers about non-fatal errors.
123
 *   In production it doesn't warn or log anything.
124
 * - For fatal errors, use Assert().
125
 * - For non-fatal errors in interactive sessions (e.g. RPC or command line
126
 *   interfaces), CHECK_NONFATAL() might be more appropriate.
127
 */
128
0
#define Assume(val) inline_assertion_check<false>(val, std::source_location::current(), #val)
Unexecuted instantiation: scriptpubkeyman.cpp:_ZZNK6wallet25DescriptorScriptPubKeyMan6GetKeyERK6CKeyIDENK3$_0clERKSt6vectorIh16secure_allocatorIhEE
Unexecuted instantiation: wallet.cpp:_ZZNK6wallet7CWallet19GetScriptPubKeyMansERK7CScriptENK3$_0clEPNS_15ScriptPubKeyManE
Unexecuted instantiation: net_processing.cpp:_ZZN12_GLOBAL__N_115PeerManagerImpl14ProcessMessageERNS_4PeerER5CNodeRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEER10DataStreamNSt6chrono10time_pointI9NodeClockNSF_8durationIlSt5ratioILl1ELl1000000000EEEEEERKSt6atomicIbEENK3$_2clEv
Unexecuted instantiation: mini_miner.cpp:_ZZNK4node9MiniMiner11SanityCheckEvENK3$_0clISt17_Rb_tree_iteratorISt4pairIK22transaction_identifierILb0EENS_21MiniMinerMempoolEntryEEEEEDaRKT_
Unexecuted instantiation: mini_miner.cpp:_ZZNK4node9MiniMiner11SanityCheckEvENK3$_1clI22transaction_identifierILb0EEEEDaRKT_
Unexecuted instantiation: validation.cpp:_ZZN17ChainstateManager25ReceivedBlockTransactionsERK6CBlockP11CBlockIndexRK11FlatFilePosENK3$_0clISt10unique_ptrI10ChainstateSt14default_deleteISB_EEEEDaRKT_
Unexecuted instantiation: ephemeral_policy.cpp:_ZZ20CheckEphemeralSpendsRKSt6vectorISt10shared_ptrIK12CTransactionESaIS3_EE8CFeeRateRK10CTxMemPoolR17TxValidationStateR22transaction_identifierILb1EEENK3$_0clIS3_EEDaRKT_
  Branch (128:51): [True: 0, False: 0]
  Branch (128:51): [True: 0, False: 0]
129
130
/**
131
 * NONFATAL_UNREACHABLE() is a macro that is used to mark unreachable code. It throws a NonFatalCheckError.
132
 */
133
#define NONFATAL_UNREACHABLE() \
134
0
    throw NonFatalCheckError { "Unreachable code reached (non-fatal)", std::source_location::current() }
135
136
#if defined(__has_feature)
137
#    if __has_feature(address_sanitizer)
138
#       include <sanitizer/asan_interface.h>
139
#    endif
140
#endif
141
142
#ifndef ASAN_POISON_MEMORY_REGION
143
0
#   define ASAN_POISON_MEMORY_REGION(addr, size) ((void)(addr), (void)(size))
144
0
#   define ASAN_UNPOISON_MEMORY_REGION(addr, size) ((void)(addr), (void)(size))
145
#endif
146
147
#endif // BITCOIN_UTIL_CHECK_H