Skip to content

Commit 74f5687

Browse files
committed
C++: Update expected test results
1 parent fdab63f commit 74f5687

File tree

7 files changed

+56
-40
lines changed

7 files changed

+56
-40
lines changed

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20519,6 +20519,34 @@ ir.cpp:
2051920519
# 2793| r2793_6(unsigned long) = Load[len2] : &:r2793_5, m2792_8
2052020520
# 2793| v2793_7(void) = NoOp :
2052120521
# 2794| r2794_1(glval<unsigned long>) = VariableAddress[z] :
20522+
# 2794| r2794_2(unsigned long) = Constant[4] :
20523+
# 2794| r2794_3(unsigned long) = Mul : r2794_2, r2793_6
20524+
# 2794| m2794_4(unsigned long) = Store[z] : &:r2794_1, r2794_3
20525+
# 2795| r2795_1(glval<int[][][]>) = VariableAddress[tmp2] :
20526+
# 2795| m2795_2(int[][][]) = Uninitialized[tmp2] : &:r2795_1
20527+
# 2795| r2795_3(glval<int>) = VariableAddress[len1] :
20528+
# 2795| r2795_4(int) = Load[len1] : &:r2795_3, m2792_6
20529+
# 2795| r2795_5(glval<unsigned long>) = VariableAddress[len2] :
20530+
# 2795| r2795_6(unsigned long) = Load[len2] : &:r2795_5, m2792_8
20531+
# 2795| r2795_7(glval<char>) = VariableAddress[len3] :
20532+
# 2795| r2795_8(char) = Load[len3] : &:r2795_7, m2792_10
20533+
# 2795| v2795_9(void) = NoOp :
20534+
# 2796| r2796_1(glval<unsigned long>) = VariableAddress[v] :
20535+
# 2796| r2796_2(unsigned long) = Constant[4] :
20536+
# 2796| r2796_3(unsigned long) = Mul : r2796_2, r2795_6
20537+
# 2796| r2796_4(unsigned long) = Mul : r2796_3, r2795_8
20538+
# 2796| m2796_5(unsigned long) = Store[v] : &:r2796_1, r2796_4
20539+
# 2797| r2797_1(glval<unsigned long>) = VariableAddress[u] :
20540+
# 2797| r2797_2(unsigned long) = Constant[4] :
20541+
# 2797| r2797_3(unsigned long) = Mul : r2797_2, r2795_8
20542+
# 2797| m2797_4(unsigned long) = Store[u] : &:r2797_1, r2797_3
20543+
# 2798| r2798_1(glval<unsigned long>) = VariableAddress[t] :
20544+
# 2798| r2798_2(unsigned long) = Constant[4] :
20545+
# 2798| m2798_3(unsigned long) = Store[t] : &:r2798_1, r2798_2
20546+
# 2799| v2799_1(void) = NoOp :
20547+
# 2792| v2792_11(void) = ReturnVoid :
20548+
# 2792| v2792_12(void) = AliasedUse : m2792_3
20549+
# 2792| v2792_13(void) = ExitFunction :
2052220550

2052320551
# 2801| size_t vla_sizeof_test3(int, size_t, char, bool)
2052420552
# 2801| Block 0

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:2794:10:2794:10 | VariableAddress: definition of z | Instruction 'VariableAddress: definition of z' has no successors in function '$@'. | ir.cpp:2792:6:2792:21 | void vla_sizeof_test2(int, size_t, char) | void vla_sizeof_test2(int, size_t, char) |
109
| ir.cpp:2808:5:2808:26 | VariableAddress: return ... | Instruction 'VariableAddress: return ...' has no successors in function '$@'. | ir.cpp:2801:8:2801:23 | size_t vla_sizeof_test3(int, size_t, char, bool) | size_t vla_sizeof_test3(int, size_t, char, bool) |
1110
ambiguousSuccessors
1211
unexplainedLoop

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:2794:10:2794:10 | VariableAddress: definition of z | Instruction 'VariableAddress: definition of z' has no successors in function '$@'. | ir.cpp:2792:6:2792:21 | void vla_sizeof_test2(int, size_t, char) | void vla_sizeof_test2(int, size_t, char) |
109
| ir.cpp:2808:5:2808:26 | VariableAddress: return ... | Instruction 'VariableAddress: return ...' has no successors in function '$@'. | ir.cpp:2801:8:2801:23 | size_t vla_sizeof_test3(int, size_t, char, bool) | size_t vla_sizeof_test3(int, size_t, char, bool) |
1110
ambiguousSuccessors
1211
unexplainedLoop

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
missingOperand
2-
| ir.cpp:2794:14:2794:28 | Store: sizeof(<expr>) | Instruction 'Store' is missing an expected operand with tag 'StoreValue' in function '$@'. | ir.cpp:2792:6:2792:21 | void vla_sizeof_test2(int, size_t, char) | void vla_sizeof_test2(int, size_t, char) |
3-
| ir.cpp:2796:14:2796:28 | Store: sizeof(<expr>) | Instruction 'Store' is missing an expected operand with tag 'StoreValue' in function '$@'. | ir.cpp:2792:6:2792:21 | void vla_sizeof_test2(int, size_t, char) | void vla_sizeof_test2(int, size_t, char) |
4-
| ir.cpp:2797:14:2797:31 | Store: sizeof(<expr>) | Instruction 'Store' is missing an expected operand with tag 'StoreValue' in function '$@'. | ir.cpp:2792:6:2792:21 | void vla_sizeof_test2(int, size_t, char) | void vla_sizeof_test2(int, size_t, char) |
52
| ir.cpp:2808:12:2808:25 | Store: sizeof(<expr>) | Instruction 'Store' is missing an expected operand with tag 'StoreValue' in function '$@'. | ir.cpp:2801:8:2801:23 | size_t vla_sizeof_test3(int, size_t, char, bool) | size_t vla_sizeof_test3(int, size_t, char, bool) |
63
unexpectedOperand
74
duplicateOperand
@@ -10,9 +7,6 @@ missingOperandType
107
duplicateChiOperand
118
sideEffectWithoutPrimary
129
instructionWithoutSuccessor
13-
| ir.cpp:2794:10:2794:10 | VariableAddress: definition of z | Instruction 'VariableAddress: definition of z' has no successors in function '$@'. | ir.cpp:2792:6:2792:21 | void vla_sizeof_test2(int, size_t, char) | void vla_sizeof_test2(int, size_t, char) |
14-
| ir.cpp:2796:10:2796:10 | VariableAddress: definition of v | Instruction 'VariableAddress: definition of v' has no successors in function '$@'. | ir.cpp:2792:6:2792:21 | void vla_sizeof_test2(int, size_t, char) | void vla_sizeof_test2(int, size_t, char) |
15-
| ir.cpp:2797:10:2797:10 | VariableAddress: definition of u | Instruction 'VariableAddress: definition of u' has no successors in function '$@'. | ir.cpp:2792:6:2792:21 | void vla_sizeof_test2(int, size_t, char) | void vla_sizeof_test2(int, size_t, char) |
1610
| ir.cpp:2808:5:2808:26 | VariableAddress: return ... | Instruction 'VariableAddress: return ...' has no successors in function '$@'. | ir.cpp:2801:8:2801:23 | size_t vla_sizeof_test3(int, size_t, char, bool) | size_t vla_sizeof_test3(int, size_t, char, bool) |
1711
ambiguousSuccessors
1812
unexplainedLoop
@@ -29,9 +23,6 @@ lostReachability
2923
backEdgeCountMismatch
3024
useNotDominatedByDefinition
3125
| ir.cpp:1535:8:1535:8 | Unary | Operand 'Unary' is not dominated by its definition in function '$@'. | ir.cpp:1535:8:1535:8 | void StructuredBindingDataMemberStruct::StructuredBindingDataMemberStruct() | void StructuredBindingDataMemberStruct::StructuredBindingDataMemberStruct() |
32-
| ir.cpp:2794:10:2794:10 | Address | Operand 'Address' is not dominated by its definition in function '$@'. | ir.cpp:2792:6:2792:21 | void vla_sizeof_test2(int, size_t, char) | void vla_sizeof_test2(int, size_t, char) |
33-
| ir.cpp:2796:10:2796:10 | Address | Operand 'Address' is not dominated by its definition in function '$@'. | ir.cpp:2792:6:2792:21 | void vla_sizeof_test2(int, size_t, char) | void vla_sizeof_test2(int, size_t, char) |
34-
| ir.cpp:2797:10:2797:10 | Address | Operand 'Address' is not dominated by its definition in function '$@'. | ir.cpp:2792:6:2792:21 | void vla_sizeof_test2(int, size_t, char) | void vla_sizeof_test2(int, size_t, char) |
3526
| ir.cpp:2808:5:2808:26 | Address | Operand 'Address' is not dominated by its definition in function '$@'. | ir.cpp:2801:8:2801:23 | size_t vla_sizeof_test3(int, size_t, char, bool) | size_t vla_sizeof_test3(int, size_t, char, bool) |
3627
switchInstructionWithoutDefaultEdge
3728
notMarkedAsConflated

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

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -18664,33 +18664,34 @@ ir.cpp:
1866418664
# 2793| r2793_6(unsigned long) = Load[len2] : &:r2793_5, ~m?
1866518665
# 2793| v2793_7(void) = NoOp :
1866618666
# 2794| r2794_1(glval<unsigned long>) = VariableAddress[z] :
18667-
18668-
# 2794| Block 1
18669-
# 2794| mu2794_2(unsigned long) = Store[z] : &:r2794_1
18670-
# 2795| r2795_1(glval<int[][][]>) = VariableAddress[tmp2] :
18671-
# 2795| mu2795_2(int[][][]) = Uninitialized[tmp2] : &:r2795_1
18672-
# 2795| r2795_3(glval<int>) = VariableAddress[len1] :
18673-
# 2795| r2795_4(int) = Load[len1] : &:r2795_3, ~m?
18674-
# 2795| r2795_5(glval<unsigned long>) = VariableAddress[len2] :
18675-
# 2795| r2795_6(unsigned long) = Load[len2] : &:r2795_5, ~m?
18676-
# 2795| r2795_7(glval<char>) = VariableAddress[len3] :
18677-
# 2795| r2795_8(char) = Load[len3] : &:r2795_7, ~m?
18678-
# 2795| v2795_9(void) = NoOp :
18679-
# 2796| r2796_1(glval<unsigned long>) = VariableAddress[v] :
18680-
18681-
# 2796| Block 2
18682-
# 2796| mu2796_2(unsigned long) = Store[v] : &:r2796_1
18683-
# 2797| r2797_1(glval<unsigned long>) = VariableAddress[u] :
18684-
18685-
# 2797| Block 3
18686-
# 2797| mu2797_2(unsigned long) = Store[u] : &:r2797_1
18687-
# 2798| r2798_1(glval<unsigned long>) = VariableAddress[t] :
18688-
# 2798| r2798_2(unsigned long) = Constant[4] :
18689-
# 2798| mu2798_3(unsigned long) = Store[t] : &:r2798_1, r2798_2
18690-
# 2799| v2799_1(void) = NoOp :
18691-
# 2792| v2792_10(void) = ReturnVoid :
18692-
# 2792| v2792_11(void) = AliasedUse : ~m?
18693-
# 2792| v2792_12(void) = ExitFunction :
18667+
# 2794| r2794_2(unsigned long) = Constant[4] :
18668+
# 2794| r2794_3(unsigned long) = Mul : r2794_2, r2793_6
18669+
# 2794| mu2794_4(unsigned long) = Store[z] : &:r2794_1, r2794_3
18670+
# 2795| r2795_1(glval<int[][][]>) = VariableAddress[tmp2] :
18671+
# 2795| mu2795_2(int[][][]) = Uninitialized[tmp2] : &:r2795_1
18672+
# 2795| r2795_3(glval<int>) = VariableAddress[len1] :
18673+
# 2795| r2795_4(int) = Load[len1] : &:r2795_3, ~m?
18674+
# 2795| r2795_5(glval<unsigned long>) = VariableAddress[len2] :
18675+
# 2795| r2795_6(unsigned long) = Load[len2] : &:r2795_5, ~m?
18676+
# 2795| r2795_7(glval<char>) = VariableAddress[len3] :
18677+
# 2795| r2795_8(char) = Load[len3] : &:r2795_7, ~m?
18678+
# 2795| v2795_9(void) = NoOp :
18679+
# 2796| r2796_1(glval<unsigned long>) = VariableAddress[v] :
18680+
# 2796| r2796_2(unsigned long) = Constant[4] :
18681+
# 2796| r2796_3(unsigned long) = Mul : r2796_2, r2795_6
18682+
# 2796| r2796_4(unsigned long) = Mul : r2796_3, r2795_8
18683+
# 2796| mu2796_5(unsigned long) = Store[v] : &:r2796_1, r2796_4
18684+
# 2797| r2797_1(glval<unsigned long>) = VariableAddress[u] :
18685+
# 2797| r2797_2(unsigned long) = Constant[4] :
18686+
# 2797| r2797_3(unsigned long) = Mul : r2797_2, r2795_8
18687+
# 2797| mu2797_4(unsigned long) = Store[u] : &:r2797_1, r2797_3
18688+
# 2798| r2798_1(glval<unsigned long>) = VariableAddress[t] :
18689+
# 2798| r2798_2(unsigned long) = Constant[4] :
18690+
# 2798| mu2798_3(unsigned long) = Store[t] : &:r2798_1, r2798_2
18691+
# 2799| v2799_1(void) = NoOp :
18692+
# 2792| v2792_10(void) = ReturnVoid :
18693+
# 2792| v2792_11(void) = AliasedUse : ~m?
18694+
# 2792| v2792_12(void) = ExitFunction :
1869418695

1869518696
# 2801| size_t vla_sizeof_test3(int, size_t, char, bool)
1869618697
# 2801| Block 0

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:2794:10:2794:10 | VariableAddress: definition of z | Instruction 'VariableAddress: definition of z' has no successors in function '$@'. | ir.cpp:2792:6:2792:21 | void vla_sizeof_test2(int, size_t, char) | void vla_sizeof_test2(int, size_t, char) |
109
| ir.cpp:2808:5:2808:26 | VariableAddress: return ... | Instruction 'VariableAddress: return ...' has no successors in function '$@'. | ir.cpp:2801:8:2801:23 | size_t vla_sizeof_test3(int, size_t, char, bool) | size_t vla_sizeof_test3(int, size_t, char, bool) |
1110
ambiguousSuccessors
1211
unexplainedLoop

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:2794:10:2794:10 | VariableAddress: definition of z | Instruction 'VariableAddress: definition of z' has no successors in function '$@'. | ir.cpp:2792:6:2792:21 | void vla_sizeof_test2(int, size_t, char) | void vla_sizeof_test2(int, size_t, char) |
109
| ir.cpp:2808:5:2808:26 | VariableAddress: return ... | Instruction 'VariableAddress: return ...' has no successors in function '$@'. | ir.cpp:2801:8:2801:23 | size_t vla_sizeof_test3(int, size_t, char, bool) | size_t vla_sizeof_test3(int, size_t, char, bool) |
1110
ambiguousSuccessors
1211
unexplainedLoop

0 commit comments

Comments
 (0)