Skip to content

Commit 322e6c9

Browse files
committed
Rangeanalysis: Remove superfluous specificSsaRead.
1 parent 8b6c940 commit 322e6c9

File tree

5 files changed

+0
-34
lines changed

5 files changed

+0
-34
lines changed

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

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

35-
/**
36-
* Adds additional results to `ssaRead()` that are specific to Java.
37-
*
38-
* This predicate handles propagation of offsets for post-increment and post-decrement expressions
39-
* in exactly the same way as the old Java implementation. Once the new implementation matches the
40-
* old one, we should remove this predicate and propagate deltas for all similar patterns, whether
41-
* or not they come from a post-increment/decrement expression.
42-
*/
43-
SemExpr specificSsaRead(SemSsaVariable v, float delta) { none() }
44-
4535
/**
4636
* Holds if `e >= bound` (if `upper = false`) or `e <= bound` (if `upper = true`).
4737
*/

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

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

67-
/**
68-
* Adds additional results to `ssaRead()` that are specific to Java.
69-
*
70-
* This predicate handles propagation of offsets for post-increment and post-decrement expressions
71-
* in exactly the same way as the old Java implementation. Once the new implementation matches the
72-
* old one, we should remove this predicate and propagate deltas for all similar patterns, whether
73-
* or not they come from a post-increment/decrement expression.
74-
*/
75-
SemExpr specificSsaRead(SemSsaVariable v, float delta) { none() }
76-
7767
/**
7868
* Holds if `e >= bound` (if `upper = false`) or `e <= bound` (if `upper = true`).
7969
*/

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ module RangeUtil<DeltaSig D, LangSig<Sem, D> Lang> implements UtilSig<Sem, D> {
3232
result = v.(SemSsaExplicitUpdate).getSourceExpr() and
3333
delta = D::fromFloat(0)
3434
or
35-
result = Lang::specificSsaRead(v, delta)
36-
or
3735
result.(SemCopyValueExpr).getOperand() = semSsaRead(v, delta) and
3836
not Lang::ignoreSsaReadCopy(result)
3937
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-
Sem::Expr specificSsaRead(Sem::SsaVariable v, int delta) { none() }
381-
382380
predicate additionalValueFlowStep(Sem::Expr dest, Sem::Expr src, int delta) { none() }
383381

384382
Sem::Type getAlternateType(Sem::Expr e) { none() }

shared/rangeanalysis/codeql/rangeanalysis/RangeAnalysis.qll

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

287-
/**
288-
* Adds additional results to `ssaRead()` that are specific to Java.
289-
*
290-
* This predicate handles propagation of offsets for post-increment and post-decrement expressions
291-
* in exactly the same way as the old Java implementation. Once the new implementation matches the
292-
* old one, we should remove this predicate and propagate deltas for all similar patterns, whether
293-
* or not they come from a post-increment/decrement expression.
294-
*/
295-
Sem::Expr specificSsaRead(Sem::SsaVariable v, D::Delta delta);
296-
297287
/**
298288
* Holds if the value of `dest` is known to be `src + delta`.
299289
*/

0 commit comments

Comments
 (0)