BANDA dismissed a real assertion failure. The verdict depends on how the input expresses the number 255. Rewriting three byte-to-integer conversions to produce the same value changed the verdict from refuted to confirmed in the original benchmark image.
In the Juliet C program, two pointers address the same local byte. One writes its maximum value and the other reads it. By the time BANDA sees the prepared LLVM function, the compiler has already resolved those accesses. The branch and assertion use constants directly.
The issue’s reduced example uses 127 and 63. The actual input uses zext i8 -1 to i32. The eight bits are all ones. Zero extension fills the upper 24 bits with zeros, giving 255. The program takes the positive branch because 255 > 0. At line 39 it checks 255 <= 0 || 255 <= 127. Both comparisons are false, so the assertion receives zero.
The base analyzer reported one alarm at 39:13, with condition interval [0, 0] and reason ae-must-fail-if-reached. BANDA matched that alarm and returned refuted with an empty limitation list. That decision incorrectly rules out an execution the input permits.
Each row adds one change to the preceding input. Each substitution replaces zext i8 -1 to i32 with add i32 255, 0. The assertion, control flow, alarm file and validator image stay the same.
| Cumulative change | Alarm 0 |
|---|---|
| Original prepared input | Refuted |
| Rewrite the value tested by the positive branch | Refuted |
| Also rewrite the value compared with zero inside the assertion | Refuted |
| Also rewrite the value compared with 127 | Confirmed |
At BANDA revision ffe4fc95, the frontend translates zero extension and sign extension into the same integer-cast builder call. The distinction matters here. Sign-extending the same eight bits produces −1, which would reverse the positive-branch decision. The source and replay implicate cast handling. The replay did not record the internal state at each branch, so the precise transfer that first excluded the failing path remains unverified.
A fix needs to preserve the meaning of zero extension through the comparison, or conservatively keep the failing path possible when that value cannot be represented. The original input provides a regression case. The experiment covers one alarm and does not measure the effect on other programs.