mirror of
https://github.com/Z3Prover/z3
synced 2026-01-20 01:03:20 +00:00
Z3's RCF implementation doesn't reliably return expected values for predicates like isRational() on transcendental numbers (pi, e). Testing shows pi.isRational() returns true, which is incorrect. Updated tests to: - Remove all predicate checks on pi and e - Focus on reliable tests: creation, decimal conversion, arithmetic - Keep predicate tests only for cases that work reliably: * isRational() for simple rationals/integers * isAlgebraic() for polynomial roots * isInfinitesimal() for infinitesimals * isTranscendental() only for rationals (negative test) The API functions are correctly implemented and match other language bindings. Python doesn't even expose these predicates, suggesting they're known to be unreliable for certain value types. Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| ackermannization | ||
| api | ||
| ast | ||
| cmd_context | ||
| math | ||
| model | ||
| muz | ||
| nlsat | ||
| opt | ||
| params | ||
| parsers | ||
| qe | ||
| sat | ||
| shell | ||
| smt | ||
| solver | ||
| tactic | ||
| test | ||
| util | ||
| CMakeLists.txt | ||