We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b830fa commit a98d93bCopy full SHA for a98d93b
java/ql/lib/semmle/code/java/controlflow/BasicBlocks.qll
@@ -79,6 +79,14 @@ class BasicBlock extends BbImpl::BasicBlock {
79
/** Gets the immediately enclosing callable whose body contains this node. */
80
Callable getEnclosingCallable() { result = this.getScope() }
81
82
+ /**
83
+ * Holds if this basic block dominates basic block `bb`.
84
+ *
85
+ * That is, all paths reaching `bb` from the entry point basic block must
86
+ * go through this basic block.
87
+ */
88
+ predicate dominates(BasicBlock bb) { super.dominates(bb) }
89
+
90
/**
91
* DEPRECATED: Use `getASuccessor` instead.
92
*
0 commit comments