-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kani internal panic when calling somehwat complex library path with no symbolic inputs #3312
Comments
Hi @aaronjeline , thanks for opening this issue! Do you recall in which scope were you defining the |
Yes. I managed to minimize the test case: #[kani::proof]
fn foo() {
smol_str::SmolStr::new("foo");
} Causes:
|
(Note that |
I see, this test did indeed crash for me too. Thank you for submitting this reproducer! |
This seems to happen due to casting #![feature(set_ptr_value)]
#[kani::proof]
fn check_cast() {
let data = "hello";
let ptr = data as *const str;
// This cast is done inside byte_sub
let _ = ptr.cast::<u8>().with_metadata_of(ptr);
} |
@aaronjeline I created a fix, but I couldn't verify it with your original example, since it fails to find the |
I tried this code:
Where
.parse()
is created a value of typeName
from cedar-policy-coreusing the following command line invocation:
with Kani version:
I expected to see this happen: either proof succeeds or fails
Instead, this happened:
The text was updated successfully, but these errors were encountered: