-
Notifications
You must be signed in to change notification settings - Fork 120
Use stable_mir api instead of internal api for analysis #2871
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's awesome and quick! Thanks!
I think you'll need to initialize stable mir for this to work. For now, you can wrap the logic of theprint_stats
in a closure, and invoke rustc_internal::run
. Also, I forgot to mention, and I don't know if you've figured out already, but one way to test this code is to run Kani with --verbose
.
Well I tried few things but It wasn't really clear to me which things supposed to fail and which things supposed to not fail, I run |
@ouz-a No worries. Feel free to ping me offline if you want to know more. The important thing was to see the report when you ran with --verbose. Thanks! |
1b09e16
to
a493fcc
Compare
a493fcc
to
d4c51ab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again!
This update introduces several
stable_mir
APIs toKani
. Previously, we relied on internal APIs to accomplish our goals. However, with the recent enhancements tostable_mir
, we no longer need these internal APIs. This pull request hopefully marks the beginning of a migration towardsstable_mir
forKani
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.