Assume an x86_64 architecture for the machine model#1054
Assume an x86_64 architecture for the machine model#1054adpaco-aws merged 11 commits intomodel-checking:mainfrom
Conversation
src/kani-compiler/src/codegen_cprover_gotoc/context/goto_ctx.rs
Outdated
Show resolved
Hide resolved
|
Question: Do we want to also check here the values we get from the session? I am not sure if it's possible to get 32 as |
|
I have used the commands here to obtain get the So there is at least one platform ( I have changed the original proposal so that the values we get from the session are checked against the ones we expect, in addition to these ones:
I am requesting another review since the PR has changed substantially. |
|
I suggest that we restrict this to the following platforms:
A bunch of the platforms you listed are not even Tier 1 for the rustc compiler (https://doc.rust-lang.org/nightly/rustc/platform-support.html) |
|
Yeah, FWIW, the Kani installer will only be working for those two platforms. (Which reminds me, I should add an explicit check. Right now it's just fail to download a release bundle...) |
|
Agreed, updated the check to allow only these platforms. |
|
The regression for macOS fails because it does not detect |
|
I'm adding the "nice" check to the installer in #1069 I think your original idea of asserting on "x86_64" and "64" on those original values is fine here. |
Thanks @tedinski , but I think we can keep this solution if we just check that |
celinval
left a comment
There was a problem hiding this comment.
That's definitely better than checking for just x86_64 and 64 bits. Too bad the MacOs had to be relaxed a bit. Thanks for doing this!
* Assume an x86_64 architecture for the machine model * Add checks for arch spec/options * Check platform instead of architecture * Add debug statement * print platform * Use `starts_with` for apple platforms * minor comment change * Make code simpler
Description of changes:
Checks that the target architecture is x86_84, prints a nice error otherwise. Also adds comments to the function building the machine model.
Should we add further requirements for the values coming from the session?
Resolved issues:
Resolves #64
Call-outs:
Testing:
How is this change tested? CI regression
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.