Skip to content

(simplify, reduce-invertible, smt) Soundness bug on QF_BV formula (assert (= (bvnand a b) a)) #4455

@muchang

Description

@muchang

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

[571] % z3-4.8.7 small.smt2
sat
sat
[572] % z3-4.8.8 small.smt2
unsat
sat
[573] % z3release small.smt2
unsat
sat
[574] % 
[574] % cat small.smt2
(set-logic QF_BV)
(declare-fun a () (_ BitVec 32))
(declare-fun b () (_ BitVec 32))
(assert (= (bvnand a b) a))
(check-sat-using (then simplify reduce-invertible smt))
(check-sat)
[575] %

OS: Ubuntu 18.04
Commit: d1d1411

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