Skip to content

Commit 2111bf5

Browse files
committed
C++ IR: getAnyDef -> getDef in RangeAnalysis
1 parent c62f73e commit 2111bf5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cpp/ql/src/semmle/code/cpp/rangeanalysis/RangeAnalysis.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ private predicate boundedNonPhiOperand(NonPhiOperand op, Bound b, int delta, boo
353353
delta = d1 + d2
354354
)
355355
or
356-
boundedInstruction(op.getAnyDef(), b, delta, upper, fromBackEdge, origdelta, reason)
356+
boundedInstruction(op.getDef(), b, delta, upper, fromBackEdge, origdelta, reason)
357357
or
358358
exists(int d, Reason r1, Reason r2 |
359359
boundedNonPhiOperand(op, b, d, upper, fromBackEdge, origdelta, r2)
@@ -379,7 +379,7 @@ private predicate boundedNonPhiOperand(NonPhiOperand op, Bound b, int delta, boo
379379
private predicate boundFlowStepPhi(
380380
PhiInputOperand op2, Operand op1, int delta, boolean upper, Reason reason
381381
) {
382-
op2.getAnyDef().(CopyInstruction).getSourceValueOperand() = op1 and
382+
op2.getDef().(CopyInstruction).getSourceValueOperand() = op1 and
383383
(upper = true or upper = false) and
384384
reason = TNoReason() and
385385
delta = 0
@@ -403,10 +403,10 @@ private predicate boundedPhiOperand(
403403
(if r1 instanceof NoReason then reason = r2 else reason = r1)
404404
)
405405
or
406-
boundedInstruction(op.getAnyDef(), b, delta, upper, fromBackEdge, origdelta, reason)
406+
boundedInstruction(op.getDef(), b, delta, upper, fromBackEdge, origdelta, reason)
407407
or
408408
exists(int d, Reason r1, Reason r2 |
409-
boundedInstruction(op.getAnyDef(), b, d, upper, fromBackEdge, origdelta, r2)
409+
boundedInstruction(op.getDef(), b, d, upper, fromBackEdge, origdelta, r2)
410410
|
411411
unequalOperand(op, b, d, r1) and
412412
(
@@ -476,7 +476,7 @@ private predicate boundedPhiInp(
476476
exists(int d, boolean fromBackEdge0 |
477477
boundedPhiOperand(op, b, d, upper, fromBackEdge0, origdelta, reason)
478478
or
479-
b.(ValueNumberBound).getInstruction() = op.getAnyDef() and
479+
b.(ValueNumberBound).getInstruction() = op.getDef() and
480480
d = 0 and
481481
(upper = true or upper = false) and
482482
fromBackEdge0 = false and

0 commit comments

Comments
 (0)