mirror of
https://github.com/Z3Prover/z3
synced 2025-04-13 12:28:44 +00:00
Fix compiler warnings
This commit is contained in:
parent
823bf317c5
commit
efa3c0f68e
|
@ -152,7 +152,6 @@ void subterms_postorder::iterator::next() {
|
||||||
}
|
}
|
||||||
|
|
||||||
subterms_postorder::iterator& subterms_postorder::iterator::operator++() {
|
subterms_postorder::iterator& subterms_postorder::iterator::operator++() {
|
||||||
expr* e = m_es.back();
|
|
||||||
next();
|
next();
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
@ -172,4 +171,3 @@ bool subterms_postorder::iterator::operator==(iterator const& other) const {
|
||||||
bool subterms_postorder::iterator::operator!=(iterator const& other) const {
|
bool subterms_postorder::iterator::operator!=(iterator const& other) const {
|
||||||
return !(*this == other);
|
return !(*this == other);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -435,7 +435,7 @@ namespace datalog {
|
||||||
Since the destructor is protected, we cannot use the \c dealloc macro.
|
Since the destructor is protected, we cannot use the \c dealloc macro.
|
||||||
*/
|
*/
|
||||||
void destroy() {
|
void destroy() {
|
||||||
SASSERT(this);
|
SASSERT(this != nullptr);
|
||||||
this->~base_ancestor();
|
this->~base_ancestor();
|
||||||
memory::deallocate(this);
|
memory::deallocate(this);
|
||||||
}
|
}
|
||||||
|
@ -1274,4 +1274,3 @@ namespace datalog {
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* DL_BASE_H_ */
|
#endif /* DL_BASE_H_ */
|
||||||
|
|
||||||
|
|
|
@ -394,8 +394,6 @@ namespace datalog {
|
||||||
bool operator()(table_element * func_columns) override {
|
bool operator()(table_element * func_columns) override {
|
||||||
const relation_base & or1 = m_r1.get_inner_rel(func_columns[0]);
|
const relation_base & or1 = m_r1.get_inner_rel(func_columns[0]);
|
||||||
const relation_base & or2 = m_r2.get_inner_rel(func_columns[1]);
|
const relation_base & or2 = m_r2.get_inner_rel(func_columns[1]);
|
||||||
SASSERT(&or1);
|
|
||||||
SASSERT(&or2);
|
|
||||||
unsigned new_rel_num = m_rjoins.size();
|
unsigned new_rel_num = m_rjoins.size();
|
||||||
m_rjoins.push_back(m_parent.do_rjoin(or1, or2));
|
m_rjoins.push_back(m_parent.do_rjoin(or1, or2));
|
||||||
func_columns[0]=new_rel_num;
|
func_columns[0]=new_rel_num;
|
||||||
|
@ -2375,4 +2373,3 @@ namespace datalog {
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -132,7 +132,6 @@ unsigned read_datalog(char const * file) {
|
||||||
datalog::context ctx(m, re, s_params, params);
|
datalog::context ctx(m, re, s_params, params);
|
||||||
datalog::relation_manager & rmgr = ctx.get_rel_context()->get_rmanager();
|
datalog::relation_manager & rmgr = ctx.get_rel_context()->get_rmanager();
|
||||||
datalog::relation_plugin & inner_plg = *rmgr.get_relation_plugin(symbol("tr_hashtable"));
|
datalog::relation_plugin & inner_plg = *rmgr.get_relation_plugin(symbol("tr_hashtable"));
|
||||||
SASSERT(&inner_plg);
|
|
||||||
rmgr.register_plugin(alloc(datalog::finite_product_relation_plugin, inner_plg, rmgr));
|
rmgr.register_plugin(alloc(datalog::finite_product_relation_plugin, inner_plg, rmgr));
|
||||||
|
|
||||||
g_piece_timer.reset();
|
g_piece_timer.reset();
|
||||||
|
@ -259,4 +258,3 @@ unsigned read_datalog(char const * file) {
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue