mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
36 lines
533 B
C++
36 lines
533 B
C++
/*++
|
|
Copyright (c) 2017 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
<name>
|
|
|
|
Abstract:
|
|
|
|
<abstract>
|
|
|
|
Author:
|
|
|
|
Lev Nachmanson (levnach)
|
|
|
|
Revision History:
|
|
|
|
|
|
--*/
|
|
|
|
#pragma once
|
|
namespace lp {
|
|
template <typename V>
|
|
struct conversion_helper {
|
|
static V get_lower_bound(const column_info<mpq> & ci) {
|
|
return V(ci.get_lower_bound(), ci.lower_bound_is_strict()? 1 : 0);
|
|
}
|
|
|
|
static V get_upper_bound(const column_info<mpq> & ci) {
|
|
return V(ci.get_upper_bound(), ci.upper_bound_is_strict()? -1 : 0);
|
|
}
|
|
};
|
|
|
|
|
|
}
|