Skip to content

Soundness bug in string formula #2721

@wintered

Description

@wintered

Hi,

The following should be unsatisfiable but Z3 gives sat on it.

(declare-fun a () String)
(declare-fun b () Int)
(assert (> b 0))
(assert (= (int.to.str b) (str.++ "0" a)))
(check-sat)

Revision: 05ad90c
OS: Ubuntu 18.04

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