Skip to content

[Consolidated] z3str3 segmentation faults #2728

@muchang

Description

@muchang

Hi,
For this formula,

(declare-fun a () String)
(assert (and and (>= (- (str.indexof a "x" 2) 3) 0) (>= (str.indexof a "y" 0) 0)))
(check-sat)

z3str3 throw out an segmentation fault on it, while z3 reports unsat:

[674] % z3 small.smt2
sat
[675] % z3 smt.string_solver=z3str3 small.smt2
Segmentation fault
[676] % cat small.smt2
(declare-fun a () String)
(assert (and and (>= (- (str.indexof a "x" 2) 3) 0) (>= (str.indexof a "y" 0) 0)))
(check-sat)

OS: Ubuntu 18.04
Revision: a0dcad0

OS:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions