Skip to content

Commit f50bbdb

Browse files
committed
C++: Update expected test results after extractor changes
1 parent 6efb213 commit f50bbdb

8 files changed

Lines changed: 121 additions & 121 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
| complex.c:3:23:3:51 | __builtin_complex | file://:0:0:0:0 | _Complex double | complex.c:3:41:3:44 | real | file://:0:0:0:0 | double | complex.c:3:47:3:50 | imag | file://:0:0:0:0 | double |
2-
| complex.c:4:23:4:57 | __builtin_complex | file://:0:0:0:0 | _Complex double | complex.c:4:41:4:47 | 2.71828000000000003 | file://:0:0:0:0 | double | complex.c:4:50:4:56 | 3.141589999999999883 | file://:0:0:0:0 | double |
2+
| complex.c:4:23:4:57 | __builtin_complex | file://:0:0:0:0 | _Complex double | complex.c:4:41:4:47 | 2.71828 | file://:0:0:0:0 | double | complex.c:4:50:4:56 | 3.14159 | file://:0:0:0:0 | double |
33
| complex.c:8:22:8:52 | __builtin_complex | file://:0:0:0:0 | _Complex float | complex.c:8:40:8:44 | realf | file://:0:0:0:0 | float | complex.c:8:47:8:51 | imagf | file://:0:0:0:0 | float |
4-
| complex.c:9:22:9:52 | __builtin_complex | file://:0:0:0:0 | _Complex float | complex.c:9:40:9:44 | 1.230000019 | file://:0:0:0:0 | float | complex.c:9:47:9:51 | 4.559999943 | file://:0:0:0:0 | float |
4+
| complex.c:9:22:9:52 | __builtin_complex | file://:0:0:0:0 | _Complex float | complex.c:9:40:9:44 | 1.23 | file://:0:0:0:0 | float | complex.c:9:47:9:51 | 4.56 | file://:0:0:0:0 | float |

cpp/ql/test/library-tests/controlflow/guards/GuardsCompare.expected

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -298,16 +298,16 @@
298298
| test.c:182:8:182:34 | ! ... | ! ... == 1 when ! ... is true |
299299
| test.c:182:8:182:34 | ! ... | ... && ... != 0 when ! ... is false |
300300
| test.c:182:8:182:34 | ! ... | ... && ... == 0 when ! ... is true |
301-
| test.c:182:10:182:20 | ... >= ... | 9.999999999999999547e-07 < foo+1 when ... >= ... is true |
302-
| test.c:182:10:182:20 | ... >= ... | 9.999999999999999547e-07 >= foo+1 when ... >= ... is false |
301+
| test.c:182:10:182:20 | ... >= ... | 1.0E-6 < foo+1 when ... >= ... is true |
302+
| test.c:182:10:182:20 | ... >= ... | 1.0E-6 >= foo+1 when ... >= ... is false |
303303
| test.c:182:10:182:20 | ... >= ... | ... >= ... != 0 when ... >= ... is true |
304304
| test.c:182:10:182:20 | ... >= ... | ... >= ... != 1 when ... >= ... is false |
305305
| test.c:182:10:182:20 | ... >= ... | ... >= ... == 0 when ... >= ... is false |
306306
| test.c:182:10:182:20 | ... >= ... | ... >= ... == 1 when ... >= ... is true |
307-
| test.c:182:10:182:20 | ... >= ... | foo < 9.999999999999999547e-07+0 when ... >= ... is false |
308-
| test.c:182:10:182:20 | ... >= ... | foo >= 9.999999999999999547e-07+0 when ... >= ... is true |
307+
| test.c:182:10:182:20 | ... >= ... | foo < 1.0E-6+0 when ... >= ... is false |
308+
| test.c:182:10:182:20 | ... >= ... | foo >= 1.0E-6+0 when ... >= ... is true |
309309
| test.c:182:10:182:33 | ... && ... | 1.0 >= foo+1 when ... && ... is true |
310-
| test.c:182:10:182:33 | ... && ... | 9.999999999999999547e-07 < foo+1 when ... && ... is true |
310+
| test.c:182:10:182:33 | ... && ... | 1.0E-6 < foo+1 when ... && ... is true |
311311
| test.c:182:10:182:33 | ... && ... | ! ... != 0 when ... && ... is false |
312312
| test.c:182:10:182:33 | ... && ... | ! ... != 1 when ... && ... is true |
313313
| test.c:182:10:182:33 | ... && ... | ! ... == 0 when ... && ... is true |
@@ -319,7 +319,7 @@
319319
| test.c:182:10:182:33 | ... && ... | ... >= ... != 0 when ... && ... is true |
320320
| test.c:182:10:182:33 | ... && ... | ... >= ... == 1 when ... && ... is true |
321321
| test.c:182:10:182:33 | ... && ... | foo < 1.0+0 when ... && ... is true |
322-
| test.c:182:10:182:33 | ... && ... | foo >= 9.999999999999999547e-07+0 when ... && ... is true |
322+
| test.c:182:10:182:33 | ... && ... | foo >= 1.0E-6+0 when ... && ... is true |
323323
| test.c:182:25:182:33 | ... < ... | 1.0 < foo+1 when ... < ... is false |
324324
| test.c:182:25:182:33 | ... < ... | 1.0 >= foo+1 when ... < ... is true |
325325
| test.c:182:25:182:33 | ... < ... | ... < ... != 0 when ... < ... is true |

cpp/ql/test/library-tests/controlflow/guards/GuardsEnsure.expected

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,12 @@ binary
169169
| test.c:176:8:176:15 | ! ... | test.c:176:14:176:14 | b | < | test.c:176:10:176:10 | a | 1 | test.c:176:18:178:5 | { ... } |
170170
| test.c:176:10:176:14 | ... < ... | test.c:176:10:176:10 | a | >= | test.c:176:14:176:14 | b | 0 | test.c:176:18:178:5 | { ... } |
171171
| test.c:176:10:176:14 | ... < ... | test.c:176:14:176:14 | b | < | test.c:176:10:176:10 | a | 1 | test.c:176:18:178:5 | { ... } |
172-
| test.c:182:10:182:20 | ... >= ... | test.c:182:10:182:12 | foo | >= | test.c:182:17:182:20 | 9.999999999999999547e-07 | 0 | test.c:181:25:182:20 | { ... } |
173-
| test.c:182:10:182:20 | ... >= ... | test.c:182:10:182:12 | foo | >= | test.c:182:17:182:20 | 9.999999999999999547e-07 | 0 | test.c:182:25:182:33 | foo |
174-
| test.c:182:10:182:20 | ... >= ... | test.c:182:17:182:20 | 9.999999999999999547e-07 | < | test.c:182:10:182:12 | foo | 1 | test.c:181:25:182:20 | { ... } |
175-
| test.c:182:10:182:20 | ... >= ... | test.c:182:17:182:20 | 9.999999999999999547e-07 | < | test.c:182:10:182:12 | foo | 1 | test.c:182:25:182:33 | foo |
176-
| test.c:182:10:182:33 | ... && ... | test.c:182:10:182:12 | foo | >= | test.c:182:17:182:20 | 9.999999999999999547e-07 | 0 | test.c:181:25:182:20 | { ... } |
177-
| test.c:182:10:182:33 | ... && ... | test.c:182:17:182:20 | 9.999999999999999547e-07 | < | test.c:182:10:182:12 | foo | 1 | test.c:181:25:182:20 | { ... } |
172+
| test.c:182:10:182:20 | ... >= ... | test.c:182:10:182:12 | foo | >= | test.c:182:17:182:20 | 1.0E-6 | 0 | test.c:181:25:182:20 | { ... } |
173+
| test.c:182:10:182:20 | ... >= ... | test.c:182:10:182:12 | foo | >= | test.c:182:17:182:20 | 1.0E-6 | 0 | test.c:182:25:182:33 | foo |
174+
| test.c:182:10:182:20 | ... >= ... | test.c:182:17:182:20 | 1.0E-6 | < | test.c:182:10:182:12 | foo | 1 | test.c:181:25:182:20 | { ... } |
175+
| test.c:182:10:182:20 | ... >= ... | test.c:182:17:182:20 | 1.0E-6 | < | test.c:182:10:182:12 | foo | 1 | test.c:182:25:182:33 | foo |
176+
| test.c:182:10:182:33 | ... && ... | test.c:182:10:182:12 | foo | >= | test.c:182:17:182:20 | 1.0E-6 | 0 | test.c:181:25:182:20 | { ... } |
177+
| test.c:182:10:182:33 | ... && ... | test.c:182:17:182:20 | 1.0E-6 | < | test.c:182:10:182:12 | foo | 1 | test.c:181:25:182:20 | { ... } |
178178
| test.c:182:10:182:33 | ... && ... | test.c:182:25:182:27 | foo | < | test.c:182:31:182:33 | 1.0 | 0 | test.c:181:25:182:20 | { ... } |
179179
| test.c:182:10:182:33 | ... && ... | test.c:182:31:182:33 | 1.0 | >= | test.c:182:25:182:27 | foo | 1 | test.c:181:25:182:20 | { ... } |
180180
| test.c:182:25:182:33 | ... < ... | test.c:182:25:182:27 | foo | < | test.c:182:31:182:33 | 1.0 | 0 | test.c:181:25:182:20 | { ... } |

cpp/ql/test/library-tests/ir/ir/PrintAST.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25796,9 +25796,9 @@ ir.cpp:
2579625796
# 2919| getExpr(): [FunctionCall] call to VariableTemplateFunc
2579725797
# 2919| Type = [DoubleType] double
2579825798
# 2919| ValueCategory = prvalue
25799-
# 2919| getArgument(0): [Literal] 2.299999999999999822
25799+
# 2919| getArgument(0): [Literal] 2.3
2580025800
# 2919| Type = [DoubleType] double
25801-
# 2919| Value = [Literal] 2.299999999999999822
25801+
# 2919| Value = [Literal] 2.3
2580225802
# 2919| ValueCategory = prvalue
2580325803
# 2919| getExpr().getFullyConverted(): [CStyleCast] (int)...
2580425804
# 2919| Conversion = [FloatingPointToIntegralConversion] floating point to integral conversion

cpp/ql/test/library-tests/ir/ir/aliased_ir.expected

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12954,21 +12954,21 @@ ir.cpp:
1295412954

1295512955
# 1592| double StructuredBindingTupleRefGet::d
1295612956
# 1592| Block 0
12957-
# 1592| v1592_1(void) = EnterFunction :
12958-
# 1592| m1592_2(unknown) = AliasedDefinition :
12959-
# 1592| m1592_3(unknown) = InitializeNonLocal :
12960-
# 1592| m1592_4(unknown) = Chi : total:m1592_2, partial:m1592_3
12961-
# 1592| r1592_5(glval<unknown>) = VariableAddress[#this] :
12962-
# 1592| m1592_6(glval<StructuredBindingTupleRefGet>) = InitializeParameter[#this] : &:r1592_5
12963-
# 1592| r1592_7(glval<StructuredBindingTupleRefGet>) = Load[#this] : &:r1592_5, m1592_6
12964-
# 1592| m1592_8(StructuredBindingTupleRefGet) = InitializeIndirection[#this] : &:r1592_7
12965-
# 1592| r1592_9(glval<double>) = FieldAddress[d] : r1592_7
12966-
# 1592| r1592_10(double) = Constant[2.200000000000000178] :
12967-
# 1592| m1592_11(double) = Store[?] : &:r1592_9, r1592_10
12968-
# 1592| m1592_12(unknown) = Chi : total:m1592_8, partial:m1592_11
12969-
# 1592| v1592_13(void) = ReturnVoid :
12970-
# 1592| v1592_14(void) = AliasedUse : m1592_3
12971-
# 1592| v1592_15(void) = ExitFunction :
12957+
# 1592| v1592_1(void) = EnterFunction :
12958+
# 1592| m1592_2(unknown) = AliasedDefinition :
12959+
# 1592| m1592_3(unknown) = InitializeNonLocal :
12960+
# 1592| m1592_4(unknown) = Chi : total:m1592_2, partial:m1592_3
12961+
# 1592| r1592_5(glval<unknown>) = VariableAddress[#this] :
12962+
# 1592| m1592_6(glval<StructuredBindingTupleRefGet>) = InitializeParameter[#this] : &:r1592_5
12963+
# 1592| r1592_7(glval<StructuredBindingTupleRefGet>) = Load[#this] : &:r1592_5, m1592_6
12964+
# 1592| m1592_8(StructuredBindingTupleRefGet) = InitializeIndirection[#this] : &:r1592_7
12965+
# 1592| r1592_9(glval<double>) = FieldAddress[d] : r1592_7
12966+
# 1592| r1592_10(double) = Constant[2.2] :
12967+
# 1592| m1592_11(double) = Store[?] : &:r1592_9, r1592_10
12968+
# 1592| m1592_12(unknown) = Chi : total:m1592_8, partial:m1592_11
12969+
# 1592| v1592_13(void) = ReturnVoid :
12970+
# 1592| v1592_14(void) = AliasedUse : m1592_3
12971+
# 1592| v1592_15(void) = ExitFunction :
1297212972

1297312973
# 1593| int& StructuredBindingTupleRefGet::r
1297412974
# 1593| Block 0
@@ -21761,7 +21761,7 @@ ir.cpp:
2176121761
# 2919| m2919_2(unknown) = AliasedDefinition :
2176221762
# 2919| r2919_3(glval<int>) = VariableAddress[VariableTemplateFuncUse] :
2176321763
# 2919| r2919_4(glval<unknown>) = FunctionAddress[VariableTemplateFunc] :
21764-
# 2919| r2919_5(double) = Constant[2.299999999999999822] :
21764+
# 2919| r2919_5(double) = Constant[2.3] :
2176521765
# 2919| r2919_6(double) = Call[VariableTemplateFunc] : func:r2919_4, 0:r2919_5
2176621766
# 2919| m2919_7(unknown) = ^CallSideEffect : ~m2919_2
2176721767
# 2919| m2919_8(unknown) = Chi : total:m2919_2, partial:m2919_7

cpp/ql/test/library-tests/ir/ir/raw_ir.expected

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11861,19 +11861,19 @@ ir.cpp:
1186111861

1186211862
# 1592| double StructuredBindingTupleRefGet::d
1186311863
# 1592| Block 0
11864-
# 1592| v1592_1(void) = EnterFunction :
11865-
# 1592| mu1592_2(unknown) = AliasedDefinition :
11866-
# 1592| mu1592_3(unknown) = InitializeNonLocal :
11867-
# 1592| r1592_4(glval<unknown>) = VariableAddress[#this] :
11868-
# 1592| mu1592_5(glval<StructuredBindingTupleRefGet>) = InitializeParameter[#this] : &:r1592_4
11869-
# 1592| r1592_6(glval<StructuredBindingTupleRefGet>) = Load[#this] : &:r1592_4, ~m?
11870-
# 1592| mu1592_7(StructuredBindingTupleRefGet) = InitializeIndirection[#this] : &:r1592_6
11871-
# 1592| r1592_8(glval<double>) = FieldAddress[d] : r1592_6
11872-
# 1592| r1592_9(double) = Constant[2.200000000000000178] :
11873-
# 1592| mu1592_10(double) = Store[?] : &:r1592_8, r1592_9
11874-
# 1592| v1592_11(void) = ReturnVoid :
11875-
# 1592| v1592_12(void) = AliasedUse : ~m?
11876-
# 1592| v1592_13(void) = ExitFunction :
11864+
# 1592| v1592_1(void) = EnterFunction :
11865+
# 1592| mu1592_2(unknown) = AliasedDefinition :
11866+
# 1592| mu1592_3(unknown) = InitializeNonLocal :
11867+
# 1592| r1592_4(glval<unknown>) = VariableAddress[#this] :
11868+
# 1592| mu1592_5(glval<StructuredBindingTupleRefGet>) = InitializeParameter[#this] : &:r1592_4
11869+
# 1592| r1592_6(glval<StructuredBindingTupleRefGet>) = Load[#this] : &:r1592_4, ~m?
11870+
# 1592| mu1592_7(StructuredBindingTupleRefGet) = InitializeIndirection[#this] : &:r1592_6
11871+
# 1592| r1592_8(glval<double>) = FieldAddress[d] : r1592_6
11872+
# 1592| r1592_9(double) = Constant[2.2] :
11873+
# 1592| mu1592_10(double) = Store[?] : &:r1592_8, r1592_9
11874+
# 1592| v1592_11(void) = ReturnVoid :
11875+
# 1592| v1592_12(void) = AliasedUse : ~m?
11876+
# 1592| v1592_13(void) = ExitFunction :
1187711877

1187811878
# 1593| int& StructuredBindingTupleRefGet::r
1187911879
# 1593| Block 0
@@ -19768,7 +19768,7 @@ ir.cpp:
1976819768
# 2919| mu2919_2(unknown) = AliasedDefinition :
1976919769
# 2919| r2919_3(glval<int>) = VariableAddress[VariableTemplateFuncUse] :
1977019770
# 2919| r2919_4(glval<unknown>) = FunctionAddress[VariableTemplateFunc] :
19771-
# 2919| r2919_5(double) = Constant[2.299999999999999822] :
19771+
# 2919| r2919_5(double) = Constant[2.3] :
1977219772
# 2919| r2919_6(double) = Call[VariableTemplateFunc] : func:r2919_4, 0:r2919_5
1977319773
# 2919| mu2919_7(unknown) = ^CallSideEffect : ~m?
1977419774
# 2919| r2919_8(int) = Convert : r2919_6

0 commit comments

Comments
 (0)