@@ -355,13 +355,13 @@ private predicate linearAccessImpl(Expr expr, VariableAccess v, float p, float q
355
355
* `cmpWithLinearBound(guard, v, Greater(), true)` and
356
356
* `cmpWithLinearBound(guard, v, Lesser(), false)` hold.
357
357
* If `guard` is `4 - v > 5` then
358
- * `cmpWithLinearBound(guard, v, Lesser(), false )` and
359
- * `cmpWithLinearBound(guard, v, Greater(), true )` hold.
358
+ * `cmpWithLinearBound(guard, v, Lesser(), true )` and
359
+ * `cmpWithLinearBound(guard, v, Greater(), false )` hold.
360
360
*
361
- * A more sophisticated predicate, such as `boundFromGuard`, is needed
362
- * to compute an actual bound for `v`. This predicate can be used if
363
- * you just want to check whether a variable is bounded, or to restrict
364
- * a more expensive analysis to just guards that bound a variable.
361
+ * If an actual bound for `v` is needed, use `upperBound` or `lowerBound`.
362
+ * This predicate can be used if you just want to check whether a variable
363
+ * is bounded, or to restrict a more expensive analysis to just guards that
364
+ * bound a variable.
365
365
*/
366
366
predicate cmpWithLinearBound (
367
367
ComparisonOperation guard , VariableAccess v ,
0 commit comments