3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-05 17:14:07 +00:00

Merge pull request #1341 from mtrberzi/issue1274-crash

Internalize free var before iterating eqc in theory_str
This commit is contained in:
Nikolaj Bjorner 2017-11-01 10:19:33 -07:00 committed by GitHub
commit abeaefa8fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10430,6 +10430,9 @@ namespace smt {
// iterate parents
if (standAlone) {
// I hope this works!
if (!ctx.e_internalized(freeVar)) {
ctx.internalize(freeVar, false);
}
enode * e_freeVar = ctx.get_enode(freeVar);
enode_vector::iterator it = e_freeVar->begin_parents();
for (; it != e_freeVar->end_parents(); ++it) {