Skip to content

Commit 9303055

Browse files
committed
C++: Address review comment
1 parent 99c6111 commit 9303055

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,12 +1054,11 @@ module RangeStage<DeltaSig D, BoundSig<D> Bounds, LangSig<D> LangParam, UtilSig<
10541054
) else (
10551055
b = b2 and d_max = d2 and fromBackEdge = fbe2 and origdelta = od2 and reason = r2
10561056
)
1057-
) and
1058-
(
1059-
upper = true and delta = D::fromFloat(D::toFloat(d_max).abs() - 1)
1060-
or
1061-
upper = false and delta = D::fromFloat(-D::toFloat(d_max).abs() + 1)
10621057
)
1058+
|
1059+
upper = true and delta = D::fromFloat(D::toFloat(d_max).abs() - 1)
1060+
or
1061+
upper = false and delta = D::fromFloat(-D::toFloat(d_max).abs() + 1)
10631062
)
10641063
)
10651064
}

0 commit comments

Comments
 (0)