mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 19:35:50 +00:00
add occurs check to other nla_basic lemmas
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
4890c3ce31
commit
30de76b529
21 changed files with 94 additions and 301 deletions
|
@ -6,8 +6,8 @@
|
|||
nla_core.h
|
||||
|
||||
Author:
|
||||
Nikolaj Bjorner (nbjorner)
|
||||
Lev Nachmanson (levnach)
|
||||
Lev Nachmanson (levnach)
|
||||
Nikolaj Bjorner (nbjorner)
|
||||
|
||||
--*/
|
||||
#pragma once
|
||||
|
@ -46,7 +46,7 @@ const lpvar null_lpvar = UINT_MAX;
|
|||
|
||||
inline int rat_sign(const rational& r) { return r.is_pos()? 1 : ( r.is_neg()? -1 : 0); }
|
||||
inline rational rrat_sign(const rational& r) { return rational(rat_sign(r)); }
|
||||
inline bool is_set(unsigned j) { return static_cast<int>(j) != -1; }
|
||||
inline bool is_set(unsigned j) { return j != null_lpvar; }
|
||||
inline bool is_even(unsigned k) { return (k >> 1) << 1 == k; }
|
||||
struct ineq {
|
||||
lp::lconstraint_kind m_cmp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue