Skip to content

Commit 00ac3cb

Browse files
authored
Merge branch 'main' into stable_codegen_span
2 parents 4ca3b83 + 234ca24 commit 00ac3cb

File tree

14 files changed

+45
-24
lines changed

14 files changed

+45
-24
lines changed

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,19 @@ This file was introduced starting Kani 0.23.0, so it only contains changes from
88

99
### Breaking Changes
1010

11+
* Set minimum python to 3.7 in docker container and release action by @remi-delmas-3000 in https://github.com/model-checking/kani/pull/2879
1112
* Delete `any_slice` which has been deprecated since Kani 0.38.0. by @zhassan-aws in https://github.com/model-checking/kani/pull/2860
1213

14+
### What's Changed
15+
16+
* Make `cover` const by @jswrenn in https://github.com/model-checking/kani/pull/2867
17+
* Change `expect()` from taking formatted strings to use `unwrap_or_else()` by @matthiaskrgr in https://github.com/model-checking/kani/pull/2865
18+
* Fix setup for `aarch64-unknown-linux-gnu` platform by @adpaco-aws in https://github.com/model-checking/kani/pull/2864
19+
* Do not override `std` library during playback by @celinval in https://github.com/model-checking/kani/pull/2852
20+
* Rust toolchain upgraded to `nightly-2023-11-11` by @zhassan-aws
21+
22+
**Full Changelog**: https://github.com/model-checking/kani/compare/kani-0.40.0...kani-0.41.0
23+
1324
## [0.40.0]
1425

1526
### What's Changed
@@ -65,7 +76,7 @@ https://github.com/model-checking/kani/compare/kani-0.38.0...kani-0.39.0
6576
* Fix expected value for `pref_align_of` under aarch64/macos by @remi-delmas-3000 in https://github.com/model-checking/kani/pull/2782
6677
* Bump CBMC version to 5.92.0 by @zhassan-aws in https://github.com/model-checking/kani/pull/2771
6778
* Upgrade to Kissat 3.1.1 by @zhassan-aws in https://github.com/model-checking/kani/pull/2756
68-
* Rust toolchain upgraded to `nightly-2023-09-19` by @remi-delmas-3000 @tautschnig
79+
* Rust toolchain upgraded to `nightly-2023-09-19` by @remi-delmas-3000 @tautschnig
6980

7081
**Full Changelog**: https://github.com/model-checking/kani/compare/kani-0.36.0...kani-0.37.0
7182

Cargo.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ dependencies = [
119119

120120
[[package]]
121121
name = "build-kani"
122-
version = "0.40.0"
122+
version = "0.41.0"
123123
dependencies = [
124124
"anyhow",
125125
"cargo_metadata",
@@ -255,7 +255,7 @@ dependencies = [
255255

256256
[[package]]
257257
name = "cprover_bindings"
258-
version = "0.40.0"
258+
version = "0.41.0"
259259
dependencies = [
260260
"lazy_static",
261261
"linear-map",
@@ -440,14 +440,14 @@ checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38"
440440

441441
[[package]]
442442
name = "kani"
443-
version = "0.40.0"
443+
version = "0.41.0"
444444
dependencies = [
445445
"kani_macros",
446446
]
447447

448448
[[package]]
449449
name = "kani-compiler"
450-
version = "0.40.0"
450+
version = "0.41.0"
451451
dependencies = [
452452
"clap",
453453
"cprover_bindings",
@@ -468,7 +468,7 @@ dependencies = [
468468

469469
[[package]]
470470
name = "kani-driver"
471-
version = "0.40.0"
471+
version = "0.41.0"
472472
dependencies = [
473473
"anyhow",
474474
"cargo_metadata",
@@ -496,7 +496,7 @@ dependencies = [
496496

497497
[[package]]
498498
name = "kani-verifier"
499-
version = "0.40.0"
499+
version = "0.41.0"
500500
dependencies = [
501501
"anyhow",
502502
"home",
@@ -505,7 +505,7 @@ dependencies = [
505505

506506
[[package]]
507507
name = "kani_macros"
508-
version = "0.40.0"
508+
version = "0.41.0"
509509
dependencies = [
510510
"proc-macro-error",
511511
"proc-macro2",
@@ -515,7 +515,7 @@ dependencies = [
515515

516516
[[package]]
517517
name = "kani_metadata"
518-
version = "0.40.0"
518+
version = "0.41.0"
519519
dependencies = [
520520
"clap",
521521
"cprover_bindings",
@@ -1050,7 +1050,7 @@ checksum = "4dccd0940a2dcdf68d092b8cbab7dc0ad8fa938bf95787e1b916b0e3d0e8e970"
10501050

10511051
[[package]]
10521052
name = "std"
1053-
version = "0.40.0"
1053+
version = "0.41.0"
10541054
dependencies = [
10551055
"kani",
10561056
]

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[package]
55
name = "kani-verifier"
6-
version = "0.40.0"
6+
version = "0.41.0"
77
edition = "2021"
88
description = "A bit-precise model checker for Rust."
99
readme = "README.md"

cprover_bindings/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[package]
55
name = "cprover_bindings"
6-
version = "0.40.0"
6+
version = "0.41.0"
77
edition = "2021"
88
license = "MIT OR Apache-2.0"
99
publish = false

kani-compiler/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[package]
55
name = "kani-compiler"
6-
version = "0.40.0"
6+
version = "0.41.0"
77
edition = "2021"
88
license = "MIT OR Apache-2.0"
99
publish = false

kani-driver/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[package]
55
name = "kani-driver"
6-
version = "0.40.0"
6+
version = "0.41.0"
77
edition = "2021"
88
description = "Build a project with Kani and run all proof harnesses"
99
license = "MIT OR Apache-2.0"

kani-driver/src/call_cbmc.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,17 @@ impl VerificationResult {
327327
}
328328
Err(exit_status) => {
329329
let verification_result = console::style("FAILED").red();
330+
let explanation = if *exit_status == 137 {
331+
"CBMC appears to have run out of memory. You may want to rerun your proof in \
332+
an environment with additional memory or use stubbing to reduce the size of the \
333+
code the verifier reasons about.\n"
334+
} else {
335+
""
336+
};
330337
format!(
331-
"\nCBMC failed with status {exit_status}\nVERIFICATION:- {verification_result}\n",
338+
"\nCBMC failed with status {exit_status}\n\
339+
VERIFICATION:- {verification_result}\n\
340+
{explanation}",
332341
)
333342
}
334343
}

kani_metadata/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[package]
55
name = "kani_metadata"
6-
version = "0.40.0"
6+
version = "0.41.0"
77
edition = "2021"
88
license = "MIT OR Apache-2.0"
99
publish = false

library/kani/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[package]
55
name = "kani"
6-
version = "0.40.0"
6+
version = "0.41.0"
77
edition = "2021"
88
license = "MIT OR Apache-2.0"
99
publish = false

library/kani_macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[package]
55
name = "kani_macros"
6-
version = "0.40.0"
6+
version = "0.41.0"
77
edition = "2021"
88
license = "MIT OR Apache-2.0"
99
publish = false

library/std/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Note: this package is intentionally named std to make sure the names of
66
# standard library symbols are preserved
77
name = "std"
8-
version = "0.40.0"
8+
version = "0.41.0"
99
edition = "2021"
1010
license = "MIT OR Apache-2.0"
1111
publish = false

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# SPDX-License-Identifier: Apache-2.0 OR MIT
33

44
[toolchain]
5-
channel = "nightly-2023-11-11"
5+
channel = "nightly-2023-11-12"
66
components = ["llvm-tools-preview", "rustc-dev", "rust-src", "rustfmt"]

scripts/setup/ubuntu/install_cbmc.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fi
1515
UBUNTU_VERSION=$(lsb_release -rs)
1616
MAJOR=${UBUNTU_VERSION%.*}
1717

18-
if [[ "${MAJOR}" -gt "18" ]]
18+
if [[ "${MAJOR}" -gt "18" ]] && [[ $(dpkg --print-architecture) = "amd64" ]]
1919
then
2020
FILE="ubuntu-${UBUNTU_VERSION}-cbmc-${CBMC_VERSION}-Linux.deb"
2121
URL="https://github.com/diffblue/cbmc/releases/download/cbmc-${CBMC_VERSION}/$FILE"
@@ -29,7 +29,7 @@ then
2929
exit 0
3030
fi
3131

32-
# Binaries are no longer released for 18.04, so build from source
32+
# There are no binaries for 18.04 or for non-x86_64, so build from source
3333

3434
WORK_DIR=$(mktemp -d)
3535
git clone \
@@ -44,7 +44,8 @@ git submodule update --init
4444

4545
cmake -S . -Bbuild -DWITH_JBMC=OFF -Dsat_impl="minisat2;cadical"
4646
make -C build -j$(nproc)
47-
sudo make -C build install
47+
cpack -G DEB --config build/CPackConfig.cmake
48+
sudo dpkg -i ./cbmc-*.deb
4849

4950
popd
5051
rm -rf "${WORK_DIR}"

tools/build-kani/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[package]
55
name = "build-kani"
6-
version = "0.40.0"
6+
version = "0.41.0"
77
edition = "2021"
88
description = "Builds Kani, Sysroot and release bundle."
99
license = "MIT OR Apache-2.0"

0 commit comments

Comments
 (0)