Skip to content

Commit a85adc5

Browse files
committed
add comment
1 parent 6381e7b commit a85adc5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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)