You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Regression tests for intrinsics fail on M1 and Intel Macs #1993
T-CBMCIssue related to an existing CBMC issue[C] BugThis is a bug. Something isn't working.[F] Spurious FailureIssues that cause Kani verification to fail despite the code being correct.
The failures are in this form (the exact missing function differs):
Failed Checks: undefined function should be unreachable
File: "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h", line 211, in __inline_isnand
So there must be some error or warning printed by the combination of goto-cc, goto-instrument, cbmc run by CBMC on these. The above shows that, at that line, there is a definition, so the function can't be undefined...
So there must be some error or warning printed by the combination of goto-cc, goto-instrument, cbmc run by CBMC on these. The above shows that, at that line, there is a definition, so the function can't be undefined...
I'm not seeing anything obvious... I've run through the commands one at a time and the only warning I'm getting is this one from kani-compiler:
warning: Found the following unsupported constructs:
- caller_location (1)
Verification will fail if one or more of these constructs is reachable.
I disabled the intrinsics tests and it turns out a bunch of other tests fail too; for example:
$ kani tests/expected/trait-receiver/receiver_types.rs --harness check_box...SUMMARY: ** 1 of 330 failed (8 unreachable)Failed Checks: undefined function should be unreachable File: "<built-in-additions>", line 17, in __CPROVER_deallocate
While diffblue/cbmc#7453 fixed one bug, it didn't fully fix the issue. I'll post another bugfix shortly, and can even demonstrate that this was an issue with C code as well, it's not Kani/Rust specific.
T-CBMCIssue related to an existing CBMC issue[C] BugThis is a bug. Something isn't working.[F] Spurious FailureIssues that cause Kani verification to fail despite the code being correct.
Activity
aaronbembenek-aws commentedon Dec 13, 2022
Here's the definition of
__inline_isnandfrommath.h:tautschnig commentedon Dec 13, 2022
So there must be some error or warning printed by the combination of goto-cc, goto-instrument, cbmc run by CBMC on these. The above shows that, at that line, there is a definition, so the function can't be undefined...
aaronbembenek-aws commentedon Dec 13, 2022
FWIW, on my machine
__header_always_inlineexpands toaaronbembenek-aws commentedon Dec 13, 2022
I'm not seeing anything obvious... I've run through the commands one at a time and the only warning I'm getting is this one from
kani-compiler:tautschnig commentedon Dec 14, 2022
Could you please attach a zip archive containing the artifacts from running one of these tests with
--keep-tempsand also the output of--verbose?aaronbembenek-aws commentedon Dec 14, 2022
I disabled the intrinsics tests and it turns out a bunch of other tests fail too; for example:
The culprit CBMC commit is diffblue/cbmc@da4c6ec463.
Here's a zip archive with the files for this test: receiver_types.zip
[-]Regression tests for intrinsics fail on M1 Mac[/-][+]Regression tests for intrinsics fail on M1 and Intel Macs[/+]aaronbembenek-aws commentedon Dec 19, 2022
The same tests fail on an Intel Mac when using CBMC 5.72.2 (and pass when using CBMC 5.72.0).
tautschnig commentedon Dec 22, 2022
See my update in #2020: diffblue/cbmc#7453 will fix this bug. Thank you for reporting and bisecting!
tautschnig commentedon Jan 11, 2023
While diffblue/cbmc#7453 fixed one bug, it didn't fully fix the issue. I'll post another bugfix shortly, and can even demonstrate that this was an issue with C code as well, it's not Kani/Rust specific.
Library functions may require converting additional inline functions
Library functions may require converting additional inline functions
tautschnig commentedon Jan 12, 2023
diffblue/cbmc#7475 is the fix on the CBMC side, and I've confirmed that the above regressions now pass on macOS.
Library functions may require converting additional inline functions
Library functions may require converting additional inline functions
tautschnig commentedon Jan 13, 2023
diffblue/cbmc#7453 is now merged.