mirror of
https://github.com/github/codeql.git
synced 2026-04-12 02:24:00 +02:00
C++: Respond to review comments.
This commit is contained in:
@@ -516,12 +516,18 @@ module SignAnalysis<DeltaSig D> {
|
||||
*/
|
||||
private Sign guardedSsaSignOk(SemSsaVariable v, SsaReadPosition pos) {
|
||||
result = TPos() and
|
||||
// optimised version of
|
||||
// `forex(SemExpr bound | posBound(bound, v, pos) | posBoundOk(bound, v, pos))`
|
||||
posBoundGuardedSsaSignOk(v, pos)
|
||||
or
|
||||
result = TNeg() and
|
||||
// optimised version of
|
||||
// `forex(SemExpr bound | negBound(bound, v, pos) | negBoundOk(bound, v, pos))`
|
||||
negBoundGuardedSsaSignOk(v, pos)
|
||||
or
|
||||
result = TZero() and
|
||||
// optimised version of
|
||||
// `forex(SemExpr bound | zeroBound(bound, v, pos) | zeroBoundOk(bound, v, pos))`
|
||||
zeroBoundGuardedSsaSignOk(v, pos)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user