Skip to content

solver.enforce_model_conversion: soundness bug on QF_LRA formula #3227

@muchang

Description

@muchang

Hi,
For this formula:

(set-option :solver.enforce_model_conversion true)
(declare-fun a () Real)
(declare-fun b () Real)
(assert (xor (>= b 0) (>= (+ (/ 5 b)) 2) (< a 0)))
(check-sat)
(assert (< (+ (* (- 6) a)) 4))
(check-sat)

Z3 gives an incorrect answer:

[654] % z3debug small.smt2
sat
sat
[655] % z3 small.smt2
sat
unsat
[656] % 
[656] % cat small.smt2
(set-option :solver.enforce_model_conversion true)
(declare-fun a () Real)
(declare-fun b () Real)
(assert (xor (>= b 0) (>= (+ (/ 5 b)) 2) (< a 0)))
(check-sat)
(assert (< (+ (* (- 6) a)) 4))
(check-sat)

Z3 debug is correct.

OS: Ubuntu 18.04
Commit: a51d65d

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