Repository navigation
use assert-false instead of nondet for missing functions - #535
Conversation
zhassan-aws
left a comment
There was a problem hiding this comment.
Can you clarify the impact of this change? Will it cause verification to fail if the program includes a missing function that is reachable? If so, can you add a comment explaining this?
c7af171 to
0014264
Compare
|
This is a tough one. I almost feel like this should be an option to how a user runs rmc or even a proof-harness. |
There was a problem hiding this comment.
Can we do this without extern "C"? How common is a construct like this in user code?
There was a problem hiding this comment.
I'd love to do this in pure rust. But I can't easily tell how to generate that case. Thoughts?
|
This is used in CBMC when we run verification of larger projects where we cut off calls to functions, but do not want execution to stop. Essentially, this is part of aggressive slicing - and yes, it's known to be unsound. |
0014264 to
efe3797
Compare
fe0945b to
d95d512
Compare
|
@nmanthey to clarify: when you say "it's known to be unsound" you mean aggressive slicing rather than replacing a function body with |
…ing#535) * use assert-false instead of nondet for missing functions * Add a flag to disable the missing function checks, and use it for tests which require it
* use assert-false instead of nondet for missing functions * Add a flag to disable the missing function checks, and use it for tests which require it
Description of changes:
Currently, CBMC does
nondetfor missing functions, which may be unsound if they have side-effects. Instead, soundly assert false.Resolved issues:
Partially addresses #303
Call-outs:
Testing:
How is this change tested? Existing regression suite, plus new expect_fail test
Is this a refactor change? No
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.