Skip to content

Commit 34b9791

Browse files
committed
Rangeanalysis: Remove superfluous ignoreSsaReadCopy.
1 parent 322e6c9 commit 34b9791

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
@@ -8,14 +8,6 @@ private import RangeAnalysisImpl
88
private import codeql.rangeanalysis.RangeAnalysis
99

1010
module CppLangImplConstant implements LangSig<Sem, FloatDelta> {
11-
/**
12-
* Holds if the specified expression should be excluded from the result of `ssaRead()`.
13-
*
14-
* This predicate is to keep the results identical to the original Java implementation. It should be
15-
* removed once we have the new implementation matching the old results exactly.
16-
*/
17-
predicate ignoreSsaReadCopy(SemExpr e) { none() }
18-
1911
/**
2012
* Ignore the bound on this expression.
2113
*

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
@@ -9,14 +9,6 @@ private import semmle.code.cpp.rangeanalysis.RangeAnalysisUtils
99
private import codeql.rangeanalysis.RangeAnalysis
1010

1111
module CppLangImplRelative implements LangSig<Sem, FloatDelta> {
12-
/**
13-
* Holds if the specified expression should be excluded from the result of `ssaRead()`.
14-
*
15-
* This predicate is to keep the results identical to the original Java implementation. It should be
16-
* removed once we have the new implementation matching the old results exactly.
17-
*/
18-
predicate ignoreSsaReadCopy(SemExpr e) { none() }
19-
2012
/**
2113
* Ignore the bound on this expression.
2214
*

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
@@ -32,8 +32,7 @@ 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.(SemCopyValueExpr).getOperand() = semSsaRead(v, delta) and
36-
not Lang::ignoreSsaReadCopy(result)
35+
result.(SemCopyValueExpr).getOperand() = semSsaRead(v, delta)
3736
or
3837
result.(SemStoreExpr).getOperand() = semSsaRead(v, delta)
3938
}

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,6 @@ module IntDelta implements DeltaSig {
315315
}
316316

317317
module JavaLangImpl implements LangSig<Sem, IntDelta> {
318-
predicate ignoreSsaReadCopy(Sem::Expr e) { none() }
319-
320318
/**
321319
* Holds if `e >= bound` (if `upper = false`) or `e <= bound` (if `upper = true`).
322320
*/

shared/rangeanalysis/codeql/rangeanalysis/RangeAnalysis.qll

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -250,14 +250,6 @@ signature module DeltaSig {
250250
}
251251

252252
signature module LangSig<Semantic Sem, DeltaSig D> {
253-
/**
254-
* Holds if the specified expression should be excluded from the result of `ssaRead()`.
255-
*
256-
* This predicate is to keep the results identical to the original Java implementation. It should be
257-
* removed once we have the new implementation matching the old results exactly.
258-
*/
259-
predicate ignoreSsaReadCopy(Sem::Expr e);
260-
261253
/**
262254
* Holds if `e >= bound` (if `upper = false`) or `e <= bound` (if `upper = true`).
263255
*/

0 commit comments

Comments
 (0)