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
Z-Kani CompilerIssues that require some changes to the compiler[C] InternalTracks some internal work. I.e.: Users should not be affected.[F] SoundnessKani failed to detect an issue
RMC handles dynamic traits by making a vtable for each trait, which maps virtual calls to the function pointer that implements the call. As of 2021-09-01, our implementation of dynamic traits has no known soundness issues.
Likelihood:
Due to the complexity of this feature, there may be currently-unknown soundness issues.
Mitigation:
The default flags RMC passes to CBMC now include --pointer-check, so incorrect codegen of functions is now more likely to be found a verification time.
We have added 40+ regression tests for dynamic traits.
As of 2021-09-01, all known soundness issues specific to dynamic traits objects and vtables have been resolved.
However, two issues to note:
In certain cases of trait objects nested automatic reference counted objects, we generate invalid calls to the drop destructor. For now, we maintain soundness here by codegening an unimplemented block, which would cause code that relies on this behavior to fail at verification time: Fix drop type checking for nested Arc/Mutex objects #426
Z-Kani CompilerIssues that require some changes to the compiler[C] InternalTracks some internal work. I.e.: Users should not be affected.[F] SoundnessKani failed to detect an issue
Activity
avanhatt commentedon Jul 7, 2021
Updated description to match current state.
adpaco commentedon Jul 19, 2021
RMC is now using
--pointer-checkby default (#263)avanhatt commentedon Jul 19, 2021
Updated to reflect that
--pointer-checkis used by default and that for closures we only fail for boxed closures.avanhatt commentedon Aug 25, 2021
Updated to reflect that all known cases of boxed closures now work.
avanhatt commentedon Sep 17, 2021
As of 2021-09-01, all known soundness issues specific to dynamic traits objects and vtables have been resolved.
However, two issues to note:
Arc/Mutexobjects #426print: Incorrect verification success on print statement #194[-]Soundness: Vtable generation for dynamic traits[/-][+]Audit Vtable generation for dynamic traits[/+]