Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d9753b0

Browse files
committed
C++/C#: Accept test output after adding sanity check to Instruction.qll
1 parent da41cbc commit d9753b0

12 files changed

Lines changed: 23 additions & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
switchInstructionWithoutDefaultEdge
12
astGuards
23
| test.c:7:9:7:13 | ... > ... |
34
| test.c:17:8:17:12 | ... < ... |

cpp/ql/test/library-tests/dataflow/dataflow-tests/test_ir.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
switchInstructionWithoutDefaultEdge
2+
#select
13
| BarrierGuard.cpp:9:10:9:15 | source | BarrierGuard.cpp:5:19:5:24 | source |
24
| BarrierGuard.cpp:15:10:15:15 | source | BarrierGuard.cpp:13:17:13:22 | source |
35
| BarrierGuard.cpp:25:10:25:15 | source | BarrierGuard.cpp:21:17:21:22 | source |

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
switchInstructionWithoutDefaultEdge
2+
#select
13
| constant_func.cpp:1:5:1:18 | IR: ReturnConstant | 7 |
24
| constant_func.cpp:5:5:5:21 | IR: ReturnConstantPhi | 7 |
35
| constant_func.cpp:25:5:25:25 | IR: ReturnConstantPhiLoop | 7 |
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
switchInstructionWithoutDefaultEdge
2+
#select
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
switchInstructionWithoutDefaultEdge
2+
#select

cpp/ql/test/library-tests/rangeanalysis/rangeanalysis/RangeAnalysis.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
switchInstructionWithoutDefaultEdge
2+
instructionBounds
13
| test.cpp:10:10:10:10 | Store: x | test.cpp:6:15:6:15 | InitializeParameter: x | 0 | false | NoReason | file://:0:0:0:0 | file://:0:0:0:0 |
24
| test.cpp:10:10:10:10 | Store: x | test.cpp:6:22:6:22 | InitializeParameter: y | 0 | false | CompareLT: ... < ... | test.cpp:7:7:7:11 | test.cpp:7:7:7:11 |
35
| test.cpp:10:10:10:10 | Store: x | test.cpp:6:22:6:22 | InitializeParameter: y | 0 | false | NoReason | file://:0:0:0:0 | file://:0:0:0:0 |

cpp/ql/test/library-tests/rangeanalysis/signanalysis/SignAnalysis.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
switchInstructionWithoutDefaultEdge
2+
#select
13
| binary_logical_operator.c:2:11:2:25 | Constant: ... && ... | positive strictlyPositive |
24
| binary_logical_operator.c:2:11:2:25 | Load: ... && ... | positive |
35
| binary_logical_operator.c:2:11:2:25 | Phi: ... && ... | positive |

cpp/ql/test/library-tests/valuenumbering/GlobalValueNumbering/diff_ir_expr.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
switchInstructionWithoutDefaultEdge
2+
#select
13
| test.cpp:5:3:5:13 | ... = ... | test.cpp:5:3:5:13 | ... = ... | AST only |
24
| test.cpp:6:3:6:13 | ... = ... | test.cpp:6:3:6:13 | ... = ... | AST only |
35
| test.cpp:7:3:7:7 | ... = ... | test.cpp:7:3:7:7 | ... = ... | AST only |
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
switchInstructionWithoutDefaultEdge
2+
#select

cpp/ql/test/query-tests/Likely Bugs/RedundantNullCheckSimple/RedundantNullCheckSimple.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
switchInstructionWithoutDefaultEdge
2+
#select
13
| RedundantNullCheckSimple.cpp:4:7:4:7 | Load: p | This null check is redundant because the value is $@ in any case | RedundantNullCheckSimple.cpp:3:7:3:8 | Load: * ... | dereferenced here |
24
| RedundantNullCheckSimple.cpp:13:8:13:8 | Load: p | This null check is redundant because the value is $@ in any case | RedundantNullCheckSimple.cpp:10:11:10:12 | Load: * ... | dereferenced here |
35
| RedundantNullCheckSimple.cpp:20:7:20:8 | Load: * ... | This null check is redundant because the value is $@ in any case | RedundantNullCheckSimple.cpp:19:7:19:9 | Load: * ... | dereferenced here |

0 commit comments

Comments
 (0)