Skip to content

Commit 8b6c940

Browse files
committed
Rangeanalysis: Remove superfluous ignoreSsaReadAssignment.
1 parent 6d6f89e commit 8b6c940

File tree

5 files changed

+1
-28
lines changed

5 files changed

+1
-28
lines changed

cpp/ql/lib/semmle/code/cpp/rangeanalysis/new/internal/semantic/analysis/RangeAnalysisConstantSpecific.qll

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,6 @@ module CppLangImplConstant implements LangSig<Sem, FloatDelta> {
3232
*/
3333
predicate ignoreZeroLowerBound(SemExpr e) { none() }
3434

35-
/**
36-
* Holds if the specified variable should be excluded from the result of `ssaRead()`.
37-
*
38-
* This predicate is to keep the results identical to the original Java implementation. It should be
39-
* removed once we have the new implementation matching the old results exactly.
40-
*/
41-
predicate ignoreSsaReadAssignment(SemSsaVariable v) { none() }
42-
4335
/**
4436
* Adds additional results to `ssaRead()` that are specific to Java.
4537
*

cpp/ql/lib/semmle/code/cpp/rangeanalysis/new/internal/semantic/analysis/RangeAnalysisRelativeSpecific.qll

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,6 @@ module CppLangImplRelative implements LangSig<Sem, FloatDelta> {
6464
*/
6565
predicate ignoreZeroLowerBound(SemExpr e) { none() }
6666

67-
/**
68-
* Holds if the specified variable should be excluded from the result of `ssaRead()`.
69-
*
70-
* This predicate is to keep the results identical to the original Java implementation. It should be
71-
* removed once we have the new implementation matching the old results exactly.
72-
*/
73-
predicate ignoreSsaReadAssignment(SemSsaVariable v) { none() }
74-
7567
/**
7668
* Adds additional results to `ssaRead()` that are specific to Java.
7769
*

cpp/ql/lib/semmle/code/cpp/rangeanalysis/new/internal/semantic/analysis/RangeUtils.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ module RangeUtil<DeltaSig D, LangSig<Sem, D> Lang> implements UtilSig<Sem, D> {
3030
)
3131
or
3232
result = v.(SemSsaExplicitUpdate).getSourceExpr() and
33-
delta = D::fromFloat(0) and
34-
not Lang::ignoreSsaReadAssignment(v)
33+
delta = D::fromFloat(0)
3534
or
3635
result = Lang::specificSsaRead(v, delta)
3736
or

java/ql/lib/semmle/code/java/dataflow/RangeAnalysis.qll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,6 @@ module JavaLangImpl implements LangSig<Sem, IntDelta> {
377377

378378
predicate ignoreZeroLowerBound(Sem::Expr e) { none() }
379379

380-
predicate ignoreSsaReadAssignment(Sem::SsaVariable v) { none() }
381-
382380
Sem::Expr specificSsaRead(Sem::SsaVariable v, int delta) { none() }
383381

384382
predicate additionalValueFlowStep(Sem::Expr dest, Sem::Expr src, int delta) { none() }

shared/rangeanalysis/codeql/rangeanalysis/RangeAnalysis.qll

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -284,14 +284,6 @@ signature module LangSig<Semantic Sem, DeltaSig D> {
284284
*/
285285
predicate ignoreZeroLowerBound(Sem::Expr e);
286286

287-
/**
288-
* Holds if the specified variable should be excluded from the result of `ssaRead()`.
289-
*
290-
* This predicate is to keep the results identical to the original Java implementation. It should be
291-
* removed once we have the new implementation matching the old results exactly.
292-
*/
293-
predicate ignoreSsaReadAssignment(Sem::SsaVariable v);
294-
295287
/**
296288
* Adds additional results to `ssaRead()` that are specific to Java.
297289
*

0 commit comments

Comments
 (0)