Skip to content

Commit 2d31be3

Browse files
committed
add comment
1 parent ffa8e04 commit 2d31be3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cpp/src/security/UnsafeImplicitConversions/UnsafeImplicitConversions.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ predicate safeLowerBound(Expr cast, IntegralType toType) {
184184
lowerB = lowerBound(cast) and
185185
lowerB >= typeLowerBound(toType)
186186
)
187+
// comment the exists formula below to speed up the query
187188
or
188189
exists(Instruction instr, Bound b, int delta |
189190
not exists(float knownValue | knownValue = cast.getValue().toFloat()) and
@@ -203,6 +204,7 @@ predicate safeUpperBound(Expr cast, IntegralType toType) {
203204
upperB = upperBound(cast) and
204205
upperB <= typeUpperBound(toType)
205206
)
207+
// comment the exists formula below to speed up the query
206208
or
207209
exists(Instruction instr, Bound b, int delta |
208210
not exists(float knownValue | knownValue = cast.getValue().toFloat()) and

0 commit comments

Comments
 (0)