3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-28 19:01:29 +00:00

fix collection error

This commit is contained in:
Murphy Berzish 2018-04-03 12:51:03 -04:00
parent 41703a4254
commit 6a3ce301b7
2 changed files with 4 additions and 1 deletions

View file

@ -1854,6 +1854,9 @@ namespace smt {
std::pair<expr*, zstring> key1(ex->get_arg(0), regexStr);
// skip Z3str's map check, because we already check if we set up axioms on this term
regex_in_bool_map[key1] = ex;
if (!regex_in_var_reg_str_map.contains(ex->get_arg(0))) {
regex_in_var_reg_str_map.insert(ex->get_arg(0), std::set<zstring>());
}
regex_in_var_reg_str_map[ex->get_arg(0)].insert(regexStr);
}