Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c3a62b3

Browse files
committed
C#: Always inline ControlFlowElement::[reachableFrom|getAReachableElement]()
1 parent a382a58 commit c3a62b3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

csharp/ql/src/semmle/code/csharp/controlflow/ControlFlowElement.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,13 @@ class ControlFlowElement extends ExprOrStmtParent, @control_flow_element {
5151
predicate isLive() { exists(this.getAControlFlowNode()) }
5252

5353
/** Holds if the current element is reachable from `src`. */
54+
// potentially very large predicate, so must be inlined
55+
pragma[inline]
5456
predicate reachableFrom(ControlFlowElement src) { this = src.getAReachableElement() }
5557

5658
/** Gets an element that is reachable from this element. */
59+
// potentially very large predicate, so must be inlined
60+
pragma[inline]
5761
ControlFlowElement getAReachableElement() {
5862
// Reachable in same basic block
5963
exists(BasicBlock bb, int i, int j |

0 commit comments

Comments
 (0)