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

Miss some model #55

Open
SimpleXiaohu opened this issue Sep 21, 2022 · 3 comments
Open

Miss some model #55

SimpleXiaohu opened this issue Sep 21, 2022 · 3 comments

Comments

@SimpleXiaohu
Copy link
Collaborator

SimpleXiaohu commented Sep 21, 2022

Variables without constraints do not generate model. Like the example below, the model of len_x and y will not be generated:

; sat
(declare-fun x ()String)
(declare-fun y ()String)

(declare-const len_x Int)
(declare-const len_y Int)

(assert (= len_x (str.len x)))
(assert (< 1 len_x))


(check-sat)
(get-model)

The result is:

Running backward propagation
   ... sat
(model
  (define-fun len_x () Int 2)
  (define-fun x () String "\u{0}\u{0}")
)
@SimpleXiaohu
Copy link
Collaborator Author

@pruemmer

@pruemmer
Copy link
Collaborator

pruemmer commented Sep 21, 2022 via email

@SimpleXiaohu
Copy link
Collaborator Author

I have try to use z3 and cvc4 to solve this instance. And they will generate them all. May be we can support this feature?

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