Coverage Report

Created: 2025-09-15 20:29

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
308M
void check_cast_value(U b) {
32
308M
    if constexpr (IsUnsignedV<U>) {
33
89.7M
        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
218M
    } else if constexpr (IsUnsignedV<T>) {
39
218M
        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
218M
    } else {
45
273k
        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
273k
    }
51
308M
}
_ZN5doris16check_cast_valueIalEEvT0_
Line
Count
Source
31
28.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
    } 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
28.8k
    } else {
45
28.8k
        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
28.8k
    }
51
28.8k
}
_ZN5doris16check_cast_valueIimEEvT0_
Line
Count
Source
31
1.98M
void check_cast_value(U b) {
32
1.98M
    if constexpr (IsUnsignedV<U>) {
33
1.98M
        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
1.98M
}
_ZN5doris16check_cast_valueIjlEEvT0_
Line
Count
Source
31
23.0k
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
23.0k
    } else if constexpr (IsUnsignedV<T>) {
39
23.0k
        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
23.0k
}
_ZN5doris16check_cast_valueIjmEEvT0_
Line
Count
Source
31
2.80M
void check_cast_value(U b) {
32
2.80M
    if constexpr (IsUnsignedV<U>) {
33
2.80M
        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
2.80M
}
_ZN5doris16check_cast_valueIilEEvT0_
Line
Count
Source
31
223k
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
223k
    } else {
45
223k
        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
223k
    }
51
223k
}
_ZN5doris16check_cast_valueIhiEEvT0_
Line
Count
Source
31
653k
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
653k
    } else if constexpr (IsUnsignedV<T>) {
39
653k
        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
653k
}
_ZN5doris16check_cast_valueIjiEEvT0_
Line
Count
Source
31
16
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
16
    } else if constexpr (IsUnsignedV<T>) {
39
16
        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
16
}
_ZN5doris16check_cast_valueIiiEEvT0_
Line
Count
Source
31
21.3k
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
21.3k
    } else {
45
21.3k
        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
21.3k
    }
51
21.3k
}
_ZN5doris16check_cast_valueIlmEEvT0_
Line
Count
Source
31
83.3M
void check_cast_value(U b) {
32
83.3M
    if constexpr (IsUnsignedV<U>) {
33
83.3M
        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
83.3M
}
_ZN5doris16check_cast_valueIsmEEvT0_
Line
Count
Source
31
2.12k
void check_cast_value(U b) {
32
2.12k
    if constexpr (IsUnsignedV<U>) {
33
2.12k
        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
2.12k
}
_ZN5doris16check_cast_valueImmEEvT0_
Line
Count
Source
31
155k
void check_cast_value(U b) {
32
155k
    if constexpr (IsUnsignedV<U>) {
33
155k
        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
155k
}
_ZN5doris16check_cast_valueIbmEEvT0_
Line
Count
Source
31
26.2k
void check_cast_value(U b) {
32
26.2k
    if constexpr (IsUnsignedV<U>) {
33
26.2k
        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
26.2k
}
Unexecuted instantiation: _ZN5doris16check_cast_valueIhsEEvT0_
_ZN5doris16check_cast_valueIhlEEvT0_
Line
Count
Source
31
6.33M
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
6.33M
    } else if constexpr (IsUnsignedV<T>) {
39
6.33M
        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
6.33M
}
Unexecuted instantiation: _ZN5doris16check_cast_valueIliEEvT0_
_ZN5doris16check_cast_valueIllEEvT0_
Line
Count
Source
31
10
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
10
    } else {
45
10
        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
10
    }
51
10
}
Unexecuted instantiation: _ZN5doris16check_cast_valueIlnEEvT0_
Unexecuted instantiation: _ZN5doris16check_cast_valueIslEEvT0_
_ZN5doris16check_cast_valueIiyEEvT0_
Line
Count
Source
31
177
void check_cast_value(U b) {
32
177
    if constexpr (IsUnsignedV<U>) {
33
177
        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
177
}
_ZN5doris16check_cast_valueIsiEEvT0_
Line
Count
Source
31
137
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
137
    } else {
45
137
        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
137
    }
51
137
}
_ZN5doris16check_cast_valueImjEEvT0_
Line
Count
Source
31
1.21M
void check_cast_value(U b) {
32
1.21M
    if constexpr (IsUnsignedV<U>) {
33
1.21M
        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
1.21M
}
_ZN5doris16check_cast_valueIhmEEvT0_
Line
Count
Source
31
3.44k
void check_cast_value(U b) {
32
3.44k
    if constexpr (IsUnsignedV<U>) {
33
3.44k
        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.44k
}
_ZN5doris16check_cast_valueItjEEvT0_
Line
Count
Source
31
4.19k
void check_cast_value(U b) {
32
4.19k
    if constexpr (IsUnsignedV<U>) {
33
4.19k
        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.19k
}
_ZN5doris16check_cast_valueItiEEvT0_
Line
Count
Source
31
21.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
21.8k
    } else if constexpr (IsUnsignedV<T>) {
39
21.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
21.8k
}
_ZN5doris16check_cast_valueIhnEEvT0_
Line
Count
Source
31
211M
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
211M
    } else if constexpr (IsUnsignedV<T>) {
39
211M
        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
211M
}
_ZN5doris16check_cast_valueIhjEEvT0_
Line
Count
Source
31
81.5k
void check_cast_value(U b) {
32
81.5k
    if constexpr (IsUnsignedV<U>) {
33
81.5k
        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
81.5k
}
Unexecuted instantiation: _ZN5doris16check_cast_valueIhoEEvT0_
Unexecuted instantiation: _ZN5doris16check_cast_valueItlEEvT0_
_ZN5doris16check_cast_valueIjjEEvT0_
Line
Count
Source
31
48.7k
void check_cast_value(U b) {
32
48.7k
    if constexpr (IsUnsignedV<U>) {
33
48.7k
        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.7k
}
_ZN5doris16check_cast_valueIKjlEEvT0_
Line
Count
Source
31
73
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
73
    } else if constexpr (IsUnsignedV<T>) {
39
73
        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
73
}
_ZN5doris16check_cast_valueImnEEvT0_
Line
Count
Source
31
3.60k
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
3.60k
    } else if constexpr (IsUnsignedV<T>) {
39
3.60k
        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
3.60k
}
_ZN5doris16check_cast_valueIijEEvT0_
Line
Count
Source
31
24
void check_cast_value(U b) {
32
24
    if constexpr (IsUnsignedV<U>) {
33
24
        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
24
}
Unexecuted instantiation: _ZN5doris16check_cast_valueIaiEEvT0_
Unexecuted instantiation: _ZN5doris16check_cast_valueIinEEvT0_
_ZN5doris16check_cast_valueIljEEvT0_
Line
Count
Source
31
11.3k
void check_cast_value(U b) {
32
11.3k
    if constexpr (IsUnsignedV<U>) {
33
11.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
11.3k
}
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
308M
T cast_set(U b) {
71
308M
    if constexpr (need_check_value) {
72
308M
        check_cast_value<T>(b);
73
308M
    }
74
308M
    return static_cast<T>(b);
75
308M
}
_ZN5doris8cast_setIalLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
28.6k
T cast_set(U b) {
71
28.6k
    if constexpr (need_check_value) {
72
28.6k
        check_cast_value<T>(b);
73
28.6k
    }
74
28.6k
    return static_cast<T>(b);
75
28.6k
}
_ZN5doris8cast_setIimLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
1.98M
T cast_set(U b) {
71
1.98M
    if constexpr (need_check_value) {
72
1.98M
        check_cast_value<T>(b);
73
1.98M
    }
74
1.98M
    return static_cast<T>(b);
75
1.98M
}
_ZN5doris8cast_setIjlLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
23.0k
T cast_set(U b) {
71
23.0k
    if constexpr (need_check_value) {
72
23.0k
        check_cast_value<T>(b);
73
23.0k
    }
74
23.0k
    return static_cast<T>(b);
75
23.0k
}
_ZN5doris8cast_setIjmLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
2.80M
T cast_set(U b) {
71
2.80M
    if constexpr (need_check_value) {
72
2.80M
        check_cast_value<T>(b);
73
2.80M
    }
74
2.80M
    return static_cast<T>(b);
75
2.80M
}
_ZN5doris8cast_setIciLb0EQaa11IsIntegralVIT_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_setIilLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
223k
T cast_set(U b) {
71
223k
    if constexpr (need_check_value) {
72
223k
        check_cast_value<T>(b);
73
223k
    }
74
223k
    return static_cast<T>(b);
75
223k
}
_ZN5doris8cast_setIjmLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
123k
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
123k
    return static_cast<T>(b);
75
123k
}
_ZN5doris8cast_setIhjLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
5.69k
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
5.69k
    return static_cast<T>(b);
75
5.69k
}
_ZN5doris8cast_setIhiLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
653k
T cast_set(U b) {
71
653k
    if constexpr (need_check_value) {
72
653k
        check_cast_value<T>(b);
73
653k
    }
74
653k
    return static_cast<T>(b);
75
653k
}
_ZN5doris8cast_setIjiLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
16
T cast_set(U b) {
71
16
    if constexpr (need_check_value) {
72
16
        check_cast_value<T>(b);
73
16
    }
74
16
    return static_cast<T>(b);
75
16
}
_ZN5doris8cast_setIiiLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
21.3k
T cast_set(U b) {
71
21.3k
    if constexpr (need_check_value) {
72
21.3k
        check_cast_value<T>(b);
73
21.3k
    }
74
21.3k
    return static_cast<T>(b);
75
21.3k
}
_ZN5doris8cast_setIlmLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
83.3M
T cast_set(U b) {
71
83.3M
    if constexpr (need_check_value) {
72
83.3M
        check_cast_value<T>(b);
73
83.3M
    }
74
83.3M
    return static_cast<T>(b);
75
83.3M
}
_ZN5doris8cast_setIsmLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
2.12k
T cast_set(U b) {
71
2.12k
    if constexpr (need_check_value) {
72
2.12k
        check_cast_value<T>(b);
73
2.12k
    }
74
2.12k
    return static_cast<T>(b);
75
2.12k
}
_ZN5doris8cast_setIsiLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
1.01k
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
1.01k
    return static_cast<T>(b);
75
1.01k
}
_ZN5doris8cast_setImmLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
155k
T cast_set(U b) {
71
155k
    if constexpr (need_check_value) {
72
155k
        check_cast_value<T>(b);
73
155k
    }
74
155k
    return static_cast<T>(b);
75
155k
}
_ZN5doris8cast_setIbmLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
26.2k
T cast_set(U b) {
71
26.2k
    if constexpr (need_check_value) {
72
26.2k
        check_cast_value<T>(b);
73
26.2k
    }
74
26.2k
    return static_cast<T>(b);
75
26.2k
}
_ZN5doris8cast_setIaiLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
1.07k
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
1.07k
    return static_cast<T>(b);
75
1.07k
}
Unexecuted instantiation: _ZN5doris8cast_setIhsLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
_ZN5doris8cast_setIhlLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
6.33M
T cast_set(U b) {
71
6.33M
    if constexpr (need_check_value) {
72
6.33M
        check_cast_value<T>(b);
73
6.33M
    }
74
6.33M
    return static_cast<T>(b);
75
6.33M
}
Unexecuted instantiation: _ZN5doris8cast_setIliLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
_ZN5doris8cast_setIllLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
10
T cast_set(U b) {
71
10
    if constexpr (need_check_value) {
72
10
        check_cast_value<T>(b);
73
10
    }
74
10
    return static_cast<T>(b);
75
10
}
Unexecuted instantiation: _ZN5doris8cast_setIlnLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
_ZN5doris8cast_setIilLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
294
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
294
    return static_cast<T>(b);
75
294
}
Unexecuted instantiation: _ZN5doris8cast_setIslLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
_ZN5doris8cast_setIiyLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
177
T cast_set(U b) {
71
177
    if constexpr (need_check_value) {
72
177
        check_cast_value<T>(b);
73
177
    }
74
177
    return static_cast<T>(b);
75
177
}
_ZN5doris8cast_setIsiLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
137
T cast_set(U b) {
71
137
    if constexpr (need_check_value) {
72
137
        check_cast_value<T>(b);
73
137
    }
74
137
    return static_cast<T>(b);
75
137
}
_ZN5doris8cast_setImjLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
1.21M
T cast_set(U b) {
71
1.21M
    if constexpr (need_check_value) {
72
1.21M
        check_cast_value<T>(b);
73
1.21M
    }
74
1.21M
    return static_cast<T>(b);
75
1.21M
}
_ZN5doris8cast_setIhmLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
3.44k
T cast_set(U b) {
71
3.44k
    if constexpr (need_check_value) {
72
3.44k
        check_cast_value<T>(b);
73
3.44k
    }
74
3.44k
    return static_cast<T>(b);
75
3.44k
}
_ZN5doris8cast_setItjLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
4.19k
T cast_set(U b) {
71
4.19k
    if constexpr (need_check_value) {
72
4.19k
        check_cast_value<T>(b);
73
4.19k
    }
74
4.19k
    return static_cast<T>(b);
75
4.19k
}
_ZN5doris8cast_setItiLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
21.8k
T cast_set(U b) {
71
21.8k
    if constexpr (need_check_value) {
72
21.8k
        check_cast_value<T>(b);
73
21.8k
    }
74
21.8k
    return static_cast<T>(b);
75
21.8k
}
_ZN5doris8cast_setIhnLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
211M
T cast_set(U b) {
71
211M
    if constexpr (need_check_value) {
72
211M
        check_cast_value<T>(b);
73
211M
    }
74
211M
    return static_cast<T>(b);
75
211M
}
_ZN5doris8cast_setIhjLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
81.5k
T cast_set(U b) {
71
81.5k
    if constexpr (need_check_value) {
72
81.5k
        check_cast_value<T>(b);
73
81.5k
    }
74
81.5k
    return static_cast<T>(b);
75
81.5k
}
Unexecuted instantiation: _ZN5doris8cast_setIhoLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Unexecuted instantiation: _ZN5doris8cast_setItlLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
_ZN5doris8cast_setIjjLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
48.7k
T cast_set(U b) {
71
48.7k
    if constexpr (need_check_value) {
72
48.7k
        check_cast_value<T>(b);
73
48.7k
    }
74
48.7k
    return static_cast<T>(b);
75
48.7k
}
_ZN5doris8cast_setIKjlLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES2_S3_
Line
Count
Source
70
73
T cast_set(U b) {
71
73
    if constexpr (need_check_value) {
72
73
        check_cast_value<T>(b);
73
73
    }
74
73
    return static_cast<T>(b);
75
73
}
_ZN5doris8cast_setImnLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
3.60k
T cast_set(U b) {
71
3.60k
    if constexpr (need_check_value) {
72
3.60k
        check_cast_value<T>(b);
73
3.60k
    }
74
3.60k
    return static_cast<T>(b);
75
3.60k
}
_ZN5doris8cast_setIimLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
1.86k
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
1.86k
    return static_cast<T>(b);
75
1.86k
}
Unexecuted instantiation: _ZN5doris8cast_setIiiLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Unexecuted instantiation: _ZN5doris8cast_setIliLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
_ZN5doris8cast_setIllLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
25
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
25
    return static_cast<T>(b);
75
25
}
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
24
T cast_set(U b) {
71
24
    if constexpr (need_check_value) {
72
24
        check_cast_value<T>(b);
73
24
    }
74
24
    return static_cast<T>(b);
75
24
}
_ZN5doris8cast_setIahLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
99
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
99
    return static_cast<T>(b);
75
99
}
_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
}
_ZN5doris8cast_setIatLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
4
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
4
    return static_cast<T>(b);
75
4
}
Unexecuted instantiation: _ZN5doris8cast_setImmLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
_ZN5doris8cast_setIjjLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
8
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
8
    return static_cast<T>(b);
75
8
}
Unexecuted instantiation: _ZN5doris8cast_setItmLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Unexecuted instantiation: _ZN5doris8cast_setIinLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
_ZN5doris8cast_setIljLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
11.3k
T cast_set(U b) {
71
11.3k
    if constexpr (need_check_value) {
72
11.3k
        check_cast_value<T>(b);
73
11.3k
    }
74
11.3k
    return static_cast<T>(b);
75
11.3k
}
76
77
template <typename T, typename U>
78
    requires std::is_floating_point_v<T> and std::is_integral_v<U>
79
45.9k
T cast_set(U b) {
80
45.9k
    return static_cast<T>(b);
81
45.9k
}
_ZN5doris8cast_setIdlQaasr3stdE19is_floating_point_vIT_Esr3stdE13is_integral_vIT0_EEES1_S2_
Line
Count
Source
79
51
T cast_set(U b) {
80
51
    return static_cast<T>(b);
81
51
}
_ZN5doris8cast_setIdmQaasr3stdE19is_floating_point_vIT_Esr3stdE13is_integral_vIT0_EEES1_S2_
Line
Count
Source
79
45.9k
T cast_set(U b) {
80
45.9k
    return static_cast<T>(b);
81
45.9k
}
Unexecuted instantiation: _ZN5doris8cast_setIfmQaasr3stdE19is_floating_point_vIT_Esr3stdE13is_integral_vIT0_EEES1_S2_
82
83
} // namespace doris