Coverage Report

Created: 2026-03-13 09:58

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
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 "core/extended_types.h"
27
28
namespace doris {
29
30
template <typename T, typename U>
31
2.11G
void check_cast_value(U b) {
32
2.11G
    if constexpr (IsUnsignedV<U>) {
33
1.66G
        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
1.66G
    } else if constexpr (IsUnsignedV<T>) {
39
323M
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
1
            throw doris::Exception(
41
1
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
1
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
1
        }
44
323M
    } else {
45
135M
        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
135M
    }
51
2.11G
}
_ZN5doris16check_cast_valueIalEEvT0_
Line
Count
Source
31
1.35M
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
1.35M
    } else {
45
1.35M
        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
1.35M
    }
51
1.35M
}
_ZN5doris16check_cast_valueIimEEvT0_
Line
Count
Source
31
103M
void check_cast_value(U b) {
32
103M
    if constexpr (IsUnsignedV<U>) {
33
103M
        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
103M
}
_ZN5doris16check_cast_valueIjlEEvT0_
Line
Count
Source
31
39.8M
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
39.8M
    } else if constexpr (IsUnsignedV<T>) {
39
39.8M
        if (b < 0 || b > std::numeric_limits<T>::max()) {
40
1
            throw doris::Exception(
41
1
                    ErrorCode::INTERNAL_ERROR, "value {} cast  to type {} out of range [{},{}]", b,
42
1
                    typeid(T).name(), std::numeric_limits<T>::min(), std::numeric_limits<T>::max());
43
1
        }
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
39.8M
}
_ZN5doris16check_cast_valueIjmEEvT0_
Line
Count
Source
31
359M
void check_cast_value(U b) {
32
359M
    if constexpr (IsUnsignedV<U>) {
33
359M
        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
359M
}
_ZN5doris16check_cast_valueIlmEEvT0_
Line
Count
Source
31
796M
void check_cast_value(U b) {
32
796M
    if constexpr (IsUnsignedV<U>) {
33
796M
        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
796M
}
_ZN5doris16check_cast_valueIilEEvT0_
Line
Count
Source
31
131M
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
131M
    } else {
45
132M
        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
131M
    }
51
131M
}
_ZN5doris16check_cast_valueIhiEEvT0_
Line
Count
Source
31
2.22M
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
2.22M
    } else if constexpr (IsUnsignedV<T>) {
39
2.22M
        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
2.22M
}
_ZN5doris16check_cast_valueIiyEEvT0_
Line
Count
Source
31
8.32k
void check_cast_value(U b) {
32
8.32k
    if constexpr (IsUnsignedV<U>) {
33
8.32k
        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
8.32k
}
_ZN5doris16check_cast_valueIllEEvT0_
Line
Count
Source
31
444
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
444
    } else {
45
444
        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
444
    }
51
444
}
_ZN5doris16check_cast_valueIsiEEvT0_
Line
Count
Source
31
1.29M
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
1.29M
    } else {
45
1.29M
        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
1.29M
    }
51
1.29M
}
_ZN5doris16check_cast_valueImiEEvT0_
Line
Count
Source
31
20.0M
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.0M
    } else if constexpr (IsUnsignedV<T>) {
39
20.0M
        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.0M
}
_ZN5doris16check_cast_valueImjEEvT0_
Line
Count
Source
31
156M
void check_cast_value(U b) {
32
156M
    if constexpr (IsUnsignedV<U>) {
33
156M
        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
156M
}
_ZN5doris16check_cast_valueItiEEvT0_
Line
Count
Source
31
44.0M
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.0M
    } else if constexpr (IsUnsignedV<T>) {
39
44.0M
        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.0M
}
_ZN5doris16check_cast_valueImnEEvT0_
Line
Count
Source
31
5.13k
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
5.13k
    } else if constexpr (IsUnsignedV<T>) {
39
5.13k
        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
5.13k
}
_ZN5doris16check_cast_valueIjjEEvT0_
Line
Count
Source
31
33.0M
void check_cast_value(U b) {
32
33.0M
    if constexpr (IsUnsignedV<U>) {
33
33.0M
        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
33.0M
}
_ZN5doris16check_cast_valueIijEEvT0_
Line
Count
Source
31
4.80M
void check_cast_value(U b) {
32
4.80M
    if constexpr (IsUnsignedV<U>) {
33
4.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
4.80M
}
_ZN5doris16check_cast_valueIiiEEvT0_
Line
Count
Source
31
757k
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
757k
    } else {
45
757k
        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
757k
    }
51
757k
}
_ZN5doris16check_cast_valueIaiEEvT0_
Line
Count
Source
31
19
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
19
    } else {
45
19
        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
19
    }
51
19
}
_ZN5doris16check_cast_valueIjiEEvT0_
Line
Count
Source
31
2.15k
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
2.15k
    } else if constexpr (IsUnsignedV<T>) {
39
2.15k
        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
2.15k
}
_ZN5doris16check_cast_valueIhsEEvT0_
Line
Count
Source
31
424
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
424
    } else if constexpr (IsUnsignedV<T>) {
39
424
        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
424
}
_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
}
_ZN5doris16check_cast_valueIKjlEEvT0_
Line
Count
Source
31
2.10k
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
2.10k
    } else if constexpr (IsUnsignedV<T>) {
39
2.10k
        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
2.10k
}
_ZN5doris16check_cast_valueIsmEEvT0_
Line
Count
Source
31
203M
void check_cast_value(U b) {
32
203M
    if constexpr (IsUnsignedV<U>) {
33
203M
        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
203M
}
_ZN5doris16check_cast_valueIbmEEvT0_
Line
Count
Source
31
1.24M
void check_cast_value(U b) {
32
1.24M
    if constexpr (IsUnsignedV<U>) {
33
1.24M
        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.24M
}
_ZN5doris16check_cast_valueIhmEEvT0_
Line
Count
Source
31
853k
void check_cast_value(U b) {
32
853k
    if constexpr (IsUnsignedV<U>) {
33
853k
        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
853k
}
_ZN5doris16check_cast_valueIslEEvT0_
Line
Count
Source
31
405
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
405
    } else {
45
405
        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
405
    }
51
405
}
_ZN5doris16check_cast_valueIinEEvT0_
Line
Count
Source
31
6.53k
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
6.53k
    } else {
45
6.53k
        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
6.53k
    }
51
6.53k
}
Unexecuted instantiation: _ZN5doris16check_cast_valueImaEEvT0_
Unexecuted instantiation: _ZN5doris16check_cast_valueImsEEvT0_
Unexecuted instantiation: _ZN5doris16check_cast_valueImlEEvT0_
Unexecuted instantiation: _ZN5doris16check_cast_valueIliEEvT0_
_ZN5doris16check_cast_valueIlnEEvT0_
Line
Count
Source
31
4
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
4
    } else {
45
4
        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
4
    }
51
4
}
_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_
_ZN5doris16check_cast_valueItlEEvT0_
Line
Count
Source
31
1.77k
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.77k
    } else if constexpr (IsUnsignedV<T>) {
39
1.77k
        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.77k
}
52
53
template <typename T, typename U, bool need_check_value = true>
54
    requires IsIntegralV<T> && IsIntegralV<U>
55
427k
void cast_set(T& a, U b) {
56
427k
    if constexpr (need_check_value) {
57
427k
        check_cast_value<T>(b);
58
427k
    }
59
427k
    a = static_cast<T>(b);
60
427k
}
_ZN5doris8cast_setIiiLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEEvRS1_S2_
Line
Count
Source
55
16
void cast_set(T& a, U b) {
56
16
    if constexpr (need_check_value) {
57
16
        check_cast_value<T>(b);
58
16
    }
59
16
    a = static_cast<T>(b);
60
16
}
_ZN5doris8cast_setIaiLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEEvRS1_S2_
Line
Count
Source
55
19
void cast_set(T& a, U b) {
56
19
    if constexpr (need_check_value) {
57
19
        check_cast_value<T>(b);
58
19
    }
59
19
    a = static_cast<T>(b);
60
19
}
_ZN5doris8cast_setIjmLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEEvRS1_S2_
Line
Count
Source
55
10
void cast_set(T& a, U b) {
56
10
    if constexpr (need_check_value) {
57
10
        check_cast_value<T>(b);
58
10
    }
59
10
    a = static_cast<T>(b);
60
10
}
_ZN5doris8cast_setIimLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEEvRS1_S2_
Line
Count
Source
55
427k
void cast_set(T& a, U b) {
56
427k
    if constexpr (need_check_value) {
57
427k
        check_cast_value<T>(b);
58
427k
    }
59
427k
    a = static_cast<T>(b);
60
427k
}
_ZN5doris8cast_setIilLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEEvRS1_S2_
Line
Count
Source
55
361
void cast_set(T& a, U b) {
56
361
    if constexpr (need_check_value) {
57
361
        check_cast_value<T>(b);
58
361
    }
59
361
    a = static_cast<T>(b);
60
361
}
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
2.39G
T cast_set(U b) {
71
2.39G
    if constexpr (need_check_value) {
72
2.11G
        check_cast_value<T>(b);
73
2.11G
    }
74
2.39G
    return static_cast<T>(b);
75
2.39G
}
_ZN5doris8cast_setIalLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
1.35M
T cast_set(U b) {
71
1.35M
    if constexpr (need_check_value) {
72
1.35M
        check_cast_value<T>(b);
73
1.35M
    }
74
1.35M
    return static_cast<T>(b);
75
1.35M
}
_ZN5doris8cast_setIimLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
103M
T cast_set(U b) {
71
103M
    if constexpr (need_check_value) {
72
103M
        check_cast_value<T>(b);
73
103M
    }
74
103M
    return static_cast<T>(b);
75
103M
}
_ZN5doris8cast_setIjlLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
39.8M
T cast_set(U b) {
71
39.8M
    if constexpr (need_check_value) {
72
39.8M
        check_cast_value<T>(b);
73
39.8M
    }
74
39.8M
    return static_cast<T>(b);
75
39.8M
}
_ZN5doris8cast_setIjmLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
360M
T cast_set(U b) {
71
360M
    if constexpr (need_check_value) {
72
360M
        check_cast_value<T>(b);
73
360M
    }
74
360M
    return static_cast<T>(b);
75
360M
}
_ZN5doris8cast_setIciLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
661k
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
661k
    return static_cast<T>(b);
75
661k
}
_ZN5doris8cast_setIlmLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
796M
T cast_set(U b) {
71
796M
    if constexpr (need_check_value) {
72
796M
        check_cast_value<T>(b);
73
796M
    }
74
796M
    return static_cast<T>(b);
75
796M
}
_ZN5doris8cast_setIilLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
132M
T cast_set(U b) {
71
132M
    if constexpr (need_check_value) {
72
132M
        check_cast_value<T>(b);
73
132M
    }
74
132M
    return static_cast<T>(b);
75
132M
}
_ZN5doris8cast_setIjmLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
34.3M
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
34.3M
    return static_cast<T>(b);
75
34.3M
}
_ZN5doris8cast_setIhiLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
2.22M
T cast_set(U b) {
71
2.22M
    if constexpr (need_check_value) {
72
2.22M
        check_cast_value<T>(b);
73
2.22M
    }
74
2.22M
    return static_cast<T>(b);
75
2.22M
}
_ZN5doris8cast_setIiyLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
8.32k
T cast_set(U b) {
71
8.32k
    if constexpr (need_check_value) {
72
8.32k
        check_cast_value<T>(b);
73
8.32k
    }
74
8.32k
    return static_cast<T>(b);
75
8.32k
}
_ZN5doris8cast_setIllLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
444
T cast_set(U b) {
71
444
    if constexpr (need_check_value) {
72
444
        check_cast_value<T>(b);
73
444
    }
74
444
    return static_cast<T>(b);
75
444
}
_ZN5doris8cast_setIsiLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
1.29M
T cast_set(U b) {
71
1.29M
    if constexpr (need_check_value) {
72
1.29M
        check_cast_value<T>(b);
73
1.29M
    }
74
1.29M
    return static_cast<T>(b);
75
1.29M
}
_ZN5doris8cast_setImiLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
20.0M
T cast_set(U b) {
71
20.0M
    if constexpr (need_check_value) {
72
20.0M
        check_cast_value<T>(b);
73
20.0M
    }
74
20.0M
    return static_cast<T>(b);
75
20.0M
}
_ZN5doris8cast_setIhjLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
17.7M
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
17.7M
    return static_cast<T>(b);
75
17.7M
}
_ZN5doris8cast_setImjLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
156M
T cast_set(U b) {
71
156M
    if constexpr (need_check_value) {
72
156M
        check_cast_value<T>(b);
73
156M
    }
74
156M
    return static_cast<T>(b);
75
156M
}
_ZN5doris8cast_setIaiLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
1.29k
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
1.29k
    return static_cast<T>(b);
75
1.29k
}
_ZN5doris8cast_setIsiLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
1.13k
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
1.13k
    return static_cast<T>(b);
75
1.13k
}
_ZN5doris8cast_setItiLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
44.4M
T cast_set(U b) {
71
44.4M
    if constexpr (need_check_value) {
72
44.4M
        check_cast_value<T>(b);
73
44.4M
    }
74
44.4M
    return static_cast<T>(b);
75
44.4M
}
_ZN5doris8cast_setIimLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
18.8k
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
18.8k
    return static_cast<T>(b);
75
18.8k
}
_ZN5doris8cast_setImnLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
5.13k
T cast_set(U b) {
71
5.13k
    if constexpr (need_check_value) {
72
5.13k
        check_cast_value<T>(b);
73
5.13k
    }
74
5.13k
    return static_cast<T>(b);
75
5.13k
}
_ZN5doris8cast_setIilLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
6.24k
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
6.24k
    return static_cast<T>(b);
75
6.24k
}
_ZN5doris8cast_setIjjLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
33.0M
T cast_set(U b) {
71
33.0M
    if constexpr (need_check_value) {
72
33.0M
        check_cast_value<T>(b);
73
33.0M
    }
74
33.0M
    return static_cast<T>(b);
75
33.0M
}
_ZN5doris8cast_setIijLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
4.80M
T cast_set(U b) {
71
4.80M
    if constexpr (need_check_value) {
72
4.80M
        check_cast_value<T>(b);
73
4.80M
    }
74
4.80M
    return static_cast<T>(b);
75
4.80M
}
_ZN5doris8cast_setIahLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
61.4k
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
61.4k
    return static_cast<T>(b);
75
61.4k
}
_ZN5doris8cast_setIijLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
104
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
104
    return static_cast<T>(b);
75
104
}
_ZN5doris8cast_setIllLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
201M
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
201M
    return static_cast<T>(b);
75
201M
}
_ZN5doris8cast_setIsmLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
482k
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
482k
    return static_cast<T>(b);
75
482k
}
_ZN5doris8cast_setIjiLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
2.15k
T cast_set(U b) {
71
2.15k
    if constexpr (need_check_value) {
72
2.15k
        check_cast_value<T>(b);
73
2.15k
    }
74
2.15k
    return static_cast<T>(b);
75
2.15k
}
_ZN5doris8cast_setIhsLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
424
T cast_set(U b) {
71
424
    if constexpr (need_check_value) {
72
424
        check_cast_value<T>(b);
73
424
    }
74
424
    return static_cast<T>(b);
75
424
}
_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
}
_ZN5doris8cast_setIKjlLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES2_S3_
Line
Count
Source
70
2.10k
T cast_set(U b) {
71
2.10k
    if constexpr (need_check_value) {
72
2.10k
        check_cast_value<T>(b);
73
2.10k
    }
74
2.10k
    return static_cast<T>(b);
75
2.10k
}
_ZN5doris8cast_setIiiLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
757k
T cast_set(U b) {
71
757k
    if constexpr (need_check_value) {
72
757k
        check_cast_value<T>(b);
73
757k
    }
74
757k
    return static_cast<T>(b);
75
757k
}
_ZN5doris8cast_setIiiLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
16.2M
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
16.2M
    return static_cast<T>(b);
75
16.2M
}
Unexecuted instantiation: _ZN5doris8cast_setIliLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Unexecuted instantiation: _ZN5doris8cast_setIniLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Unexecuted instantiation: _ZN5doris8cast_setInlLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
_ZN5doris8cast_setIsmLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
203M
T cast_set(U b) {
71
203M
    if constexpr (need_check_value) {
72
203M
        check_cast_value<T>(b);
73
203M
    }
74
203M
    return static_cast<T>(b);
75
203M
}
_ZN5doris8cast_setIbmLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
1.24M
T cast_set(U b) {
71
1.24M
    if constexpr (need_check_value) {
72
1.24M
        check_cast_value<T>(b);
73
1.24M
    }
74
1.24M
    return static_cast<T>(b);
75
1.24M
}
_ZN5doris8cast_setIhmLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
853k
T cast_set(U b) {
71
853k
    if constexpr (need_check_value) {
72
853k
        check_cast_value<T>(b);
73
853k
    }
74
853k
    return static_cast<T>(b);
75
853k
}
_ZN5doris8cast_setIslLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
405
T cast_set(U b) {
71
405
    if constexpr (need_check_value) {
72
405
        check_cast_value<T>(b);
73
405
    }
74
405
    return static_cast<T>(b);
75
405
}
_ZN5doris8cast_setIinLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
6.52k
T cast_set(U b) {
71
6.52k
    if constexpr (need_check_value) {
72
6.52k
        check_cast_value<T>(b);
73
6.52k
    }
74
6.52k
    return static_cast<T>(b);
75
6.52k
}
Unexecuted instantiation: _ZN5doris8cast_setImaLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Unexecuted instantiation: _ZN5doris8cast_setImsLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Unexecuted instantiation: _ZN5doris8cast_setImlLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Unexecuted instantiation: _ZN5doris8cast_setIliLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
_ZN5doris8cast_setIlnLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
4
T cast_set(U b) {
71
4
    if constexpr (need_check_value) {
72
4
        check_cast_value<T>(b);
73
4
    }
74
4
    return static_cast<T>(b);
75
4
}
_ZN5doris8cast_setItmLb0EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
76.9k
T cast_set(U b) {
71
    if constexpr (need_check_value) {
72
        check_cast_value<T>(b);
73
    }
74
76.9k
    return static_cast<T>(b);
75
76.9k
}
_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_
_ZN5doris8cast_setItlLb1EQaa11IsIntegralVIT_E11IsIntegralVIT0_EEES1_S2_
Line
Count
Source
70
1.77k
T cast_set(U b) {
71
1.77k
    if constexpr (need_check_value) {
72
1.77k
        check_cast_value<T>(b);
73
1.77k
    }
74
1.77k
    return static_cast<T>(b);
75
1.77k
}
76
77
template <typename T, typename U>
78
    requires std::is_floating_point_v<T> and std::is_integral_v<U>
79
1.35M
T cast_set(U b) {
80
1.35M
    return static_cast<T>(b);
81
1.35M
}
_ZN5doris8cast_setIdlQaasr3stdE19is_floating_point_vIT_Esr3stdE13is_integral_vIT0_EEES1_S2_
Line
Count
Source
79
583k
T cast_set(U b) {
80
583k
    return static_cast<T>(b);
81
583k
}
Unexecuted instantiation: _ZN5doris8cast_setIfmQaasr3stdE19is_floating_point_vIT_Esr3stdE13is_integral_vIT0_EEES1_S2_
_ZN5doris8cast_setIdmQaasr3stdE19is_floating_point_vIT_Esr3stdE13is_integral_vIT0_EEES1_S2_
Line
Count
Source
79
772k
T cast_set(U b) {
80
772k
    return static_cast<T>(b);
81
772k
}
82
83
} // namespace doris