C++/C#: Accept test output after adding sanity check to Instruction.qll

This commit is contained in:
Mathias Vorreiter Pedersen
2020-02-21 15:09:53 +01:00
parent da41cbca06
commit d9753b0ca5
12 changed files with 23 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
switchInstructionWithoutDefaultEdge
astGuards
| test.c:7:9:7:13 | ... > ... |
| test.c:17:8:17:12 | ... < ... |

View File

@@ -1,3 +1,5 @@
switchInstructionWithoutDefaultEdge
#select
| BarrierGuard.cpp:9:10:9:15 | source | BarrierGuard.cpp:5:19:5:24 | source |
| BarrierGuard.cpp:15:10:15:15 | source | BarrierGuard.cpp:13:17:13:22 | source |
| BarrierGuard.cpp:25:10:25:15 | source | BarrierGuard.cpp:21:17:21:22 | source |

View File

@@ -1,3 +1,5 @@
switchInstructionWithoutDefaultEdge
#select
| constant_func.cpp:1:5:1:18 | IR: ReturnConstant | 7 |
| constant_func.cpp:5:5:5:21 | IR: ReturnConstantPhi | 7 |
| constant_func.cpp:25:5:25:25 | IR: ReturnConstantPhiLoop | 7 |

View File

@@ -0,0 +1,2 @@
switchInstructionWithoutDefaultEdge
#select

View File

@@ -0,0 +1,2 @@
switchInstructionWithoutDefaultEdge
#select

View File

@@ -1,3 +1,5 @@
switchInstructionWithoutDefaultEdge
instructionBounds
| 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 |
| 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 |
| 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 |

View File

@@ -1,3 +1,5 @@
switchInstructionWithoutDefaultEdge
#select
| binary_logical_operator.c:2:11:2:25 | Constant: ... && ... | positive strictlyPositive |
| binary_logical_operator.c:2:11:2:25 | Load: ... && ... | positive |
| binary_logical_operator.c:2:11:2:25 | Phi: ... && ... | positive |

View File

@@ -1,3 +1,5 @@
switchInstructionWithoutDefaultEdge
#select
| test.cpp:5:3:5:13 | ... = ... | test.cpp:5:3:5:13 | ... = ... | AST only |
| test.cpp:6:3:6:13 | ... = ... | test.cpp:6:3:6:13 | ... = ... | AST only |
| test.cpp:7:3:7:7 | ... = ... | test.cpp:7:3:7:7 | ... = ... | AST only |

View File

@@ -0,0 +1,2 @@
switchInstructionWithoutDefaultEdge
#select

View File

@@ -1,3 +1,5 @@
switchInstructionWithoutDefaultEdge
#select
| 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 |
| 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 |
| 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 |