Skip to content

Invalid model bug rewriter.flat=false #4149

@wintered

Description

@wintered
[682] % z3release rewriter.flat=false smt.threads=2 model_validate=true small.smt2
sat
(error "line 3 column 10: an invalid model was generated")
[683] % 
[683] % cat small.smt2
(declare-fun s () String)
(assert (str.contains (str.substr (str.replace (str.substr s 0 (+ (str.indexof s "a" 0) 1)) "a" "b") 1 (str.len s)) "c"))
(check-sat)
[684] %

OS: Ubuntu 18.04
Commit: 38e0968

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