mirror of
https://github.com/Z3Prover/z3
synced 2026-02-23 08:47:37 +00:00
Modern C++: Add std::span overload for mk_or, adopt std::clamp, optimize stream output (#8507)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
ff7898ef7c
commit
adf72f2a66
10 changed files with 19 additions and 20 deletions
|
|
@ -391,7 +391,7 @@ bool bound_propagator::relevant_bound(var x, double new_k) const {
|
|||
if (abs_k < 0.0)
|
||||
abs_k -= abs_k;
|
||||
if (bounded)
|
||||
improvement = m_threshold * std::max(std::min(interval_size, abs_k), 1.0);
|
||||
improvement = m_threshold * std::clamp(interval_size, 1.0, abs_k);
|
||||
else
|
||||
improvement = m_threshold * std::max(abs_k, 1.0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue