3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-07-18 02:16:40 +00:00

Eliminated a number of potential memory leaks in fpa2bv code.

Relates to #615
This commit is contained in:
Christoph M. Wintersteiger 2016-05-25 18:49:01 +01:00
parent f1c915bcf1
commit 04a68bbb0a
3 changed files with 101 additions and 41 deletions

View file

@ -172,8 +172,10 @@ br_status fpa2bv_rewriter_cfg::reduce_app(func_decl * f, unsigned num, expr * co
else
{
SASSERT(!m_conv.is_float_family(f));
m_conv.mk_function(f, num, args, result);
return BR_DONE;
if (m_conv.fu().contains_floats(f)) {
m_conv.mk_function(f, num, args, result);
return BR_DONE;
}
}
return BR_FAILED;