Skip to content

Soundness bug with (set-logic AUFNIRA) #3916

@muchang

Description

@muchang

Hi,
For second formula (i.e., t2.smt2), Z3 gives an incorrect answer:

[691] % z3 t1.smt2 
unsat
[692] % z3 t2.smt2 
sat
[693] % cvc4 -q t1.smt2 
unsat
[694] % cvc4 -q t2.smt2 
(error "The logic was specified as AUFNIRA, which doesn't include THEORY_DATATYPES, but found a term in that theory.
You might want to extend your logic to AUFDTNIRA
")
[695] % 
[695] % cat t1.smt2 
(declare-datatypes ((S 0)) (((A))))
(declare-const x S)
(declare-const y S)
(assert (distinct x y))
(check-sat)
[696] % 
[696] % cat t2.smt2 
(set-logic AUFNIRA)
(declare-datatypes ((S 0)) (((A))))
(declare-const x S)
(declare-const y S)
(assert (distinct x y))
(check-sat)
[697] %

OS: Ubuntu 18.04
Commit: 337c07a

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