Skip to content

Solution unsoundness on string formula #5096

@wintered

Description

@wintered

Commit: e8917a1

$z3release bug.smt2 
sat
$cvc4 -q bug.smt2 
unsat

$cat bug.smt2 
(declare-fun x () String)
(assert (= 0 (str.to_int (str.++ (str.replace "" x "") 
        (str.replace "" x (str.substr x 1 0))))))
(check-sat)

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