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

Skip to content

Commit 6d06db7

Browse files
author
Robert Marsh
committed
C++: fix comments
1 parent d9e6a6e commit 6d06db7

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -441,51 +441,51 @@ cached private module SignAnalysisCached {
441441
}
442442
}
443443

444-
/** Holds if `e` can be positive and cannot be negative. */
444+
/** Holds if `i` can be positive and cannot be negative. */
445445
predicate positive(Instruction i) {
446446
instructionSign(i) = TPos() and
447447
not instructionSign(i) = TNeg()
448448
}
449449

450+
/** Holds if `i` at `pos` can be positive at and cannot be negative. */
450451
predicate positive(Instruction i, Instruction pos) {
451452
operandSign(pos, i) = TPos() and
452453
not operandSign(pos, i) = TNeg()
453454
}
454455

455-
/** Holds if `e` can be negative and cannot be positive. */
456+
/** Holds if `i` can be negative and cannot be positive. */
456457
predicate negative(Instruction i) {
457458
instructionSign(i) = TNeg() and
458459
not instructionSign(i) = TPos()
459460
}
460461

461-
/** Holds if `e` can be negative and cannot be positive. */
462+
/** Holds if `i` at `pos` can be negative and cannot be positive. */
462463
predicate negative(Instruction i, Instruction pos) {
463464
operandSign(pos, i) = TNeg() and
464465
not operandSign(pos, i) = TPos()
465466
}
466467

467-
/** Holds if `e` is strictly positive. */
468+
/** Holds if `i` is strictly positive. */
468469
predicate strictlyPositive(Instruction i) {
469470
instructionSign(i) = TPos() and
470471
not instructionSign(i) = TNeg() and
471472
not instructionSign(i) = TZero()
472473
}
473474

474-
/** Holds if `e` is strictly positive. */
475+
/** Holds if `i` is strictly positive at `pos`. */
475476
predicate strictlyPositive(Instruction i, Instruction pos) {
476477
operandSign(pos, i) = TPos() and
477478
not operandSign(pos, i) = TNeg() and
478479
not operandSign(pos, i) = TZero()
479480
}
480-
/** Holds if `e` is strictly negative. */
481+
/** Holds if `i` is strictly negative. */
481482
predicate strictlyNegative(Instruction i) {
482483
instructionSign(i) = TNeg() and
483484
not instructionSign(i) = TPos() and
484485
not instructionSign(i) = TZero()
485486
}
486487

487-
488-
/** Holds if `e` can be negative and cannot be positive. */
488+
/** Holds if `i` is strictly negative at `pos`. */
489489
predicate strictlyNegative(Instruction i, Instruction pos) {
490490
operandSign(pos, i) = TNeg() and
491491
not operandSign(pos, i) = TPos() and

0 commit comments

Comments
 (0)