Skip to content

Commit de6ac8f

Browse files
committed
Update Z3 to version 4.7.1
1 parent e98bc3f commit de6ac8f

File tree

4 files changed

+11
-23
lines changed

4 files changed

+11
-23
lines changed

README.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
11
ScalaZ3 for Scala 2.10, 2.11, and 2.12
22
======================================
33

4-
This is ScalaZ3 for Z3 4.5.0 and Scala 2.10, 2.11, and 2.12.
5-
6-
ScalaZ3 for Z3 version 4.3.2 can be found in the branch `Z3-4.3.2`.
7-
8-
Switch to the branch `2.9.x` for Scala 2.9 support (Z3 version 4.3.2).
4+
This is ScalaZ3 for Z3 4.7.1 and Scala 2.10, 2.11, and 2.12.
95

106
Compiling ScalaZ3
117
-----------------
128

13-
You should have Java and SBT 0.13.x installed.
9+
You should have Java and SBT 1.2.x installed.
1410

1511
### Mac & Unix
1612

1713
Run
1814

1915
sbt +package
20-
21-
to compile Z3 4.5.0 and cross-compile ScalaZ3 for Scala 2.10, 2.11 and 2.12.
2216

23-
The JAR files will be in `target/scala-2.XX/scalaz3_2.XX-3.0.jar`
17+
to compile Z3 4.7.1 and cross-compile ScalaZ3 for Scala 2.10, 2.11 and 2.12.
18+
19+
The JAR files will be in `target/scala-2.XX/scalaz3_2.XX-4.7.1.jar`
2420
and will contain the shared library dependencies.
2521

2622
For testing, run
@@ -58,7 +54,7 @@ Now navigate to the scalaz3 folder and type:
5854

5955
sbt +package
6056

61-
The JAR files will be in `target/scala-2.XX/scalaz3_2.XX-3.0.jar` and will contain the shared library
57+
The JAR files will be in `target/scala-2.XX/scalaz3_2.XX-4.7.1.jar` and will contain the shared library
6258
dependencies.
6359

6460
#### Test your package.

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import ScalaZ3Build._
33
lazy val root = (project in file("."))
44
.settings(
55
name := "ScalaZ3",
6-
version := "4.0",
6+
version := "4.7.1",
77
organization := "ch.epfl.lara",
88
scalacOptions ++= Seq(
99
"-deprecation",

project/Build.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import scala.sys.process._
55

66
object ScalaZ3Build {
77

8+
lazy val z3SourceRepo = "https://github.com/Z3Prover/z3.git"
9+
lazy val z3SourceTag = "z3-4.7.1"
10+
811
lazy val PS = java.io.File.pathSeparator
912
lazy val DS = java.io.File.separator
1013

@@ -32,9 +35,6 @@ object ScalaZ3Build {
3235
lazy val jdkMacIncludePath = jdkIncludePath / "darwin"
3336
lazy val jdkWinIncludePath = jdkIncludePath / "win32"
3437

35-
lazy val z3SourceRepo = "https://github.com/Z3Prover/z3.git"
36-
lazy val z3SourceTag = "z3-4.6.0"
37-
3838
lazy val osInf: String = Option(System.getProperty("os.name")).getOrElse("")
3939

4040
lazy val osArch: String = {
@@ -112,7 +112,7 @@ object ScalaZ3Build {
112112
val s = streams.value
113113

114114
if (!z3Path.asFile.exists) {
115-
s.log.info("Cloning Z3 source repository ...")
115+
s.log.info(s"Cloning Z3 source repository to $z3Path...")
116116
Git.cloneRepository()
117117
.setDirectory(z3Path.asFile)
118118
.setURI(z3SourceRepo)

src/main/scala/z3/scala/Z3DeclKind.scala

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ object OpXor extends Z3DeclKind (Z3_decl_kind.Z3_OP_XOR.toInt)
1717
object OpNot extends Z3DeclKind (Z3_decl_kind.Z3_OP_NOT.toInt)
1818
object OpImplies extends Z3DeclKind (Z3_decl_kind.Z3_OP_IMPLIES.toInt)
1919
object OpOEq extends Z3DeclKind (Z3_decl_kind.Z3_OP_OEQ.toInt) // NEW in ScalaZ3 3.0
20-
object OpInterp extends Z3DeclKind (Z3_decl_kind.Z3_OP_INTERP.toInt) // NEW in ScalaZ3 3.0
2120

2221
// Arithmetic
2322
object OpANum extends Z3DeclKind (Z3_decl_kind.Z3_OP_ANUM.toInt)
@@ -126,7 +125,6 @@ object OpPrNotOrElim extends Z3DeclKind (Z3_decl_kind.Z3_OP_PR_NOT_OR_ELI
126125
object OpPrRewrite extends Z3DeclKind (Z3_decl_kind.Z3_OP_PR_REWRITE.toInt) // NEW in ScalaZ3 3.0
127126
object OpPrRewriteStar extends Z3DeclKind (Z3_decl_kind.Z3_OP_PR_REWRITE_STAR.toInt) // NEW in ScalaZ3 3.0
128127
object OpPrPullQuant extends Z3DeclKind (Z3_decl_kind.Z3_OP_PR_PULL_QUANT.toInt) // NEW in ScalaZ3 3.0
129-
object OpPrPullQuantStar extends Z3DeclKind (Z3_decl_kind.Z3_OP_PR_PULL_QUANT_STAR.toInt) // NEW in ScalaZ3 3.0
130128
object OpPrPushQuant extends Z3DeclKind (Z3_decl_kind.Z3_OP_PR_PUSH_QUANT.toInt) // NEW in ScalaZ3 3.0
131129
object OpPrElimUnusedVars extends Z3DeclKind (Z3_decl_kind.Z3_OP_PR_ELIM_UNUSED_VARS.toInt) // NEW in ScalaZ3 3.0
132130
object OpPrDER extends Z3DeclKind (Z3_decl_kind.Z3_OP_PR_DER.toInt) // NEW in ScalaZ3 3.0
@@ -143,8 +141,6 @@ object OpPrApplyDef extends Z3DeclKind (Z3_decl_kind.Z3_OP_PR_APPLY_DEF.
143141
object OpPrIffOEq extends Z3DeclKind (Z3_decl_kind.Z3_OP_PR_IFF_OEQ.toInt) // NEW in ScalaZ3 3.0
144142
object OpPrNNFPos extends Z3DeclKind (Z3_decl_kind.Z3_OP_PR_NNF_POS.toInt) // NEW in ScalaZ3 3.0
145143
object OpPrNNFNeg extends Z3DeclKind (Z3_decl_kind.Z3_OP_PR_NNF_NEG.toInt) // NEW in ScalaZ3 3.0
146-
object OpPrNNFStar extends Z3DeclKind (Z3_decl_kind.Z3_OP_PR_NNF_STAR.toInt) // NEW in ScalaZ3 3.0
147-
object OpPrCNFStar extends Z3DeclKind (Z3_decl_kind.Z3_OP_PR_CNF_STAR.toInt) // NEW in ScalaZ3 3.0
148144
object OpPrSkolemize extends Z3DeclKind (Z3_decl_kind.Z3_OP_PR_SKOLEMIZE.toInt) // NEW in ScalaZ3 3.0
149145
object OpPrModusPonensOEq extends Z3DeclKind (Z3_decl_kind.Z3_OP_PR_MODUS_PONENS_OEQ.toInt) // NEW in ScalaZ3 3.0
150146
object OpPrThLemma extends Z3DeclKind (Z3_decl_kind.Z3_OP_PR_TH_LEMMA.toInt) // NEW in ScalaZ3 3.0
@@ -278,7 +274,6 @@ object Z3DeclKind {
278274
case Z3_decl_kind.Z3_OP_NOT => OpNot
279275
case Z3_decl_kind.Z3_OP_IMPLIES => OpImplies
280276
case Z3_decl_kind.Z3_OP_OEQ => OpOEq
281-
case Z3_decl_kind.Z3_OP_INTERP => OpInterp
282277

283278
case Z3_decl_kind.Z3_OP_ANUM => OpANum
284279
case Z3_decl_kind.Z3_OP_AGNUM => OpAGNum
@@ -383,7 +378,6 @@ object Z3DeclKind {
383378
case Z3_decl_kind.Z3_OP_PR_REWRITE => OpPrRewrite
384379
case Z3_decl_kind.Z3_OP_PR_REWRITE_STAR => OpPrRewriteStar
385380
case Z3_decl_kind.Z3_OP_PR_PULL_QUANT => OpPrPullQuant
386-
case Z3_decl_kind.Z3_OP_PR_PULL_QUANT_STAR => OpPrPullQuantStar
387381
case Z3_decl_kind.Z3_OP_PR_PUSH_QUANT => OpPrPushQuant
388382
case Z3_decl_kind.Z3_OP_PR_ELIM_UNUSED_VARS => OpPrElimUnusedVars
389383
case Z3_decl_kind.Z3_OP_PR_DER => OpPrDER
@@ -400,8 +394,6 @@ object Z3DeclKind {
400394
case Z3_decl_kind.Z3_OP_PR_IFF_OEQ => OpPrIffOEq
401395
case Z3_decl_kind.Z3_OP_PR_NNF_POS => OpPrNNFPos
402396
case Z3_decl_kind.Z3_OP_PR_NNF_NEG => OpPrNNFNeg
403-
case Z3_decl_kind.Z3_OP_PR_NNF_STAR => OpPrNNFStar
404-
case Z3_decl_kind.Z3_OP_PR_CNF_STAR => OpPrCNFStar
405397
case Z3_decl_kind.Z3_OP_PR_SKOLEMIZE => OpPrSkolemize
406398
case Z3_decl_kind.Z3_OP_PR_MODUS_PONENS_OEQ => OpPrModusPonensOEq
407399
case Z3_decl_kind.Z3_OP_PR_TH_LEMMA => OpPrThLemma

0 commit comments

Comments
 (0)