Skip to content

Commit f5501da

Browse files
Comment fix on aborts+asserts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 86123fe commit f5501da

File tree

1 file changed

+2
-2
lines changed
  • cpp/common/src/codingstandards/cpp/standardlibrary

1 file changed

+2
-2
lines changed

cpp/common/src/codingstandards/cpp/standardlibrary/Assert.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ private module Asserts {
103103
/**
104104
* Holds if the given conditional appears to assert its condition to be `isTrue`.
105105
*
106-
* For example, `x || abort();` appears to assert `x` is true, while `if (!x) abort();`
107-
* appears to assert `x` is false.
106+
* For example, both `x || abort();` and `if (!x) abort();` effectively assert that `x`
107+
* is true (in the second case, by asserting that `!x` is false).
108108
*/
109109
predicate appearsToAssert(Conditional conditional, Boolean isTrue) {
110110
// Check if an aborting side is reachable via the given boolean value of the condition.

0 commit comments

Comments
 (0)