mirror of
https://github.com/github/codeql.git
synced 2026-06-03 04:40:14 +02:00
formatting
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user