Skip to content

Commit

Permalink
Merge pull request #3057 from apalache-mc/th/upgrade-z3
Browse files Browse the repository at this point in the history
Upgrade Z3 (restores linux/arm64 support)
  • Loading branch information
thpani authored Jan 4, 2025
2 parents adc2403 + 4d89d2b commit 512fc1c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions .unreleased/breaking-changes/3057-z3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Upgrade Z3 to 4.13.4 (restores linux/arm64 support), see #3057
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ object Dependencies {
val tla2tools = "org.lamport" % "tla2tools" % "1.7.0-SNAPSHOT"
val ujson = "com.lihaoyi" %% "ujson" % "4.0.2"
val upickle = "com.lihaoyi" %% "upickle" % "4.0.2"
val z3 = "tools.aqua" % "z3-turnkey" % "4.12.6"
val z3 = "tools.aqua" % "z3-turnkey" % "4.13.4"
val zio = "dev.zio" %% "zio" % zioVersion
// Keep up to sync with version in plugins.sbt
val zioGrpcCodgen = "com.thesamet.scalapb.zio-grpc" %% "zio-grpc-codegen" % "0.6.0-test3" % "provided"
Expand Down
4 changes: 2 additions & 2 deletions test/tla/cli-integration-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -2065,7 +2065,7 @@ $ find ./test-out-dir/Counter.tla/* -type f -name log0.smt -exec cat {} \;
;; sat.random_seed = 0
;; sls.random_seed = 0
;; smt.random_seed = 0
;; (params seed 0 random_seed 0)
;; (params random_seed 0)
...
$ rm -rf ./test-out-dir
```
Expand All @@ -2082,7 +2082,7 @@ $ find ./test-out-dir/Counter.tla/* -type f -name log0.smt -exec cat {} \;
;; sat.random_seed = 4242
;; sls.random_seed = 4242
;; smt.random_seed = 4242
;; (params seed 4242 random_seed 4242)
;; (params random_seed 4242)
...
$ rm -rf ./test-out-dir
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ class Z3SolverContext(val config: SolverConfig) extends SolverContext with LazyL
val params = z3context.mkParams()
// Set random seed. We are also setting it via global parameters above, but `Global.setParameter()` says:
// "When a Z3 module is initialized it will use the value of these parameters when Z3_params objects are not provided."
params.add("seed", config.randomSeed)
// When the user sets z3.smt.logic = QF_LIA, z3 complains about random_seed.
// Note: when the user sets z3.smt.logic = QF_LIA, z3 complains about random_seed.
// https://github.com/apalache-mc/apalache/issues/2989
params.add("random_seed", config.randomSeed)
config.z3Params.foreach { case (k, v) =>
Expand Down

0 comments on commit 512fc1c

Please sign in to comment.