3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-25 01:55:32 +00:00

Fixed memory leaks in fpa2bv converter.

Fixes #480
This commit is contained in:
Christoph M. Wintersteiger 2016-03-05 16:47:08 +00:00
parent 09832ca807
commit 9dfc2bc61e
3 changed files with 65 additions and 66 deletions

View file

@ -91,7 +91,6 @@ class fpa2bv_tactic : public tactic {
// that is (= e (fp #b0 #b1...1 #b0...01)), so that the value propagation
// has a value to propagate.
expr * sgn, *sig, *exp;
expr_ref top_exp(m);
m_conv.split_fp(new_curr, sgn, exp, sig);
result.back()->assert_expr(m.mk_eq(sgn, m_conv.bu().mk_numeral(0, 1)));
result.back()->assert_expr(m.mk_eq(exp, m_conv.bu().mk_numeral(-1, m_conv.bu().get_bv_size(exp))));