@@ -91,21 +91,6 @@ abstract class Configuration extends string {
91
91
/** Holds if data flow out of `node` is prohibited. */
92
92
predicate isBarrierOut ( Node node ) { none ( ) }
93
93
94
- /**
95
- * DEPRECATED: Use `isBarrier` and `BarrierGuard` module instead.
96
- *
97
- * Holds if data flow through nodes guarded by `guard` is prohibited.
98
- */
99
- deprecated predicate isBarrierGuard ( BarrierGuard guard ) { none ( ) }
100
-
101
- /**
102
- * DEPRECATED: Use `isBarrier` and `BarrierGuard` module instead.
103
- *
104
- * Holds if data flow through nodes guarded by `guard` is prohibited when
105
- * the flow state is `state`
106
- */
107
- deprecated predicate isBarrierGuard ( BarrierGuard guard , FlowState state ) { none ( ) }
108
-
109
94
/**
110
95
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
111
96
*/
@@ -225,29 +210,6 @@ abstract private class ConfigurationRecursionPrevention extends Configuration {
225
210
}
226
211
}
227
212
228
- /** A bridge class to access the deprecated `isBarrierGuard`. */
229
- private class BarrierGuardGuardedNodeBridge extends Unit {
230
- abstract predicate guardedNode ( Node n , Configuration config ) ;
231
-
232
- abstract predicate guardedNode ( Node n , FlowState state , Configuration config ) ;
233
- }
234
-
235
- private class BarrierGuardGuardedNode extends BarrierGuardGuardedNodeBridge {
236
- deprecated override predicate guardedNode ( Node n , Configuration config ) {
237
- exists ( BarrierGuard g |
238
- config .isBarrierGuard ( g ) and
239
- n = g .getAGuardedNode ( )
240
- )
241
- }
242
-
243
- deprecated override predicate guardedNode ( Node n , FlowState state , Configuration config ) {
244
- exists ( BarrierGuard g |
245
- config .isBarrierGuard ( g , state ) and
246
- n = g .getAGuardedNode ( )
247
- )
248
- }
249
- }
250
-
251
213
private FlowState relevantState ( Configuration config ) {
252
214
config .isSource ( _, result ) or
253
215
config .isSink ( _, result ) or
@@ -288,9 +250,7 @@ private module Config implements FullStateConfigSig {
288
250
289
251
predicate isBarrier ( Node node , FlowState state ) {
290
252
getConfig ( state ) .isBarrier ( node , getState ( state ) ) or
291
- getConfig ( state ) .isBarrier ( node ) or
292
- any ( BarrierGuardGuardedNodeBridge b ) .guardedNode ( node , getState ( state ) , getConfig ( state ) ) or
293
- any ( BarrierGuardGuardedNodeBridge b ) .guardedNode ( node , getConfig ( state ) )
253
+ getConfig ( state ) .isBarrier ( node )
294
254
}
295
255
296
256
predicate isBarrierIn ( Node node ) { any ( Configuration config ) .isBarrierIn ( node ) }
0 commit comments