Skip to content

qffd assertion violation at ../src/ast/rewriter/expr_safe_replace.cpp Line: 27 #3079

@muchang

Description

@muchang

Hi,
For this formula:

(declare-fun x () Real)
(assert (= x 0.0))
(check-sat-using qffd)

Z3 throws out an assertion violation:

ASSERTION VIOLATION
File: ../src/ast/rewriter/expr_safe_replace.cpp
Line: 27
m.get_sort(src) == m.get_sort(dst)
(C)ontinue, (A)bort, (S)top, (T)hrow exception, Invoke (G)DB

Replacing Real to Int or 0.0 to 0 makes the crash disappear.

OS: Ubuntu 18.04
Commit: c71da17

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