Skip to content

Commit 4818bd6

Browse files
committed
Updating expected files
1 parent b287196 commit 4818bd6

10 files changed

+53
-28
lines changed

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

Lines changed: 52 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39140,20 +39140,62 @@ try_except.cpp:
3914039140
# 47| r47_3(int) = Constant[0] :
3914139141
# 47| r47_4(bool) = CompareNE : r47_2, r47_3
3914239142
# 47| v47_5(void) = ConditionalBranch : r47_4
39143-
#-----| False -> Block 2
39144-
#-----| True -> Block 1
39143+
#-----| False -> Block 8
39144+
#-----| True -> Block 3
39145+
39146+
# 44| Block 1
39147+
# 44| m44_7(unknown) = Phi : from 2:~m52_6, from 8:~m54_1
39148+
# 44| v44_8(void) = AliasedUse : ~m44_7
39149+
# 44| v44_9(void) = ExitFunction :
39150+
39151+
# 44| Block 2
39152+
# 44| v44_10(void) = Unwind :
39153+
#-----| Goto -> Block 1
3914539154

39146-
# 48| Block 1
39155+
# 48| Block 3
3914739156
# 48| r48_1(glval<int>) = VariableAddress[#throw48:13] :
3914839157
# 48| r48_2(int) = Constant[1] :
3914939158
# 48| m48_3(int) = Store[#throw48:13] : &:r48_1, r48_2
3915039159
# 48| v48_4(void) = ThrowValue : &:r48_1, m48_3
39160+
#-----| C++ Exception -> Block 6
3915139161

39152-
# 54| Block 2
39153-
# 54| v54_1(void) = NoOp :
39154-
# 44| v44_7(void) = ReturnVoid :
39155-
# 44| v44_8(void) = AliasedUse : m44_3
39156-
# 44| v44_9(void) = ExitFunction :
39162+
# 51| Block 4
39163+
# 51| r51_1(int) = Constant[0] :
39164+
# 51| r51_2(bool) = CompareEQ : r51_7, r51_1
39165+
# 51| v51_3(void) = ConditionalBranch : r51_2
39166+
#-----| False -> Block 5
39167+
#-----| True -> Block 9
39168+
39169+
# 51| Block 5
39170+
# 51| r51_4(int) = Constant[1] :
39171+
# 51| r51_5(bool) = CompareEQ : r51_7, r51_4
39172+
# 51| v51_6(void) = ConditionalBranch : r51_5
39173+
#-----| False -> Block 9
39174+
#-----| True -> Block 7
39175+
39176+
# 51| Block 6
39177+
# 51| r51_7(int) = Constant[1] :
39178+
# 51| r51_8(int) = Constant[-1] :
39179+
# 51| r51_9(bool) = CompareEQ : r51_7, r51_8
39180+
# 51| v51_10(void) = ConditionalBranch : r51_9
39181+
#-----| False -> Block 4
39182+
#-----| True -> Block 9
39183+
39184+
# 52| Block 7
39185+
# 52| r52_1(glval<unknown>) = FunctionAddress[sink] :
39186+
# 52| r52_2(glval<int>) = VariableAddress[x] :
39187+
# 52| r52_3(int) = Load[x] : &:r52_2, m45_3
39188+
# 52| v52_4(void) = Call[sink] : func:r52_1, 0:r52_3
39189+
# 52| m52_5(unknown) = ^CallSideEffect : ~m44_4
39190+
# 52| m52_6(unknown) = Chi : total:m44_4, partial:m52_5
39191+
#-----| Goto -> Block 8
39192+
#-----| SEH Exception -> Block 2
39193+
39194+
# 54| Block 8
39195+
# 54| m54_1(unknown) = Phi : from 0:~m44_4, from 7:~m52_6
39196+
# 54| v54_2(void) = NoOp :
39197+
# 44| v44_11(void) = ReturnVoid :
39198+
#-----| Goto -> Block 1
3915739199

39158-
# 44| Block 3
39159-
# 44| v44_10(void) = Unreached :
39200+
# 44| Block 9
39201+
# 44| v44_12(void) = Unreached :

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-
| try_except.cpp:48:13:48:19 | ThrowValue: throw ... | Instruction 'ThrowValue: throw ...' has no successors in function '$@'. | try_except.cpp:44:6:44:14 | void throw_cpp(int) | void throw_cpp(int) |
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-
| try_except.cpp:48:13:48:19 | ThrowValue: throw ... | Instruction 'ThrowValue: throw ...' has no successors in function '$@'. | try_except.cpp:44:6:44:14 | void throw_cpp(int) | void throw_cpp(int) |
109
ambiguousSuccessors
1110
unexplainedLoop
1211
unnecessaryPhiInstruction

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ missingOperandType
66
duplicateChiOperand
77
sideEffectWithoutPrimary
88
instructionWithoutSuccessor
9-
| try_except.cpp:48:13:48:19 | ThrowValue: throw ... | Instruction 'ThrowValue: throw ...' has no successors in function '$@'. | try_except.cpp:44:6:44:14 | void throw_cpp(int) | void throw_cpp(int) |
109
ambiguousSuccessors
1110
unexplainedLoop
1211
unnecessaryPhiInstruction
@@ -22,8 +21,6 @@ lostReachability
2221
backEdgeCountMismatch
2322
useNotDominatedByDefinition
2423
| 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() |
25-
| try_except.cpp:51:15:51:15 | Left | Operand 'Left' is not dominated by its definition in function '$@'. | try_except.cpp:44:6:44:14 | void throw_cpp(int) | void throw_cpp(int) |
26-
| try_except.cpp:51:15:51:15 | Left | Operand 'Left' is not dominated by its definition in function '$@'. | try_except.cpp:44:6:44:14 | void throw_cpp(int) | void throw_cpp(int) |
2724
switchInstructionWithoutDefaultEdge
2825
notMarkedAsConflated
2926
wronglyMarkedAsConflated

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37381,6 +37381,7 @@ try_except.cpp:
3738137381
# 48| r48_2(int) = Constant[1] :
3738237382
# 48| mu48_3(int) = Store[#throw48:13] : &:r48_1, r48_2
3738337383
# 48| v48_4(void) = ThrowValue : &:r48_1, ~m?
37384+
#-----| C++ Exception -> Block 6
3738437385

3738537386
# 51| Block 4
3738637387
# 51| r51_1(int) = Constant[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-
| try_except.cpp:48:13:48:19 | ThrowValue: throw ... | Instruction 'ThrowValue: throw ...' has no successors in function '$@'. | try_except.cpp:44:6:44:14 | void throw_cpp(int) | void throw_cpp(int) |
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-
| try_except.cpp:48:13:48:19 | ThrowValue: throw ... | Instruction 'ThrowValue: throw ...' has no successors in function '$@'. | try_except.cpp:44:6:44:14 | void throw_cpp(int) | void throw_cpp(int) |
109
ambiguousSuccessors
1110
unexplainedLoop
1211
unnecessaryPhiInstruction

cpp/ql/test/library-tests/syntax-zoo/aliased_ssa_consistency.expected

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ missingOperandType
77
duplicateChiOperand
88
sideEffectWithoutPrimary
99
instructionWithoutSuccessor
10-
| ms_try_mix.cpp:21:5:21:5 | Chi: c102 | Instruction 'Chi: c102' has no successors in function '$@'. | ms_try_mix.cpp:12:6:12:18 | void ms_except_mix(int) | void ms_except_mix(int) |
11-
| ms_try_mix.cpp:38:5:38:5 | Chi: c106 | Instruction 'Chi: c106' has no successors in function '$@'. | ms_try_mix.cpp:29:6:29:19 | void ms_finally_mix(int) | void ms_finally_mix(int) |
12-
| ms_try_mix.cpp:53:5:53:11 | ThrowValue: throw ... | Instruction 'ThrowValue: throw ...' has no successors in function '$@'. | ms_try_mix.cpp:49:6:49:28 | void ms_empty_finally_at_end() | void ms_empty_finally_at_end() |
1310
| stmt_expr.cpp:27:5:27:15 | Store: ... = ... | Instruction 'Store: ... = ...' has no successors in function '$@'. | stmt_expr.cpp:21:13:21:13 | void stmtexpr::g(int) | void stmtexpr::g(int) |
1411
ambiguousSuccessors
1512
unexplainedLoop

cpp/ql/test/library-tests/syntax-zoo/raw_consistency.expected

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ missingOperandType
88
duplicateChiOperand
99
sideEffectWithoutPrimary
1010
instructionWithoutSuccessor
11-
| ms_try_mix.cpp:21:5:21:5 | IndirectMayWriteSideEffect: c102 | Instruction 'IndirectMayWriteSideEffect: c102' has no successors in function '$@'. | ms_try_mix.cpp:12:6:12:18 | void ms_except_mix(int) | void ms_except_mix(int) |
12-
| ms_try_mix.cpp:38:5:38:5 | IndirectMayWriteSideEffect: c106 | Instruction 'IndirectMayWriteSideEffect: c106' has no successors in function '$@'. | ms_try_mix.cpp:29:6:29:19 | void ms_finally_mix(int) | void ms_finally_mix(int) |
13-
| ms_try_mix.cpp:53:5:53:11 | ThrowValue: throw ... | Instruction 'ThrowValue: throw ...' has no successors in function '$@'. | ms_try_mix.cpp:49:6:49:28 | void ms_empty_finally_at_end() | void ms_empty_finally_at_end() |
1411
| stmt_expr.cpp:27:5:27:15 | Store: ... = ... | Instruction 'Store: ... = ...' has no successors in function '$@'. | stmt_expr.cpp:21:13:21:13 | void stmtexpr::g(int) | void stmtexpr::g(int) |
1512
| stmt_expr.cpp:29:11:32:11 | CopyValue: (statement expression) | Instruction 'CopyValue: (statement expression)' has no successors in function '$@'. | stmt_expr.cpp:21:13:21:13 | void stmtexpr::g(int) | void stmtexpr::g(int) |
1613
| stmt_in_type.cpp:5:53:5:53 | Constant: 1 | Instruction 'Constant: 1' has no successors in function '$@'. | stmt_in_type.cpp:2:6:2:12 | void cpp_fun() | void cpp_fun() |
@@ -32,8 +29,6 @@ useNotDominatedByDefinition
3229
| ms_try_except.cpp:9:19:9:19 | Left | Operand 'Left' is not dominated by its definition in function '$@'. | ms_try_except.cpp:2:6:2:18 | void ms_try_except(int) | void ms_try_except(int) |
3330
| ms_try_except.cpp:19:17:19:21 | Left | Operand 'Left' is not dominated by its definition in function '$@'. | ms_try_except.cpp:2:6:2:18 | void ms_try_except(int) | void ms_try_except(int) |
3431
| ms_try_except.cpp:19:17:19:21 | Left | Operand 'Left' is not dominated by its definition in function '$@'. | ms_try_except.cpp:2:6:2:18 | void ms_try_except(int) | void ms_try_except(int) |
35-
| ms_try_mix.cpp:22:15:22:39 | Left | Operand 'Left' is not dominated by its definition in function '$@'. | ms_try_mix.cpp:12:6:12:18 | void ms_except_mix(int) | void ms_except_mix(int) |
36-
| ms_try_mix.cpp:22:15:22:39 | Left | Operand 'Left' is not dominated by its definition in function '$@'. | ms_try_mix.cpp:12:6:12:18 | void ms_except_mix(int) | void ms_except_mix(int) |
3732
| static_init_templates.cpp:15:1:15:18 | Address | Operand 'Address' is not dominated by its definition in function '$@'. | static_init_templates.cpp:15:1:15:18 | void MyClass::MyClass() | void MyClass::MyClass() |
3833
| try_catch.cpp:21:9:21:9 | Address | Operand 'Address' is not dominated by its definition in function '$@'. | try_catch.cpp:19:6:19:23 | void throw_from_nonstmt(int) | void throw_from_nonstmt(int) |
3934
switchInstructionWithoutDefaultEdge

cpp/ql/test/library-tests/syntax-zoo/unaliased_ssa_consistency.expected

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ missingOperandType
77
duplicateChiOperand
88
sideEffectWithoutPrimary
99
instructionWithoutSuccessor
10-
| ms_try_mix.cpp:21:5:21:5 | IndirectMayWriteSideEffect: c102 | Instruction 'IndirectMayWriteSideEffect: c102' has no successors in function '$@'. | ms_try_mix.cpp:12:6:12:18 | void ms_except_mix(int) | void ms_except_mix(int) |
11-
| ms_try_mix.cpp:38:5:38:5 | IndirectMayWriteSideEffect: c106 | Instruction 'IndirectMayWriteSideEffect: c106' has no successors in function '$@'. | ms_try_mix.cpp:29:6:29:19 | void ms_finally_mix(int) | void ms_finally_mix(int) |
12-
| ms_try_mix.cpp:53:5:53:11 | ThrowValue: throw ... | Instruction 'ThrowValue: throw ...' has no successors in function '$@'. | ms_try_mix.cpp:49:6:49:28 | void ms_empty_finally_at_end() | void ms_empty_finally_at_end() |
1310
| stmt_expr.cpp:27:5:27:15 | Store: ... = ... | Instruction 'Store: ... = ...' has no successors in function '$@'. | stmt_expr.cpp:21:13:21:13 | void stmtexpr::g(int) | void stmtexpr::g(int) |
1411
ambiguousSuccessors
1512
unexplainedLoop

0 commit comments

Comments
 (0)