Open adpaco-aws opened 3 years ago
Still takes ~5 minutes with af11d38d93a
.
What would be deemed "acceptable" for this harness? With #2301 this takes 150 seconds (2.5 minutes).
It depends on where the time is being spent. What I'd expect to see for this example is near-zero time spent on solving (we create objects that are independent), and I'd consider the time you posted acceptable if >2mins are spent on unwinding.
Then there's also the problem of requiring --cbmc-args --object-bits 13
: the program doesn't allocate more than 2 objects in the heap at any point in time, but CBMC appears to not be reusing free'd memory addresses. Is that a limitation of its memory model?
This is not real code, so I wouldn't worry about it too much. I think what was surprising is that even though the test does nothing but allocate and deallocate memory a number of times, it takes long to analyze.
Currently, the
Rust by Example/Scoping rules/RAII/11.rs
fails to verify with default CBMC values. See the example below:The
create_box
creates a box, then frees its memory since it goes out of scope.One needs to use
--cbmc-args --object-bits 13
in order to successfully verify this example, but even then it takes 5 minutes to do so.As far as I can tell, this is a good candidate for verification optimizations.