Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 993506d commit 5c1275eCopy full SHA for 5c1275e
1 file changed
cpp/ql/src/semmle/code/cpp/models/interfaces/RangeAnalysisExpr.qll
@@ -0,0 +1,16 @@
1
+/**
2
+ * Provides a class for modeling `Expr`s with a restricted range.
3
+ */
4
+import cpp
5
+
6
7
+ * An expression for which a range can be deduced.
8
9
+abstract class RangeAnalysisExpr extends Expr {
10
+ /** Gets the lower bound of the expression. */
11
+ abstract float getLowerBounds();
12
+ /** Gets the upper bound of the expression. */
13
+ abstract float getUpperBounds();
14
+ /** Holds if this expression depends on the definition `srcDef` for StackVariable `srcVar`. */
15
+ predicate dependsOnDef(RangeSsaDefinition srcDef, StackVariable srcVar) { none() }
16
+}
0 commit comments