Skip to content

Commit 9e620ef

Browse files
Try to support z3 on arm64 linux
1 parent c5fee2c commit 9e620ef

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

ksmt-z3/build.gradle.kts

+5-3
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,16 @@ repositories {
99
mavenCentral()
1010
}
1111

12-
val z3Version = "4.11.2"
12+
val z3Version = "4.12.3"
1313

1414
val z3JavaJar by lazy { mkZ3ReleaseDownloadTask("x64-win", "*.jar") }
1515

1616
val z3BinariesWithArch = listOf(
1717
"x64" to mkZ3ReleaseDownloadTask("x64-win", "*.dll"),
1818
"x64" to mkZ3ReleaseDownloadTask("x64-glibc-2.31", "*.so"),
1919
"x64" to mkZ3ReleaseDownloadTask("x64-osx-10.16", "*.dylib"),
20-
"arm" to mkZ3ReleaseDownloadTask("arm64-osx-11.0", "*.dylib")
20+
"arm" to mkZ3ReleaseDownloadTask("arm64-osx-11.0", "*.dylib"),
21+
"arm" to mkZ3ReleaseDownloadTask("arm64-glibc-2.35", "*.so"),
2122
)
2223

2324
dependencies {
@@ -41,7 +42,8 @@ tasks.withType<ProcessResources> {
4142

4243
fun Project.mkZ3ReleaseDownloadTask(arch: String, artifactPattern: String): TaskProvider<Task> {
4344
val z3ReleaseBaseUrl = "https://github.com/Z3Prover/z3/releases/download"
44-
val releaseName = "z3-${z3Version}"
45+
// val releaseName = "z3-${z3Version}"
46+
val releaseName = "Nightly"
4547
val packageName = "z3-${z3Version}-${arch}.zip"
4648
val packageDownloadTarget = buildDir.resolve("dist").resolve(releaseName).resolve(packageName)
4749
val downloadUrl = listOf(z3ReleaseBaseUrl, releaseName, packageName).joinToString("/")

ksmt-z3/src/main/kotlin/io/ksmt/solver/z3/KZ3ExprConverter.kt

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ open class KZ3ExprConverter(
131131
Z3_sort_kind.Z3_CHAR_SORT,
132132
Z3_sort_kind.Z3_UNKNOWN_SORT -> TODO("$sort is not supported yet")
133133
null -> error("z3 sort kind cannot be null")
134+
Z3_sort_kind.Z3_TYPE_VAR -> TODO()
134135
}
135136
}
136137

0 commit comments

Comments
 (0)