@@ -24,7 +24,7 @@ class IRBlockBase extends TIRBlock {
2424 final string toString ( ) { result = getFirstInstruction ( this ) .toString ( ) }
2525
2626 /** Gets the source location of the first non-`Phi` instruction in this block. */
27- final Language:: Location getLocation ( ) { result = getFirstInstruction ( ) .getLocation ( ) }
27+ final Language:: Location getLocation ( ) { result = this . getFirstInstruction ( ) .getLocation ( ) }
2828
2929 /**
3030 * INTERNAL: Do not use.
@@ -39,7 +39,7 @@ class IRBlockBase extends TIRBlock {
3939 ) and
4040 this =
4141 rank [ result + 1 ] ( IRBlock funcBlock , int sortOverride , int sortKey1 , int sortKey2 |
42- funcBlock .getEnclosingFunction ( ) = getEnclosingFunction ( ) and
42+ funcBlock .getEnclosingFunction ( ) = this . getEnclosingFunction ( ) and
4343 funcBlock .getFirstInstruction ( ) .hasSortKeys ( sortKey1 , sortKey2 ) and
4444 // Ensure that the block containing `EnterFunction` always comes first.
4545 if funcBlock .getFirstInstruction ( ) instanceof EnterFunctionInstruction
@@ -59,15 +59,15 @@ class IRBlockBase extends TIRBlock {
5959 * Get the `Phi` instructions that appear at the start of this block.
6060 */
6161 final PhiInstruction getAPhiInstruction ( ) {
62- Construction:: getPhiInstructionBlockStart ( result ) = getFirstInstruction ( )
62+ Construction:: getPhiInstructionBlockStart ( result ) = this . getFirstInstruction ( )
6363 }
6464
6565 /**
6666 * Gets an instruction in this block. This includes `Phi` instructions.
6767 */
6868 final Instruction getAnInstruction ( ) {
69- result = getInstruction ( _) or
70- result = getAPhiInstruction ( )
69+ result = this . getInstruction ( _) or
70+ result = this . getAPhiInstruction ( )
7171 }
7272
7373 /**
@@ -78,7 +78,9 @@ class IRBlockBase extends TIRBlock {
7878 /**
7979 * Gets the last instruction in this block.
8080 */
81- final Instruction getLastInstruction ( ) { result = getInstruction ( getInstructionCount ( ) - 1 ) }
81+ final Instruction getLastInstruction ( ) {
82+ result = this .getInstruction ( this .getInstructionCount ( ) - 1 )
83+ }
8284
8385 /**
8486 * Gets the number of non-`Phi` instructions in this block.
@@ -149,7 +151,7 @@ class IRBlock extends IRBlockBase {
149151 * Block `A` dominates block `B` if any control flow path from the entry block of the function to
150152 * block `B` must pass through block `A`. A block always dominates itself.
151153 */
152- final predicate dominates ( IRBlock block ) { strictlyDominates ( block ) or this = block }
154+ final predicate dominates ( IRBlock block ) { this . strictlyDominates ( block ) or this = block }
153155
154156 /**
155157 * Gets a block on the dominance frontier of this block.
@@ -159,8 +161,8 @@ class IRBlock extends IRBlockBase {
159161 */
160162 pragma [ noinline]
161163 final IRBlock dominanceFrontier ( ) {
162- dominates ( result .getAPredecessor ( ) ) and
163- not strictlyDominates ( result )
164+ this . dominates ( result .getAPredecessor ( ) ) and
165+ not this . strictlyDominates ( result )
164166 }
165167
166168 /**
@@ -189,7 +191,7 @@ class IRBlock extends IRBlockBase {
189191 * Block `A` post-dominates block `B` if any control flow path from `B` to the exit block of the
190192 * function must pass through block `A`. A block always post-dominates itself.
191193 */
192- final predicate postDominates ( IRBlock block ) { strictlyPostDominates ( block ) or this = block }
194+ final predicate postDominates ( IRBlock block ) { this . strictlyPostDominates ( block ) or this = block }
193195
194196 /**
195197 * Gets a block on the post-dominance frontier of this block.
@@ -199,16 +201,16 @@ class IRBlock extends IRBlockBase {
199201 */
200202 pragma [ noinline]
201203 final IRBlock postPominanceFrontier ( ) {
202- postDominates ( result .getASuccessor ( ) ) and
203- not strictlyPostDominates ( result )
204+ this . postDominates ( result .getASuccessor ( ) ) and
205+ not this . strictlyPostDominates ( result )
204206 }
205207
206208 /**
207209 * Holds if this block is reachable from the entry block of its function.
208210 */
209211 final predicate isReachableFromFunctionEntry ( ) {
210- this = getEnclosingIRFunction ( ) .getEntryBlock ( ) or
211- getAPredecessor ( ) .isReachableFromFunctionEntry ( )
212+ this = this . getEnclosingIRFunction ( ) .getEntryBlock ( ) or
213+ this . getAPredecessor ( ) .isReachableFromFunctionEntry ( )
212214 }
213215}
214216
0 commit comments