mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Rangeanalysis: Remove superfluous ignoreSsaReadAssignment.
This commit is contained in:
@@ -32,14 +32,6 @@ module CppLangImplConstant implements LangSig<Sem, FloatDelta> {
|
|||||||
*/
|
*/
|
||||||
predicate ignoreZeroLowerBound(SemExpr e) { none() }
|
predicate ignoreZeroLowerBound(SemExpr e) { none() }
|
||||||
|
|
||||||
/**
|
|
||||||
* Holds if the specified variable should be excluded from the result of `ssaRead()`.
|
|
||||||
*
|
|
||||||
* This predicate is to keep the results identical to the original Java implementation. It should be
|
|
||||||
* removed once we have the new implementation matching the old results exactly.
|
|
||||||
*/
|
|
||||||
predicate ignoreSsaReadAssignment(SemSsaVariable v) { none() }
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds additional results to `ssaRead()` that are specific to Java.
|
* Adds additional results to `ssaRead()` that are specific to Java.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -64,14 +64,6 @@ module CppLangImplRelative implements LangSig<Sem, FloatDelta> {
|
|||||||
*/
|
*/
|
||||||
predicate ignoreZeroLowerBound(SemExpr e) { none() }
|
predicate ignoreZeroLowerBound(SemExpr e) { none() }
|
||||||
|
|
||||||
/**
|
|
||||||
* Holds if the specified variable should be excluded from the result of `ssaRead()`.
|
|
||||||
*
|
|
||||||
* This predicate is to keep the results identical to the original Java implementation. It should be
|
|
||||||
* removed once we have the new implementation matching the old results exactly.
|
|
||||||
*/
|
|
||||||
predicate ignoreSsaReadAssignment(SemSsaVariable v) { none() }
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds additional results to `ssaRead()` that are specific to Java.
|
* Adds additional results to `ssaRead()` that are specific to Java.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -30,8 +30,7 @@ module RangeUtil<DeltaSig D, LangSig<Sem, D> Lang> implements UtilSig<Sem, D> {
|
|||||||
)
|
)
|
||||||
or
|
or
|
||||||
result = v.(SemSsaExplicitUpdate).getSourceExpr() and
|
result = v.(SemSsaExplicitUpdate).getSourceExpr() and
|
||||||
delta = D::fromFloat(0) and
|
delta = D::fromFloat(0)
|
||||||
not Lang::ignoreSsaReadAssignment(v)
|
|
||||||
or
|
or
|
||||||
result = Lang::specificSsaRead(v, delta)
|
result = Lang::specificSsaRead(v, delta)
|
||||||
or
|
or
|
||||||
|
|||||||
@@ -377,8 +377,6 @@ module JavaLangImpl implements LangSig<Sem, IntDelta> {
|
|||||||
|
|
||||||
predicate ignoreZeroLowerBound(Sem::Expr e) { none() }
|
predicate ignoreZeroLowerBound(Sem::Expr e) { none() }
|
||||||
|
|
||||||
predicate ignoreSsaReadAssignment(Sem::SsaVariable v) { none() }
|
|
||||||
|
|
||||||
Sem::Expr specificSsaRead(Sem::SsaVariable v, int delta) { none() }
|
Sem::Expr specificSsaRead(Sem::SsaVariable v, int delta) { none() }
|
||||||
|
|
||||||
predicate additionalValueFlowStep(Sem::Expr dest, Sem::Expr src, int delta) { none() }
|
predicate additionalValueFlowStep(Sem::Expr dest, Sem::Expr src, int delta) { none() }
|
||||||
|
|||||||
@@ -284,14 +284,6 @@ signature module LangSig<Semantic Sem, DeltaSig D> {
|
|||||||
*/
|
*/
|
||||||
predicate ignoreZeroLowerBound(Sem::Expr e);
|
predicate ignoreZeroLowerBound(Sem::Expr e);
|
||||||
|
|
||||||
/**
|
|
||||||
* Holds if the specified variable should be excluded from the result of `ssaRead()`.
|
|
||||||
*
|
|
||||||
* This predicate is to keep the results identical to the original Java implementation. It should be
|
|
||||||
* removed once we have the new implementation matching the old results exactly.
|
|
||||||
*/
|
|
||||||
predicate ignoreSsaReadAssignment(Sem::SsaVariable v);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds additional results to `ssaRead()` that are specific to Java.
|
* Adds additional results to `ssaRead()` that are specific to Java.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user