Skip to content

Fetch Z3 distribution during build - #44

Open
k0lja wants to merge 2 commits into
devfrom
issue/7-z3-packaging
Open

Fetch Z3 distribution during build#44
k0lja wants to merge 2 commits into
devfrom
issue/7-z3-packaging

Conversation

@k0lja

@k0lja k0lja commented Aug 4, 2026

Copy link
Copy Markdown

Summary

  • download the platform-specific Z3 distribution during copyNativeLibs instead of keeping Z3 release zips in the repository
  • depend on the Maven-published JavaSMT Z3 solver artifact instead of the local Z3 jar file tree
  • keep SV-COMP packaging wired to the prepared runtime libraries without extracting vendored Z3 archives

Verification

  • ./gradlew copyNativeLibs
  • ./gradlew build -x test
  • ./gradlew :symbolic-executor:test
  • direct targets/examples/spring-1 local-solver run without a z3 executable on PATH or in the worktree:
    • command -v z3 produced no output
    • find /root/.openclaw/agents/hiwi/workspace/SWAT-issue7 -path '*/.git' -prune -o -type f -name z3 -print produced no output
    • direct java ... -Dconfig.path=swat-local.cfg ... run on port 18080 produced a Solution (LocalSolver) for /api/users/safe-search?username=user1&unfuzzable=10
    • pgrep -a z3 produced no output during the run

Fixes #7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant