Skip to content

Commit 8cb8c96

Browse files
committed
C#: Remove some impossible CFG exception edges
1 parent 6ff4206 commit 8cb8c96

File tree

16 files changed

+14
-93
lines changed

16 files changed

+14
-93
lines changed

csharp/ql/src/semmle/code/csharp/controlflow/internal/Completion.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ private class TriedControlFlowElement extends ControlFlowElement {
205205
or
206206
this = any(MemberAccess ma |
207207
not ma.isConditional() and
208-
ma.hasQualifier() and
208+
ma.getQualifier() = any(Expr e | not e instanceof TypeAccess) and
209209
result instanceof SystemNullReferenceExceptionClass
210210
)
211211
or
@@ -234,7 +234,7 @@ private class TriedControlFlowElement extends ControlFlowElement {
234234
)
235235
or
236236
this = any(DivExpr de |
237-
not de.getDenominator().getValue().toInt() != 0 and
237+
not de.getDenominator().getValue().toFloat() != 0 and
238238
result instanceof SystemDivideByZeroExceptionClass
239239
)
240240
or

csharp/ql/test/library-tests/controlflow/graph/BasicBlock.expected

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -503,10 +503,7 @@
503503
| cflow.cs:244:17:244:37 | [finally: exception(NullReferenceException)] ...; | cflow.cs:244:17:244:36 | [finally: exception(NullReferenceException)] call to method WriteLine | 3 |
504504
| cflow.cs:244:17:244:37 | [finally: exception(OutOfMemoryException)] ...; | cflow.cs:244:17:244:36 | [finally: exception(OutOfMemoryException)] call to method WriteLine | 3 |
505505
| cflow.cs:244:17:244:37 | [finally: return] ...; | cflow.cs:244:17:244:36 | [finally: return] call to method WriteLine | 3 |
506-
| cflow.cs:247:9:254:9 | try {...} ... | cflow.cs:249:28:249:40 | access to constant E | 7 |
507-
| cflow.cs:249:17:249:40 | Double temp = ... | cflow.cs:249:17:249:40 | Double temp = ... | 1 |
508-
| cflow.cs:249:24:249:40 | ... / ... | cflow.cs:249:24:249:40 | ... / ... | 1 |
509-
| cflow.cs:251:9:254:9 | catch {...} | cflow.cs:253:13:253:13 | ; | 3 |
506+
| cflow.cs:247:9:254:9 | try {...} ... | cflow.cs:249:17:249:40 | Double temp = ... | 9 |
510507
| cflow.cs:257:10:257:12 | enter For | cflow.cs:260:9:261:33 | for (...;...;...) ... | 7 |
511508
| cflow.cs:257:10:257:12 | exit For | cflow.cs:257:10:257:12 | exit For | 1 |
512509
| cflow.cs:260:16:260:16 | access to local variable x | cflow.cs:260:16:260:21 | ... < ... | 3 |

csharp/ql/test/library-tests/controlflow/graph/BasicBlockDominance.expected

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -987,9 +987,6 @@
987987
| post | cflow.cs:146:10:146:19 | exit TryFinally | cflow.cs:244:17:244:37 | [finally: exception(OutOfMemoryException)] ...; |
988988
| post | cflow.cs:146:10:146:19 | exit TryFinally | cflow.cs:244:17:244:37 | [finally: return] ...; |
989989
| post | cflow.cs:146:10:146:19 | exit TryFinally | cflow.cs:247:9:254:9 | try {...} ... |
990-
| post | cflow.cs:146:10:146:19 | exit TryFinally | cflow.cs:249:17:249:40 | Double temp = ... |
991-
| post | cflow.cs:146:10:146:19 | exit TryFinally | cflow.cs:249:24:249:40 | ... / ... |
992-
| post | cflow.cs:146:10:146:19 | exit TryFinally | cflow.cs:251:9:254:9 | catch {...} |
993990
| post | cflow.cs:150:13:150:37 | call to method WriteLine | cflow.cs:150:13:150:37 | call to method WriteLine |
994991
| post | cflow.cs:153:9:155:9 | [finally: exception(Exception)] {...} | cflow.cs:153:9:155:9 | [finally: exception(Exception)] {...} |
995992
| post | cflow.cs:153:9:155:9 | [finally: exception(OutOfMemoryException)] {...} | cflow.cs:153:9:155:9 | [finally: exception(OutOfMemoryException)] {...} |
@@ -1089,9 +1086,6 @@
10891086
| post | cflow.cs:247:9:254:9 | try {...} ... | cflow.cs:243:13:244:37 | if (...) ... |
10901087
| post | cflow.cs:247:9:254:9 | try {...} ... | cflow.cs:244:17:244:37 | ...; |
10911088
| post | cflow.cs:247:9:254:9 | try {...} ... | cflow.cs:247:9:254:9 | try {...} ... |
1092-
| post | cflow.cs:249:17:249:40 | Double temp = ... | cflow.cs:249:17:249:40 | Double temp = ... |
1093-
| post | cflow.cs:249:24:249:40 | ... / ... | cflow.cs:249:24:249:40 | ... / ... |
1094-
| post | cflow.cs:251:9:254:9 | catch {...} | cflow.cs:251:9:254:9 | catch {...} |
10951089
| post | cflow.cs:257:10:257:12 | enter For | cflow.cs:257:10:257:12 | enter For |
10961090
| post | cflow.cs:257:10:257:12 | exit For | cflow.cs:257:10:257:12 | enter For |
10971091
| post | cflow.cs:257:10:257:12 | exit For | cflow.cs:257:10:257:12 | exit For |
@@ -2576,9 +2570,6 @@
25762570
| pre | cflow.cs:146:10:146:19 | enter TryFinally | cflow.cs:244:17:244:37 | [finally: exception(OutOfMemoryException)] ...; |
25772571
| pre | cflow.cs:146:10:146:19 | enter TryFinally | cflow.cs:244:17:244:37 | [finally: return] ...; |
25782572
| pre | cflow.cs:146:10:146:19 | enter TryFinally | cflow.cs:247:9:254:9 | try {...} ... |
2579-
| pre | cflow.cs:146:10:146:19 | enter TryFinally | cflow.cs:249:17:249:40 | Double temp = ... |
2580-
| pre | cflow.cs:146:10:146:19 | enter TryFinally | cflow.cs:249:24:249:40 | ... / ... |
2581-
| pre | cflow.cs:146:10:146:19 | enter TryFinally | cflow.cs:251:9:254:9 | catch {...} |
25822573
| pre | cflow.cs:146:10:146:19 | exit TryFinally | cflow.cs:146:10:146:19 | exit TryFinally |
25832574
| pre | cflow.cs:150:13:150:37 | call to method WriteLine | cflow.cs:150:13:150:37 | call to method WriteLine |
25842575
| pre | cflow.cs:150:13:150:37 | call to method WriteLine | cflow.cs:153:9:155:9 | [finally: exception(Exception)] {...} |
@@ -2650,9 +2641,6 @@
26502641
| pre | cflow.cs:150:13:150:37 | call to method WriteLine | cflow.cs:244:17:244:37 | [finally: exception(OutOfMemoryException)] ...; |
26512642
| pre | cflow.cs:150:13:150:37 | call to method WriteLine | cflow.cs:244:17:244:37 | [finally: return] ...; |
26522643
| pre | cflow.cs:150:13:150:37 | call to method WriteLine | cflow.cs:247:9:254:9 | try {...} ... |
2653-
| pre | cflow.cs:150:13:150:37 | call to method WriteLine | cflow.cs:249:17:249:40 | Double temp = ... |
2654-
| pre | cflow.cs:150:13:150:37 | call to method WriteLine | cflow.cs:249:24:249:40 | ... / ... |
2655-
| pre | cflow.cs:150:13:150:37 | call to method WriteLine | cflow.cs:251:9:254:9 | catch {...} |
26562644
| pre | cflow.cs:153:9:155:9 | [finally: exception(Exception)] {...} | cflow.cs:153:9:155:9 | [finally: exception(Exception)] {...} |
26572645
| pre | cflow.cs:153:9:155:9 | [finally: exception(OutOfMemoryException)] {...} | cflow.cs:153:9:155:9 | [finally: exception(OutOfMemoryException)] {...} |
26582646
| pre | cflow.cs:153:9:155:9 | {...} | cflow.cs:153:9:155:9 | {...} |
@@ -2723,9 +2711,6 @@
27232711
| pre | cflow.cs:153:9:155:9 | {...} | cflow.cs:244:17:244:37 | [finally: exception(OutOfMemoryException)] ...; |
27242712
| pre | cflow.cs:153:9:155:9 | {...} | cflow.cs:244:17:244:37 | [finally: return] ...; |
27252713
| pre | cflow.cs:153:9:155:9 | {...} | cflow.cs:247:9:254:9 | try {...} ... |
2726-
| pre | cflow.cs:153:9:155:9 | {...} | cflow.cs:249:17:249:40 | Double temp = ... |
2727-
| pre | cflow.cs:153:9:155:9 | {...} | cflow.cs:249:24:249:40 | ... / ... |
2728-
| pre | cflow.cs:153:9:155:9 | {...} | cflow.cs:251:9:254:9 | catch {...} |
27292714
| pre | cflow.cs:159:13:159:37 | call to method WriteLine | cflow.cs:159:13:159:37 | call to method WriteLine |
27302715
| pre | cflow.cs:159:13:159:37 | call to method WriteLine | cflow.cs:160:13:160:19 | return ...; |
27312716
| pre | cflow.cs:159:13:159:37 | call to method WriteLine | cflow.cs:162:9:165:9 | [exception: Exception] catch (...) {...} |
@@ -2805,9 +2790,6 @@
28052790
| pre | cflow.cs:178:9:179:9 | {...} | cflow.cs:244:17:244:37 | [finally: exception(OutOfMemoryException)] ...; |
28062791
| pre | cflow.cs:178:9:179:9 | {...} | cflow.cs:244:17:244:37 | [finally: return] ...; |
28072792
| pre | cflow.cs:178:9:179:9 | {...} | cflow.cs:247:9:254:9 | try {...} ... |
2808-
| pre | cflow.cs:178:9:179:9 | {...} | cflow.cs:249:17:249:40 | Double temp = ... |
2809-
| pre | cflow.cs:178:9:179:9 | {...} | cflow.cs:249:24:249:40 | ... / ... |
2810-
| pre | cflow.cs:178:9:179:9 | {...} | cflow.cs:251:9:254:9 | catch {...} |
28112793
| pre | cflow.cs:191:13:191:37 | call to method WriteLine | cflow.cs:191:13:191:37 | call to method WriteLine |
28122794
| pre | cflow.cs:191:13:191:37 | call to method WriteLine | cflow.cs:192:13:192:19 | return ...; |
28132795
| pre | cflow.cs:191:13:191:37 | call to method WriteLine | cflow.cs:194:9:197:9 | [exception: Exception] catch (...) {...} |
@@ -2874,9 +2856,6 @@
28742856
| pre | cflow.cs:199:9:200:9 | {...} | cflow.cs:244:17:244:37 | [finally: exception(OutOfMemoryException)] ...; |
28752857
| pre | cflow.cs:199:9:200:9 | {...} | cflow.cs:244:17:244:37 | [finally: return] ...; |
28762858
| pre | cflow.cs:199:9:200:9 | {...} | cflow.cs:247:9:254:9 | try {...} ... |
2877-
| pre | cflow.cs:199:9:200:9 | {...} | cflow.cs:249:17:249:40 | Double temp = ... |
2878-
| pre | cflow.cs:199:9:200:9 | {...} | cflow.cs:249:24:249:40 | ... / ... |
2879-
| pre | cflow.cs:199:9:200:9 | {...} | cflow.cs:251:9:254:9 | catch {...} |
28802859
| pre | cflow.cs:202:9:204:9 | [finally: exception(Exception)] {...} | cflow.cs:202:9:204:9 | [finally: exception(Exception)] {...} |
28812860
| pre | cflow.cs:202:9:204:9 | [finally: exception(OutOfMemoryException)] {...} | cflow.cs:202:9:204:9 | [finally: exception(OutOfMemoryException)] {...} |
28822861
| pre | cflow.cs:207:16:207:16 | access to local variable i | cflow.cs:207:16:207:16 | access to local variable i |
@@ -2928,9 +2907,6 @@
29282907
| pre | cflow.cs:207:16:207:16 | access to local variable i | cflow.cs:244:17:244:37 | [finally: exception(OutOfMemoryException)] ...; |
29292908
| pre | cflow.cs:207:16:207:16 | access to local variable i | cflow.cs:244:17:244:37 | [finally: return] ...; |
29302909
| pre | cflow.cs:207:16:207:16 | access to local variable i | cflow.cs:247:9:254:9 | try {...} ... |
2931-
| pre | cflow.cs:207:16:207:16 | access to local variable i | cflow.cs:249:17:249:40 | Double temp = ... |
2932-
| pre | cflow.cs:207:16:207:16 | access to local variable i | cflow.cs:249:24:249:40 | ... / ... |
2933-
| pre | cflow.cs:207:16:207:16 | access to local variable i | cflow.cs:251:9:254:9 | catch {...} |
29342910
| pre | cflow.cs:208:9:230:9 | {...} | cflow.cs:208:9:230:9 | {...} |
29352911
| pre | cflow.cs:208:9:230:9 | {...} | cflow.cs:212:21:212:27 | return ...; |
29362912
| pre | cflow.cs:208:9:230:9 | {...} | cflow.cs:213:17:214:29 | if (...) ... |
@@ -3035,9 +3011,6 @@
30353011
| pre | cflow.cs:232:9:245:9 | try {...} ... | cflow.cs:244:17:244:37 | [finally: exception(OutOfMemoryException)] ...; |
30363012
| pre | cflow.cs:232:9:245:9 | try {...} ... | cflow.cs:244:17:244:37 | [finally: return] ...; |
30373013
| pre | cflow.cs:232:9:245:9 | try {...} ... | cflow.cs:247:9:254:9 | try {...} ... |
3038-
| pre | cflow.cs:232:9:245:9 | try {...} ... | cflow.cs:249:17:249:40 | Double temp = ... |
3039-
| pre | cflow.cs:232:9:245:9 | try {...} ... | cflow.cs:249:24:249:40 | ... / ... |
3040-
| pre | cflow.cs:232:9:245:9 | try {...} ... | cflow.cs:251:9:254:9 | catch {...} |
30413014
| pre | cflow.cs:234:17:234:28 | access to property Length | cflow.cs:234:17:234:28 | access to property Length |
30423015
| pre | cflow.cs:234:17:234:28 | access to property Length | cflow.cs:234:33:234:33 | 0 |
30433016
| pre | cflow.cs:234:17:234:28 | access to property Length | cflow.cs:235:17:235:23 | return ...; |
@@ -3061,9 +3034,6 @@
30613034
| pre | cflow.cs:234:17:234:28 | access to property Length | cflow.cs:244:17:244:37 | [finally: exception(OutOfMemoryException)] ...; |
30623035
| pre | cflow.cs:234:17:234:28 | access to property Length | cflow.cs:244:17:244:37 | [finally: return] ...; |
30633036
| pre | cflow.cs:234:17:234:28 | access to property Length | cflow.cs:247:9:254:9 | try {...} ... |
3064-
| pre | cflow.cs:234:17:234:28 | access to property Length | cflow.cs:249:17:249:40 | Double temp = ... |
3065-
| pre | cflow.cs:234:17:234:28 | access to property Length | cflow.cs:249:24:249:40 | ... / ... |
3066-
| pre | cflow.cs:234:17:234:28 | access to property Length | cflow.cs:251:9:254:9 | catch {...} |
30673037
| pre | cflow.cs:234:33:234:33 | 0 | cflow.cs:234:33:234:33 | 0 |
30683038
| pre | cflow.cs:234:33:234:33 | 0 | cflow.cs:235:17:235:23 | return ...; |
30693039
| pre | cflow.cs:234:33:234:33 | 0 | cflow.cs:236:13:237:49 | if (...) ... |
@@ -3082,9 +3052,6 @@
30823052
| pre | cflow.cs:234:33:234:33 | 0 | cflow.cs:244:17:244:37 | [finally: exception(OutOfMemoryException)] ...; |
30833053
| pre | cflow.cs:234:33:234:33 | 0 | cflow.cs:244:17:244:37 | [finally: return] ...; |
30843054
| pre | cflow.cs:234:33:234:33 | 0 | cflow.cs:247:9:254:9 | try {...} ... |
3085-
| pre | cflow.cs:234:33:234:33 | 0 | cflow.cs:249:17:249:40 | Double temp = ... |
3086-
| pre | cflow.cs:234:33:234:33 | 0 | cflow.cs:249:24:249:40 | ... / ... |
3087-
| pre | cflow.cs:234:33:234:33 | 0 | cflow.cs:251:9:254:9 | catch {...} |
30883055
| pre | cflow.cs:235:17:235:23 | return ...; | cflow.cs:235:17:235:23 | return ...; |
30893056
| pre | cflow.cs:235:17:235:23 | return ...; | cflow.cs:242:17:242:41 | [finally: return] ...; |
30903057
| pre | cflow.cs:235:17:235:23 | return ...; | cflow.cs:243:13:244:37 | [finally: return] if (...) ... |
@@ -3102,9 +3069,6 @@
31023069
| pre | cflow.cs:236:13:237:49 | if (...) ... | cflow.cs:244:17:244:37 | ...; |
31033070
| pre | cflow.cs:236:13:237:49 | if (...) ... | cflow.cs:244:17:244:37 | [finally: exception(OutOfMemoryException)] ...; |
31043071
| pre | cflow.cs:236:13:237:49 | if (...) ... | cflow.cs:247:9:254:9 | try {...} ... |
3105-
| pre | cflow.cs:236:13:237:49 | if (...) ... | cflow.cs:249:17:249:40 | Double temp = ... |
3106-
| pre | cflow.cs:236:13:237:49 | if (...) ... | cflow.cs:249:24:249:40 | ... / ... |
3107-
| pre | cflow.cs:236:13:237:49 | if (...) ... | cflow.cs:251:9:254:9 | catch {...} |
31083072
| pre | cflow.cs:236:17:236:28 | access to property Length | cflow.cs:236:17:236:28 | access to property Length |
31093073
| pre | cflow.cs:236:17:236:28 | access to property Length | cflow.cs:236:33:236:33 | 1 |
31103074
| pre | cflow.cs:236:17:236:28 | access to property Length | cflow.cs:237:17:237:49 | throw ...; |
@@ -3117,9 +3081,6 @@
31173081
| pre | cflow.cs:236:17:236:28 | access to property Length | cflow.cs:244:17:244:37 | ...; |
31183082
| pre | cflow.cs:236:17:236:28 | access to property Length | cflow.cs:244:17:244:37 | [finally: exception(OutOfMemoryException)] ...; |
31193083
| pre | cflow.cs:236:17:236:28 | access to property Length | cflow.cs:247:9:254:9 | try {...} ... |
3120-
| pre | cflow.cs:236:17:236:28 | access to property Length | cflow.cs:249:17:249:40 | Double temp = ... |
3121-
| pre | cflow.cs:236:17:236:28 | access to property Length | cflow.cs:249:24:249:40 | ... / ... |
3122-
| pre | cflow.cs:236:17:236:28 | access to property Length | cflow.cs:251:9:254:9 | catch {...} |
31233084
| pre | cflow.cs:236:33:236:33 | 1 | cflow.cs:236:33:236:33 | 1 |
31243085
| pre | cflow.cs:236:33:236:33 | 1 | cflow.cs:237:17:237:49 | throw ...; |
31253086
| pre | cflow.cs:236:33:236:33 | 1 | cflow.cs:237:23:237:48 | object creation of type OutOfMemoryException |
@@ -3131,9 +3092,6 @@
31313092
| pre | cflow.cs:236:33:236:33 | 1 | cflow.cs:244:17:244:37 | ...; |
31323093
| pre | cflow.cs:236:33:236:33 | 1 | cflow.cs:244:17:244:37 | [finally: exception(OutOfMemoryException)] ...; |
31333094
| pre | cflow.cs:236:33:236:33 | 1 | cflow.cs:247:9:254:9 | try {...} ... |
3134-
| pre | cflow.cs:236:33:236:33 | 1 | cflow.cs:249:17:249:40 | Double temp = ... |
3135-
| pre | cflow.cs:236:33:236:33 | 1 | cflow.cs:249:24:249:40 | ... / ... |
3136-
| pre | cflow.cs:236:33:236:33 | 1 | cflow.cs:251:9:254:9 | catch {...} |
31373095
| pre | cflow.cs:237:17:237:49 | throw ...; | cflow.cs:237:17:237:49 | throw ...; |
31383096
| pre | cflow.cs:237:17:237:49 | throw ...; | cflow.cs:242:17:242:41 | [finally: exception(OutOfMemoryException)] ...; |
31393097
| pre | cflow.cs:237:17:237:49 | throw ...; | cflow.cs:243:13:244:37 | [finally: exception(OutOfMemoryException)] if (...) ... |
@@ -3156,9 +3114,6 @@
31563114
| pre | cflow.cs:240:9:245:9 | {...} | cflow.cs:243:13:244:37 | if (...) ... |
31573115
| pre | cflow.cs:240:9:245:9 | {...} | cflow.cs:244:17:244:37 | ...; |
31583116
| pre | cflow.cs:240:9:245:9 | {...} | cflow.cs:247:9:254:9 | try {...} ... |
3159-
| pre | cflow.cs:240:9:245:9 | {...} | cflow.cs:249:17:249:40 | Double temp = ... |
3160-
| pre | cflow.cs:240:9:245:9 | {...} | cflow.cs:249:24:249:40 | ... / ... |
3161-
| pre | cflow.cs:240:9:245:9 | {...} | cflow.cs:251:9:254:9 | catch {...} |
31623117
| pre | cflow.cs:242:17:242:41 | ...; | cflow.cs:242:17:242:41 | ...; |
31633118
| pre | cflow.cs:242:17:242:41 | [finally: exception(Exception)] ...; | cflow.cs:242:17:242:41 | [finally: exception(Exception)] ...; |
31643119
| pre | cflow.cs:242:17:242:41 | [finally: exception(NullReferenceException)] ...; | cflow.cs:242:17:242:41 | [finally: exception(NullReferenceException)] ...; |
@@ -3175,22 +3130,12 @@
31753130
| pre | cflow.cs:243:13:244:37 | if (...) ... | cflow.cs:243:13:244:37 | if (...) ... |
31763131
| pre | cflow.cs:243:13:244:37 | if (...) ... | cflow.cs:244:17:244:37 | ...; |
31773132
| pre | cflow.cs:243:13:244:37 | if (...) ... | cflow.cs:247:9:254:9 | try {...} ... |
3178-
| pre | cflow.cs:243:13:244:37 | if (...) ... | cflow.cs:249:17:249:40 | Double temp = ... |
3179-
| pre | cflow.cs:243:13:244:37 | if (...) ... | cflow.cs:249:24:249:40 | ... / ... |
3180-
| pre | cflow.cs:243:13:244:37 | if (...) ... | cflow.cs:251:9:254:9 | catch {...} |
31813133
| pre | cflow.cs:244:17:244:37 | ...; | cflow.cs:244:17:244:37 | ...; |
31823134
| pre | cflow.cs:244:17:244:37 | [finally: exception(Exception)] ...; | cflow.cs:244:17:244:37 | [finally: exception(Exception)] ...; |
31833135
| pre | cflow.cs:244:17:244:37 | [finally: exception(NullReferenceException)] ...; | cflow.cs:244:17:244:37 | [finally: exception(NullReferenceException)] ...; |
31843136
| pre | cflow.cs:244:17:244:37 | [finally: exception(OutOfMemoryException)] ...; | cflow.cs:244:17:244:37 | [finally: exception(OutOfMemoryException)] ...; |
31853137
| pre | cflow.cs:244:17:244:37 | [finally: return] ...; | cflow.cs:244:17:244:37 | [finally: return] ...; |
31863138
| pre | cflow.cs:247:9:254:9 | try {...} ... | cflow.cs:247:9:254:9 | try {...} ... |
3187-
| pre | cflow.cs:247:9:254:9 | try {...} ... | cflow.cs:249:17:249:40 | Double temp = ... |
3188-
| pre | cflow.cs:247:9:254:9 | try {...} ... | cflow.cs:249:24:249:40 | ... / ... |
3189-
| pre | cflow.cs:247:9:254:9 | try {...} ... | cflow.cs:251:9:254:9 | catch {...} |
3190-
| pre | cflow.cs:249:17:249:40 | Double temp = ... | cflow.cs:249:17:249:40 | Double temp = ... |
3191-
| pre | cflow.cs:249:24:249:40 | ... / ... | cflow.cs:249:17:249:40 | Double temp = ... |
3192-
| pre | cflow.cs:249:24:249:40 | ... / ... | cflow.cs:249:24:249:40 | ... / ... |
3193-
| pre | cflow.cs:251:9:254:9 | catch {...} | cflow.cs:251:9:254:9 | catch {...} |
31943139
| pre | cflow.cs:257:10:257:12 | enter For | cflow.cs:257:10:257:12 | enter For |
31953140
| pre | cflow.cs:257:10:257:12 | enter For | cflow.cs:257:10:257:12 | exit For |
31963141
| pre | cflow.cs:257:10:257:12 | enter For | cflow.cs:260:16:260:16 | access to local variable x |

csharp/ql/test/library-tests/controlflow/graph/ConditionBlock.expected

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -529,9 +529,6 @@
529529
| cflow.cs:234:17:234:33 | ... == ... | cflow.cs:244:17:244:37 | [finally: exception(OutOfMemoryException)] ...; | false |
530530
| cflow.cs:234:17:234:33 | ... == ... | cflow.cs:244:17:244:37 | [finally: return] ...; | true |
531531
| cflow.cs:234:17:234:33 | ... == ... | cflow.cs:247:9:254:9 | try {...} ... | false |
532-
| cflow.cs:234:17:234:33 | ... == ... | cflow.cs:249:17:249:40 | Double temp = ... | false |
533-
| cflow.cs:234:17:234:33 | ... == ... | cflow.cs:249:24:249:40 | ... / ... | false |
534-
| cflow.cs:234:17:234:33 | ... == ... | cflow.cs:251:9:254:9 | catch {...} | false |
535532
| cflow.cs:236:17:236:33 | ... == ... | cflow.cs:237:17:237:49 | throw ...; | true |
536533
| cflow.cs:236:17:236:33 | ... == ... | cflow.cs:237:23:237:48 | object creation of type OutOfMemoryException | true |
537534
| cflow.cs:236:17:236:33 | ... == ... | cflow.cs:240:9:245:9 | {...} | false |
@@ -542,9 +539,6 @@
542539
| cflow.cs:236:17:236:33 | ... == ... | cflow.cs:244:17:244:37 | ...; | false |
543540
| cflow.cs:236:17:236:33 | ... == ... | cflow.cs:244:17:244:37 | [finally: exception(OutOfMemoryException)] ...; | true |
544541
| cflow.cs:236:17:236:33 | ... == ... | cflow.cs:247:9:254:9 | try {...} ... | false |
545-
| cflow.cs:236:17:236:33 | ... == ... | cflow.cs:249:17:249:40 | Double temp = ... | false |
546-
| cflow.cs:236:17:236:33 | ... == ... | cflow.cs:249:24:249:40 | ... / ... | false |
547-
| cflow.cs:236:17:236:33 | ... == ... | cflow.cs:251:9:254:9 | catch {...} | false |
548542
| cflow.cs:241:19:241:35 | ... == ... | cflow.cs:242:17:242:41 | ...; | false |
549543
| cflow.cs:241:19:241:35 | [finally: exception(Exception)] ... == ... | cflow.cs:242:17:242:41 | [finally: exception(Exception)] ...; | false |
550544
| cflow.cs:241:19:241:35 | [finally: exception(NullReferenceException)] ... == ... | cflow.cs:242:17:242:41 | [finally: exception(NullReferenceException)] ...; | false |

0 commit comments

Comments
 (0)