AI review of 2026-11-30_06-30-01-4bbaae33f32b-results.txt PR: #8819 https://github.com/cppcheck-opensource/cppcheck/pull/8819 Tested: 4bbaae33f32bff274ca0385a4be6ec979d7b7e13 Merge base: edf0fd603c53345d4a5b750d9ac12264e69c1442 Reviewed: 2026-12-01 13:51:13 UTC Model: claude-opus-5-5 (effort high) Results: 50 reviewed of 3777 in the report (random sample), 116 not reviewed: valueFlowMaxIterations Verdicts: 3 acceptable regression, 34 improvement, 13 neutral Tokens: 128571 input, 3153280 cache read, 788320 cache write, 24701 output The verdicts are written by AI and can be wrong. ---- 1 / 50 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/a/aboot/aboot_1.0~pre20200212.orig.tar.gz Result: main aboot-master/utils.c:183:26: style: Condition 'cluster->start_pfn<=end_pfn' is always true [knownConditionTrueFalse] aboot-master/utils.c:166:27: note: Assuming that condition 'cluster->start_pfn>end_pfn' is not redundant aboot-master/utils.c:177:22: note: Assuming condition is false aboot-master/utils.c:183:26: note: Condition 'cluster->start_pfn<=end_pfn' is always true Explanation: The warning is still reported in both versions, so only its notes changed. It is a true positive: the `continue` at line 166 means that after it, `cluster->start_pfn <= end_pfn` holds, and nothing modifies either value before line 183. The PR removes the note "Assuming condition is false" for line 177 (`cluster->usage & 3`), which has nothing to do with the compared values. The new `addErrorPath` filter in the PR drops assumptions about unrelated conditions, so the error path is now more accurate. ---- 2 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/c/canna/canna_3.7p3.orig.tar.gz Result: main Canna37p3/ccustom/ccustom.c:1232:34: style: Condition 'atai==(char)255' is always false [knownConditionTrueFalse] Explanation: The same warning is still reported at 1232:34 by the PR; only the attached notes changed. `(char)-1` and `(char)255` are the same value whatever the signedness of char. So once `atai == (char)-1` is false, `atai == (char)255` is also false, and the redundancy warning is a true positive. The PR version adds the note "Assuming that condition 'atai==(char)-1' is not redundant", which explains why the second condition is always false. The warning is kept and its message is more informative. ---- 3 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/c/cjs/cjs_140.2.orig.tar.gz Result: main cjs-140.2/cjs/jsapi-util-string.cpp:340:23: style: Condition 'ucs4_string_p!=nullptr' is always true [knownConditionTrueFalse] Explanation: The warning is a true positive: line 319 returns early when `ucs4_string_p == nullptr`, so the check at line 340 is always true. The main and your lines report the same warning and only the attached notes differ. The PR changes `addErrorPath` so it no longer records conditions that do not mention the tracked value. Main most likely also had a note for the unrelated `utf16 == nullptr` check at line 335. The new error path cites only the relevant condition at line 319, which makes the diagnostic more accurate. ---- 4 / 50 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/c/coinor-cgl/coinor-cgl_0.60.10+ds.orig.tar.xz Result: main Cgl-releases-0.60.10/Cgl/examples/cgl1.cpp:59:12: style: Condition 'argc!=1' is always true [knownConditionTrueFalse] Explanation: Both main and the PR report the same warning, 'argc!=1' is always true, at cgl1.cpp:59. It is a true positive when SAMPLEDIR is not defined: the earlier `if (argc == 1) exit(1);` makes argc!=1 always true on line 59. The PR's notes are accurate: 'Assuming that condition argc==1 is not redundant' points at line 50. The same main/your pairing appears for every other warning in this package, including the unrelated 'solver==NULL' ones. So the difference is most likely only in the attached notes or output formatting, not in the diagnostic itself. Nothing changes for users. ---- 5 / 50 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/c/coinor-cgl/coinor-cgl_0.60.10+ds.orig.tar.xz Result: your Cgl-releases-0.60.10/Cgl/examples/cgl1.cpp:59:12: style: Condition 'argc!=1' is always true [knownConditionTrueFalse] Cgl-releases-0.60.10/Cgl/examples/cgl1.cpp:50:12: note: Assuming that condition 'argc==1' is not redundant Cgl-releases-0.60.10/Cgl/examples/cgl1.cpp:59:12: note: Condition 'argc!=1' is always true Explanation: The same knownConditionTrueFalse warning is reported by both main and the PR; only the attached notes appear to differ. The warning is a true positive. When SAMPLEDIR is not defined, `if (argc == 1) exit(1);` guarantees `argc != 1` at line 59, so that sub-condition is always true. The PR's notes ('Assuming that condition argc==1 is not redundant' and 'Condition argc!=1 is always true') are accurate. Main's notes are not shown, so no accuracy gain or loss can be identified. The other four entries for this package show the same main/your pattern, which suggests a difference only in notes or presentation. ---- 6 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/c/coinor-cgl/coinor-cgl_0.60.10+ds.orig.tar.xz Result: your Cgl-releases-0.60.10/Cgl/src/CglGMI/CglGMI.cpp:969:14: style: Condition 'solver==NULL' is always false [knownConditionTrueFalse] Cgl-releases-0.60.10/Cgl/src/CglGMI/CglGMI.cpp:968:44: note: Assignment 'solver=const_cast(&si)', assigned value is never 0 Cgl-releases-0.60.10/Cgl/src/CglGMI/CglGMI.cpp:969:14: note: Condition 'solver==NULL' is always false Explanation: The warning itself is the same in main and in the PR. `solver` is assigned `&si`, the address of a reference, which can never be null, so `solver == NULL` is always false. That makes it a true positive. The PR only adds error-path notes to the message, pointing at the assignment that makes the value non-null. The message becomes more informative and stays accurate. ---- 7 / 50 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/c/coreutils/coreutils_9.12.orig.tar.xz Result: main coreutils-9.12/gnulib-tests/uniwidth/test-uc_width2.c:71:24: style: Condition 'w2==2' is always false [knownConditionTrueFalse] Explanation: The warning is a false positive in both versions. `w2 == 2` at line 71 is reached whenever `w1 == 2`, and nothing stops `w2` from also being 2 there. Line 70 only tests `w2 == 2` after `w1 == 1`, so its falseness says nothing about `w2` when `w1 == 2`. The PR keeps the same false positive and only adds error-path notes ('Assuming that condition w2==2 is not redundant'), which describe the same flawed reasoning. The warning is neither removed nor made more correct. ---- 8 / 50 ---- Verdict: IMPROVEMENT (low confidence) Package: https://ftp.debian.org/debian/pool/main/d/deal/deal_3.1.9.orig.tar.gz Result: main deal319/dds.cpp:2900:22: style: Condition 'contract.trumpContract' is always true [knownConditionTrueFalse] Explanation: The warning is a true positive both before and after the PR. The earlier branch at line 2848 handles `!contract.trumpContract`, so in the later `else if` at line 2900 `contract.trumpContract` must be true. The warning text and location are unchanged; only the attached error-path notes differ. The PR changes `addErrorPath` so that notes about conditions the tracked value does not depend on are no longer added. The new note points only at the relevant `!contract.trumpContract` condition at line 2848. This most likely makes the explanation more accurate, but main's notes are not shown, so the gain cannot be confirmed. ---- 9 / 50 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/d/drawterm/drawterm_20240821.orig.tar.xz Result: main drawterm-20240821/kern/sysfile.c:309:7: style: Condition 'c==0' is always false [knownConditionTrueFalse] Explanation: After the early return at line 303 when c == 0, the check 'c==0' at line 309 is always false. Both versions report it; the PR only adds the explanatory notes (line 303 'assuming not redundant', line 309), so the main line paired with the matching 'your' line is a message gaining an error path. That makes the warning more informative for users. ---- 10 / 50 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/e/encfs/encfs_1.9.5.orig.tar.xz Result: main encfs-1.9.5/vendor/github.com/muflihun/easyloggingpp/src/easylogging++.cc:1421:36: style: Condition 'foundAt>0' is always true [knownConditionTrueFalse] encfs-1.9.5/vendor/github.com/muflihun/easyloggingpp/src/easylogging++.cc:1417:19: note: Assuming that condition 'foundAt>0' is not redundant encfs-1.9.5/vendor/github.com/muflihun/easyloggingpp/src/easylogging++.cc:1418:20: note: Assuming condition is true encfs-1.9.5/vendor/github.com/muflihun/easyloggingpp/src/easylogging++.cc:1421:36: note: Condition 'foundAt>0' is always true Explanation: The warning is still reported and is correct: line 1421 is inside the `if (foundAt > 0 && ...)` block, so `foundAt > 0` is always true there. The only change is that the note "Assuming condition is true" at line 1418 is gone. That condition, `if (hasFlag(flag))`, does not involve `foundAt`. The PR's change to `addErrorPath` stops recording assumptions about conditions that do not reference the tracked value. The error path is now more accurate and less misleading. ---- 11 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/e/equinox-framework/equinox-framework_4.18.orig.tar.xz Result: your equinox-framework-4.18/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:235:22: style: Condition 'featureImage!=NULL' is always true [knownConditionTrueFalse] equinox-framework-4.18/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:217:19: note: Assuming that condition 'featureImage==NULL' is not redundant equinox-framework-4.18/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:235:22: note: Condition 'featureImage!=NULL' is always true Explanation: Line 217 returns early when featureImage == NULL, and featureImage is a by-value parameter that is never modified before line 235. So 'featureImage != NULL' at line 235 really is always true, and the warning is a true positive both before and after the PR. The only change is that the message now includes an error path pointing to the earlier check at line 217. That makes the warning easier to understand and act on, which is a small improvement in accuracy. ---- 12 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/f/fastlink/fastlink_4.1P-fix100+dfsg.orig.tar.xz Result: your fastlink/4.1P/src/parmodified.c:3150:21: style: Condition 'newflag2[first]==0' is always false [knownConditionTrueFalse] fastlink/4.1P/src/parmodified.c:3128:24: note: Assuming that condition 'newflag2[first]==0' is not redundant fastlink/4.1P/src/parmodified.c:3150:21: note: Condition 'newflag2[first]==0' is always false Explanation: Both versions report the same warning at line 3150. Line 3128 already does `continue` when `newflag2[first] == 0`, so the identical check at 3150 is redundant. The only change is the error path. The old note 'Assuming condition is false' pointed at the unrelated `lsegsexfun2(first,second,LINK) == 0` check at 3136. The PR's `addErrorPath` filter now drops conditions that do not reference the tracked value. The remaining notes point only at the relevant condition, so the message is more accurate. ---- 13 / 50 ---- Verdict: ACCEPTABLE REGRESSION (medium confidence) Package: https://ftp.debian.org/debian/pool/main/g/gmtsar/gmtsar_6.7+ds.orig.tar.xz Result: main preproc/RS2_preproc/src/make_slc_rs2.c:229:7: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: xml_tree [nullPointerOutOfMemory] preproc/RS2_preproc/src/make_slc_rs2.c:60:34: note: Assuming allocation function fails preproc/RS2_preproc/src/make_slc_rs2.c:60:13: note: Assignment 'xml_tree=(struct tree*)malloc(n*5*sizeof(struct tree))', assigned value is 0 preproc/RS2_preproc/src/make_slc_rs2.c:78:41: note: Assuming condition is false preproc/RS2_preproc/src/make_slc_rs2.c:84:14: note: Calling function 'pop_led', 1st argument 'xml_tree' value is 0 preproc/RS2_preproc/src/make_slc_rs2.c:229:7: note: Null pointer dereference Explanation: `xml_tree` is allocated with `malloc` at line 60 and its result is never checked. It is then passed to `pop_led()`, which indexes `xml_tree[ct]` at line 229. If the allocation fails, that is a real null dereference, which is exactly what nullPointerOutOfMemory is meant to report. The code is unchanged, so the warning was a true positive. Its removal is most likely a side effect of the PR's value-flow changes: `valueFlowSubFunction` was moved to the end of the pass list and unreachable branches are now skipped. The PR does not show any better understanding that would make this warning wrong. Losing a legitimate (if inconclusive) out-of-memory warning is a new false negative. ---- 14 / 50 ---- Verdict: NEUTRAL (high confidence) Package: https://ftp.debian.org/debian/pool/main/g/gnome-keyring/gnome-keyring_51.1.orig.tar.xz Result: main gnome-keyring-51.1/egg/egg-asn1x.c:4332:14: style: Condition 'problem' is always true [knownConditionTrueFalse] Explanation: This is the same warning reported by both versions. Only its notes differ: the PR's output adds error-path notes ('Assuming that condition '!problem' is not redundant'). The warning itself is a true positive. At line 4332, the else-branch is reached only when '!problem || result' is false, so 'problem' is non-null there and the check 'problem' is redundant. The added note points to the right condition (line 4330), so it slightly helps users understand the warning. The diagnostic itself is unchanged, so the effect is neutral to mildly positive. ---- 15 / 50 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/i/imexam/imexam_0.9.1.orig.tar.gz Result: main imexam-0.9.1/cextern/xpa/xpans.c:346:9: style: Condition 'paramlist' is always true [knownConditionTrueFalse] Explanation: Line 346 sits inside `if( paramlist && *paramlist )`, so the ternary's `paramlist` check is redundant. The knownConditionTrueFalse warning is a true positive. The PR still reports it with identical text (the matching 'your' line), so the warning was not lost. Only the attached error-path notes differ. The new note points at the guarding condition on line 342, which is correct. Main's notes are not shown, so there is no clear gain or loss for users. ---- 16 / 50 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/i/ipvsadm/ipvsadm_1.31.orig.tar.gz Result: your ipvsadm-1.31/config_stream.c:99:28: style: Condition 's!=NULL' is always false [knownConditionTrueFalse] ipvsadm-1.31/config_stream.c:95:35: note: Assuming that condition '(s=strrchr(tail,'\n'))!=NULL' is not redundant ipvsadm-1.31/config_stream.c:99:28: note: Condition 's!=NULL' is always false Explanation: The warning is a true positive. If strrchr() returns non-NULL at line 95, the function returns, so 's != NULL' at line 99 is always false. Both versions report this. The only change is that the PR drops the note 'Assuming condition is true' at line 98 for 'if (!comment)'. That condition has nothing to do with 's'. The PR's new addErrorPath filter skips conditions that do not reference the tracked value, so this misleading note is gone. The error path is now more accurate. ---- 17 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/j/jmtpfs/jmtpfs_0.5.orig.tar.gz Result: main jmtpfs-0.5/src/MtpDevice.cpp:154:6: style: Condition 'files' is always true [knownConditionTrueFalse] Explanation: The warning itself is a true positive in both versions. When `files == 0` the function returns early at line 141, so `files` is always non-null at line 154. Only the error path changed. The new output points to the condition that actually proves the fact (`files==0` at line 141). This matches the PR's change to `addErrorPath`, which now keeps only conditions that reference the tracked value. Main's notes are not shown, but they most likely referred to an unrelated condition such as `while(filesWalk)`. The message is now more accurate. ---- 18 / 50 ---- Verdict: IMPROVEMENT (low confidence) Package: https://ftp.debian.org/debian/pool/main/k/kernelshark/kernelshark_2.4.0.orig.tar.gz Result: your kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:1202:7: style: Condition 'dialog' is always true [knownConditionTrueFalse] kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:1199:6: note: Assuming that condition 'dialogPtr' is not redundant kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:1200:43: note: Assignment 'dialog=static_cast(dialogPtr)', assigned value is never 0 kernel-shark-kernelshark-v2.4.0/src/KsUtils.cpp:1202:7: note: Condition 'dialog' is always true Explanation: The warning appears in both versions; only its error path changed. Inside `if (dialogPtr)`, `dialog` is `static_cast(dialogPtr)`, so it cannot be null and the `dialog &&` check is always true. The warning is a true positive. The new notes trace the fact correctly: the `dialogPtr` condition, then the assignment that is never 0, then the redundant condition. Main's notes are not shown, so it is unclear exactly what changed. The new path is accurate and relevant, which is likely a slightly more accurate message (the PR filters unrelated conditions out of error paths). ---- 19 / 50 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/k/kodi/kodi_21.3+dfsg.orig.tar.xz Result: your kodi-21.3/xbmc/pvr/guilib/PVRGUIChannelNavigator.cpp:353:11: style: Condition 'm_playingChannel' is always true [knownConditionTrueFalse] kodi-21.3/xbmc/pvr/guilib/PVRGUIChannelNavigator.cpp:345:7: note: Assuming that condition 'groupMember' is not redundant kodi-21.3/xbmc/pvr/guilib/PVRGUIChannelNavigator.cpp:349:24: note: Assignment 'm_playingChannel=groupMember', assigned value is never 0 kodi-21.3/xbmc/pvr/guilib/PVRGUIChannelNavigator.cpp:350:26: note: Assuming condition is true kodi-21.3/xbmc/pvr/guilib/PVRGUIChannelNavigator.cpp:353:11: note: Condition 'm_playingChannel' is always true Explanation: Both main and the PR report the same knownConditionTrueFalse at line 353, and the visible notes are identical. The warning is a true positive: inside `if (groupMember)`, `m_playingChannel = groupMember` is non-null. Nothing between the assignment and line 353 resets it; only a comparison and a copy into `m_currentChannel` happen, under the lock. So `if (m_playingChannel)` is always true. Any difference between the two runs is not visible here and does not affect users. ---- 20 / 50 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/k/ktechlab/ktechlab_0.51.0.orig.tar.xz Result: your ktechlab-0.51.0/src/languages/flowcode.cpp:178:48: style: Condition 'startPart' is always true [knownConditionTrueFalse] ktechlab-0.51.0/src/languages/flowcode.cpp:160:13: note: Assuming that condition '!startPart' is not redundant ktechlab-0.51.0/src/languages/flowcode.cpp:178:48: note: Condition 'startPart' is always true Explanation: Both main and the PR report the same warning at line 178. `startPart` is checked at line 160 (`if (!startPart) continue;`) and is not changed before line 178, so `&& startPart` there is always true and the warning is a true positive. The diff shows a main/your pair for this warning, so something about it changed, most likely the error-path notes. The PR adds a filter in SingleValueFlowAnalyzer::addErrorPath that drops assumptions about conditions that do not reference the tracked value. The 'your' notes are relevant: line 160 `!startPart`, then line 178. Main's text is not shown, so we cannot confirm whether the notes actually got better. The warning itself is unchanged, so the effect on users is neutral or slightly positive. ---- 21 / 50 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/l/litehtml/litehtml_0.9.orig.tar.gz Result: main litehtml-litehtml-6ca1ab0/containers/test/Font.cpp:97:23: style: Condition 'line.find(':')==-1' is always false [knownConditionTrueFalse] Explanation: `line.find(':')` returns size_t, and `std::string::npos` is the unsigned maximum. The comparison `== -1` converts -1 to size_t, so it is exactly `== npos`. That is true whenever the line has no ':'. Main wrongly reported the condition as always false because it compared the raw value -1 against a value range that excludes negatives. The PR reads the constant in the unsigned common type (castConstantToOperandType in isDifferentKnownValues and the condition parsing), so the false positive is removed. ---- 22 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/l/localsearch/localsearch_3.12.0.orig.tar.xz Result: main localsearch-3.12.0/src/extractor/tracker-extract-msoffice.c:1656:7: style: Condition 'mfile' is always true [knownConditionTrueFalse] Explanation: The warning is still reported. Only its text changed: the PR version adds notes explaining that the condition '!mfile' at line 1642 makes 'mfile' always true at line 1656. The finding itself is a true positive, because the function returns early when mfile is NULL. The added error path makes the message more informative. ---- 23 / 50 ---- Verdict: ACCEPTABLE REGRESSION (low confidence) Package: https://ftp.debian.org/debian/pool/main/libb/libbits/libbits_0.0~git20261030.c449567.orig.tar.xz Result: main libbits-0.0~git20261030.c449567/test/test_bit_vector.cpp:110:36: style: Condition 'max_int!=0' is always true [knownConditionTrueFalse] libbits-0.0~git20261030.c449567/test/test_bit_vector.cpp:107:51: note: Calling function 'get_random_uint' returns !<=0 libbits-0.0~git20261030.c449567/test/test_bit_vector.cpp:110:36: note: Condition 'max_int!=0' is always true Explanation: Main inferred that `get_random_uint()` returns `!<=0`. That fact most likely comes from an unsigned expression like `rand() % max + 1`. The PR stops `minUnsignedValue` from deriving a minimum for unsigned arithmetic that might wrap, so the 'always true' warning on `max_int != 0` disappears. In practice such an expression cannot wrap: `rand() % max` is small and adding 1 stays above 0. So the condition really is always true and the removed warning was most likely a true positive. Losing it is a new false negative caused by a deliberately more conservative wrap analysis. The body of `get_random_uint` is not shown, so this cannot be confirmed. ---- 24 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/libn/libnet/libnet_1.3+dfsg.orig.tar.gz Result: main libnet-1.3/sample/get_addr.c:94:11: style: Condition 'i==-1' is always false [knownConditionTrueFalse] Explanation: `i` receives the result of `libnet_get_ipaddr4()`, which returns `uint32_t` and returns -1 on error. In the libnet 1.3 sample `i` is most likely declared `uint32_t`. In that case `-1` is converted to the unsigned common type (0xFFFFFFFF), so `i == -1` is true exactly in the error case. Main treated the unsigned variable as unable to equal -1 and wrongly reported the condition as always false. The PR makes comparisons convert the constant to the operand's unsigned domain, which removes this false positive. Confidence is medium because the declaration of `i` is not shown: if it were a 64-bit `u_long`, the warning would have been correct. ---- 25 / 50 ---- Verdict: IMPROVEMENT (low confidence) Package: https://ftp.debian.org/debian/pool/main/libo/liboauth2/liboauth2_2.4.0.orig.tar.gz Result: main liboauth2-2.4.0/src/util.c:495:7: style: Condition 'save_val' is always true [knownConditionTrueFalse] Explanation: The warning is a true positive. `save_val = val` runs only after the while condition has confirmed that `val` is non-null, so `if (save_val)` at line 495 is always true. Main and the PR both report it with the same text, so only the attached notes changed. The PR's notes are accurate and limited to the relevant facts: the `val=oauth2_getword(...)` loop condition, the assignment `save_val=val`, and the redundant check. The PR changes `addErrorPath` to drop assumptions about conditions unrelated to the tracked value. The main notes were probably noisier, for example about the unrelated `key == NULL` or `trm_val` checks, but they are not shown, so confidence is low. ---- 26 / 50 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/libu/liburing/liburing_2.15.orig.tar.gz Result: main liburing-2.15/test/madvise.c:106:20: style: Condition 'uncached_read==-1' is always false [knownConditionTrueFalse] Explanation: `uncached_read` is `unsigned long`, so in `uncached_read == -1` the constant -1 is converted to ULONG_MAX. That value is reachable, since `do_copy()` returns an unsigned time difference (and this is the usual error-sentinel idiom). Main reported the condition as always false because it treated an unsigned variable as never equal to -1. That ignores the usual arithmetic conversions, so the warning was a false positive. The PR's `castConstantToOperandType` now reads -1 as the unsigned maximum when comparing against an unsigned operand, which removes the false positive. ---- 27 / 50 ---- Verdict: IMPROVEMENT (low confidence) Package: https://ftp.debian.org/debian/pool/main/n/network-manager-applet/network-manager-applet_1.36.0.orig.tar.xz Result: main network-manager-applet-1.36.0/src/connection-editor/page-mobile.c:165:19: style: Condition 'method' is always true [knownConditionTrueFalse] Explanation: The warning is a true positive both before and after. At line 160 the function returns early when `canceled || !method`, so `method` is always non-null at line 165. Only the attached notes changed. The new error path points to the relevant `!method` check at line 160 and then to line 165. The PR makes `addErrorPath` skip conditions that do not mention the tracked value, so main's path probably carried an unrelated or misattributed note. Main's notes are not shown, so this cannot be confirmed; the new message is at least accurate. ---- 28 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/n/network-manager-l2tp/network-manager-l2tp_1.52.6.orig.tar.xz Result: main NetworkManager-l2tp-1.52.6/shared/nm-l2tp-crypto-openssl.c:581:9: style: Condition 'fp' is always true [knownConditionTrueFalse] Explanation: Both versions report the same knownConditionTrueFalse warning at the same location. The warning is correct: 'fp' was checked against NULL at line 571, and that branch returns. The only difference is that the new version adds an error path with a note, 'Assuming that condition ... is not redundant', pointing at the line-571 check that makes 'fp' non-null. This explains the warning better. The message is the same, so the effect is small, but it is a slight improvement for users. ---- 29 / 50 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/n/newt/newt_0.52.25.orig.tar.xz Result: main newt-0.52.25/checkboxtree.c:579:10: style: Condition 'key==(char)key' is always true [knownConditionTrueFalse] newt-0.52.25/checkboxtree.c:578:6: note: key is assigned 'ev.u.key' here. newt-0.52.25/checkboxtree.c:579:10: note: Condition 'key==(char)key' is always true Explanation: `key` is an `int` taken from `ev.u.key`. It can hold special key codes such as NEWT_KEY_ENTER and NEWT_KEY_DOWN, which are above the char range. The check `key == (char) key` is there to detect ordinary character keys, so it is false for those special keys. Main's claim that it is always true was a false positive caused by mishandling the truncating cast. The PR reworks cast range and conversion handling, which explains why the warning is gone. ---- 30 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/n/nfs-ganesha/nfs-ganesha_9.14.orig.tar.gz Result: main nfs-ganesha-9.14/src/FSAL/FSAL_KVSFS/kvsfs_file.c:163:18: style: Condition 'attrs_out!=NULL' is always true [knownConditionTrueFalse] Explanation: Line 148 checks `if (attrs_out && ...)`, so inside that block `attrs_out != NULL` at line 163 really is always true. The warning is a true positive in both versions. The only change is that the PR's output now includes notes pointing to the earlier check at line 148. That makes the message more informative, so it is a mild improvement and close to neutral. ---- 31 / 50 ---- Verdict: IMPROVEMENT (low confidence) Package: https://ftp.debian.org/debian/pool/main/o/ogdi-dfsg/ogdi-dfsg_4.1.1+ds.orig.tar.xz Result: main ogdi-ogdi_4_1_1/ogdi/driver/vrf/feature.c:532:6: style: Condition 'ptr1' is always true [knownConditionTrueFalse] Explanation: The warning is a true positive both before and after the PR. At line 523, `ptr1 == NULL` returns early, so `ptr1` is always non-null at line 532 and `if (ptr1)` is redundant. Main and your report the same message text and location, so only the error-path notes changed. Your notes are minimal and correct: the earlier NULL check, then the always-true condition. This PR's `addErrorPath` change drops assumptions about conditions unrelated to the tracked value, such as the `ideclared_in_current_clause`. So the pointer is implicitly converted to a bool that is always true, and the knownPointerToBool warning is a valid finding in both versions. The only difference is the error path: the new output adds a note pointing at the `else if (te)` condition on line 7674, which is exactly why `te` is known non-null. The 'Assuming ... not redundant' wording is a bit odd for a definitely-taken branch, but the note shows the user the real source of the fact, so the message is more informative. ---- 33 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/p/powermanga/powermanga_0.93.1.orig.tar.gz Result: main powermanga-0.93.1/src/scale3x.c:400:89: style: Condition 'src1[0]!=src0[0]' is always true [knownConditionTrueFalse] Explanation: At line 400 the warning stays the same; only its notes changed. The outer condition is src0[0] != src2[0]. In the second operand of || we have src1[0] == src2[0], so src1[0] != src0[0] is always true. That makes the warning a true positive. The new notes point to the actual reasons: 'src1[0]==src2[0]' at line 400 and 'src0[0]!=src2[0]' at line 399. The old notes, judging by the other entries, pointed to the unrelated 'src1[0]!=src1[1]' condition. The message is now more accurate, which matches the PR's addErrorPath change that drops notes for conditions that do not reference the tracked value. ---- 34 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/p/python-fabio/python-fabio_2026.6.0.orig.tar.gz Result: main fabio-2026.6.0/src/fabio/ext/src/ccp4_pack.c:788:28: warning: Either the condition 'size>0' is redundant or the array 'CCP4_PCK_MASK_32[33]' is accessed at index 33, which is out of bounds. [arrayIndexOutOfBoundsCond] fabio-2026.6.0/src/fabio/ext/src/ccp4_pack.c:787:12: note: Assuming that condition 'size>0' is not redundant fabio-2026.6.0/src/fabio/ext/src/ccp4_pack.c:788:28: note: Array index out of bounds Explanation: `pack_longs()` indexes `CCP4_PCK_MASK_32[size]`. That table has 33 entries, built for bit sizes 0..32. The caller `pack_chunk()` only uses sizes encodable by `bitsize_encode[33]` (0, 4–8, 16, 32), so size 33 should not reach this point. The removed warning also blamed the `size>0` check, which says nothing about an upper bound of 33. That points to a value invented by inter-procedural value flow and tied to the wrong condition. The PR changes exactly this area: it skips arguments from unreachable call sites, tightens error-path condition attribution, and fixes value conversions. Removing the warning is most likely the removal of a false positive. ---- 35 / 50 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/p/python-gunicorn-h1c/python-gunicorn-h1c_0.6.9.orig.tar.gz Result: main benoitc-gunicorn_h1c-52625fd/src/gunicorn_h1c/pico_protocol.c:764:26: style: Condition 'size_len>0' is always true [knownConditionTrueFalse] benoitc-gunicorn_h1c-52625fd/src/gunicorn_h1c/pico_protocol.c:754:26: note: Assuming that condition 'size_len==0' is not redundant benoitc-gunicorn_h1c-52625fd/src/gunicorn_h1c/pico_protocol.c:760:40: note: Assuming condition is false benoitc-gunicorn_h1c-52625fd/src/gunicorn_h1c/pico_protocol.c:764:26: note: Condition 'size_len>0' is always true Explanation: The `knownConditionTrueFalse` warning itself is unchanged and correct. Line 754 returns when `size_len == 0`, and `size_len` is a `size_t`, so `size_len > 0` at line 764 is always true. The only difference is that the PR drops the note "760:40: Assuming condition is false". That condition tests `self->buffer[0]` for whitespace and has nothing to do with `size_len`. The PR's new `addErrorPath` filter skips conditions that do not reference the tracked value, so the error path now contains only relevant steps. The message is more accurate. ---- 36 / 50 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/r/r-cran-kernlab/r-cran-kernlab_0.9-33.orig.tar.gz Result: main kernlab/src/dprecond.c:25:13: style: Condition 'indef!=0' is always true [knownConditionTrueFalse] Explanation: The removed 'main' line is not really removed. The same knownConditionTrueFalse warning at dprecond.c:25 is still reported by the PR, now with an error path attached (notes pointing to the condition at line 19). The warning itself is a false positive in both versions: `indef` is passed by address to dpotf2 at line 24, so it can be reset to 0 and the check at line 25 is not always true. The PR neither fixes nor introduces it; only the attached notes differ, which does not matter to users. ---- 37 / 50 ---- Verdict: NEUTRAL (low confidence) Package: https://ftp.debian.org/debian/pool/main/r/r-cran-locfit/r-cran-locfit_1.5-9.12.orig.tar.gz Result: main locfit/src/lf_adap.c:165:10: style: Condition 'i==0' is always false [knownConditionTrueFalse] Explanation: Both versions report the same warning at the same location, so only the error-path notes changed. The warning itself is a false positive in both. `i0` is -2 when `acri(sp)!=AKAT` and `h0!=hmin`, so the loop runs i = -2, -1, 0 and `i==0` can be true. It only holds on the path where `h0==hmin` (i0=1), which the new notes show as an assumption. The main version's notes are not shown, so we cannot tell whether the new notes are more or less accurate. The user-visible outcome, the same false positive, is unchanged. ---- 38 / 50 ---- Verdict: NEUTRAL (low confidence) Package: https://ftp.debian.org/debian/pool/main/r/r-cran-locfit/r-cran-locfit_1.5-9.12.orig.tar.gz Result: your locfit/src/lf_adap.c:165:10: style: Condition 'i==0' is always false [knownConditionTrueFalse] locfit/src/lf_adap.c:162:22: note: Assignment 'i0=1', assigned value is 1 locfit/src/lf_adap.c:162:9: note: Assuming condition is true locfit/src/lf_adap.c:165:10: note: Condition 'i==0' is always false Explanation: Main and the PR both report the same false positive; only the attached notes may differ. When `acri(sp)!=AKAT` and `h0!=hmin`, `i0` is -2, so the loop runs i=-2,-1,0 and `i==0` can be true. The new notes show the path where `h0==hmin` makes `i0=1`. On that path the condition is false, but the condition is not always false. The PR neither removes nor adds the false positive, and the main notes are not shown, so the change to the message cannot be judged meaningful. ---- 39 / 50 ---- Verdict: NEUTRAL (low confidence) Package: https://ftp.debian.org/debian/pool/main/r/redland/redland_1.0.17.orig.tar.gz Result: your redland-1.0.17/libltdl/ltdl.c:1669:12: style: Condition 'filename' is always true [knownConditionTrueFalse] redland-1.0.17/libltdl/ltdl.c:1657:7: note: Assuming that condition '!filename' is not redundant redland-1.0.17/libltdl/ltdl.c:1669:12: note: Condition 'filename' is always true Explanation: Both main and the PR report the same true positive. In the else branch of `if (!filename || ...)`, `filename` must be non-null, so the `filename` check in `else if (filename && *filename)` is always true. The message text is identical; only the error-path notes may differ, and the PR's notes (assuming `!filename` at 1657) are accurate. It cannot be shown that main's notes were worse, so this looks like a neutral change. ---- 40 / 50 ---- Verdict: IMPROVEMENT (low confidence) Package: https://ftp.debian.org/debian/pool/main/r/roaraudio/roaraudio_1.0~beta12.orig.tar.gz Result: your roaraudio-1.0beta12/roard/output.c:360:38: style: Condition 'strcmp(k,"recsource")==0' is always false [knownConditionTrueFalse] roaraudio-1.0beta12/roard/output.c:354:38: note: Assuming that condition 'strcmp(k,"recsource")==0' is not redundant roaraudio-1.0beta12/roard/output.c:360:38: note: Condition 'strcmp(k,"recsource")==0' is always false Explanation: The warning is a true positive. Line 354 already tests `strcmp(k, "recsource") == 0` in the same else-if chain, so the identical test at line 360 can never be reached with a true result. Both main and the PR report it. Only the attached error path differs, and the PR's notes are accurate and minimal: they point to the earlier identical condition at line 354 and nothing else. This matches the PR's change to `addErrorPath`, which drops assumption notes for conditions unrelated to the tracked value, so main probably carried extra notes. Main's notes are not shown, so the size of the gain is uncertain, but the message is at least as accurate as before. ---- 41 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/r/root-tail/root-tail_1.3.orig.tar.gz Result: main root-tail-1.3/root-tail.c:682:20: warning: If memory allocation fails, then there is a possible null pointer dereference: p2 [ctunullpointerOutOfMemory] root-tail-1.3/root-tail.c:1193:42: note: Assuming allocation function fails root-tail-1.3/root-tail.c:1193:42: note: Calling function 'append_to_existing_line', 1st argument 'xstrdup(current->desc)' value is 0 root-tail-1.3/root-tail.c:1105:21: note: Calling function concat_line, 2nd argument is null root-tail-1.3/root-tail.c:682:20: note: Dereferencing argument p2 that is null Explanation: The removed warning assumes `xstrdup(current->desc)` at line 1193 can return NULL, so that `concat_line()` would call `strlen(p2)` on a null pointer. In root-tail, `xstrdup` is a wrapper around `strdup` that, as I recall it (its definition is not shown here), retries in a loop with a sleep until the allocation succeeds. If so, it never returns NULL and the out-of-memory path does not exist. The sibling `nullPointerOutOfMemory` warning at line 1084, from `xstrdup("[")` at line 1192, disappears in the same way. Removing these out-of-memory warnings removes false positives, unless that recollection of `xstrdup` is wrong. ---- 42 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/r/ruby-dataobjects-mysql/ruby-dataobjects-mysql_0.10.17.orig.tar.gz Result: your do_mysql-0.10.17/ext/do_mysql/do_mysql.c:110:19: style: Condition 'value==0' is always false [knownConditionTrueFalse] do_mysql-0.10.17/ext/do_mysql/do_mysql.c:105:7: note: Assuming that condition '!value' is not redundant do_mysql-0.10.17/ext/do_mysql/do_mysql.c:110:19: note: Condition 'value==0' is always false Explanation: The warning itself is a true positive. After `if (!value) return Qnil;`, `value` is non-null, so `value == 0` on line 110 is always false. Both main and the PR report it at the same location with the same text. The only difference is that the PR's version adds an error-path note pointing to line 105, the `!value` check that proves the condition. This explains the warning better, so it is a small improvement in message accuracy. ---- 43 / 50 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/r/ruby-nio4r/ruby-nio4r_2.7.5.orig.tar.gz Result: main nio4r-2.7.5/ext/libev/ev.c:1510:19: error: Signed integer overflow for expression '14-24'. [integerOverflow] Explanation: The expression `14 - 24` is the signed int constant -10. Computing it cannot overflow. The warning was a false positive: main probably took the 'int' subtraction to have unsigned type because the comparison operand `e` is unsigned, or it tracked values badly. The PR reworks how common integral types are computed (getCommonIntegralType) and how values are converted, so it now sees the subtraction correctly as signed int arithmetic. Removing this false positive is an improvement. ---- 44 / 50 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/s/sgt-puzzles/sgt-puzzles_20250730.a7c7826.orig.tar.xz Result: main sgt-puzzles-20250730.a7c7826/mosaic.c:1317:51: warning: Either the condition 'sol_char<='9'' is redundant or there is signed integer overflow for expression '(sol_char-'a')+10'. [integerOverflowCond] sgt-puzzles-20250730.a7c7826/mosaic.c:1314:49: note: Assuming that condition 'sol_char<='9'' is not redundant sgt-puzzles-20250730.a7c7826/mosaic.c:1317:51: note: Integer overflow Explanation: `sol_char` is a character taken from `move[i]`, so it is a char-sized value. In `(sol_char - 'a') + 10` it is promoted to int, which keeps the result within roughly -230..170. Signed int overflow is impossible here, so the integerOverflowCond warning tied to `sol_char<='9'` was a false positive. The PR's more accurate integral promotion and range handling removed it. ---- 45 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/s/slic3r/slic3r_1.3.0+dfsg1.orig.tar.gz Result: your Slic3r-1.3.0/xs/src/miniz/miniz.h:3931:11: style: Condition 'pZip->m_pState' is always true [knownConditionTrueFalse] Slic3r-1.3.0/xs/src/miniz/miniz.h:3928:19: note: Assuming that condition '!pZip->m_pState' is not redundant Slic3r-1.3.0/xs/src/miniz/miniz.h:3931:11: note: Condition 'pZip->m_pState' is always true Explanation: The warning itself is unchanged and is a true positive. At line 3928 the function returns early when `!pZip->m_pState`, so the check `if (pZip->m_pState)` at line 3931 is always true. Main reported this warning without supporting notes. The PR adds an accurate error path that points to the earlier condition at 3928, so the message is now more informative. ---- 46 / 50 ---- Verdict: IMPROVEMENT (high confidence) Package: https://ftp.debian.org/debian/pool/main/s/syncevolution/syncevolution_2.0.0.orig.tar.bz2 Result: your syncevolution-syncevolution-2-0-0/src/backends/akonadi/AkonadiSyncSourceRegister.cpp:45:17: style: Condition 'isMe' is always true [knownConditionTrueFalse] syncevolution-syncevolution-2-0-0/src/backends/akonadi/AkonadiSyncSourceRegister.cpp:38:9: note: Assuming that condition 'isMe' is not redundant syncevolution-syncevolution-2-0-0/src/backends/akonadi/AkonadiSyncSourceRegister.cpp:45:17: note: Condition 'isMe' is always true Explanation: The warning itself is unchanged and correct: `isMe` is tested at line 45 inside `if (isMe)`, so it is always true there. The PR only removed the misleading note 'Assuming condition is true' at line 40. That note pointed at the unrelated `m_format` check, which has no bearing on `isMe`. The PR's new `addErrorPath` filter drops conditions that do not mention the tracked value, so the error path is now shorter and more accurate. ---- 47 / 50 ---- Verdict: NEUTRAL (high confidence) Package: https://ftp.debian.org/debian/pool/main/t/tinysparql/tinysparql_3.12.0.orig.tar.xz Result: main tinysparql-3.12.0/src/cli/tracker-endpoint.c:693:6: style: Condition 'connection' is always true [knownConditionTrueFalse] Explanation: The same warning appears in both main and your outputs. It is listed as removed and added only because its text or notes changed: the 'your' version carries notes ('Assuming that condition '!connection' is not redundant'). The warning is correct. After the 'if (!connection) return' at line 666, connection is non-null at line 693. So the change is the same true positive, possibly with a different error path. That does not matter to users. ---- 48 / 50 ---- Verdict: IMPROVEMENT (medium confidence) Package: https://ftp.debian.org/debian/pool/main/t/tss2/tss2_1045.orig.tar.gz Result: main utils/hierarchychangeauth.c:255:13: style: Condition 'rc==0' is always true [knownConditionTrueFalse] utils/hierarchychangeauth.c:243:12: note: Assuming that condition 'rc==0' is not redundant utils/hierarchychangeauth.c:245:18: note: Assuming condition is false utils/hierarchychangeauth.c:251:31: note: Assuming condition is true utils/hierarchychangeauth.c:255:13: note: Condition 'rc==0' is always true Explanation: Both versions report the same true positive: at line 255, inside the `if (rc == 0)` block that starts at line 243, rc has not been changed, so the inner `rc == 0` is always true. Only the error path differs. The PR no longer adds the notes for lines 245 (`newPassword != NULL`) and 251 (`newPasswordFilename != NULL`). Those conditions only decide which branch runs and do not involve rc, so they do not explain why the condition is always true. The remaining notes (the outer `rc==0` at 243 leading to line 255) give a shorter and more relevant explanation. ---- 49 / 50 ---- Verdict: NEUTRAL (medium confidence) Package: https://ftp.debian.org/debian/pool/main/w/weakforced/weakforced_3.2.0+ds.orig.tar.xz Result: your PowerDNS-weakforced-4ba7d83/wforce/wforce-lua.cc:1199:15: style: Condition 'is' is always true [knownConditionTrueFalse] PowerDNS-weakforced-4ba7d83/wforce/wforce-lua.cc:1198:21: note: Assuming that condition 'is=i.lock()' is not redundant PowerDNS-weakforced-4ba7d83/wforce/wforce-lua.cc:1199:15: note: Condition 'is' is always true Explanation: In `if (auto is = i.lock()) if (is)`, the inner `if (is)` can only run when `is` is non-null, so 'Condition 'is' is always true' is a true positive. Both main and the PR report it at the same location with the same text. Only the attached notes appear to differ. The PR's notes ('Assuming that condition is=i.lock() is not redundant', then 'always true') describe the reasoning correctly. Main's notes are not shown, so there is no evidence the message got better or worse. The change does not matter to users. ---- 50 / 50 ---- Verdict: ACCEPTABLE REGRESSION (low confidence) Package: https://ftp.debian.org/debian/pool/main/x/xvkbd/xvkbd_4.1.orig.tar.gz Result: main xvkbd-4.1/xvkbd.c:4047:9: style: Condition '1||appres.no_sync' is always true [knownConditionTrueFalse] Explanation: The condition at line 4047 is `if (1 || appres.no_sync)`, which is always true because of the literal `1`, so main's knownConditionTrueFalse warning was factually correct. The `1 ||` is almost certainly a deliberate way to force the block on, so the warning has little value to users, but it is not a false positive. Nothing in the PR aims to suppress this pattern. The loss looks like a side effect of the value-flow changes (infer/path handling or the new Boolean/unsigned-char typing of `no_sync`). Losing a correct but low-value warning counts as an acceptable regression.