Skip to content

z3str3 model_validate segmentation fault on QF_S formula #2950

@muchang

Description

@muchang

Hi,
For this formula,

(declare-fun a () String)
(declare-fun b () String)
(declare-fun c () String)
(assert (and (distinct (str.substr a 60 (str.len b)) "")))
(assert
 (or
  (distinct
   (ite (distinct
         (str.len (str.substr (str.replace (str.replace a b "") "29M8u" "")
                   204
                   (- 11 (str.len c) 234)))
         210) 209 248)
   (ite (= (str.at (str.replace (str.replace a b "") "29M8u" "") 234) "") 205 98)
   (ite (distinct (str.len (str.replace (str.replace a b "") "29M8u" "")) 41) 172 27)
   217)
  (< (* 131 (str.len (str.replace (str.replace a b "") "29M8u" "")) 235) 147)))
(check-sat)

z3 smt.string_solver=z3str3 model_validate=true throws out a segmentation fault.

OS: Ubuntu 18.04
Revision: 140926e

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions