forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove --object-bits option (rust-lang#1109)
Delete --object-bits option from Kani. We still set the default to 16 if the user doesn't pick a value via --cbmc-args.
- Loading branch information
Showing
5 changed files
with
23 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Conflicting flags: `--object-bits` was specified twice. | ||
error: Invalid flag: --function should be provided to Kani directly, not via |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 OR MIT | ||
// | ||
// kani-flags: --enable-unstable --dry-run --function main | ||
// cbmc-flags: --function main | ||
|
||
// kani-flags: --dry-run --object-bits 10 --enable-unstable --function main | ||
// cbmc-flags: --object-bits 8 | ||
//! This testcase is to ensure that user cannot pass --function as cbmc-flags | ||
//! with our driver logic. | ||
// `--dry-run` causes Kani to print out commands instead of running them | ||
// In `expected` you will find substrings of these commands because the | ||
// concrete paths depend on your working directory. | ||
/// This shouldn't run. | ||
#[kani::proof] | ||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters