3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-01-28 12:58:43 +00:00
z3/src
Nikolaj Bjorner 8a0207700c
Fix implicit conversion warnings: use UINT_MAX instead of -1 for unsi… (#8342)
* Fix implicit conversion warnings: use UINT_MAX instead of -1 for unsigned variables

Replace implicit conversion from negative literal to unsigned type
with explicit UINT_MAX constant to eliminate compiler warnings.

Fixed 10 instances across 6 files:
- src/ast/rewriter/bv_rewriter.cpp: 1 instance
- src/ast/sls/sls_bv_tracker.h: 2 instances
- src/math/lp/dioph_eq.cpp: 3 instances
- src/math/lp/lp_primal_core_solver.h: 2 instances
- src/muz/transforms/dl_mk_array_instantiation.cpp: 1 instance
- src/muz/transforms/dl_mk_synchronize.cpp: 1 instance

These changes preserve the exact same runtime behavior (UINT_MAX
equals the wrapped value of -1 for unsigned types) while making
the code more explicit and warning-free.

* Update bv_rewriter.cpp

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-01-25 22:35:43 -08:00
..
ackermannization Standardize for-loop increments to prefix form (++i) (#8199) 2026-01-14 19:55:31 -08:00
api Refactor find_probe() to use std::optional (#8334) 2026-01-25 15:13:36 -08:00
ast Fix implicit conversion warnings: use UINT_MAX instead of -1 for unsi… (#8342) 2026-01-25 22:35:43 -08:00
cmd_context Refactor find_psort_decl() to return std::optional<psort_decl*> (#8339) 2026-01-25 19:50:33 -08:00
math Fix implicit conversion warnings: use UINT_MAX instead of -1 for unsi… (#8342) 2026-01-25 22:35:43 -08:00
model Standardize for-loop increments to prefix form (++i) (#8199) 2026-01-14 19:55:31 -08:00
muz Fix implicit conversion warnings: use UINT_MAX instead of -1 for unsi… (#8342) 2026-01-25 22:35:43 -08:00
nlsat revive nlsat check_lemma() 2026-01-25 11:38:25 -10:00
opt preserve the initial state of the solver with push/pop for multiple objectives (#8264) 2026-01-23 10:41:03 -08:00
params Add SLS tactic as a separate worker thread (#8263) 2026-01-20 12:52:00 -08:00
parsers Refactor find_psort_decl() to return std::optional<psort_decl*> (#8339) 2026-01-25 19:50:33 -08:00
qe Refactor mk_and/mk_or call sites to use vector overloads (#8286) 2026-01-22 13:21:22 -08:00
sat Refactor mk_and and mk_app to use std::span API (#8285) 2026-01-22 16:58:38 -08:00
shell Standardize for-loop increments to prefix form (++i) (#8199) 2026-01-14 19:55:31 -08:00
smt Refactor SMT equality handlers to use C++17 structured bindings (#8321) 2026-01-24 12:07:38 -08:00
solver Standardize for-loop increments to prefix form (++i) (#8199) 2026-01-14 19:55:31 -08:00
tactic Refactor mk_and and mk_app to use std::span API (#8285) 2026-01-22 16:58:38 -08:00
test preserve the initial state of the solver with push/pop for multiple objectives (#8264) 2026-01-23 10:41:03 -08:00
util fix underflow bug 2026-01-25 21:10:11 -08:00
CMakeLists.txt BLD: Add CMake option to build Python bindings without rebuilding libz3 (redux) (#8088) 2025-12-16 17:50:37 +00:00