Skip to content

Z3 smt.arith.solver=3 incorrect answer on String formual with str.to.int, str.len operators #2766

@muchang

Description

@muchang

Hi,
For this formula,

(declare-fun s () String)
(assert (= (str.to.int s) 10))
(assert (= (str.len s) 1))
(check-sat)

z3 smt.arith.solver=3 reports sat, while the formula should be unsat.

OS: Ubuntu 18.04
Revision: 23fcc21

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