Skip to content

Commit

Permalink
fix #4905
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Dec 18, 2020
1 parent 727095c commit fa5567f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/api/api_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ namespace api {
}
e = m_datalog_util.mk_numeral(n.get_uint64(), s);
}
else if (fid == m_fpa_fid) {
scoped_mpf tmp(fpautil().fm());
fpautil().fm().set(tmp, fpautil().get_ebits(s), fpautil().get_sbits(s), n.get_double());
e = fpautil().mk_value(tmp);
}
else {
invoke_error_handler(Z3_INVALID_ARG);
}
Expand Down

0 comments on commit fa5567f

Please sign in to comment.