Skip to content
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

Warning about unsupported caller_location intrinsic #2010

Open
zhassan-aws opened this issue Dec 16, 2022 · 1 comment · Fixed by #2032
Open

Warning about unsupported caller_location intrinsic #2010

zhassan-aws opened this issue Dec 16, 2022 · 1 comment · Fixed by #2032
Assignees
Labels
[C] Bug This is a bug. Something isn't working.

Comments

@zhassan-aws
Copy link
Contributor

Kani almost always emits the following annoying warning on any program:

warning: Found the following unsupported constructs:
             - caller_location (1)
         
         Verification will fail if one or more of these constructs is reachable.
         See https://model-checking.github.io/kani/rust-feature-support.html for more details.

warning: 1 warning emitted

for example, on this tiny program:

#[kani::proof]
fn main() {
    let _x: bool = kani::any();
}

using the following command line invocation:

kani test.rs

with Kani version: f4796ea

It's not clear what the source of this intrinsic is, so it might be worth investigating if this is coming from codegen itself.

@zhassan-aws zhassan-aws added the [C] Bug This is a bug. Something isn't working. label Dec 16, 2022
@zhassan-aws
Copy link
Contributor Author

This still occurs on programs involving panic!, e.g:

#[kani::proof]
fn main() {
    panic!("Some message");
}
$ kani simp_panic.rs 
warning: Found the following unsupported constructs:
             - caller_location (1)
         
         Verification will fail if one or more of these constructs is reachable.
         See https://model-checking.github.io/kani/rust-feature-support.html for more details.

warning: 1 warning emitted

Checking harness main...
...

Reopening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C] Bug This is a bug. Something isn't working.
Projects
No open projects
Status: No status
1 participant