Skip to content

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

@muchang

Description

@muchang

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

[527] % z3-4.8.5 small.smt2
unsat
sat
[528] % z3-4.8.6 small.smt2
unsat
sat
[529] % z3-4.8.7 small.smt2
unsat
sat
[530] % z3-4.8.8 small.smt2
unsat
sat
[531] % z3release small.smt2
unsat
sat
[532] % 
[532] % cat small.smt2
(declare-fun a () (_ BitVec 1))
(declare-fun b () (_ BitVec 1))
(assert (= (bvnand a (bvnand b b)) a))
(check-sat-using (then simplify reduce-invertible default))
(check-sat)
[533] %

OS: Ubuntu 18.04
Commit: d6ad371

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