File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
csharp/ql/lib/semmle/code/csharp/dataflow/internal/rangeanalysis Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -89,14 +89,12 @@ private module Impl {
89
89
}
90
90
91
91
/** An expression whose value may control the execution of another element. */
92
- class Guard extends Expr {
93
- Guard ( ) { this instanceof G:: Guard }
94
-
92
+ class Guard extends Expr instanceof G:: Guard {
95
93
/**
96
94
* Holds if basic block `bb` is guarded by this guard having value `v`.
97
95
*/
98
96
predicate controlsBasicBlock ( ControlFlow:: BasicBlock bb , G:: AbstractValue v ) {
99
- this . ( G :: Guard ) .controlsBasicBlock ( bb , v )
97
+ super .controlsBasicBlock ( bb , v )
100
98
}
101
99
102
100
/**
@@ -108,7 +106,7 @@ private module Impl {
108
106
exists ( Expr e1_ , Expr e2_ |
109
107
e1 = unique( ExprNode cfn | hasChild ( this , e1_ , _, cfn ) | cfn ) and
110
108
e2 = unique( ExprNode cfn | hasChild ( this , e2_ , _, cfn ) | cfn ) and
111
- this . ( G :: Guard ) .isEquality ( e1_ , e2_ , polarity )
109
+ super .isEquality ( e1_ , e2_ , polarity )
112
110
)
113
111
}
114
112
}
You can’t perform that action at this time.
0 commit comments