mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 20:18:18 +00:00
fix build issues part 1
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
714dfaded3
commit
2a905e02c8
|
@ -367,7 +367,7 @@ namespace lean {
|
||||||
if (it!= m_name_to_var_index.end())
|
if (it!= m_name_to_var_index.end())
|
||||||
return it->second;
|
return it->second;
|
||||||
|
|
||||||
unsigned ret= m_name_to_var_index.size();
|
unsigned ret = static_cast<unsigned>(m_name_to_var_index.size());
|
||||||
m_name_to_var_index[s] = ret;
|
m_name_to_var_index[s] = ret;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
|
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
|
||||||
Released under Apache 2.0 license as described in the file LICENSE.
|
|
||||||
|
|
||||||
Author: Lev Nachmanson
|
Author: Lev Nachmanson
|
||||||
*/
|
*/
|
||||||
|
@ -19,7 +18,7 @@ struct conversion_helper {
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
struct conversion_helper <double> {
|
struct conversion_helper <double> {
|
||||||
static double conversion_helper <double>::get_upper_bound(const column_info<mpq> & ci) {
|
static double conversion_helper get_upper_bound(const column_info<mpq> & ci) {
|
||||||
if (!ci.upper_bound_is_strict())
|
if (!ci.upper_bound_is_strict())
|
||||||
return ci.get_upper_bound().get_double();
|
return ci.get_upper_bound().get_double();
|
||||||
double eps = 0.00001;
|
double eps = 0.00001;
|
||||||
|
|
|
@ -29,7 +29,7 @@ var_index add_var(unsigned ext_j) {
|
||||||
|
|
||||||
void register_new_ext_var_index(unsigned ext_v) {
|
void register_new_ext_var_index(unsigned ext_v) {
|
||||||
lean_assert(!contains(m_ext_vars_to_columns, ext_v));
|
lean_assert(!contains(m_ext_vars_to_columns, ext_v));
|
||||||
unsigned j = m_ext_vars_to_columns.size();
|
unsigned j = static_cast<unsigned>(m_ext_vars_to_columns.size());
|
||||||
m_ext_vars_to_columns[ext_v] = j;
|
m_ext_vars_to_columns[ext_v] = j;
|
||||||
lean_assert(m_columns_to_ext_vars_or_term_indices.size() == j);
|
lean_assert(m_columns_to_ext_vars_or_term_indices.size() == j);
|
||||||
m_columns_to_ext_vars_or_term_indices.push_back(ext_v);
|
m_columns_to_ext_vars_or_term_indices.push_back(ext_v);
|
||||||
|
|
|
@ -796,7 +796,7 @@ public:
|
||||||
auto it = m_names_to_var_index.find(s);
|
auto it = m_names_to_var_index.find(s);
|
||||||
if (it != m_names_to_var_index.end())
|
if (it != m_names_to_var_index.end())
|
||||||
return it->second;
|
return it->second;
|
||||||
unsigned ret = m_names_to_var_index.size();
|
unsigned ret = static_cast<unsigned>(m_names_to_var_index.size());
|
||||||
m_names_to_var_index[s] = ret;
|
m_names_to_var_index[s] = ret;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue