Coverage Report

Created: 2026-01-16 14:06

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/root/doris/be/src/common/cast_set.h
Line
Count
Source
1
2
// Licensed to the Apache Software Foundation (ASF) under one
3
// or more contributor license agreements.  See the NOTICE file
4
// distributed with this work for additional information
5
// regarding copyright ownership.  The ASF licenses this file
6
// to you under the Apache License, Version 2.0 (the
7
// "License"); you may not use this file except in compliance
8
// with the License.  You may obtain a copy of the License at
9
//
10
//   http://www.apache.org/licenses/LICENSE-2.0
11
//
12
// Unless required by applicable law or agreed to in writing,
13
// software distributed under the License is distributed on an
14
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
// KIND, either express or implied.  See the License for the
16
// specific language governing permissions and limitations
17
// under the License.
18
19
#pragma once
20
21
#include <limits>
22
#include <type_traits>
23
24
#include "common/exception.h"
25
#include "common/status.h"
26
#include "vec/core/extended_types.h"
27
28
namespace doris {
29
30
template <typename T, typename U>
31
622M
void check_cast_value(U b) {
32
622M
    if constexpr (IsUnsignedV<U>) {
33
185M
        if (b > std::numeric_limits<T>::max()) {
34
0
            throw doris::Exception(
35
0
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
36
0
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
37
0
        }
38
436M
    } else if constexpr (IsUnsignedV<T>) {
39
436M
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
2
            throw doris::Exception(
41
2
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
2
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
2
        }
44
436M
    } else {
45
507k
        if (b < std::numeric_limits<T>::min() || b > std::numeric_limits<T>::max()) {
46
0
            throw doris::Exception(
47
0
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
48
0
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
49
0
        }
50
507k
    }
51
622M
}
_ZN5doris16check_cast_valueIalEEvT0_
Line
Count
Source
31
64.9k
void check_cast_value(U b) {
32
    if constexpr (IsUnsignedV<U>) {
33
        if (b > std::numeric_limits<T>::max()) {
34
            throw doris::Exception(
35
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
36
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
37
        }
38
    } else if constexpr (IsUnsignedV<T>) {
39
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
            throw doris::Exception(
41
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
        }
44
64.9k
    } else {
45
64.9k
        if (b < std::numeric_limits<T>::min() || b > std::numeric_limits<T>::max()) {
46
0
            throw doris::Exception(
47
0
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
48
0
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
49
0
        }
50
64.9k
    }
51
64.9k
}
_ZN5doris16check_cast_valueIimEEvT0_
Line
Count
Source
31
3.23M
void check_cast_value(U b) {
32
3.23M
    if constexpr (IsUnsignedV<U>) {
33
3.23M
        if (b > std::numeric_limits<T>::max()) {
34
0
            throw doris::Exception(
35
0
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
36
0
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
37
0
        }
38
    } else if constexpr (IsUnsignedV<T>) {
39
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
            throw doris::Exception(
41
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
        }
44
    } else {
45
        if (b < std::numeric_limits<T>::min() || b > std::numeric_limits<T>::max()) {
46
            throw doris::Exception(
47
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
48
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
49
        }
50
    }
51
3.23M
}
_ZN5doris16check_cast_valueIjlEEvT0_
Line
Count
Source
31
98.5k
void check_cast_value(U b) {
32
    if constexpr (IsUnsignedV<U>) {
33
        if (b > std::numeric_limits<T>::max()) {
34
            throw doris::Exception(
35
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
36
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
37
        }
38
98.5k
    } else if constexpr (IsUnsignedV<T>) {
39
98.5k
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
2
            throw doris::Exception(
41
2
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
2
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
2
        }
44
    } else {
45
        if (b < std::numeric_limits<T>::min() || b > std::numeric_limits<T>::max()) {
46
            throw doris::Exception(
47
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
48
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
49
        }
50
    }
51
98.5k
}
_ZN5doris16check_cast_valueIjmEEvT0_
Line
Count
Source
31
7.71M
void check_cast_value(U b) {
32
7.71M
    if constexpr (IsUnsignedV<U>) {
33
7.71M
        if (b > std::numeric_limits<T>::max()) {
34
0
            throw doris::Exception(
35
0
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
36
0
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
37
0
        }
38
    } else if constexpr (IsUnsignedV<T>) {
39
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
            throw doris::Exception(
41
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
        }
44
    } else {
45
        if (b < std::numeric_limits<T>::min() || b > std::numeric_limits<T>::max()) {
46
            throw doris::Exception(
47
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
48
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
49
        }
50
    }
51
7.71M
}
_ZN5doris16check_cast_valueIilEEvT0_
Line
Count
Source
31
399k
void check_cast_value(U b) {
32
    if constexpr (IsUnsignedV<U>) {
33
        if (b > std::numeric_limits<T>::max()) {
34
            throw doris::Exception(
35
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
36
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
37
        }
38
    } else if constexpr (IsUnsignedV<T>) {
39
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
            throw doris::Exception(
41
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
        }
44
399k
    } else {
45
399k
        if (b < std::numeric_limits<T>::min() || b > std::numeric_limits<T>::max()) {
46
0
            throw doris::Exception(
47
0
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
48
0
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
49
0
        }
50
399k
    }
51
399k
}
_ZN5doris16check_cast_valueIhiEEvT0_
Line
Count
Source
31
1.66M
void check_cast_value(U b) {
32
    if constexpr (IsUnsignedV<U>) {
33
        if (b > std::numeric_limits<T>::max()) {
34
            throw doris::Exception(
35
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
36
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
37
        }
38
1.66M
    } else if constexpr (IsUnsignedV<T>) {
39
1.66M
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
0
            throw doris::Exception(
41
0
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
0
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
0
        }
44
    } else {
45
        if (b < std::numeric_limits<T>::min() || b > std::numeric_limits<T>::max()) {
46
            throw doris::Exception(
47
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
48
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
49
        }
50
    }
51
1.66M
}
_ZN5doris16check_cast_valueImiEEvT0_
Line
Count
Source
31
20
void check_cast_value(U b) {
32
    if constexpr (IsUnsignedV<U>) {
33
        if (b > std::numeric_limits<T>::max()) {
34
            throw doris::Exception(
35
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
36
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
37
        }
38
20
    } else if constexpr (IsUnsignedV<T>) {
39
20
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
0
            throw doris::Exception(
41
0
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
0
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
0
        }
44
    } else {
45
        if (b < std::numeric_limits<T>::min() || b > std::numeric_limits<T>::max()) {
46
            throw doris::Exception(
47
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
48
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
49
        }
50
    }
51
20
}
_ZN5doris16check_cast_valueIsmEEvT0_
Line
Count
Source
31
4.26k
void check_cast_value(U b) {
32
4.26k
    if constexpr (IsUnsignedV<U>) {
33
4.26k
        if (b > std::numeric_limits<T>::max()) {
34
0
            throw doris::Exception(
35
0
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
36
0
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
37
0
        }
38
    } else if constexpr (IsUnsignedV<T>) {
39
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
            throw doris::Exception(
41
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
        }
44
    } else {
45
        if (b < std::numeric_limits<T>::min() || b > std::numeric_limits<T>::max()) {
46
            throw doris::Exception(
47
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
48
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
49
        }
50
    }
51
4.26k
}
_ZN5doris16check_cast_valueIjiEEvT0_
Line
Count
Source
31
44
void check_cast_value(U b) {
32
    if constexpr (IsUnsignedV<U>) {
33
        if (b > std::numeric_limits<T>::max()) {
34
            throw doris::Exception(
35
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
36
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
37
        }
38
44
    } else if constexpr (IsUnsignedV<T>) {
39
44
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
0
            throw doris::Exception(
41
0
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
0
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
0
        }
44
    } else {
45
        if (b < std::numeric_limits<T>::min() || b > std::numeric_limits<T>::max()) {
46
            throw doris::Exception(
47
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
48
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
49
        }
50
    }
51
44
}
_ZN5doris16check_cast_valueIiiEEvT0_
Line
Count
Source
31
42.6k
void check_cast_value(U b) {
32
    if constexpr (IsUnsignedV<U>) {
33
        if (b > std::numeric_limits<T>::max()) {
34
            throw doris::Exception(
35
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
36
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
37
        }
38
    } else if constexpr (IsUnsignedV<T>) {
39
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
            throw doris::Exception(
41
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
        }
44
42.6k
    } else {
45
42.6k
        if (b < std::numeric_limits<T>::min() || b > std::numeric_limits<T>::max()) {
46
0
            throw doris::Exception(
47
0
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
48
0
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
49
0
        }
50
42.6k
    }
51
42.6k
}
_ZN5doris16check_cast_valueIlmEEvT0_
Line
Count
Source
31
170M
void check_cast_value(U b) {
32
170M
    if constexpr (IsUnsignedV<U>) {
33
170M
        if (b > std::numeric_limits<T>::max()) {
34
0
            throw doris::Exception(
35
0
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
36
0
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
37
0
        }
38
    } else if constexpr (IsUnsignedV<T>) {
39
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
            throw doris::Exception(
41
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
        }
44
    } else {
45
        if (b < std::numeric_limits<T>::min() || b > std::numeric_limits<T>::max()) {
46
            throw doris::Exception(
47
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
48
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
49
        }
50
    }
51
170M
}
_ZN5doris16check_cast_valueImmEEvT0_
Line
Count
Source
31
310k
void check_cast_value(U b) {
32
310k
    if constexpr (IsUnsignedV<U>) {
33
310k
        if (b > std::numeric_limits<T>::max()) {
34
0
            throw doris::Exception(
35
0
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
36
0
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
37
0
        }
38
    } else if constexpr (IsUnsignedV<T>) {
39
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
            throw doris::Exception(
41
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
        }
44
    } else {
45
        if (b < std::numeric_limits<T>::min() || b > std::numeric_limits<T>::max()) {
46
            throw doris::Exception(
47
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
48
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
49
        }
50
    }
51
310k
}
_ZN5doris16check_cast_valueIbmEEvT0_
Line
Count
Source
31
99.3k
void check_cast_value(U b) {
32
99.3k
    if constexpr (IsUnsignedV<U>) {
33
99.3k
        if (b > std::numeric_limits<T>::max()) {
34
0
            throw doris::Exception(
35
0
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
36
0
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
37
0
        }
38
    } else if constexpr (IsUnsignedV<T>) {
39
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
            throw doris::Exception(
41
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
        }
44
    } else {
45
        if (b < std::numeric_limits<T>::min() || b > std::numeric_limits<T>::max()) {
46
            throw doris::Exception(
47
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
48
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
49
        }
50
    }
51
99.3k
}
Unexecuted instantiation: _ZN5doris16check_cast_valueIhsEEvT0_
_ZN5doris16check_cast_valueIhlEEvT0_
Line
Count
Source
31
12.6M
void check_cast_value(U b) {
32
    if constexpr (IsUnsignedV<U>) {
33
        if (b > std::numeric_limits<T>::max()) {
34
            throw doris::Exception(
35
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
36
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
37
        }
38
12.6M
    } else if constexpr (IsUnsignedV<T>) {
39
12.6M
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
0
            throw doris::Exception(
41
0
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
0
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
0
        }
44
    } else {
45
        if (b < std::numeric_limits<T>::min() || b > std::numeric_limits<T>::max()) {
46
            throw doris::Exception(
47
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
48
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
49
        }
50
    }
51
12.6M
}
Unexecuted instantiation: _ZN5doris16check_cast_valueIliEEvT0_
_ZN5doris16check_cast_valueIllEEvT0_
Line
Count
Source
31
20
void check_cast_value(U b) {
32
    if constexpr (IsUnsignedV<U>) {
33
        if (b > std::numeric_limits<T>::max()) {
34
            throw doris::Exception(
35
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
36
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
37
        }
38
    } else if constexpr (IsUnsignedV<T>) {
39
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
            throw doris::Exception(
41
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
        }
44
20
    } else {
45
20
        if (b < std::numeric_limits<T>::min() || b > std::numeric_limits<T>::max()) {
46
0
            throw doris::Exception(
47
0
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
48
0
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
49
0
        }
50
20
    }
51
20
}
Unexecuted instantiation: _ZN5doris16check_cast_valueIlnEEvT0_
Unexecuted instantiation: _ZN5doris16check_cast_valueIslEEvT0_
_ZN5doris16check_cast_valueIiyEEvT0_
Line
Count
Source
31
286
void check_cast_value(U b) {
32
286
    if constexpr (IsUnsignedV<U>) {
33
286
        if (b > std::numeric_limits<T>::max()) {
34
0
            throw doris::Exception(
35
0
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
36
0
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
37
0
        }
38
    } else if constexpr (IsUnsignedV<T>) {
39
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
            throw doris::Exception(
41
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
        }
44
    } else {
45
        if (b < std::numeric_limits<T>::min() || b > std::numeric_limits<T>::max()) {
46
            throw doris::Exception(
47
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
48
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
49
        }
50
    }
51
286
}
_ZN5doris16check_cast_valueIsiEEvT0_
Line
Count
Source
31
310
void check_cast_value(U b) {
32
    if constexpr (IsUnsignedV<U>) {
33
        if (b > std::numeric_limits<T>::max()) {
34
            throw doris::Exception(
35
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
36
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
37
        }
38
    } else if constexpr (IsUnsignedV<T>) {
39
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
            throw doris::Exception(
41
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
        }
44
310
    } else {
45
310
        if (b < std::numeric_limits<T>::min() || b > std::numeric_limits<T>::max()) {
46
0
            throw doris::Exception(
47
0
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
48
0
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
49
0
        }
50
310
    }
51
310
}
_ZN5doris16check_cast_valueImjEEvT0_
Line
Count
Source
31
3.02M
void check_cast_value(U b) {
32
3.02M
    if constexpr (IsUnsignedV<U>) {
33
3.02M
        if (b > std::numeric_limits<T>::max()) {
34
0
            throw doris::Exception(
35
0
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
36
0
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
37
0
        }
38
    } else if constexpr (IsUnsignedV<T>) {
39
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
            throw doris::Exception(
41
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
        }
44
    } else {
45
        if (b < std::numeric_limits<T>::min() || b > std::numeric_limits<T>::max()) {
46
            throw doris::Exception(
47
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
48
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
49
        }
50
    }
51
3.02M
}
_ZN5doris16check_cast_valueIhmEEvT0_
Line
Count
Source
31
6.88k
void check_cast_value(U b) {
32
6.88k
    if constexpr (IsUnsignedV<U>) {
33
6.88k
        if (b > std::numeric_limits<T>::max()) {
34
0
            throw doris::Exception(
35
0
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
36
0
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
37
0
        }
38
    } else if constexpr (IsUnsignedV<T>) {
39
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
            throw doris::Exception(
41
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
        }
44
    } else {
45
        if (b < std::numeric_limits<T>::min() || b > std::numeric_limits<T>::max()) {
46
            throw doris::Exception(
47
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
48
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
49
        }
50
    }
51
6.88k
}
_ZN5doris16check_cast_valueItiEEvT0_
Line
Count
Source
31
43.8k
void check_cast_value(U b) {
32
    if constexpr (IsUnsignedV<U>) {
33
        if (b > std::numeric_limits<T>::max()) {
34
            throw doris::Exception(
35
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
36
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
37
        }
38
43.8k
    } else if constexpr (IsUnsignedV<T>) {
39
43.8k
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
0
            throw doris::Exception(
41
0
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
0
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
0
        }
44
    } else {
45
        if (b < std::numeric_limits<T>::min() || b > std::numeric_limits<T>::max()) {
46
            throw doris::Exception(
47
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
48
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
49
        }
50
    }
51
43.8k
}
_ZN5doris16check_cast_valueIjjEEvT0_
Line
Count
Source
31
98.1k
void check_cast_value(U b) {
32
98.1k
    if constexpr (IsUnsignedV<U>) {
33
98.1k
        if (b > std::numeric_limits<T>::max()) {
34
0
            throw doris::Exception(
35
0
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
36
0
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
37
0
        }
38
    } else if constexpr (IsUnsignedV<T>) {
39
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
            throw doris::Exception(
41
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
        }
44
    } else {
45
        if (b < std::numeric_limits<T>::min() || b > std::numeric_limits<T>::max()) {
46
            throw doris::Exception(
47
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
48
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
49
        }
50
    }
51
98.1k
}
_ZN5doris16check_cast_valueIhnEEvT0_
Line
Count
Source
31
422M
void check_cast_value(U b) {
32
    if constexpr (IsUnsignedV<U>) {
33
        if (b > std::numeric_limits<T>::max()) {
34
            throw doris::Exception(
35
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
36
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
37
        }
38
422M
    } else if constexpr (IsUnsignedV<T>) {
39
422M
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
0
            throw doris::Exception(
41
0
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
0
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
0
        }
44
    } else {
45
        if (b < std::numeric_limits<T>::min() || b > std::numeric_limits<T>::max()) {
46
            throw doris::Exception(
47
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
48
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
49
        }
50
    }
51
422M
}
_ZN5doris16check_cast_valueIhjEEvT0_
Line
Count
Source
31
163k
void check_cast_value(U b) {
32
163k
    if constexpr (IsUnsignedV<U>) {
33
163k
        if (b > std::numeric_limits<T>::max()) {
34
0
            throw doris::Exception(
35
0
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
36
0
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
37
0
        }
38
    } else if constexpr (IsUnsignedV<T>) {
39
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
            throw doris::Exception(
41
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
        }
44
    } else {
45
        if (b < std::numeric_limits<T>::min() || b > std::numeric_limits<T>::max()) {
46
            throw doris::Exception(
47
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
48
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
49
        }
50
    }
51
163k
}
Unexecuted instantiation: _ZN5doris16check_cast_valueIhoEEvT0_
Unexecuted instantiation: _ZN5doris16check_cast_valueItlEEvT0_
_ZN5doris16check_cast_valueIKjlEEvT0_
Line
Count
Source
31
146
void check_cast_value(U b) {
32
    if constexpr (IsUnsignedV<U>) {
33
        if (b > std::numeric_limits<T>::max()) {
34
            throw doris::Exception(
35
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
36
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
37
        }
38
146
    } else if constexpr (IsUnsignedV<T>) {
39
146
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
0
            throw doris::Exception(
41
0
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
0
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
0
        }
44
    } else {
45
        if (b < std::numeric_limits<T>::min() || b > std::numeric_limits<T>::max()) {
46
            throw doris::Exception(
47
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
48
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
49
        }
50
    }
51
146
}
_ZN5doris16check_cast_valueImnEEvT0_
Line
Count
Source
31
7.21k
void check_cast_value(U b) {
32
    if constexpr (IsUnsignedV<U>) {
33
        if (b > std::numeric_limits<T>::max()) {
34
            throw doris::Exception(
35
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
36
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
37
        }
38
7.21k
    } else if constexpr (IsUnsignedV<T>) {
39
7.21k
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
0
            throw doris::Exception(
41
0
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
0
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
0
        }
44
    } else {
45
        if (b < std::numeric_limits<T>::min() || b > std::numeric_limits<T>::max()) {
46
            throw doris::Exception(
47
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
48
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
49
        }
50
    }
51
7.21k
}
_ZN5doris16check_cast_valueIijEEvT0_
Line
Count
Source
31
48
void check_cast_value(U b) {
32
48
    if constexpr (IsUnsignedV<U>) {
33
48
        if (b > std::numeric_limits<T>::max()) {
34
0
            throw doris::Exception(
35
0
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
36
0
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
37
0
        }
38
    } else if constexpr (IsUnsignedV<T>) {
39
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
            throw doris::Exception(
41
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
        }
44
    } else {
45
        if (b < std::numeric_limits<T>::min() || b > std::numeric_limits<T>::max()) {
46
            throw doris::Exception(
47
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
48
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
49
        }
50
    }
51
48
}
Unexecuted instantiation: _ZN5doris16check_cast_valueIaiEEvT0_
Unexecuted instantiation: _ZN5doris16check_cast_valueIinEEvT0_
Unexecuted instantiation: _ZN5doris16check_cast_valueImaEEvT0_
Unexecuted instantiation: _ZN5doris16check_cast_valueImsEEvT0_
Unexecuted instantiation: _ZN5doris16check_cast_valueImlEEvT0_
52
53
template <typename T, typename U, bool need_check_value = true>
54
    requires IsIntegralV<T> && IsIntegralV<U>
55
0
void cast_set(T& a, U b) {
56
0
    if constexpr (need_check_value) {
57
0
        check_cast_value<T>(b);
58
0
    }
59
0
    a = static_cast<T>(b);
60
0
}
Unexecuted instantiation: _ZN5doris8cast_setIilLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEEvRS1_S2_
Unexecuted instantiation: _ZN5doris8cast_setIjmLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEEvRS1_S2_
Unexecuted instantiation: _ZN5doris8cast_setIiiLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEEvRS1_S2_
Unexecuted instantiation: _ZN5doris8cast_setIaiLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEEvRS1_S2_
Unexecuted instantiation: _ZN5doris8cast_setIimLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEEvRS1_S2_
61
62
template <typename T, typename U>
63
    requires std::is_floating_point_v<T> and std::is_integral_v<U>
64
void cast_set(T& a, U b) {
65
    a = static_cast<T>(b);
66
}
67
68
template <typename T, typename U, bool need_check_value = true>
69
    requires IsIntegralV<T> && IsIntegralV<U>
70
624M
T cast_set(U b) {
71
624M
    if constexpr (need_check_value) {
72
622M
        check_cast_value<T>(b);
73
622M
    }
74
624M
    return static_cast<T>(b);
75
624M
}
_ZN5doris8cast_setIalLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
64.8k
T cast_set(U b) {
71
64.8k
    if constexpr (need_check_value) {
72
64.8k
        check_cast_value<T>(b);
73
64.8k
    }
74
64.8k
    return static_cast<T>(b);
75
64.8k
}
_ZN5doris8cast_setIimLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
3.24M
T cast_set(U b) {
71
3.24M
    if constexpr (need_check_value) {
72
3.24M
        check_cast_value<T>(b);
73
3.24M
    }
74
3.24M
    return static_cast<T>(b);
75
3.24M
}
_ZN5doris8cast_setIjlLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
98.5k
T cast_set(U b) {
71
98.5k
    if constexpr (need_check_value) {
72
98.5k
        check_cast_value<T>(b);
73
98.5k
    }
74
98.5k
    return static_cast<T>(b);
75
98.5k
}
_ZN5doris8cast_setIjmLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
7.71M
T cast_set(U b) {
71
7.71M
    if constexpr (need_check_value) {
72
7.71M
        check_cast_value<T>(b);
73
7.71M
    }
74
7.71M
    return static_cast<T>(b);
75
7.71M
}
_ZN5doris8cast_setIciLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
4.19k
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
4.19k
    return static_cast<T>(b);
75
4.19k
}
_ZN5doris8cast_setIilLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
399k
T cast_set(U b) {
71
399k
    if constexpr (need_check_value) {
72
399k
        check_cast_value<T>(b);
73
399k
    }
74
399k
    return static_cast<T>(b);
75
399k
}
_ZN5doris8cast_setIjmLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
2.25M
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
2.25M
    return static_cast<T>(b);
75
2.25M
}
_ZN5doris8cast_setIhjLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
33.0k
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
33.0k
    return static_cast<T>(b);
75
33.0k
}
_ZN5doris8cast_setIhiLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
1.66M
T cast_set(U b) {
71
1.66M
    if constexpr (need_check_value) {
72
1.66M
        check_cast_value<T>(b);
73
1.66M
    }
74
1.66M
    return static_cast<T>(b);
75
1.66M
}
_ZN5doris8cast_setImiLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
20
T cast_set(U b) {
71
20
    if constexpr (need_check_value) {
72
20
        check_cast_value<T>(b);
73
20
    }
74
20
    return static_cast<T>(b);
75
20
}
_ZN5doris8cast_setIsmLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
4.26k
T cast_set(U b) {
71
4.26k
    if constexpr (need_check_value) {
72
4.26k
        check_cast_value<T>(b);
73
4.26k
    }
74
4.26k
    return static_cast<T>(b);
75
4.26k
}
_ZN5doris8cast_setIjiLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
44
T cast_set(U b) {
71
44
    if constexpr (need_check_value) {
72
44
        check_cast_value<T>(b);
73
44
    }
74
44
    return static_cast<T>(b);
75
44
}
_ZN5doris8cast_setIiiLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
42.6k
T cast_set(U b) {
71
42.6k
    if constexpr (need_check_value) {
72
42.6k
        check_cast_value<T>(b);
73
42.6k
    }
74
42.6k
    return static_cast<T>(b);
75
42.6k
}
_ZN5doris8cast_setIlmLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
170M
T cast_set(U b) {
71
170M
    if constexpr (need_check_value) {
72
170M
        check_cast_value<T>(b);
73
170M
    }
74
170M
    return static_cast<T>(b);
75
170M
}
_ZN5doris8cast_setIsiLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
2.08k
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
2.08k
    return static_cast<T>(b);
75
2.08k
}
_ZN5doris8cast_setImmLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
310k
T cast_set(U b) {
71
310k
    if constexpr (need_check_value) {
72
310k
        check_cast_value<T>(b);
73
310k
    }
74
310k
    return static_cast<T>(b);
75
310k
}
_ZN5doris8cast_setIbmLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
99.3k
T cast_set(U b) {
71
99.3k
    if constexpr (need_check_value) {
72
99.3k
        check_cast_value<T>(b);
73
99.3k
    }
74
99.3k
    return static_cast<T>(b);
75
99.3k
}
_ZN5doris8cast_setIaiLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
2.12k
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
2.12k
    return static_cast<T>(b);
75
2.12k
}
Unexecuted instantiation: _ZN5doris8cast_setIhsLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
_ZN5doris8cast_setIhlLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
12.6M
T cast_set(U b) {
71
12.6M
    if constexpr (need_check_value) {
72
12.6M
        check_cast_value<T>(b);
73
12.6M
    }
74
12.6M
    return static_cast<T>(b);
75
12.6M
}
Unexecuted instantiation: _ZN5doris8cast_setIliLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
_ZN5doris8cast_setIllLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
20
T cast_set(U b) {
71
20
    if constexpr (need_check_value) {
72
20
        check_cast_value<T>(b);
73
20
    }
74
20
    return static_cast<T>(b);
75
20
}
Unexecuted instantiation: _ZN5doris8cast_setIlnLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
_ZN5doris8cast_setIilLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
528
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
528
    return static_cast<T>(b);
75
528
}
Unexecuted instantiation: _ZN5doris8cast_setIslLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
_ZN5doris8cast_setIiyLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
286
T cast_set(U b) {
71
286
    if constexpr (need_check_value) {
72
286
        check_cast_value<T>(b);
73
286
    }
74
286
    return static_cast<T>(b);
75
286
}
_ZN5doris8cast_setIsiLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
310
T cast_set(U b) {
71
310
    if constexpr (need_check_value) {
72
310
        check_cast_value<T>(b);
73
310
    }
74
310
    return static_cast<T>(b);
75
310
}
_ZN5doris8cast_setImjLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
3.02M
T cast_set(U b) {
71
3.02M
    if constexpr (need_check_value) {
72
3.02M
        check_cast_value<T>(b);
73
3.02M
    }
74
3.02M
    return static_cast<T>(b);
75
3.02M
}
_ZN5doris8cast_setIhmLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
6.88k
T cast_set(U b) {
71
6.88k
    if constexpr (need_check_value) {
72
6.88k
        check_cast_value<T>(b);
73
6.88k
    }
74
6.88k
    return static_cast<T>(b);
75
6.88k
}
_ZN5doris8cast_setItiLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
43.8k
T cast_set(U b) {
71
43.8k
    if constexpr (need_check_value) {
72
43.8k
        check_cast_value<T>(b);
73
43.8k
    }
74
43.8k
    return static_cast<T>(b);
75
43.8k
}
_ZN5doris8cast_setIjjLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
98.1k
T cast_set(U b) {
71
98.1k
    if constexpr (need_check_value) {
72
98.1k
        check_cast_value<T>(b);
73
98.1k
    }
74
98.1k
    return static_cast<T>(b);
75
98.1k
}
_ZN5doris8cast_setIhnLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
422M
T cast_set(U b) {
71
422M
    if constexpr (need_check_value) {
72
422M
        check_cast_value<T>(b);
73
422M
    }
74
422M
    return static_cast<T>(b);
75
422M
}
_ZN5doris8cast_setIhjLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
163k
T cast_set(U b) {
71
163k
    if constexpr (need_check_value) {
72
163k
        check_cast_value<T>(b);
73
163k
    }
74
163k
    return static_cast<T>(b);
75
163k
}
Unexecuted instantiation: _ZN5doris8cast_setIhoLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Unexecuted instantiation: _ZN5doris8cast_setItlLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
_ZN5doris8cast_setIKjlLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES2_S3_
Line
Count
Source
70
146
T cast_set(U b) {
71
146
    if constexpr (need_check_value) {
72
146
        check_cast_value<T>(b);
73
146
    }
74
146
    return static_cast<T>(b);
75
146
}
_ZN5doris8cast_setImnLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
7.21k
T cast_set(U b) {
71
7.21k
    if constexpr (need_check_value) {
72
7.21k
        check_cast_value<T>(b);
73
7.21k
    }
74
7.21k
    return static_cast<T>(b);
75
7.21k
}
_ZN5doris8cast_setIimLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
3.67k
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
3.67k
    return static_cast<T>(b);
75
3.67k
}
Unexecuted instantiation: _ZN5doris8cast_setIiiLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Unexecuted instantiation: _ZN5doris8cast_setIliLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
_ZN5doris8cast_setIllLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
44
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
44
    return static_cast<T>(b);
75
44
}
Unexecuted instantiation: _ZN5doris8cast_setIniLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Unexecuted instantiation: _ZN5doris8cast_setInlLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Unexecuted instantiation: _ZN5doris8cast_setIsmLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
_ZN5doris8cast_setIijLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
48
T cast_set(U b) {
71
48
    if constexpr (need_check_value) {
72
48
        check_cast_value<T>(b);
73
48
    }
74
48
    return static_cast<T>(b);
75
48
}
_ZN5doris8cast_setIahLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
116
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
116
    return static_cast<T>(b);
75
116
}
_ZN5doris8cast_setIijLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
12
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
12
    return static_cast<T>(b);
75
12
}
Unexecuted instantiation: _ZN5doris8cast_setImmLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
_ZN5doris8cast_setIjjLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
10
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
10
    return static_cast<T>(b);
75
10
}
Unexecuted instantiation: _ZN5doris8cast_setItmLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Unexecuted instantiation: _ZN5doris8cast_setIinLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Unexecuted instantiation: _ZN5doris8cast_setImaLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Unexecuted instantiation: _ZN5doris8cast_setImsLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Unexecuted instantiation: _ZN5doris8cast_setImlLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
76
77
template <typename T, typename U>
78
    requires std::is_floating_point_v<T> and std::is_integral_v<U>
79
103k
T cast_set(U b) {
80
103k
    return static_cast<T>(b);
81
103k
}
_ZN5doris8cast_setIdlQaasr3stdE19is_floating_point_vIT_Esr3stdE13is_integral_vIT0_EEES1_S2_
Line
Count
Source
79
184
T cast_set(U b) {
80
184
    return static_cast<T>(b);
81
184
}
_ZN5doris8cast_setIdmQaasr3stdE19is_floating_point_vIT_Esr3stdE13is_integral_vIT0_EEES1_S2_
Line
Count
Source
79
103k
T cast_set(U b) {
80
103k
    return static_cast<T>(b);
81
103k
}
Unexecuted instantiation: _ZN5doris8cast_setIfmQaasr3stdE19is_floating_point_vIT_Esr3stdE13is_integral_vIT0_EEES1_S2_
82
83
} // namespace doris