mirror of
https://github.com/Z3Prover/z3
synced 2026-02-20 15:34:41 +00:00
The representation of the zero rcf numeral is nullptr, and the is_rational and is_rational_function operations are not expecting to be called with nullptr. But there isn't a way to test for that in the API, other than checking if Z3_rcf_num_to_string returns "0". This patch adds a couple conditions so that is_rational and is_rational_function operations handle zero. Maybe this isn't the desired change. For instance, the is_zero operation could instead be exposed in the API and preconditions added to the relevant operations. Signed-off-by: Josh Berdine <josh@berdine.net> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| mpz_matrix.cpp | ||
| mpz_matrix.h | ||
| rcf_params.pyg | ||
| realclosure.cpp | ||
| realclosure.h | ||