@@ -24,13 +24,7 @@ private module GuardsInput implements
2424
2525 class AstNode = G:: AstNode ;
2626
27- class Expr extends G:: Expr {
28- /** Gets the associated control flow node. */
29- CfgImpl:: Cfg:: ControlFlowNode getControlFlowNode ( ) { result = IR:: evalExprInstruction ( this ) }
30-
31- /** Gets the basic block containing this expression. */
32- CfgImpl:: Cfg:: BasicBlock getBasicBlock ( ) { result = this .getControlFlowNode ( ) .getBasicBlock ( ) }
33- }
27+ class Expr = G:: Expr ;
3428
3529 predicate booleanOutcomeBlock ( Expr guard , CfgImpl:: Cfg:: BasicBlock outcomeBlock , boolean branch ) {
3630 exists ( CfgImpl:: Cfg:: ControlFlowNode outcomeNode |
@@ -204,20 +198,11 @@ private module GuardsInput implements
204198 )
205199 }
206200
207- class AndExpr extends Expr instanceof G:: LandExpr {
208- /** Gets an operand of this expression. */
209- Expr getAnOperand ( ) { result = super .getAnOperand ( ) }
210- }
201+ class AndExpr = G:: LandExpr ;
211202
212- class OrExpr extends Expr instanceof G:: LorExpr {
213- /** Gets an operand of this expression. */
214- Expr getAnOperand ( ) { result = super .getAnOperand ( ) }
215- }
203+ class OrExpr = G:: LorExpr ;
216204
217- class NotExpr extends Expr instanceof G:: NotExpr {
218- /** Gets the operand of this expression. */
219- Expr getOperand ( ) { result = super .getOperand ( ) }
220- }
205+ class NotExpr = G:: NotExpr ;
221206
222207 private predicate sameNumericTypeFamily ( G:: NumericType source , G:: NumericType target ) {
223208 source instanceof G:: SignedIntegerType and target instanceof G:: SignedIntegerType
0 commit comments