Coverage Report

Created: 2026-11-13 17:38

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/tmp/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
inline constexpr bool G_FUZZING_BUILD{
22
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
23
    true
24
#else
25
    false
26
#endif
27
};
28
inline 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.13M
{
40
    if constexpr (G_FUZZING_BUILD) {
41
        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
1.13M
    } else {
49
1.13M
        return g_enable_dynamic_fuzz_determinism;
50
1.13M
    }
51
1.13M
}
52
53
extern bool g_detail_test_only_CheckFailuresAreExceptionsNotAborts;
54
struct test_only_CheckFailuresAreExceptionsNotAborts {
55
8
    test_only_CheckFailuresAreExceptionsNotAborts() { g_detail_test_only_CheckFailuresAreExceptionsNotAborts = true; };
56
8
    ~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
std::string StrFormatFailedCheck(std::string_view assertion);
61
62
class NonFatalCheckError : public std::runtime_error
63
{
64
public:
65
    NonFatalCheckError(std::string_view msg, const std::source_location& loc);
66
};
67
68
/// Internal helper. The noreturn enables optimizers to discard invalid paths.
69
[[noreturn]] void internal_abort_helper(const std::source_location& loc, std::string_view error_msg);
70
71
/// Internal helper. The noreturn enables optimizers to discard invalid paths.
72
[[noreturn]] void internal_non_fatal_helper(const std::source_location& loc, std::string_view error_msg);
73
74
/** Helper for CHECK_NONFATAL() */
75
template <typename T>
76
T&& inline_check_non_fatal(LIFETIMEBOUND T&& val, const std::source_location& loc, std::string_view assertion)
77
76.8M
{
78
76.8M
    if (!val) {
79
11
        internal_non_fatal_helper(loc, StrFormatFailedCheck(assertion));
80
11
    }
81
76.8M
    return std::forward<T>(val);
82
76.8M
}
bool const& inline_check_non_fatal<bool const&>(bool const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
77
109
{
78
109
    if (!val) {
79
0
        internal_non_fatal_helper(loc, StrFormatFailedCheck(assertion));
80
0
    }
81
109
    return std::forward<T>(val);
82
109
}
bool&& inline_check_non_fatal<bool>(bool&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
77
75.1M
{
78
75.1M
    if (!val) {
79
11
        internal_non_fatal_helper(loc, StrFormatFailedCheck(assertion));
80
11
    }
81
75.1M
    return std::forward<T>(val);
82
75.1M
}
bool& inline_check_non_fatal<bool&>(bool&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
77
1.08M
{
78
1.08M
    if (!val) {
79
0
        internal_non_fatal_helper(loc, StrFormatFailedCheck(assertion));
80
0
    }
81
1.08M
    return std::forward<T>(val);
82
1.08M
}
ValidationSignals* const& inline_check_non_fatal<ValidationSignals* const&>(ValidationSignals* const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
77
15.0k
{
78
15.0k
    if (!val) {
79
0
        internal_non_fatal_helper(loc, StrFormatFailedCheck(assertion));
80
0
    }
81
15.0k
    return std::forward<T>(val);
82
15.0k
}
CBlockIndex const*&& inline_check_non_fatal<CBlockIndex const*>(CBlockIndex const*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
77
174k
{
78
174k
    if (!val) {
79
0
        internal_non_fatal_helper(loc, StrFormatFailedCheck(assertion));
80
0
    }
81
174k
    return std::forward<T>(val);
82
174k
}
CBlockIndex const*& inline_check_non_fatal<CBlockIndex const*&>(CBlockIndex const*&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
77
163
{
78
163
    if (!val) {
79
0
        internal_non_fatal_helper(loc, StrFormatFailedCheck(assertion));
80
0
    }
81
163
    return std::forward<T>(val);
82
163
}
node::BlockManager*&& inline_check_non_fatal<node::BlockManager*>(node::BlockManager*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
77
11
{
78
11
    if (!val) {
79
0
        internal_non_fatal_helper(loc, StrFormatFailedCheck(assertion));
80
0
    }
81
11
    return std::forward<T>(val);
82
11
}
Unexecuted instantiation: std::shared_ptr<CTransaction const>&& inline_check_non_fatal<std::shared_ptr<CTransaction const>>(std::shared_ptr<CTransaction const>&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
CBlockIndex*& inline_check_non_fatal<CBlockIndex*&>(CBlockIndex*&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
77
105
{
78
105
    if (!val) {
79
0
        internal_non_fatal_helper(loc, StrFormatFailedCheck(assertion));
80
0
    }
81
105
    return std::forward<T>(val);
82
105
}
std::optional<interfaces::BlockRef>&& inline_check_non_fatal<std::optional<interfaces::BlockRef>>(std::optional<interfaces::BlockRef>&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
77
127
{
78
127
    if (!val) {
79
0
        internal_non_fatal_helper(loc, StrFormatFailedCheck(assertion));
80
0
    }
81
127
    return std::forward<T>(val);
82
127
}
std::unique_ptr<ValidationSignals, std::default_delete<ValidationSignals>>& inline_check_non_fatal<std::unique_ptr<ValidationSignals, std::default_delete<ValidationSignals>>&>(std::unique_ptr<ValidationSignals, std::default_delete<ValidationSignals>>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
77
4.30k
{
78
4.30k
    if (!val) {
79
0
        internal_non_fatal_helper(loc, StrFormatFailedCheck(assertion));
80
0
    }
81
4.30k
    return std::forward<T>(val);
82
4.30k
}
CBlockIndex*&& inline_check_non_fatal<CBlockIndex*>(CBlockIndex*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
77
17.1k
{
78
17.1k
    if (!val) {
79
0
        internal_non_fatal_helper(loc, StrFormatFailedCheck(assertion));
80
0
    }
81
17.1k
    return std::forward<T>(val);
82
17.1k
}
CBlockIndex* const& inline_check_non_fatal<CBlockIndex* const&>(CBlockIndex* const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
77
12
{
78
12
    if (!val) {
79
0
        internal_non_fatal_helper(loc, StrFormatFailedCheck(assertion));
80
0
    }
81
12
    return std::forward<T>(val);
82
12
}
std::unique_ptr<node::Warnings, std::default_delete<node::Warnings>>& inline_check_non_fatal<std::unique_ptr<node::Warnings, std::default_delete<node::Warnings>>&>(std::unique_ptr<node::Warnings, std::default_delete<node::Warnings>>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
77
16.8k
{
78
16.8k
    if (!val) {
79
0
        internal_non_fatal_helper(loc, StrFormatFailedCheck(assertion));
80
0
    }
81
16.8k
    return std::forward<T>(val);
82
16.8k
}
std::optional<kernel::CCoinsStats>& inline_check_non_fatal<std::optional<kernel::CCoinsStats>&>(std::optional<kernel::CCoinsStats>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
77
37
{
78
37
    if (!val) {
79
0
        internal_non_fatal_helper(loc, StrFormatFailedCheck(assertion));
80
0
    }
81
37
    return std::forward<T>(val);
82
37
}
std::unique_ptr<ValidationSignals, std::default_delete<ValidationSignals>> const& inline_check_non_fatal<std::unique_ptr<ValidationSignals, std::default_delete<ValidationSignals>> const&>(std::unique_ptr<ValidationSignals, std::default_delete<ValidationSignals>> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
77
159
{
78
159
    if (!val) {
79
0
        internal_non_fatal_helper(loc, StrFormatFailedCheck(assertion));
80
0
    }
81
159
    return std::forward<T>(val);
82
159
}
std::optional<CFeeRate> const& inline_check_non_fatal<std::optional<CFeeRate> const&>(std::optional<CFeeRate> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
77
25
{
78
25
    if (!val) {
79
0
        internal_non_fatal_helper(loc, StrFormatFailedCheck(assertion));
80
0
    }
81
25
    return std::forward<T>(val);
82
25
}
std::unique_ptr<node::CBlockTemplate, std::default_delete<node::CBlockTemplate>>& inline_check_non_fatal<std::unique_ptr<node::CBlockTemplate, std::default_delete<node::CBlockTemplate>>&>(std::unique_ptr<node::CBlockTemplate, std::default_delete<node::CBlockTemplate>>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
77
34.0k
{
78
34.0k
    if (!val) {
79
0
        internal_non_fatal_helper(loc, StrFormatFailedCheck(assertion));
80
0
    }
81
34.0k
    return std::forward<T>(val);
82
34.0k
}
std::unique_ptr<NetGroupManager const, std::default_delete<NetGroupManager const>>& inline_check_non_fatal<std::unique_ptr<NetGroupManager const, std::default_delete<NetGroupManager const>>&>(std::unique_ptr<NetGroupManager const, std::default_delete<NetGroupManager const>>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
77
963
{
78
963
    if (!val) {
79
0
        internal_non_fatal_helper(loc, StrFormatFailedCheck(assertion));
80
0
    }
81
963
    return std::forward<T>(val);
82
963
}
std::unique_ptr<CScheduler, std::default_delete<CScheduler>> const& inline_check_non_fatal<std::unique_ptr<CScheduler, std::default_delete<CScheduler>> const&>(std::unique_ptr<CScheduler, std::default_delete<CScheduler>> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
77
30
{
78
30
    if (!val) {
79
0
        internal_non_fatal_helper(loc, StrFormatFailedCheck(assertion));
80
0
    }
81
30
    return std::forward<T>(val);
82
30
}
std::optional<CMutableTransaction>&& inline_check_non_fatal<std::optional<CMutableTransaction>>(std::optional<CMutableTransaction>&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
77
59
{
78
59
    if (!val) {
79
0
        internal_non_fatal_helper(loc, StrFormatFailedCheck(assertion));
80
0
    }
81
59
    return std::forward<T>(val);
82
59
}
std::optional<PrecomputedTransactionData> const& inline_check_non_fatal<std::optional<PrecomputedTransactionData> const&>(std::optional<PrecomputedTransactionData> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
77
13
{
78
13
    if (!val) {
79
0
        internal_non_fatal_helper(loc, StrFormatFailedCheck(assertion));
80
0
    }
81
13
    return std::forward<T>(val);
82
13
}
std::function<bool ()>& inline_check_non_fatal<std::function<bool ()>&>(std::function<bool ()>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
77
1.08k
{
78
1.08k
    if (!val) {
79
0
        internal_non_fatal_helper(loc, StrFormatFailedCheck(assertion));
80
0
    }
81
1.08k
    return std::forward<T>(val);
82
1.08k
}
JSONRPCRequest const*& inline_check_non_fatal<JSONRPCRequest const*&>(JSONRPCRequest const*&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
77
181k
{
78
181k
    if (!val) {
79
0
        internal_non_fatal_helper(loc, StrFormatFailedCheck(assertion));
80
0
    }
81
181k
    return std::forward<T>(val);
82
181k
}
UniValue const*& inline_check_non_fatal<UniValue const*&>(UniValue const*&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
77
172k
{
78
172k
    if (!val) {
79
0
        internal_non_fatal_helper(loc, StrFormatFailedCheck(assertion));
80
0
    }
81
172k
    return std::forward<T>(val);
82
172k
}
std::optional<arith_uint256>&& inline_check_non_fatal<std::optional<arith_uint256>>(std::optional<arith_uint256>&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
77
20.3k
{
78
20.3k
    if (!val) {
79
0
        internal_non_fatal_helper(loc, StrFormatFailedCheck(assertion));
80
0
    }
81
20.3k
    return std::forward<T>(val);
82
20.3k
}
83
84
#if defined(NDEBUG)
85
#error "Cannot compile without assertions!"
86
#endif
87
88
/** Helper for Assert()/Assume() */
89
template <bool IS_ASSERT, typename T>
90
constexpr T&& inline_assertion_check(LIFETIMEBOUND T&& val, [[maybe_unused]] const std::source_location& loc, [[maybe_unused]] std::string_view assertion)
91
2.49G
{
92
2.49G
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
2.49G
        if (!val) {
94
9
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
9
        }
96
2.49G
    }
97
2.49G
    return std::forward<T>(val);
98
2.49G
}
bool&& inline_assertion_check<false, bool>(bool&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
2.38G
{
92
2.38G
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
2.38G
        if (!val) {
94
1
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
1
        }
96
2.38G
    }
97
2.38G
    return std::forward<T>(val);
98
2.38G
}
bool& inline_assertion_check<true, bool&>(bool&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
1.65k
{
92
1.65k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
1.65k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
1.65k
    }
97
1.65k
    return std::forward<T>(val);
98
1.65k
}
bool&& inline_assertion_check<true, bool>(bool&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
13.8M
{
92
13.8M
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
13.8M
        if (!val) {
94
8
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
8
        }
96
13.8M
    }
97
13.8M
    return std::forward<T>(val);
98
13.8M
}
FeeRateEstimationError const*&& inline_assertion_check<true, FeeRateEstimationError const*>(FeeRateEstimationError const*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
1.68k
{
92
1.68k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
1.68k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
1.68k
    }
97
1.68k
    return std::forward<T>(val);
98
1.68k
}
std::unique_ptr<ChainstateManager, std::default_delete<ChainstateManager>>& inline_assertion_check<true, std::unique_ptr<ChainstateManager, std::default_delete<ChainstateManager>>&>(std::unique_ptr<ChainstateManager, std::default_delete<ChainstateManager>>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
934k
{
92
934k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
934k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
934k
    }
97
934k
    return std::forward<T>(val);
98
934k
}
std::unique_ptr<CoinsViews, std::default_delete<CoinsViews>>& inline_assertion_check<true, std::unique_ptr<CoinsViews, std::default_delete<CoinsViews>>&>(std::unique_ptr<CoinsViews, std::default_delete<CoinsViews>>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
2.16M
{
92
2.16M
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
2.16M
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
2.16M
    }
97
2.16M
    return std::forward<T>(val);
98
2.16M
}
std::unique_ptr<CCoinsViewCache, std::default_delete<CCoinsViewCache>>& inline_assertion_check<true, std::unique_ptr<CCoinsViewCache, std::default_delete<CCoinsViewCache>>&>(std::unique_ptr<CCoinsViewCache, std::default_delete<CCoinsViewCache>>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
2.15M
{
92
2.15M
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
2.15M
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
2.15M
    }
97
2.15M
    return std::forward<T>(val);
98
2.15M
}
int&& inline_assertion_check<false, int>(int&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
37.7M
{
92
37.7M
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
37.7M
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
37.7M
    }
97
37.7M
    return std::forward<T>(val);
98
37.7M
}
unsigned char const& inline_assertion_check<false, unsigned char const&>(unsigned char const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
1.31M
{
92
1.31M
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
1.31M
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
1.31M
    }
97
1.31M
    return std::forward<T>(val);
98
1.31M
}
CCoinsView*& inline_assertion_check<true, CCoinsView*&>(CCoinsView*&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
492k
{
92
492k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
492k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
492k
    }
97
492k
    return std::forward<T>(val);
98
492k
}
std::unique_ptr<LevelDBContext, std::default_delete<LevelDBContext>> const& inline_assertion_check<false, std::unique_ptr<LevelDBContext, std::default_delete<LevelDBContext>> const&>(std::unique_ptr<LevelDBContext, std::default_delete<LevelDBContext>> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
12.8M
{
92
12.8M
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
12.8M
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
12.8M
    }
97
12.8M
    return std::forward<T>(val);
98
12.8M
}
CDBWrapper::ReadFailure const*&& inline_assertion_check<true, CDBWrapper::ReadFailure const*>(CDBWrapper::ReadFailure const*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
4
{
92
4
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
4
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
4
    }
97
4
    return std::forward<T>(val);
98
4
}
std::optional<arith_uint256> const& inline_assertion_check<true, std::optional<arith_uint256> const&>(std::optional<arith_uint256> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
202k
{
92
202k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
202k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
202k
    }
97
202k
    return std::forward<T>(val);
98
202k
}
std::optional<uint256> const& inline_assertion_check<true, std::optional<uint256> const&>(std::optional<uint256> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
158k
{
92
158k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
158k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
158k
    }
97
158k
    return std::forward<T>(val);
98
158k
}
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*&& inline_assertion_check<true, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
97
{
92
97
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
97
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
97
    }
97
97
    return std::forward<T>(val);
98
97
}
std::unique_ptr<CTxMemPool, std::default_delete<CTxMemPool>>& inline_assertion_check<true, std::unique_ptr<CTxMemPool, std::default_delete<CTxMemPool>>&>(std::unique_ptr<CTxMemPool, std::default_delete<CTxMemPool>>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
1.15k
{
92
1.15k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
1.15k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
1.15k
    }
97
1.15k
    return std::forward<T>(val);
98
1.15k
}
std::optional<uint256>&& inline_assertion_check<true, std::optional<uint256>>(std::optional<uint256>&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
132
{
92
132
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
132
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
132
    }
97
132
    return std::forward<T>(val);
98
132
}
std::function<bool ()>& inline_assertion_check<true, std::function<bool ()>&>(std::function<bool ()>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
1.46k
{
92
1.46k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
1.46k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
1.46k
    }
97
1.46k
    return std::forward<T>(val);
98
1.46k
}
std::unique_ptr<node::Warnings, std::default_delete<node::Warnings>>& inline_assertion_check<true, std::unique_ptr<node::Warnings, std::default_delete<node::Warnings>>&>(std::unique_ptr<node::Warnings, std::default_delete<node::Warnings>>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
1.46k
{
92
1.46k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
1.46k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
1.46k
    }
97
1.46k
    return std::forward<T>(val);
98
1.46k
}
util::SignalInterrupt*& inline_assertion_check<true, util::SignalInterrupt*&>(util::SignalInterrupt*&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
88.0k
{
92
88.0k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
88.0k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
88.0k
    }
97
88.0k
    return std::forward<T>(val);
98
88.0k
}
node::ReadRawError*&& inline_assertion_check<true, node::ReadRawError*>(node::ReadRawError*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
14
{
92
14
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
14
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
14
    }
97
14
    return std::forward<T>(val);
98
14
}
unsigned long& inline_assertion_check<false, unsigned long&>(unsigned long&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
17.5M
{
92
17.5M
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
17.5M
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
17.5M
    }
97
17.5M
    return std::forward<T>(val);
98
17.5M
}
Unexecuted instantiation: unsigned long const& inline_assertion_check<false, unsigned long const&>(unsigned long const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
std::optional<int>&& inline_assertion_check<true, std::optional<int>>(std::optional<int>&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
3
{
92
3
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
3
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
3
    }
97
3
    return std::forward<T>(val);
98
3
}
std::optional<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&& inline_assertion_check<true, std::optional<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>(std::optional<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
2
{
92
2
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
2
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
2
    }
97
2
    return std::forward<T>(val);
98
2
}
std::optional<Coin>&& inline_assertion_check<true, std::optional<Coin>>(std::optional<Coin>&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
1
{
92
1
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
1
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
1
    }
97
1
    return std::forward<T>(val);
98
1
}
std::shared_ptr<ThreadPool> const& inline_assertion_check<false, std::shared_ptr<ThreadPool> const&>(std::shared_ptr<ThreadPool> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
119k
{
92
119k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
119k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
119k
    }
97
119k
    return std::forward<T>(val);
98
119k
}
CDBWrapper::ReadFailure*&& inline_assertion_check<true, CDBWrapper::ReadFailure*>(CDBWrapper::ReadFailure*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
6
{
92
6
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
6
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
6
    }
97
6
    return std::forward<T>(val);
98
6
}
std::unique_ptr<Transport, std::default_delete<Transport>> const& inline_assertion_check<false, std::unique_ptr<Transport, std::default_delete<Transport>> const&>(std::unique_ptr<Transport, std::default_delete<Transport>> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
2.52M
{
92
2.52M
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
2.52M
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
2.52M
    }
97
2.52M
    return std::forward<T>(val);
98
2.52M
}
std::optional<unsigned int>&& inline_assertion_check<true, std::optional<unsigned int>>(std::optional<unsigned int>&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
3
{
92
3
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
3
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
3
    }
97
3
    return std::forward<T>(val);
98
3
}
CBlockIndex*&& inline_assertion_check<true, CBlockIndex*>(CBlockIndex*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
144k
{
92
144k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
144k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
144k
    }
97
144k
    return std::forward<T>(val);
98
144k
}
util::Expected<std::future<void>, ThreadPool::SubmitError>&& inline_assertion_check<true, util::Expected<std::future<void>, ThreadPool::SubmitError>>(util::Expected<std::future<void>, ThreadPool::SubmitError>&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
345
{
92
345
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
345
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
345
    }
97
345
    return std::forward<T>(val);
98
345
}
std::optional<BCLog::LogFlags>&& inline_assertion_check<true, std::optional<BCLog::LogFlags>>(std::optional<BCLog::LogFlags>&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
31
{
92
31
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
31
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
31
    }
97
31
    return std::forward<T>(val);
98
31
}
std::shared_ptr<BCLog::LogRateLimiter>& inline_assertion_check<true, std::shared_ptr<BCLog::LogRateLimiter>&>(std::shared_ptr<BCLog::LogRateLimiter>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
1
{
92
1
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
1
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
1
    }
97
1
    return std::forward<T>(val);
98
1
}
std::unique_ptr<node::BlockTemplateManager, std::default_delete<node::BlockTemplateManager>>& inline_assertion_check<true, std::unique_ptr<node::BlockTemplateManager, std::default_delete<node::BlockTemplateManager>>&>(std::unique_ptr<node::BlockTemplateManager, std::default_delete<node::BlockTemplateManager>>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
9.42k
{
92
9.42k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
9.42k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
9.42k
    }
97
9.42k
    return std::forward<T>(val);
98
9.42k
}
CBlockIndex*& inline_assertion_check<true, CBlockIndex*&>(CBlockIndex*&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
310k
{
92
310k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
310k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
310k
    }
97
310k
    return std::forward<T>(val);
98
310k
}
CTxMemPoolEntry const*&& inline_assertion_check<true, CTxMemPoolEntry const*>(CTxMemPoolEntry const*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
112
{
92
112
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
112
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
112
    }
97
112
    return std::forward<T>(val);
98
112
}
ArgsManager*& inline_assertion_check<true, ArgsManager*&>(ArgsManager*&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
11.4k
{
92
11.4k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
11.4k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
11.4k
    }
97
11.4k
    return std::forward<T>(val);
98
11.4k
}
std::unique_ptr<CTxMemPool::ChangeSet, std::default_delete<CTxMemPool::ChangeSet>> const& inline_assertion_check<false, std::unique_ptr<CTxMemPool::ChangeSet, std::default_delete<CTxMemPool::ChangeSet>> const&>(std::unique_ptr<CTxMemPool::ChangeSet, std::default_delete<CTxMemPool::ChangeSet>> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
64.1k
{
92
64.1k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
64.1k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
64.1k
    }
97
64.1k
    return std::forward<T>(val);
98
64.1k
}
std::optional<std::vector<std::byte, std::allocator<std::byte>>>&& inline_assertion_check<true, std::optional<std::vector<std::byte, std::allocator<std::byte>>>>(std::optional<std::vector<std::byte, std::allocator<std::byte>>>&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
3.73k
{
92
3.73k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
3.73k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
3.73k
    }
97
3.73k
    return std::forward<T>(val);
98
3.73k
}
unsigned long const& inline_assertion_check<true, unsigned long const&>(unsigned long const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
8
{
92
8
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
8
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
8
    }
97
8
    return std::forward<T>(val);
98
8
}
ThreadPool::SubmitError*&& inline_assertion_check<true, ThreadPool::SubmitError*>(ThreadPool::SubmitError*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
6
{
92
6
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
6
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
6
    }
97
6
    return std::forward<T>(val);
98
6
}
ThreadPool::SubmitError const*&& inline_assertion_check<true, ThreadPool::SubmitError const*>(ThreadPool::SubmitError const*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
2
{
92
2
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
2
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
2
    }
97
2
    return std::forward<T>(val);
98
2
}
util::Expected<std::future<bool>, ThreadPool::SubmitError>&& inline_assertion_check<true, util::Expected<std::future<bool>, ThreadPool::SubmitError>>(util::Expected<std::future<bool>, ThreadPool::SubmitError>&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
2
{
92
2
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
2
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
2
    }
97
2
    return std::forward<T>(val);
98
2
}
util::Expected<std::future<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, ThreadPool::SubmitError>&& inline_assertion_check<true, util::Expected<std::future<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, ThreadPool::SubmitError>>(util::Expected<std::future<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, ThreadPool::SubmitError>&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
1
{
92
1
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
1
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
1
    }
97
1
    return std::forward<T>(val);
98
1
}
util::Expected<std::vector<std::future<int>, std::allocator<std::future<int>>>, ThreadPool::SubmitError>&& inline_assertion_check<true, util::Expected<std::vector<std::future<int>, std::allocator<std::future<int>>>, ThreadPool::SubmitError>>(util::Expected<std::vector<std::future<int>, std::allocator<std::future<int>>>, ThreadPool::SubmitError>&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
2
{
92
2
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
2
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
2
    }
97
2
    return std::forward<T>(val);
98
2
}
std::unique_ptr<int, std::default_delete<int>>& inline_assertion_check<false, std::unique_ptr<int, std::default_delete<int>>&>(std::unique_ptr<int, std::default_delete<int>>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
2
{
92
2
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
2
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
2
    }
97
2
    return std::forward<T>(val);
98
2
}
util_not_null_tests.cpp:std::shared_ptr<util_not_null_tests::check_derived::test_method()::MyDerived> const& inline_assertion_check<false, std::shared_ptr<util_not_null_tests::check_derived::test_method()::MyDerived> const&>(std::shared_ptr<util_not_null_tests::check_derived::test_method()::MyDerived> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
2
{
92
2
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
2
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
2
    }
97
2
    return std::forward<T>(val);
98
2
}
util_not_null_tests.cpp:std::shared_ptr<util_not_null_tests::check_derived::test_method()::MyBase> const& inline_assertion_check<false, std::shared_ptr<util_not_null_tests::check_derived::test_method()::MyBase> const&>(std::shared_ptr<util_not_null_tests::check_derived::test_method()::MyBase> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
1
{
92
1
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
1
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
1
    }
97
1
    return std::forward<T>(val);
98
1
}
util_not_null_tests.cpp:std::unique_ptr<util_not_null_tests::check_derived::test_method()::MyDerived, std::default_delete<util_not_null_tests::check_derived::test_method()::MyDerived>>& inline_assertion_check<false, std::unique_ptr<util_not_null_tests::check_derived::test_method()::MyDerived, std::default_delete<util_not_null_tests::check_derived::test_method()::MyDerived>>&>(std::unique_ptr<util_not_null_tests::check_derived::test_method()::MyDerived, std::default_delete<util_not_null_tests::check_derived::test_method()::MyDerived>>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
1
{
92
1
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
1
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
1
    }
97
1
    return std::forward<T>(val);
98
1
}
util_not_null_tests.cpp:std::unique_ptr<util_not_null_tests::check_derived::test_method()::MyBase, std::default_delete<util_not_null_tests::check_derived::test_method()::MyBase>>& inline_assertion_check<false, std::unique_ptr<util_not_null_tests::check_derived::test_method()::MyBase, std::default_delete<util_not_null_tests::check_derived::test_method()::MyBase>>&>(std::unique_ptr<util_not_null_tests::check_derived::test_method()::MyBase, std::default_delete<util_not_null_tests::check_derived::test_method()::MyBase>>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
1
{
92
1
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
1
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
1
    }
97
1
    return std::forward<T>(val);
98
1
}
std::unique_ptr<int, std::default_delete<int>> const& inline_assertion_check<false, std::unique_ptr<int, std::default_delete<int>> const&>(std::unique_ptr<int, std::default_delete<int>> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
8
{
92
8
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
8
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
8
    }
97
8
    return std::forward<T>(val);
98
8
}
util_not_null_tests.cpp:std::shared_ptr<util_not_null_tests::check_tsa::test_method()::Thing> const& inline_assertion_check<false, std::shared_ptr<util_not_null_tests::check_tsa::test_method()::Thing> const&>(std::shared_ptr<util_not_null_tests::check_tsa::test_method()::Thing> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
1
{
92
1
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
1
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
1
    }
97
1
    return std::forward<T>(val);
98
1
}
std::shared_ptr<int> const& inline_assertion_check<false, std::shared_ptr<int> const&>(std::shared_ptr<int> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
14
{
92
14
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
14
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
14
    }
97
14
    return std::forward<T>(val);
98
14
}
Unexecuted instantiation: util_not_null_tests.cpp:util_not_null_tests::check_cross_type_conversion::test_method()::SomePtr const& inline_assertion_check<false, util_not_null_tests::check_cross_type_conversion::test_method()::SomePtr const&>(util_not_null_tests::check_cross_type_conversion::test_method()::SomePtr const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Unexecuted instantiation: util_not_null_tests.cpp:util_not_null_tests::check_cross_type_conversion::test_method()::SomePtr& inline_assertion_check<false, util_not_null_tests::check_cross_type_conversion::test_method()::SomePtr&>(util_not_null_tests::check_cross_type_conversion::test_method()::SomePtr&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const*&& inline_assertion_check<true, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const*>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
22
{
92
22
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
22
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
22
    }
97
22
    return std::forward<T>(val);
98
22
}
std::unique_ptr<int, std::default_delete<int>>*&& inline_assertion_check<true, std::unique_ptr<int, std::default_delete<int>>*>(std::unique_ptr<int, std::default_delete<int>>*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
3
{
92
3
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
3
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
3
    }
97
3
    return std::forward<T>(val);
98
3
}
std::unique_ptr<int, std::default_delete<int>>&& inline_assertion_check<true, std::unique_ptr<int, std::default_delete<int>>>(std::unique_ptr<int, std::default_delete<int>>&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
2
{
92
2
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
2
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
2
    }
97
2
    return std::forward<T>(val);
98
2
}
std::unique_ptr<int, std::default_delete<int>> const& inline_assertion_check<true, std::unique_ptr<int, std::default_delete<int>> const&>(std::unique_ptr<int, std::default_delete<int>> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
2
{
92
2
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
2
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
2
    }
97
2
    return std::forward<T>(val);
98
2
}
bool const& inline_assertion_check<true, bool const&>(bool const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
2
{
92
2
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
2
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
2
    }
97
2
    return std::forward<T>(val);
98
2
}
util_tests.cpp:util_tests::(anonymous namespace)::NoCopyOrMove& inline_assertion_check<true, util_tests::(anonymous namespace)::NoCopyOrMove&>(util_tests::(anonymous namespace)::NoCopyOrMove&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
6
{
92
6
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
6
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
6
    }
97
6
    return std::forward<T>(val);
98
6
}
int&& inline_assertion_check<true, int>(int&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
2
{
92
2
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
2
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
2
    }
97
2
    return std::forward<T>(val);
98
2
}
Chainstate*&& inline_assertion_check<true, Chainstate*>(Chainstate*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
7
{
92
7
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
7
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
7
    }
97
7
    return std::forward<T>(val);
98
7
}
std::optional<uint256> const&& inline_assertion_check<true, std::optional<uint256> const>(std::optional<uint256> const&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
4
{
92
4
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
4
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
4
    }
97
4
    return std::forward<T>(val);
98
4
}
std::shared_ptr<CTransaction const>& inline_assertion_check<true, std::shared_ptr<CTransaction const>&>(std::shared_ptr<CTransaction const>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
152k
{
92
152k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
152k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
152k
    }
97
152k
    return std::forward<T>(val);
98
152k
}
std::unique_ptr<wallet::WalletDatabase, std::default_delete<wallet::WalletDatabase>> const& inline_assertion_check<true, std::unique_ptr<wallet::WalletDatabase, std::default_delete<wallet::WalletDatabase>> const&>(std::unique_ptr<wallet::WalletDatabase, std::default_delete<wallet::WalletDatabase>> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
2
{
92
2
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
2
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
2
    }
97
2
    return std::forward<T>(val);
98
2
}
std::unique_ptr<wallet::SQLiteDatabase, std::default_delete<wallet::SQLiteDatabase>> const& inline_assertion_check<true, std::unique_ptr<wallet::SQLiteDatabase, std::default_delete<wallet::SQLiteDatabase>> const&>(std::unique_ptr<wallet::SQLiteDatabase, std::default_delete<wallet::SQLiteDatabase>> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
2
{
92
2
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
2
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
2
    }
97
2
    return std::forward<T>(val);
98
2
}
util::Result<std::variant<CNoDestination, PubKeyDestination, PKHash, ScriptHash, WitnessV0ScriptHash, WitnessV0KeyHash, WitnessV1Taproot, PayToAnchor, WitnessUnknown>>&& inline_assertion_check<true, util::Result<std::variant<CNoDestination, PubKeyDestination, PKHash, ScriptHash, WitnessV0ScriptHash, WitnessV0KeyHash, WitnessV1Taproot, PayToAnchor, WitnessUnknown>>>(util::Result<std::variant<CNoDestination, PubKeyDestination, PKHash, ScriptHash, WitnessV0ScriptHash, WitnessV0KeyHash, WitnessV1Taproot, PayToAnchor, WitnessUnknown>>&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
6.11k
{
92
6.11k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
6.11k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
6.11k
    }
97
6.11k
    return std::forward<T>(val);
98
6.11k
}
util::Result<wallet::CoinsResult>&& inline_assertion_check<true, util::Result<wallet::CoinsResult>>(util::Result<wallet::CoinsResult>&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
1
{
92
1
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
1
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
1
    }
97
1
    return std::forward<T>(val);
98
1
}
std::optional<OutputType>&& inline_assertion_check<true, std::optional<OutputType>>(std::optional<OutputType>&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
180
{
92
180
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
180
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
180
    }
97
180
    return std::forward<T>(val);
98
180
}
util::Result<std::reference_wrapper<wallet::DescriptorScriptPubKeyMan>>&& inline_assertion_check<true, util::Result<std::reference_wrapper<wallet::DescriptorScriptPubKeyMan>>>(util::Result<std::reference_wrapper<wallet::DescriptorScriptPubKeyMan>>&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
46
{
92
46
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
46
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
46
    }
97
46
    return std::forward<T>(val);
98
46
}
BlockFilterIndex*&& inline_assertion_check<true, BlockFilterIndex*>(BlockFilterIndex*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
2
{
92
2
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
2
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
2
    }
97
2
    return std::forward<T>(val);
98
2
}
wallet::WalletError*&& inline_assertion_check<true, wallet::WalletError*>(wallet::WalletError*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
20
{
92
20
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
20
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
20
    }
97
20
    return std::forward<T>(val);
98
20
}
wallet::WalletError const*&& inline_assertion_check<true, wallet::WalletError const*>(wallet::WalletError const*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
4
{
92
4
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
4
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
4
    }
97
4
    return std::forward<T>(val);
98
4
}
std::unique_ptr<node::BlockTemplateManager, std::default_delete<node::BlockTemplateManager>> const& inline_assertion_check<true, std::unique_ptr<node::BlockTemplateManager, std::default_delete<node::BlockTemplateManager>> const&>(std::unique_ptr<node::BlockTemplateManager, std::default_delete<node::BlockTemplateManager>> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
702
{
92
702
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
702
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
702
    }
97
702
    return std::forward<T>(val);
98
702
}
std::unique_ptr<ChainstateManager, std::default_delete<ChainstateManager>> const& inline_assertion_check<true, std::unique_ptr<ChainstateManager, std::default_delete<ChainstateManager>> const&>(std::unique_ptr<ChainstateManager, std::default_delete<ChainstateManager>> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
61
{
92
61
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
61
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
61
    }
97
61
    return std::forward<T>(val);
98
61
}
std::unique_ptr<node::CBlockTemplate, std::default_delete<node::CBlockTemplate>>& inline_assertion_check<true, std::unique_ptr<node::CBlockTemplate, std::default_delete<node::CBlockTemplate>>&>(std::unique_ptr<node::CBlockTemplate, std::default_delete<node::CBlockTemplate>>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
8.56k
{
92
8.56k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
8.56k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
8.56k
    }
97
8.56k
    return std::forward<T>(val);
98
8.56k
}
Unexecuted instantiation: std::atomic<bool>& inline_assertion_check<true, std::atomic<bool>&>(std::atomic<bool>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
util::Result<node::BlockCreateOptions>& inline_assertion_check<true, util::Result<node::BlockCreateOptions>&>(util::Result<node::BlockCreateOptions>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
1.36k
{
92
1.36k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
1.36k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
1.36k
    }
97
1.36k
    return std::forward<T>(val);
98
1.36k
}
std::unique_ptr<node::KernelNotifications, std::default_delete<node::KernelNotifications>>& inline_assertion_check<true, std::unique_ptr<node::KernelNotifications, std::default_delete<node::KernelNotifications>>&>(std::unique_ptr<node::KernelNotifications, std::default_delete<node::KernelNotifications>>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
1.36k
{
92
1.36k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
1.36k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
1.36k
    }
97
1.36k
    return std::forward<T>(val);
98
1.36k
}
CTxMemPool*&& inline_assertion_check<true, CTxMemPool*>(CTxMemPool*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
1.36k
{
92
1.36k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
1.36k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
1.36k
    }
97
1.36k
    return std::forward<T>(val);
98
1.36k
}
util::Result<void> const& inline_assertion_check<true, util::Result<void> const&>(util::Result<void> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
221
{
92
221
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
221
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
221
    }
97
221
    return std::forward<T>(val);
98
221
}
std::unique_ptr<ValidationSignals, std::default_delete<ValidationSignals>>& inline_assertion_check<true, std::unique_ptr<ValidationSignals, std::default_delete<ValidationSignals>>&>(std::unique_ptr<ValidationSignals, std::default_delete<ValidationSignals>>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
2.43k
{
92
2.43k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
2.43k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
2.43k
    }
97
2.43k
    return std::forward<T>(val);
98
2.43k
}
std::optional<PresaltedSipHasher>& inline_assertion_check<true, std::optional<PresaltedSipHasher>&>(std::optional<PresaltedSipHasher>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
115k
{
92
115k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
115k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
115k
    }
97
115k
    return std::forward<T>(val);
98
115k
}
std::shared_ptr<CTransaction const>& inline_assertion_check<false, std::shared_ptr<CTransaction const>&>(std::shared_ptr<CTransaction const>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
11.7k
{
92
11.7k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
11.7k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
11.7k
    }
97
11.7k
    return std::forward<T>(val);
98
11.7k
}
CBlockIndex const*&& inline_assertion_check<true, CBlockIndex const*>(CBlockIndex const*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
9.74k
{
92
9.74k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
9.74k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
9.74k
    }
97
9.74k
    return std::forward<T>(val);
98
9.74k
}
std::optional<unsigned long>& inline_assertion_check<false, std::optional<unsigned long>&>(std::optional<unsigned long>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
554
{
92
554
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
554
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
554
    }
97
554
    return std::forward<T>(val);
98
554
}
CBlockIndex const*& inline_assertion_check<true, CBlockIndex const*&>(CBlockIndex const*&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
133k
{
92
133k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
133k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
133k
    }
97
133k
    return std::forward<T>(val);
98
133k
}
CBlock const* const& inline_assertion_check<true, CBlock const* const&>(CBlock const* const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
7.99k
{
92
7.99k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
7.99k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
7.99k
    }
97
7.99k
    return std::forward<T>(val);
98
7.99k
}
CBlockUndo const* const& inline_assertion_check<true, CBlockUndo const* const&>(CBlockUndo const* const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
8.34k
{
92
8.34k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
8.34k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
8.34k
    }
97
8.34k
    return std::forward<T>(val);
98
8.34k
}
uint256 const* const& inline_assertion_check<true, uint256 const* const&>(uint256 const* const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
200k
{
92
200k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
200k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
200k
    }
97
200k
    return std::forward<T>(val);
98
200k
}
std::optional<util::SignalInterrupt>& inline_assertion_check<true, std::optional<util::SignalInterrupt>&>(std::optional<util::SignalInterrupt>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
24
{
92
24
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
24
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
24
    }
97
24
    return std::forward<T>(val);
98
24
}
util::Result<ipc::ListenAddress>& inline_assertion_check<true, util::Result<ipc::ListenAddress>&>(util::Result<ipc::ListenAddress>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
15
{
92
15
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
15
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
15
    }
97
15
    return std::forward<T>(val);
98
15
}
util::Result<void>&& inline_assertion_check<true, util::Result<void>>(util::Result<void>&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
3.49k
{
92
3.49k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
3.49k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
3.49k
    }
97
3.49k
    return std::forward<T>(val);
98
3.49k
}
bool& inline_assertion_check<false, bool&>(bool&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
419k
{
92
419k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
419k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
419k
    }
97
419k
    return std::forward<T>(val);
98
419k
}
std::unique_ptr<V2Transport, std::default_delete<V2Transport>>& inline_assertion_check<false, std::unique_ptr<V2Transport, std::default_delete<V2Transport>>&>(std::unique_ptr<V2Transport, std::default_delete<V2Transport>>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
211
{
92
211
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
211
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
211
    }
97
211
    return std::forward<T>(val);
98
211
}
std::unique_ptr<V1Transport, std::default_delete<V1Transport>>& inline_assertion_check<false, std::unique_ptr<V1Transport, std::default_delete<V1Transport>>&>(std::unique_ptr<V1Transport, std::default_delete<V1Transport>>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
1.65k
{
92
1.65k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
1.65k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
1.65k
    }
97
1.65k
    return std::forward<T>(val);
98
1.65k
}
net_processing.cpp:(anonymous namespace)::CNodeState*&& inline_assertion_check<true, (anonymous namespace)::CNodeState*>((anonymous namespace)::CNodeState*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
53.9k
{
92
53.9k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
53.9k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
53.9k
    }
97
53.9k
    return std::forward<T>(val);
98
53.9k
}
net_processing.cpp:std::shared_ptr<(anonymous namespace)::Peer>&& inline_assertion_check<true, std::shared_ptr<(anonymous namespace)::Peer>>(std::shared_ptr<(anonymous namespace)::Peer>&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
5
{
92
5
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
5
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
5
    }
97
5
    return std::forward<T>(val);
98
5
}
CBlockIndex*&& inline_assertion_check<false, CBlockIndex*>(CBlockIndex*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
16.4k
{
92
16.4k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
16.4k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
16.4k
    }
97
16.4k
    return std::forward<T>(val);
98
16.4k
}
std::optional<uint256> const& inline_assertion_check<false, std::optional<uint256> const&>(std::optional<uint256> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
130
{
92
130
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
130
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
130
    }
97
130
    return std::forward<T>(val);
98
130
}
std::optional<uint256>&& inline_assertion_check<false, std::optional<uint256>>(std::optional<uint256>&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
227
{
92
227
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
227
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
227
    }
97
227
    return std::forward<T>(val);
98
227
}
unsigned int&& inline_assertion_check<false, unsigned int>(unsigned int&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
14.1M
{
92
14.1M
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
14.1M
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
14.1M
    }
97
14.1M
    return std::forward<T>(val);
98
14.1M
}
std::optional<AssumeutxoData> const& inline_assertion_check<true, std::optional<AssumeutxoData> const&>(std::optional<AssumeutxoData> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
6
{
92
6
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
6
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
6
    }
97
6
    return std::forward<T>(val);
98
6
}
std::optional<node::BlockfileCursor>& inline_assertion_check<true, std::optional<node::BlockfileCursor>&>(std::optional<node::BlockfileCursor>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
105k
{
92
105k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
105k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
105k
    }
97
105k
    return std::forward<T>(val);
98
105k
}
std::unique_ptr<node::KernelNotifications, std::default_delete<node::KernelNotifications>> const& inline_assertion_check<true, std::unique_ptr<node::KernelNotifications, std::default_delete<node::KernelNotifications>> const&>(std::unique_ptr<node::KernelNotifications, std::default_delete<node::KernelNotifications>> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
16
{
92
16
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
16
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
16
    }
97
16
    return std::forward<T>(val);
98
16
}
util::SignalInterrupt* const& inline_assertion_check<true, util::SignalInterrupt* const&>(util::SignalInterrupt* const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
16
{
92
16
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
16
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
16
    }
97
16
    return std::forward<T>(val);
98
16
}
Unexecuted instantiation: node::NodeContext*& inline_assertion_check<true, node::NodeContext*&>(node::NodeContext*&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Unexecuted instantiation: node::NodeContext*&& inline_assertion_check<true, node::NodeContext*>(node::NodeContext*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Unexecuted instantiation: interfaces::WalletLoader*& inline_assertion_check<true, interfaces::WalletLoader*&>(interfaces::WalletLoader*&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
std::optional<unsigned long> const& inline_assertion_check<true, std::optional<unsigned long> const&>(std::optional<unsigned long> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
155k
{
92
155k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
155k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
155k
    }
97
155k
    return std::forward<T>(val);
98
155k
}
bool const& inline_assertion_check<false, bool const&>(bool const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
506k
{
92
506k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
506k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
506k
    }
97
506k
    return std::forward<T>(val);
98
506k
}
FeeRateEstimationError*&& inline_assertion_check<true, FeeRateEstimationError*>(FeeRateEstimationError*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
3.67k
{
92
3.67k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
3.67k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
3.67k
    }
97
3.67k
    return std::forward<T>(val);
98
3.67k
}
node::ReadRawError const*&& inline_assertion_check<true, node::ReadRawError const*>(node::ReadRawError const*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
12
{
92
12
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
12
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
12
    }
97
12
    return std::forward<T>(val);
98
12
}
common::PSBTError const*&& inline_assertion_check<true, common::PSBTError const*>(common::PSBTError const*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
21.8k
{
92
21.8k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
21.8k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
21.8k
    }
97
21.8k
    return std::forward<T>(val);
98
21.8k
}
TxGraph::Ref const*& inline_assertion_check<false, TxGraph::Ref const*&>(TxGraph::Ref const*&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
2.84k
{
92
2.84k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
2.84k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
2.84k
    }
97
2.84k
    return std::forward<T>(val);
98
2.84k
}
txgraph.cpp:(anonymous namespace)::Cluster*& inline_assertion_check<false, (anonymous namespace)::Cluster*&>((anonymous namespace)::Cluster*&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
204k
{
92
204k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
204k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
204k
    }
97
204k
    return std::forward<T>(val);
98
204k
}
std::unique_ptr<CTxMemPool::ChangeSet, std::default_delete<CTxMemPool::ChangeSet>>& inline_assertion_check<false, std::unique_ptr<CTxMemPool::ChangeSet, std::default_delete<CTxMemPool::ChangeSet>>&>(std::unique_ptr<CTxMemPool::ChangeSet, std::default_delete<CTxMemPool::ChangeSet>>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
45.1k
{
92
45.1k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
45.1k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
45.1k
    }
97
45.1k
    return std::forward<T>(val);
98
45.1k
}
std::shared_ptr<CBlock const>& inline_assertion_check<true, std::shared_ptr<CBlock const>&>(std::shared_ptr<CBlock const>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
105k
{
92
105k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
105k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
105k
    }
97
105k
    return std::forward<T>(val);
98
105k
}
uint256 const*& inline_assertion_check<true, uint256 const*&>(uint256 const*&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
44.3k
{
92
44.3k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
44.3k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
44.3k
    }
97
44.3k
    return std::forward<T>(val);
98
44.3k
}
std::optional<int> const& inline_assertion_check<true, std::optional<int> const&>(std::optional<int> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
417k
{
92
417k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
417k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
417k
    }
97
417k
    return std::forward<T>(val);
98
417k
}
CBlockIndex* const& inline_assertion_check<false, CBlockIndex* const&>(CBlockIndex* const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
312k
{
92
312k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
312k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
312k
    }
97
312k
    return std::forward<T>(val);
98
312k
}
std::unique_ptr<Chainstate, std::default_delete<Chainstate>>&& inline_assertion_check<true, std::unique_ptr<Chainstate, std::default_delete<Chainstate>>>(std::unique_ptr<Chainstate, std::default_delete<Chainstate>>&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
3
{
92
3
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
3
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
3
    }
97
3
    return std::forward<T>(val);
98
3
}
std::shared_ptr<CBlock const>& inline_assertion_check<false, std::shared_ptr<CBlock const>&>(std::shared_ptr<CBlock const>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
87.2k
{
92
87.2k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
87.2k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
87.2k
    }
97
87.2k
    return std::forward<T>(val);
98
87.2k
}
std::unique_ptr<util::TaskRunnerInterface, std::default_delete<util::TaskRunnerInterface>>& inline_assertion_check<true, std::unique_ptr<util::TaskRunnerInterface, std::default_delete<util::TaskRunnerInterface>>&>(std::unique_ptr<util::TaskRunnerInterface, std::default_delete<util::TaskRunnerInterface>>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
1.45k
{
92
1.45k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
1.45k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
1.45k
    }
97
1.45k
    return std::forward<T>(val);
98
1.45k
}
std::optional<long> const& inline_assertion_check<true, std::optional<long> const&>(std::optional<long> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
3.75k
{
92
3.75k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
3.75k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
3.75k
    }
97
3.75k
    return std::forward<T>(val);
98
3.75k
}
CScheduler*& inline_assertion_check<true, CScheduler*&>(CScheduler*&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
25
{
92
25
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
25
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
25
    }
97
25
    return std::forward<T>(val);
98
25
}
wallet::CWalletTx const*&& inline_assertion_check<true, wallet::CWalletTx const*>(wallet::CWalletTx const*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
5
{
92
5
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
5
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
5
    }
97
5
    return std::forward<T>(val);
98
5
}
std::unique_ptr<wallet::SQliteExecHandler, std::default_delete<wallet::SQliteExecHandler>>& inline_assertion_check<true, std::unique_ptr<wallet::SQliteExecHandler, std::default_delete<wallet::SQliteExecHandler>>&>(std::unique_ptr<wallet::SQliteExecHandler, std::default_delete<wallet::SQliteExecHandler>>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
147k
{
92
147k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
147k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
147k
    }
97
147k
    return std::forward<T>(val);
98
147k
}
unsigned long&& inline_assertion_check<true, unsigned long>(unsigned long&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
677
{
92
677
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
677
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
677
    }
97
677
    return std::forward<T>(val);
98
677
}
ArgsManager* const& inline_assertion_check<true, ArgsManager* const&>(ArgsManager* const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
1.11k
{
92
1.11k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
1.11k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
1.11k
    }
97
1.11k
    return std::forward<T>(val);
98
1.11k
}
wallet::LegacyDataSPKM*& inline_assertion_check<false, wallet::LegacyDataSPKM*&>(wallet::LegacyDataSPKM*&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
88
{
92
88
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
88
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
88
    }
97
88
    return std::forward<T>(val);
98
88
}
wallet::DescriptorScriptPubKeyMan*&& inline_assertion_check<true, wallet::DescriptorScriptPubKeyMan*>(wallet::DescriptorScriptPubKeyMan*&&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
433
{
92
433
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
433
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
433
    }
97
433
    return std::forward<T>(val);
98
433
}
util::Expected<std::vector<wallet::WalletDescInfo, std::allocator<wallet::WalletDescInfo>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>& inline_assertion_check<true, util::Expected<std::vector<wallet::WalletDescInfo, std::allocator<wallet::WalletDescInfo>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&>(util::Expected<std::vector<wallet::WalletDescInfo, std::allocator<wallet::WalletDescInfo>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
7
{
92
7
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
7
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
7
    }
97
7
    return std::forward<T>(val);
98
7
}
std::optional<fs::path> const& inline_assertion_check<true, std::optional<fs::path> const&>(std::optional<fs::path> const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
3.69k
{
92
3.69k
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
3.69k
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
3.69k
    }
97
3.69k
    return std::forward<T>(val);
98
3.69k
}
std::optional<std::pair<XOnlyPubKey, bool>>& inline_assertion_check<false, std::optional<std::pair<XOnlyPubKey, bool>>&>(std::optional<std::pair<XOnlyPubKey, bool>>&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
917
{
92
917
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
917
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
917
    }
97
917
    return std::forward<T>(val);
98
917
}
std::map<uint256, MuSig2SecNonce, std::less<uint256>, std::allocator<std::pair<uint256 const, MuSig2SecNonce>>>* const& inline_assertion_check<false, std::map<uint256, MuSig2SecNonce, std::less<uint256>, std::allocator<std::pair<uint256 const, MuSig2SecNonce>>>* const&>(std::map<uint256, MuSig2SecNonce, std::less<uint256>, std::allocator<std::pair<uint256 const, MuSig2SecNonce>>>* const&, std::source_location const&, std::basic_string_view<char, std::char_traits<char>>)
Line
Count
Source
91
587
{
92
587
    if (IS_ASSERT || std::is_constant_evaluated() || G_ABORT_ON_FAILED_ASSUME) {
93
587
        if (!val) {
94
0
            internal_abort_helper(loc, StrFormatFailedCheck(assertion));
95
0
        }
96
587
    }
97
587
    return std::forward<T>(val);
98
587
}
99
100
0
#define STR_INTERNAL_BUG(msg) StrFormatInternalBug((msg), std::source_location::current())
101
102
/**
103
 * Identity function. Throw a NonFatalCheckError when the condition evaluates to false
104
 *
105
 * This should only be used
106
 * - where the condition is assumed to be true, not for error handling or validating user input
107
 * - where a failure to fulfill the condition is recoverable and does not abort the program
108
 *
109
 * For example in RPC code, where it is undesirable to crash the whole program, this can be generally used to replace
110
 * asserts or recoverable logic errors. A NonFatalCheckError in RPC code is caught and passed as a string to the RPC
111
 * caller, which can then report the issue to the developers.
112
 *
113
 * In debug builds an abort is triggered.
114
 */
115
#define CHECK_NONFATAL(condition) \
116
76.8M
    inline_check_non_fatal(condition, std::source_location::current(), #condition)
blockchain.cpp:GetUTXOStats(CCoinsViewDB const&, node::BlockManager&, kernel::CoinStatsHashType, std::function<void ()> const&, CBlockIndex const*, bool)::$_0::operator()() const
Line
Count
Source
116
18
    inline_check_non_fatal(condition, std::source_location::current(), #condition)
blockchain.cpp:gettxoutsetinfo()::$_0::operator()(RPCMethod const&, JSONRPCRequest const&) const::'lambda0'()::operator()() const
Line
Count
Source
116
32
    inline_check_non_fatal(condition, std::source_location::current(), #condition)
blockchain.cpp:scanblocks()::$_0::operator()(RPCMethod const&, JSONRPCRequest const&) const::'lambda0'()::operator()() const
Line
Count
Source
116
3
    inline_check_non_fatal(condition, std::source_location::current(), #condition)
117
118
/** Identity function. Abort if the value compares equal to zero */
119
22.4M
#define Assert(val) inline_assertion_check<true>(val, std::source_location::current(), #val)
validation_chainstate_tests.cpp:validation_chainstate_tests::chainstate_update_tip::test_method()::$_2::operator()() const
Line
Count
Source
119
1
#define Assert(val) inline_assertion_check<true>(val, std::source_location::current(), #val)
validation_chainstate_tests.cpp:bool CreateAndActivateUTXOSnapshot<NoMalleation::'lambda'(AutoFile&, node::SnapshotMetadata&)>(TestingSetup*, NoMalleation::'lambda'(AutoFile&, node::SnapshotMetadata&), bool, bool)::'lambda0'()::operator()() const
Line
Count
Source
119
1
#define Assert(val) inline_assertion_check<true>(val, std::source_location::current(), #val)
Unexecuted instantiation: validation_chainstatemanager_tests.cpp:bool CreateAndActivateUTXOSnapshot<NoMalleation::'lambda'(AutoFile&, node::SnapshotMetadata&) const>(TestingSetup*, NoMalleation::'lambda'(AutoFile&, node::SnapshotMetadata&) const, bool, bool)::'lambda0'()::operator()() const
Unexecuted instantiation: validation_chainstatemanager_tests.cpp:bool CreateAndActivateUTXOSnapshot<validation_chainstatemanager_tests::SnapshotTestSetup::SetupSnapshot()::'lambda'(AutoFile&, node::SnapshotMetadata&)>(TestingSetup*, validation_chainstatemanager_tests::SnapshotTestSetup::SetupSnapshot()::'lambda'(AutoFile&, node::SnapshotMetadata&), bool, bool)::'lambda0'()::operator()() const
Unexecuted instantiation: validation_chainstatemanager_tests.cpp:bool CreateAndActivateUTXOSnapshot<validation_chainstatemanager_tests::SnapshotTestSetup::SetupSnapshot()::'lambda0'(AutoFile&, node::SnapshotMetadata&)>(TestingSetup*, validation_chainstatemanager_tests::SnapshotTestSetup::SetupSnapshot()::'lambda0'(AutoFile&, node::SnapshotMetadata&), bool, bool)::'lambda0'()::operator()() const
Unexecuted instantiation: validation_chainstatemanager_tests.cpp:bool CreateAndActivateUTXOSnapshot<validation_chainstatemanager_tests::SnapshotTestSetup::SetupSnapshot()::'lambda1'(AutoFile&, node::SnapshotMetadata&)>(TestingSetup*, validation_chainstatemanager_tests::SnapshotTestSetup::SetupSnapshot()::'lambda1'(AutoFile&, node::SnapshotMetadata&), bool, bool)::'lambda0'()::operator()() const
Unexecuted instantiation: validation_chainstatemanager_tests.cpp:bool CreateAndActivateUTXOSnapshot<validation_chainstatemanager_tests::SnapshotTestSetup::SetupSnapshot()::'lambda2'(AutoFile&, node::SnapshotMetadata&)>(TestingSetup*, validation_chainstatemanager_tests::SnapshotTestSetup::SetupSnapshot()::'lambda2'(AutoFile&, node::SnapshotMetadata&), bool, bool)::'lambda0'()::operator()() const
Unexecuted instantiation: validation_chainstatemanager_tests.cpp:bool CreateAndActivateUTXOSnapshot<validation_chainstatemanager_tests::SnapshotTestSetup::SetupSnapshot()::'lambda3'(AutoFile&, node::SnapshotMetadata&)>(TestingSetup*, validation_chainstatemanager_tests::SnapshotTestSetup::SetupSnapshot()::'lambda3'(AutoFile&, node::SnapshotMetadata&), bool, bool)::'lambda0'()::operator()() const
validation_chainstatemanager_tests::SnapshotTestSetup::SetupSnapshot()::'lambda0'()::operator()() const
Line
Count
Source
119
4
#define Assert(val) inline_assertion_check<true>(val, std::source_location::current(), #val)
validation_chainstatemanager_tests.cpp:validation_chainstatemanager_tests::chainstatemanager_snapshot_completion::test_method()::$_0::operator()() const
Line
Count
Source
119
1
#define Assert(val) inline_assertion_check<true>(val, std::source_location::current(), #val)
Unexecuted instantiation: txmempool.cpp:CheckMempoolEphemeralInvariants(CTxMemPool const&)::$_0::operator()(CTxIn const&) const
Unexecuted instantiation: validation.cpp:ResetChainmanAndMempool(TestingSetup&, FakeNodeClock&, ResetOptions const&)::$_0::operator()() const
120
121
/**
122
 * Assume is the identity function.
123
 *
124
 * - Should be used to run non-fatal checks. In debug builds it behaves like
125
 *   Assert()/assert() to notify developers and testers about non-fatal errors.
126
 *   In production it doesn't warn or log anything.
127
 * - For fatal errors, use Assert().
128
 * - For non-fatal errors in interactive sessions (e.g. RPC or command line
129
 *   interfaces), CHECK_NONFATAL() might be more appropriate.
130
 */
131
2.60G
#define Assume(val) inline_assertion_check<false>(val, std::source_location::current(), #val)
httpserver.cpp:_ZZN10HTTPServer16AcceptConnectionERK4SockR8CServiceENK3$_0clISt10shared_ptrIS0_EEEDaRKT_
Line
Count
Source
131
22.0k
#define Assume(val) inline_assertion_check<false>(val, std::source_location::current(), #val)
net_processing.cpp:(anonymous namespace)::PeerManagerImpl::ProcessMessage((anonymous namespace)::Peer&, CNode&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, DataStream&, std::chrono::time_point<NodeClock, std::chrono::duration<long, std::ratio<1l, 1000000000l>>>, std::atomic<bool> const&)::$_2::operator()() const
Line
Count
Source
131
4.81k
#define Assume(val) inline_assertion_check<false>(val, std::source_location::current(), #val)
mini_miner.cpp:_ZZNK4node9MiniMiner11SanityCheckEvENK3$_0clISt17_Rb_tree_iteratorISt4pairIK22transaction_identifierILb0EENS_21MiniMinerMempoolEntryEEEEEDaRKT_
Line
Count
Source
131
3.46M
#define Assume(val) inline_assertion_check<false>(val, std::source_location::current(), #val)
mini_miner.cpp:_ZZNK4node9MiniMiner11SanityCheckEvENK3$_1clI22transaction_identifierILb0EEEEDaRKT_
Line
Count
Source
131
407
#define Assume(val) inline_assertion_check<false>(val, std::source_location::current(), #val)
ephemeral_policy.cpp:_ZZ20CheckEphemeralSpendsRKSt6vectorISt10shared_ptrIK12CTransactionESaIS3_EE8CFeeRateRK10CTxMemPoolR17TxValidationStateR22transaction_identifierILb1EEENK3$_0clIS3_EEDaRKT_
Line
Count
Source
131
43.8k
#define Assume(val) inline_assertion_check<false>(val, std::source_location::current(), #val)
mempool_estimator.cpp:_ZZN23MemPoolFeeRateEstimator29CalculateMaxWeightPercentilesESt4spanIK10FeePerUnitI8VSizeTagELm18446744073709551615EEENK3$_0clIS3_S3_EEDaRKT_RKT0_
Line
Count
Source
131
40.8k
#define Assume(val) inline_assertion_check<false>(val, std::source_location::current(), #val)
validation.cpp:_ZZN17ChainstateManager25ReceivedBlockTransactionsERK6CBlockP11CBlockIndexRK11FlatFilePosENK3$_0clISt10unique_ptrI10ChainstateSt14default_deleteISB_EEEEDaRKT_
Line
Count
Source
131
2
#define Assume(val) inline_assertion_check<false>(val, std::source_location::current(), #val)
scriptpubkeyman.cpp:wallet::DescriptorScriptPubKeyMan::GetKey(CKeyID const&) const::$_0::operator()(std::vector<unsigned char, secure_allocator<unsigned char>> const&) const
Line
Count
Source
131
14
#define Assume(val) inline_assertion_check<false>(val, std::source_location::current(), #val)
wallet.cpp:wallet::CWallet::GetScriptPubKeyMans(CScript const&) const::$_0::operator()(wallet::ScriptPubKeyMan*) const
Line
Count
Source
131
90.4k
#define Assume(val) inline_assertion_check<false>(val, std::source_location::current(), #val)
132
133
/**
134
 * NONFATAL_UNREACHABLE() is a macro that is used to mark unreachable code. It throws a NonFatalCheckError.
135
 * Control flow will not continue past this macro.
136
 *
137
 * In debug builds an abort is triggered.
138
 */
139
#define NONFATAL_UNREACHABLE() \
140
1
    internal_non_fatal_helper(std::source_location::current(), "unreachable")
141
142
#if defined(__has_feature)
143
#    if __has_feature(address_sanitizer)
144
#       include <sanitizer/asan_interface.h>
145
#    endif
146
#endif
147
148
#ifndef ASAN_POISON_MEMORY_REGION
149
84.9M
#   define ASAN_POISON_MEMORY_REGION(addr, size) ((void)(addr), (void)(size))
150
138M
#   define ASAN_UNPOISON_MEMORY_REGION(addr, size) ((void)(addr), (void)(size))
151
#endif
152
153
#endif // BITCOIN_UTIL_CHECK_H