Skip to content

Commit 85c5bda

Browse files
committed
Python: Add overlay[caller] to pragma[inline] predicates
1 parent 6ebaff3 commit 85c5bda

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/ql/lib/semmle/python/Flow.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ class ControlFlowNode extends @py_flow_node {
194194
predicate isNormalExit() { py_scope_flow(this, _, 0) or py_scope_flow(this, _, 2) }
195195

196196
/** Whether this strictly dominates other. */
197+
overlay[caller]
197198
pragma[inline]
198199
predicate strictlyDominates(ControlFlowNode other) {
199200
// This predicate is gigantic, so it must be inlined.
@@ -207,6 +208,7 @@ class ControlFlowNode extends @py_flow_node {
207208
* Whether this dominates other.
208209
* Note that all nodes dominate themselves.
209210
*/
211+
overlay[caller]
210212
pragma[inline]
211213
predicate dominates(ControlFlowNode other) {
212214
// This predicate is gigantic, so it must be inlined.
@@ -216,6 +218,7 @@ class ControlFlowNode extends @py_flow_node {
216218
}
217219

218220
/** Whether this strictly reaches other. */
221+
overlay[caller]
219222
pragma[inline]
220223
predicate strictlyReaches(ControlFlowNode other) {
221224
// This predicate is gigantic, even larger than strictlyDominates,

0 commit comments

Comments
 (0)