mirror of
https://github.com/Z3Prover/z3
synced 2025-04-06 09:34:08 +00:00
Merge pull request #1341 from mtrberzi/issue1274-crash
Internalize free var before iterating eqc in theory_str
This commit is contained in:
commit
abeaefa8fe
|
@ -10430,6 +10430,9 @@ namespace smt {
|
||||||
// iterate parents
|
// iterate parents
|
||||||
if (standAlone) {
|
if (standAlone) {
|
||||||
// I hope this works!
|
// I hope this works!
|
||||||
|
if (!ctx.e_internalized(freeVar)) {
|
||||||
|
ctx.internalize(freeVar, false);
|
||||||
|
}
|
||||||
enode * e_freeVar = ctx.get_enode(freeVar);
|
enode * e_freeVar = ctx.get_enode(freeVar);
|
||||||
enode_vector::iterator it = e_freeVar->begin_parents();
|
enode_vector::iterator it = e_freeVar->begin_parents();
|
||||||
for (; it != e_freeVar->end_parents(); ++it) {
|
for (; it != e_freeVar->end_parents(); ++it) {
|
||||||
|
|
Loading…
Reference in a new issue