Skip to content

Commit c9f7904

Browse files
author
Dave Bartolomeo
committed
Improve QLDoc
1 parent 01c747c commit c9f7904

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

cpp/ql/lib/experimental/semmle/code/cpp/semantic/analysis/RangeAnalysis.qll

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,14 @@ private predicate boundedPhiInp(
592592
)
593593
}
594594

595-
/** Holds if `boundedPhiInp(phi, inp, edge, b, delta, upper, _, _, _)`. */
595+
/**
596+
* Holds if `b + delta` is a valid bound for `inp` when used as an input to
597+
* `phi` along `edge`.
598+
* - `upper = true` : `inp <= b + delta`
599+
* - `upper = false` : `inp >= b + delta`
600+
*
601+
* Equivalent to `boundedPhiInp(phi, inp, edge, b, delta, upper, _, _, _)`.
602+
*/
596603
pragma[noinline]
597604
private predicate boundedPhiInp1(
598605
SemSsaPhiNode phi, SemBound b, boolean upper, SemSsaVariable inp,

0 commit comments

Comments
 (0)