File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,7 @@ private module Input implements BB::InputSig<Location> {
4242
4343private module BbImpl = BB:: Make< Location , Input > ;
4444
45- class BasicBlock extends BbImpl:: BasicBlock {
46- /** Gets the innermost function or file to which this basic block belongs. */
47- ControlFlow:: Root getRoot ( ) { result = this .getScope ( ) }
48- }
45+ class BasicBlock = BbImpl:: BasicBlock ;
4946
5047class EntryBasicBlock = BbImpl:: EntryBasicBlock ;
5148
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ class SsaDefinition extends TSsaDefinition {
144144 abstract string prettyPrintRef ( ) ;
145145
146146 /** Gets the innermost function or file to which this SSA definition belongs. */
147- ControlFlow:: Root getRoot ( ) { result = this .getBasicBlock ( ) .getRoot ( ) }
147+ ControlFlow:: Root getRoot ( ) { result = this .getBasicBlock ( ) .getScope ( ) }
148148
149149 /** Gets a textual representation of this element. */
150150 string toString ( ) { result = this .prettyPrintDef ( ) }
Original file line number Diff line number Diff line change @@ -86,15 +86,15 @@ private module Internal {
8686
8787 /** Holds if the `i`th node of `bb` in function `f` is an entry node. */
8888 private predicate entryNode ( FuncDef f , ReachableBasicBlock bb , int i ) {
89- f = bb .getRoot ( ) and
89+ f = bb .getScope ( ) and
9090 bb .getNode ( i ) .isEntryNode ( )
9191 }
9292
9393 /**
9494 * Holds if the `i`th node of `bb` in function `f` is a function call.
9595 */
9696 private predicate callNode ( FuncDef f , ReachableBasicBlock bb , int i ) {
97- f = bb .getRoot ( ) and
97+ f = bb .getScope ( ) and
9898 bb .getNode ( i ) .( IR:: EvalInstruction ) .getExpr ( ) instanceof CallExpr
9999 }
100100
You can’t perform that action at this time.
0 commit comments