From b0da5409c10ffd6dc765e239a081dbf17d6ba0df Mon Sep 17 00:00:00 2001 From: Nikolaj Bjorner Date: Tue, 9 Jun 2020 14:58:25 -0700 Subject: [PATCH] substitute into non-ground regexes Signed-off-by: Nikolaj Bjorner --- src/smt/seq_regex.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/smt/seq_regex.cpp b/src/smt/seq_regex.cpp index e667d0f5b..6a30cbf38 100644 --- a/src/smt/seq_regex.cpp +++ b/src/smt/seq_regex.cpp @@ -275,6 +275,9 @@ namespace smt { #endif } } + if (!is_ground(d)) { + d = subst(d, sub); + } // at this point there should be no free variables as the ites are at top-level. if (!re().is_empty(d)) conds.push_back(th.mk_literal(sk().mk_accept(s, a().mk_int(idx + 1), d)));