Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bf946c3

Browse files
author
Robert Marsh
committed
C++: remove comments about Java implies predicates
The Java guards library includes a set of "implies" predicates to handle short-circuiting conditionals. C++ handles those in IR generation, so dominance on the IR produces correct results for controlling blocks.
1 parent 554fea4 commit bf946c3

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

cpp/ql/src/semmle/code/cpp/rangeanalysis/SignAnalysis.qll

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,6 @@ private predicate lowerBound(IRGuardCondition comp, Instruction lowerbound, Inst
214214
valueNumber(bounded) = valueNumber(compared) and
215215
bounded = pos.getAnOperand() and
216216
not unknownSign(lowerbound) and
217-
/*
218-
* Java library uses guardControlsSsaRead here. I think that the phi node logic doesn't need to
219-
* be duplicated but the implication predicates may need to be ported
220-
*/
221217
(
222218
isStrict = true and
223219
adjustment = 0
@@ -239,11 +235,6 @@ private predicate upperBound(IRGuardCondition comp, Instruction upperbound, Inst
239235
valueNumber(bounded) = valueNumber(compared) and
240236
bounded = pos.getAnOperand() and
241237
not unknownSign(upperbound) and
242-
243-
/*
244-
* Java library uses guardControlsSsaRead here. I think that the phi node logic doesn't need to
245-
* be duplicated but the implication predicates may need to be ported
246-
*/
247238
(
248239
isStrict = true and
249240
adjustment = 0

0 commit comments

Comments
 (0)