BasicBlock: Replace entryBlock predicate with subclass.

This commit is contained in:
Anders Schack-Mulligen
2025-09-01 11:47:33 +02:00
parent e2eb6dbbf2
commit 09b2c5abf0
13 changed files with 54 additions and 29 deletions

View File

@@ -628,7 +628,7 @@ module Flow<
/** Holds if `cc` needs a definition at the entry of its callable scope. */
private predicate entryDef(CaptureContainer cc, BasicBlock bb, int i) {
exists(Callable c |
Cfg::entryBlock(bb) and
bb instanceof Cfg::EntryBasicBlock and
pragma[only_bind_out](bb.getEnclosingCallable()) = c and
i =
min(int j |