mirror of
https://github.com/Z3Prover/z3
synced 2025-08-24 03:57:51 +00:00
make it C++17 friendly
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
20a5baeb70
commit
db242c28c6
3 changed files with 11 additions and 10 deletions
|
@ -290,10 +290,9 @@ namespace polysat {
|
|||
|
||||
inequality ule_constraint::as_inequality() const {
|
||||
SASSERT(!is_undef());
|
||||
if (is_positive()) {
|
||||
return { .lhs = lhs(), .rhs = rhs(), .is_strict = false, .src = this };
|
||||
} else {
|
||||
return { .lhs = rhs(), .rhs = lhs(), .is_strict = true, .src = this };
|
||||
}
|
||||
if (is_positive())
|
||||
return inequality(lhs(), rhs(), false, this);
|
||||
else
|
||||
return inequality(rhs(), lhs(), true, this);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue