formatting

This commit is contained in:
BazookaMusic
2026-06-01 15:21:39 +02:00
parent cc12740c0e
commit 71a363545a
5 changed files with 61 additions and 100 deletions

View File

@@ -11,24 +11,4 @@ private import codeql.rangeanalysis.Bound as SharedBound
private module BoundImpl = SharedBound::Bound<CS::Location, BoundSpecific::BoundDefs>;
/**
* A bound that may be inferred for an expression plus/minus an integer delta.
*/
class Bound = BoundImpl::Bound;
/**
* The bound that corresponds to the integer 0. This is used to represent all
* integer bounds as bounds are always accompanied by an added integer delta.
*/
class ZeroBound = BoundImpl::ZeroBound;
/**
* A bound corresponding to the value of an SSA variable.
*/
class SsaBound = BoundImpl::SsaBound;
/**
* A bound that corresponds to the value of a specific expression that might be
* interesting, but isn't otherwise represented by the value of an SSA variable.
*/
class ExprBound = BoundImpl::ExprBound;
import BoundImpl

View File

@@ -10,23 +10,19 @@ private import semmle.code.csharp.dataflow.internal.rangeanalysis.SsaUtils as SU
private import codeql.rangeanalysis.Bound as SharedBound
/** Holds if `e` is a bound expression and it is not an SSA variable read. */
module BoundDefs implements SharedBound::BoundDefinitions<CS::Location> {
class Type = CS::Type;
class Type = CS::Type;
class SsaVariable = SU::SsaVariable;
class SsaSourceVariable = Ssa::SourceVariable;
class SsaVariable = SU::SsaVariable;
class Expr = CS::ControlFlowNodes::ExprNode;
class SsaSourceVariable = Ssa::SourceVariable;
class IntegralType = CS::IntegralType;
class Expr = CS::ControlFlowNodes::ExprNode;
class ConstantIntegerExpr = CU::ConstantIntegerExpr;
class IntegralType = CS::IntegralType;
class ConstantIntegerExpr = CU::ConstantIntegerExpr;
/** Holds if `e` is a bound expression and it is not an SSA variable read. */
predicate interestingExprBound(Expr e) {
CU::systemArrayLengthAccess(e.getExpr())
}
predicate interestingExprBound(Expr e) { CU::systemArrayLengthAccess(e.getExpr()) }
}