3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-19 23:14:40 +00:00
z3/src
Josh Berdine 2a785bf291 Make rcf is_rational and is_rational_function operations handle zero (#8025)
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>
2026-02-18 20:55:56 -08:00
..
ackermannization Centralize and document TRACE tags using X-macros (#7657) 2025-05-28 14:31:25 +01:00
api Add Z3_fpa_is_numeral to the API (#8026) 2026-02-18 20:55:56 -08:00
ast fix infinite loop in update function 2026-02-18 20:55:56 -08:00
cmd_context include FS logic 2025-11-21 13:14:53 -08:00
math Make rcf is_rational and is_rational_function operations handle zero (#8025) 2026-02-18 20:55:56 -08:00
model Revert "Add finite_set_value_factory for creating finite set values in model …" (#7985) 2026-02-18 20:55:23 -08:00
muz fix #7952 - make auto-selector detect large bit-vectors so it does't use the datalog engine for hopelessly large tables 2025-09-30 15:58:48 -07:00
nlsat change logic NRA->ALL in log_lemma 2026-02-18 20:55:55 -08:00
opt add user propagators to opt_solver 2025-10-02 19:44:22 -07:00
params Add smt.finite_set.lattice_refutation parameter to control lattice refutation code path (#8247) 2026-01-20 17:20:52 -08:00
parsers patch definitions, add pretty print support 2025-10-13 22:39:32 +02:00
qe move smt params to params directory, update release.yml 2025-06-09 10:47:22 -07:00
sat remove a few useless dynamic casts 2025-09-13 21:06:55 +01:00
shell move smt params to params directory, update release.yml 2025-06-09 10:47:22 -07:00
smt nits 2026-01-21 11:44:18 -08:00
solver include FS logic 2025-11-21 13:14:53 -08:00
tactic remove model converter operator on expr_ref& 2025-09-07 16:42:20 -07:00
test add tests showing shortcomings of factorization 2026-02-18 20:55:55 -08:00
util build fixes 2025-10-26 15:35:24 +01:00
CMakeLists.txt port improvements from ilana branch to master regarding nla 2025-09-19 12:28:31 -07:00