Skip to content

Commit fe5eca4

Browse files
committed
C++: Accept test changes.
1 parent edc7903 commit fe5eca4

8 files changed

+56
-32
lines changed

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

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12443,13 +12443,35 @@ ir.cpp:
1244312443

1244412444
# 2119| void call_as_child_of_ConditionDeclExpr()
1244512445
# 2119| Block 0
12446-
# 2119| v2119_1(void) = EnterFunction :
12447-
# 2119| m2119_2(unknown) = AliasedDefinition :
12448-
# 2119| m2119_3(unknown) = InitializeNonLocal :
12449-
# 2119| m2119_4(unknown) = Chi : total:m2119_2, partial:m2119_3
12450-
# 2120| r2120_1(glval<HasOperatorBool>) = VariableAddress[b] :
12451-
# 2120| r2120_2(HasOperatorBool) = Constant[0] :
12452-
# 2120| m2120_3(HasOperatorBool) = Store[b] : &:r2120_1, r2120_2
12446+
# 2119| v2119_1(void) = EnterFunction :
12447+
# 2119| m2119_2(unknown) = AliasedDefinition :
12448+
# 2119| m2119_3(unknown) = InitializeNonLocal :
12449+
# 2119| m2119_4(unknown) = Chi : total:m2119_2, partial:m2119_3
12450+
# 2120| r2120_1(glval<HasOperatorBool>) = VariableAddress[b] :
12451+
# 2120| r2120_2(HasOperatorBool) = Constant[0] :
12452+
# 2120| m2120_3(HasOperatorBool) = Store[b] : &:r2120_1, r2120_2
12453+
# 2120| r2120_4(glval<HasOperatorBool>) = VariableAddress[b] :
12454+
# 2120| r2120_5(glval<unknown>) = FunctionAddress[operator bool] :
12455+
# 2120| r2120_6(bool) = Call[operator bool] : func:r2120_5, this:r2120_4
12456+
# 2120| m2120_7(unknown) = ^CallSideEffect : ~m2119_4
12457+
# 2120| m2120_8(unknown) = Chi : total:m2119_4, partial:m2120_7
12458+
# 2120| v2120_9(void) = ^IndirectReadSideEffect[-1] : &:r2120_4, m2120_3
12459+
# 2120| m2120_10(HasOperatorBool) = ^IndirectMayWriteSideEffect[-1] : &:r2120_4
12460+
# 2120| m2120_11(HasOperatorBool) = Chi : total:m2120_3, partial:m2120_10
12461+
# 2120| r2120_12(bool) = CopyValue : r2120_6
12462+
# 2120| v2120_13(void) = ConditionalBranch : r2120_12
12463+
#-----| False -> Block 2
12464+
#-----| True -> Block 1
12465+
12466+
# 2120| Block 1
12467+
# 2120| v2120_14(void) = NoOp :
12468+
#-----| Goto -> Block 2
12469+
12470+
# 2121| Block 2
12471+
# 2121| v2121_1(void) = NoOp :
12472+
# 2119| v2119_5(void) = ReturnVoid :
12473+
# 2119| v2119_6(void) = AliasedUse : ~m2120_8
12474+
# 2119| v2119_7(void) = ExitFunction :
1245312475

1245412476
perf-regression.cpp:
1245512477
# 6| void Big::Big()

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ missingOperandType
66
duplicateChiOperand
77
sideEffectWithoutPrimary
88
instructionWithoutSuccessor
9-
| ir.cpp:2120:25:2120:42 | Store: 0 | Instruction 'Store: 0' has no successors in function '$@'. | ir.cpp:2119:6:2119:39 | void call_as_child_of_ConditionDeclExpr() | void call_as_child_of_ConditionDeclExpr() |
109
ambiguousSuccessors
1110
unexplainedLoop
1211
unnecessaryPhiInstruction

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ missingOperandType
66
duplicateChiOperand
77
sideEffectWithoutPrimary
88
instructionWithoutSuccessor
9-
| ir.cpp:2120:25:2120:42 | Store: 0 | Instruction 'Store: 0' has no successors in function '$@'. | ir.cpp:2119:6:2119:39 | void call_as_child_of_ConditionDeclExpr() | void call_as_child_of_ConditionDeclExpr() |
109
ambiguousSuccessors
1110
unexplainedLoop
1211
unnecessaryPhiInstruction

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10072,7 +10072,20 @@
1007210072
| ir.cpp:2112:10:2112:12 | StoreValue | r2112_3 |
1007310073
| ir.cpp:2119:6:2119:39 | ChiPartial | partial:m2119_3 |
1007410074
| ir.cpp:2119:6:2119:39 | ChiTotal | total:m2119_2 |
10075+
| ir.cpp:2119:6:2119:39 | SideEffect | ~m2120_8 |
1007510076
| ir.cpp:2120:6:2120:42 | Address | &:r2120_1 |
10077+
| ir.cpp:2120:6:2120:42 | Condition | r2120_12 |
10078+
| ir.cpp:2120:22:2120:22 | Address | &:r2120_4 |
10079+
| ir.cpp:2120:22:2120:22 | Address | &:r2120_4 |
10080+
| ir.cpp:2120:22:2120:22 | Arg(this) | this:r2120_4 |
10081+
| ir.cpp:2120:22:2120:22 | CallTarget | func:r2120_5 |
10082+
| ir.cpp:2120:22:2120:22 | ChiPartial | partial:m2120_7 |
10083+
| ir.cpp:2120:22:2120:22 | ChiPartial | partial:m2120_10 |
10084+
| ir.cpp:2120:22:2120:22 | ChiTotal | total:m2119_4 |
10085+
| ir.cpp:2120:22:2120:22 | ChiTotal | total:m2120_3 |
10086+
| ir.cpp:2120:22:2120:22 | SideEffect | m2120_3 |
10087+
| ir.cpp:2120:22:2120:22 | SideEffect | ~m2119_4 |
10088+
| ir.cpp:2120:22:2120:22 | Unary | r2120_6 |
1007610089
| ir.cpp:2120:25:2120:42 | StoreValue | r2120_2 |
1007710090
| perf-regression.cpp:6:3:6:5 | Address | &:r6_5 |
1007810091
| perf-regression.cpp:6:3:6:5 | Address | &:r6_5 |

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
missingOperand
2-
| ir.cpp:2120:6:2120:42 | CopyValue: (condition decl) | Instruction 'CopyValue' is missing an expected operand with tag 'Unary' in function '$@'. | ir.cpp:2119:6:2119:39 | void call_as_child_of_ConditionDeclExpr() | void call_as_child_of_ConditionDeclExpr() |
32
unexpectedOperand
43
duplicateOperand
54
missingPhiOperand
65
missingOperandType
76
duplicateChiOperand
87
sideEffectWithoutPrimary
98
instructionWithoutSuccessor
10-
| ir.cpp:2120:22:2120:22 | IndirectMayWriteSideEffect: b | Instruction 'IndirectMayWriteSideEffect: b' has no successors in function '$@'. | ir.cpp:2119:6:2119:39 | void call_as_child_of_ConditionDeclExpr() | void call_as_child_of_ConditionDeclExpr() |
11-
| ir.cpp:2120:25:2120:42 | Store: 0 | Instruction 'Store: 0' has no successors in function '$@'. | ir.cpp:2119:6:2119:39 | void call_as_child_of_ConditionDeclExpr() | void call_as_child_of_ConditionDeclExpr() |
129
ambiguousSuccessors
1310
unexplainedLoop
1411
unnecessaryPhiInstruction

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

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11649,32 +11649,28 @@ ir.cpp:
1164911649

1165011650
# 2119| void call_as_child_of_ConditionDeclExpr()
1165111651
# 2119| Block 0
11652-
# 2119| v2119_1(void) = EnterFunction :
11653-
# 2119| mu2119_2(unknown) = AliasedDefinition :
11654-
# 2119| mu2119_3(unknown) = InitializeNonLocal :
11655-
# 2120| r2120_1(glval<HasOperatorBool>) = VariableAddress[b] :
11656-
# 2120| r2120_2(HasOperatorBool) = Constant[0] :
11657-
# 2120| mu2120_3(HasOperatorBool) = Store[b] : &:r2120_1, r2120_2
11658-
11659-
# 2120| (no string representation)
11660-
# 2120| CopyValue: (condition decl)
11661-
# 2120| ConditionalBranch: (condition decl)
11662-
#-----| False -> Block 3
11663-
#-----| True -> Block 2
11664-
11665-
# 2120| Block 1
11652+
# 2119| v2119_1(void) = EnterFunction :
11653+
# 2119| mu2119_2(unknown) = AliasedDefinition :
11654+
# 2119| mu2119_3(unknown) = InitializeNonLocal :
11655+
# 2120| r2120_1(glval<HasOperatorBool>) = VariableAddress[b] :
11656+
# 2120| r2120_2(HasOperatorBool) = Constant[0] :
11657+
# 2120| mu2120_3(HasOperatorBool) = Store[b] : &:r2120_1, r2120_2
1166611658
# 2120| r2120_4(glval<HasOperatorBool>) = VariableAddress[b] :
1166711659
# 2120| r2120_5(glval<unknown>) = FunctionAddress[operator bool] :
1166811660
# 2120| r2120_6(bool) = Call[operator bool] : func:r2120_5, this:r2120_4
1166911661
# 2120| mu2120_7(unknown) = ^CallSideEffect : ~m?
1167011662
# 2120| v2120_8(void) = ^IndirectReadSideEffect[-1] : &:r2120_4, ~m?
1167111663
# 2120| mu2120_9(HasOperatorBool) = ^IndirectMayWriteSideEffect[-1] : &:r2120_4
11664+
# 2120| r2120_10(bool) = CopyValue : r2120_6
11665+
# 2120| v2120_11(void) = ConditionalBranch : r2120_10
11666+
#-----| False -> Block 2
11667+
#-----| True -> Block 1
1167211668

11673-
# 2120| Block 2
11674-
# 2120| v2120_10(void) = NoOp :
11675-
#-----| Goto -> Block 3
11669+
# 2120| Block 1
11670+
# 2120| v2120_12(void) = NoOp :
11671+
#-----| Goto -> Block 2
1167611672

11677-
# 2121| Block 3
11673+
# 2121| Block 2
1167811674
# 2121| v2121_1(void) = NoOp :
1167911675
# 2119| v2119_4(void) = ReturnVoid :
1168011676
# 2119| v2119_5(void) = AliasedUse : ~m?

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ missingOperandType
66
duplicateChiOperand
77
sideEffectWithoutPrimary
88
instructionWithoutSuccessor
9-
| ir.cpp:2120:25:2120:42 | Store: 0 | Instruction 'Store: 0' has no successors in function '$@'. | ir.cpp:2119:6:2119:39 | void call_as_child_of_ConditionDeclExpr() | void call_as_child_of_ConditionDeclExpr() |
109
ambiguousSuccessors
1110
unexplainedLoop
1211
unnecessaryPhiInstruction

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ missingOperandType
66
duplicateChiOperand
77
sideEffectWithoutPrimary
88
instructionWithoutSuccessor
9-
| ir.cpp:2120:25:2120:42 | Store: 0 | Instruction 'Store: 0' has no successors in function '$@'. | ir.cpp:2119:6:2119:39 | void call_as_child_of_ConditionDeclExpr() | void call_as_child_of_ConditionDeclExpr() |
109
ambiguousSuccessors
1110
unexplainedLoop
1211
unnecessaryPhiInstruction

0 commit comments

Comments
 (0)