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}")
)
Variables without constraints do not generate model. Like the example below, the model of
len_xandywill not be generated:The result is: