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

update default z3 version to 4.13.0 and fix the runtime version check #1316

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/air/src/smt_verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ pub(crate) fn smt_check_assertion<'ctx>(
if let Some(expected_version) = &context.expected_solver_version {
let value: &str = &line[GET_VERSION_RESPONSE_PREFIX.len()..line.len() - 1];
let version = value.trim_matches(&[' ', '"'][..]);
if version != expected_version.as_str() {
if !version.starts_with(expected_version.as_str()) {
diagnostics.report(
&context
.message_interface
Expand Down
2 changes: 1 addition & 1 deletion source/tools/get-z3.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$z3_version = "4.12.5"
$z3_version = "4.13.0"
$filename = "z3-$z3_version-x64-win"

$download_url = "https://github.com/Z3Prover/z3/releases/download/z3-$z3_version/$filename.zip"
Expand Down
3 changes: 2 additions & 1 deletion source/tools/get-z3.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#! /bin/bash -eu

z3_version="4.12.5"
# Should keep track of verus/tools/common/consts.rs
z3_version="4.13.0"

if [ `uname` == "Darwin" ]; then
if [[ $(uname -m) == 'arm64' ]]; then
Expand Down
2 changes: 1 addition & 1 deletion tools/common/consts.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pub const EXPECTED_Z3_VERSION: &str = "4.12.5";
pub const EXPECTED_Z3_VERSION: &str = "4.13.0";
pub const EXPECTED_CVC5_VERSION: &str = "1.1.2";