3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-16 05:48:44 +00:00

fix crash in dl_interp_tail_simplifier when no transformation is performed

Signed-off-by: Nuno Lopes <t-nclaud@microsoft.com>
This commit is contained in:
Nuno Lopes 2013-04-10 14:49:07 -07:00
parent 5cbba08762
commit 14172d3fae

View file

@ -583,11 +583,12 @@ namespace datalog {
}
rule_set * res = alloc(rule_set, m_context);
if (!transform_rules(source, *res)) {
if (transform_rules(source, *res)) {
res->inherit_predicates(source);
} else {
dealloc(res);
res = 0;
}
res->inherit_predicates(source);
return res;
}