File tree 8 files changed +23
-19
lines changed
templates/nontype_instantiations/general
8 files changed +23
-19
lines changed Original file line number Diff line number Diff line change @@ -324,7 +324,7 @@ Conversion3.cpp:
324
324
# 2| getExpr(): [CStyleCast] (int)...
325
325
# 2| Conversion = [IntegralConversion] integral conversion
326
326
# 2| Type = [IntType] int
327
- # 2| Value = [CStyleCast] 1
327
+ # 2| Value = [CStyleCast] 5
328
328
# 2| ValueCategory = prvalue
329
329
# 2| getRightOperand().getFullyConverted(): [ParenthesisExpr] (...)
330
330
# 2| Type = [IntType] int
Original file line number Diff line number Diff line change 1
1
| Bar::(unnamed namespace)::B | Bar::<unnamed>::B |
2
- | Foo::(unnamed namespace)::A | _ZN3Foo37_GLOBAL__N__13_funcdname_cpp_ ?AEv |
2
+ | Foo::(unnamed namespace)::A | _ZN35_INTERNAL_13_funcdname_cpp_?Foo37_GLOBAL__N__13_funcdname_cpp_ ?AEv |
Original file line number Diff line number Diff line change @@ -2,4 +2,8 @@ import cpp
2
2
3
3
from Function f , ReturnStmt r
4
4
where r .getEnclosingFunction ( ) = f
5
- select f .getQualifiedName ( ) , r .getExpr ( ) .getValue ( ) .regexpReplaceAll ( "_[0-9a-f]+AEv$" , "_?AEv" )
5
+ select f .getQualifiedName ( ) ,
6
+ r .getExpr ( )
7
+ .getValue ( )
8
+ .regexpReplaceAll ( "_[0-9a-f]+AEv$" , "_?AEv" )
9
+ .regexpReplaceAll ( "cpp_[0-9a-f]+Foo37_" , "cpp_?Foo37_" )
Original file line number Diff line number Diff line change @@ -23814,11 +23814,11 @@ ir.cpp:
23814
23814
# 2692| Conversion = [IntegralConversion] integral conversion
23815
23815
# 2692| Type = [LongType] unsigned long
23816
23816
# 2692| ValueCategory = prvalue
23817
- #----- | getExpr().getFullyConverted(): [CStyleCast] (int)...
23818
- #----- | Conversion = [IntegralConversion] integral conversion
23819
- #----- | Type = [IntType] int
23820
- #----- | Value = [CStyleCast] 1
23821
- #----- | ValueCategory = prvalue
23817
+ # 2692 | getExpr().getFullyConverted(): [CStyleCast] (int)...
23818
+ # 2692 | Conversion = [IntegralConversion] integral conversion
23819
+ # 2692 | Type = [IntType] int
23820
+ # 2692 | Value = [CStyleCast] 1
23821
+ # 2692 | ValueCategory = prvalue
23822
23822
# 2693| getStmt(1): [ReturnStmt] return ...
23823
23823
# 2693| getExpr(): [VariableAccess] y
23824
23824
# 2693| Type = [IntType] int
Original file line number Diff line number Diff line change @@ -19457,11 +19457,11 @@ ir.cpp:
19457
19457
# 2691| m2691_3(unknown) = InitializeNonLocal :
19458
19458
# 2691| m2691_4(unknown) = Chi : total:m2691_2, partial:m2691_3
19459
19459
# 2692| r2692_1(glval<int>) = VariableAddress[y] :
19460
- #----- | r0_1 (int) = Constant[1] :
19461
- #----- | m0_2 (int) = Store[y] : &:r2692_1, r0_1
19460
+ # 2692 | r2692_2 (int) = Constant[1] :
19461
+ # 2692 | m2692_3 (int) = Store[y] : &:r2692_1, r2692_2
19462
19462
# 2693| r2693_1(glval<int>) = VariableAddress[#return] :
19463
19463
# 2693| r2693_2(glval<int>) = VariableAddress[y] :
19464
- # 2693| r2693_3(int) = Load[y] : &:r2693_2, m0_2
19464
+ # 2693| r2693_3(int) = Load[y] : &:r2693_2, m2692_3
19465
19465
# 2693| m2693_4(int) = Store[#return] : &:r2693_1, r2693_3
19466
19466
# 2691| r2691_5(glval<int>) = VariableAddress[#return] :
19467
19467
# 2691| v2691_6(void) = ReturnValue : &:r2691_5, m2693_4
Original file line number Diff line number Diff line change @@ -17775,8 +17775,8 @@ ir.cpp:
17775
17775
# 2691| mu2691_2(unknown) = AliasedDefinition :
17776
17776
# 2691| mu2691_3(unknown) = InitializeNonLocal :
17777
17777
# 2692| r2692_1(glval<int>) = VariableAddress[y] :
17778
- #----- | r0_1 (int) = Constant[1] :
17779
- #----- | mu0_2 (int) = Store[y] : &:r2692_1, r0_1
17778
+ # 2692 | r2692_2 (int) = Constant[1] :
17779
+ # 2692 | mu2692_3 (int) = Store[y] : &:r2692_1, r2692_2
17780
17780
# 2693| r2693_1(glval<int>) = VariableAddress[#return] :
17781
17781
# 2693| r2693_2(glval<int>) = VariableAddress[y] :
17782
17782
# 2693| r2693_3(int) = Load[y] : &:r2693_2, ~m?
Original file line number Diff line number Diff line change @@ -1011,10 +1011,10 @@ void test_overflow() {
1011
1011
range (x); // $ range===2147483647
1012
1012
const int y = 256 ;
1013
1013
range (y); // $ range===256
1014
- if ((x + y) <= 512 ) {
1014
+ if ((x + y) <= 512 ) { // $ overflow=+
1015
1015
range (x); // $ range===2147483647
1016
1016
range (y); // $ range===256
1017
- range (x + y); // $ range===-2147483393
1017
+ range (x + y); // $ range=<=2147483903 overflow=+
1018
1018
}
1019
1019
}
1020
1020
Original file line number Diff line number Diff line change 1
- | test.cpp:3:8:3:8 | C<1> | 0 | int | test.cpp:5:25:5:25 | 1 | 1 |
2
- | test.cpp:3:8:3:8 | C<2> | 0 | int | file://:0:0:0:0 | 2 | 2 |
1
+ | test.cpp:3:8:3:8 | C<1> | 0 | int | test.cpp:6:3:6:6 | one1 | 1 |
2
+ | test.cpp:3:8:3:8 | C<2> | 0 | int | test.cpp:7:3:7:13 | ... + ... | 2 |
3
3
| test.cpp:3:8:3:8 | C<x> | 0 | int | file://:0:0:0:0 | x | x |
4
4
| test.cpp:10:8:10:8 | D<T, X> | 0 | <none> | test.cpp:9:19:9:19 | T | <none> |
5
5
| test.cpp:10:8:10:8 | D<T, X> | 1 | T | file://:0:0:0:0 | X | X |
6
6
| test.cpp:10:8:10:8 | D<int, 2> | 0 | <none> | file://:0:0:0:0 | int | <none> |
7
7
| test.cpp:10:8:10:8 | D<int, 2> | 1 | int | test.cpp:12:8:12:8 | 2 | 2 |
8
8
| test.cpp:10:8:10:8 | D<long, 2L> | 0 | <none> | file://:0:0:0:0 | long | <none> |
9
- | test.cpp:10:8:10:8 | D<long, 2L> | 1 | long | file://:0:0:0:0 | 2 | 2 |
9
+ | test.cpp:10:8:10:8 | D<long, 2L> | 1 | long | test.cpp:13:9:13:9 | 2 | 2 |
10
10
| test.cpp:16:8:16:8 | E<T, X> | 0 | <none> | test.cpp:15:19:15:19 | T | <none> |
11
11
| test.cpp:16:8:16:8 | E<T, X> | 1 | T * | file://:0:0:0:0 | X | X |
12
12
| test.cpp:16:8:16:8 | E<int, (int *)nullptr> | 0 | <none> | file://:0:0:0:0 | int | <none> |
13
- | test.cpp:16:8:16:8 | E<int, (int *)nullptr> | 1 | int * | file://:0:0:0:0 | 0 | 0 |
13
+ | test.cpp:16:8:16:8 | E<int, (int *)nullptr> | 1 | int * | test.cpp:18:8:18:14 | 0 | 0 |
You can’t perform that action at this time.
0 commit comments