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

Incompatible with z3 (4.8.12-3.1) version shipped in Debian Bookworm #274

Open
SulemanAhmadd opened this issue Dec 19, 2023 · 3 comments
Open

Comments

@SulemanAhmadd
Copy link

Hi! I have noticed that the current version of Rosette is not compatible with z3 4.8.12-3.1 package shipped in debian (stable) bookworm.

Specifically, Rosette SMT decoder is unable to recognize 'mod and 'div symbols returned by the z3 solver when using modulo arithmetic on symbolic terms.

(modulo (<some-symbolic-value>) 100)

Unrecognized symbol:  'mod

The log trace refers to failure to decode z3 output:

racket/8.7/pkgs/rosette/rosette/solver/smt/dec.rkt:99:2: inline
racket/8.7/pkgs/rosette/rosette/solver/smt/dec.rkt:25:0: decode-model
racket/8.7/pkgs/rosette/rosette/solver/smt/cmd.rkt:62:0: decode
racket/8.7/pkgs/rosette/rosette/solver/smt/base-solver.rkt:95:0: solver-check
racket/8.7/pkgs/rosette/rosette/query/core.rkt:27:0: ∃-solve
@sorawee
Copy link
Collaborator

sorawee commented Mar 16, 2024

Could you try #279 and see if it fixes your issue?

@SulemanAhmadd
Copy link
Author

SulemanAhmadd commented Mar 18, 2024

I did not get a chance to debug in depth yet but branch z3-bump-4-12-6 is giving a runtime error:

error writing to stream port
  system error: Broken pipe; errno=32
  context...:
.../smt/env.rkt:78:0: ref-expr!
   .../match/compiler.rkt:548:40: f26
   .../smt/env.rkt:78:0: ref-expr!
   .../match/compiler.rkt:548:40: f26
   .../smt/env.rkt:78:0: ref-expr!
   .../match/compiler.rkt:548:40: f26
   .../smt/env.rkt:78:0: ref-expr!
   .../match/compiler.rkt:548:40: f26
   .../smt/env.rkt:78:0: ref-expr!
   .../match/compiler.rkt:548:40: f26
   .../smt/env.rkt:78:0: ref-expr!
   .../match/compiler.rkt:548:40: f26
   .../smt/env.rkt:78:0: ref-expr!
   .../smt/cmd.rkt:25:0: encode
   .../smt/base-solver.rkt:95:0: solver-check
   .../query/core.rkt:27:0: ∃-solve

@sorawee
Copy link
Collaborator

sorawee commented Mar 21, 2024

Could you provide a minimal, complete example that triggers this issue?

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

No branches or pull requests

2 participants