Skip to content

Z3 assertion violation on String formula with str.at, push in ../src/util/old_vector.h line 375 #2765

@muchang

Description

@muchang

Hi,
For this formula,

(set-logic QF_S)
(declare-fun s () String)
(assert (= (str.at s 2) ""))
(push 1)
(check-sat)

Z3 throws out an assertion violation:

ASSERTION VIOLATION
File: ../src/util/old_vector.h
Line: 375
idx < size()
(C)ontinue, (A)bort, (S)top, (T)hrow exception, Invoke (G)DB

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