Skip to content

(smt.arith.solver=1 unit-subsume-simplify) Soundness bug on QF_S formula #3942

@muchang

Description

@muchang

Hi,
For this case, Z3 gives an incorrect answer:

[708] % z3 small.smt2
(smt.diff_logic: non-diff logic expression (+ 1 (str.len s)))
unsat
sat
[709] % 
[709] % cat small.smt2
(set-option :smt.arith.solver 1)
(declare-fun s () String)
(assert (str.in.re (str.++ "a" s) (re.* (str.to.re "b"))))
(check-sat)
(check-sat-using unit-subsume-simplify)
[710] %

It could be related to #3935 .

OS: Ubuntu 18.04
Commit: 01c12c9

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