Skip to content

Miss some model #55

@SimpleXiaohu

Description

@SimpleXiaohu

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}")
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions