Rangeanalysis: Remove superfluous specificSsaRead.

This commit is contained in:
Anders Schack-Mulligen
2023-10-31 15:30:36 +01:00
parent 8b6c940e76
commit 322e6c91be
5 changed files with 0 additions and 34 deletions

View File

@@ -32,16 +32,6 @@ module CppLangImplConstant implements LangSig<Sem, FloatDelta> {
*/
predicate ignoreZeroLowerBound(SemExpr e) { none() }
/**
* Adds additional results to `ssaRead()` that are specific to Java.
*
* This predicate handles propagation of offsets for post-increment and post-decrement expressions
* in exactly the same way as the old Java implementation. Once the new implementation matches the
* old one, we should remove this predicate and propagate deltas for all similar patterns, whether
* or not they come from a post-increment/decrement expression.
*/
SemExpr specificSsaRead(SemSsaVariable v, float delta) { none() }
/**
* Holds if `e >= bound` (if `upper = false`) or `e <= bound` (if `upper = true`).
*/

View File

@@ -64,16 +64,6 @@ module CppLangImplRelative implements LangSig<Sem, FloatDelta> {
*/
predicate ignoreZeroLowerBound(SemExpr e) { none() }
/**
* Adds additional results to `ssaRead()` that are specific to Java.
*
* This predicate handles propagation of offsets for post-increment and post-decrement expressions
* in exactly the same way as the old Java implementation. Once the new implementation matches the
* old one, we should remove this predicate and propagate deltas for all similar patterns, whether
* or not they come from a post-increment/decrement expression.
*/
SemExpr specificSsaRead(SemSsaVariable v, float delta) { none() }
/**
* Holds if `e >= bound` (if `upper = false`) or `e <= bound` (if `upper = true`).
*/

View File

@@ -32,8 +32,6 @@ module RangeUtil<DeltaSig D, LangSig<Sem, D> Lang> implements UtilSig<Sem, D> {
result = v.(SemSsaExplicitUpdate).getSourceExpr() and
delta = D::fromFloat(0)
or
result = Lang::specificSsaRead(v, delta)
or
result.(SemCopyValueExpr).getOperand() = semSsaRead(v, delta) and
not Lang::ignoreSsaReadCopy(result)
or

View File

@@ -377,8 +377,6 @@ module JavaLangImpl implements LangSig<Sem, IntDelta> {
predicate ignoreZeroLowerBound(Sem::Expr e) { none() }
Sem::Expr specificSsaRead(Sem::SsaVariable v, int delta) { none() }
predicate additionalValueFlowStep(Sem::Expr dest, Sem::Expr src, int delta) { none() }
Sem::Type getAlternateType(Sem::Expr e) { none() }

View File

@@ -284,16 +284,6 @@ signature module LangSig<Semantic Sem, DeltaSig D> {
*/
predicate ignoreZeroLowerBound(Sem::Expr e);
/**
* Adds additional results to `ssaRead()` that are specific to Java.
*
* This predicate handles propagation of offsets for post-increment and post-decrement expressions
* in exactly the same way as the old Java implementation. Once the new implementation matches the
* old one, we should remove this predicate and propagate deltas for all similar patterns, whether
* or not they come from a post-increment/decrement expression.
*/
Sem::Expr specificSsaRead(Sem::SsaVariable v, D::Delta delta);
/**
* Holds if the value of `dest` is known to be `src + delta`.
*/