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:
parent
5cbba08762
commit
14172d3fae
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue