mirror of
https://github.com/Z3Prover/z3
synced 2025-04-27 19:05:51 +00:00
deal with compiler warnings
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
66469bb678
commit
2d8b7b5ac6
4 changed files with 13 additions and 14 deletions
|
@ -325,9 +325,9 @@ namespace polysat {
|
|||
m_vars.insert(v);
|
||||
}
|
||||
|
||||
void conflict::add_lemma(signed_constraint const* cs, unsigned cs_len) {
|
||||
void conflict::add_lemma(signed_constraint const* cs, size_t cs_len) {
|
||||
clause_builder cb(s);
|
||||
for (unsigned i = 0; i < cs_len; ++i)
|
||||
for (size_t i = 0; i < cs_len; ++i)
|
||||
cb.push(cs[i]);
|
||||
clause_ref lemma = cb.build();
|
||||
SASSERT(lemma);
|
||||
|
|
|
@ -199,7 +199,7 @@ namespace polysat {
|
|||
|
||||
/** Add a side lemma to the conflict; to be learned in addition to the main lemma after conflict resolution finishes. */
|
||||
void add_lemma(std::initializer_list<signed_constraint> cs);
|
||||
void add_lemma(signed_constraint const* cs, unsigned cs_len);
|
||||
void add_lemma(signed_constraint const* cs, size_t cs_len);
|
||||
|
||||
#if 0
|
||||
/**
|
||||
|
|
|
@ -48,16 +48,15 @@ show_deref_t<T> show_deref(Ptr const& ptr) {
|
|||
|
||||
template <typename T>
|
||||
struct repeat {
|
||||
unsigned count;
|
||||
size_t count;
|
||||
T const& obj;
|
||||
repeat(unsigned count, T const& obj): count(count), obj(obj) {}
|
||||
repeat(size_t count, T const& obj): count(count), obj(obj) {}
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
std::ostream& operator<<(std::ostream& out, repeat<T> const& r) {
|
||||
for (unsigned i = r.count; i-- > 0; ) {
|
||||
for (size_t i = r.count; i-- > 0; )
|
||||
out << r.obj;
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
|
@ -79,7 +78,7 @@ std::ostream& operator<<(std::ostream& out, pad<T> const& p) {
|
|||
std::stringstream tmp;
|
||||
tmp << p.obj;
|
||||
std::string s = tmp.str();
|
||||
unsigned n = (s.length() < p.width) ? (p.width - s.length()) : 0;
|
||||
size_t n = (s.length() < p.width) ? (p.width - s.length()) : 0;
|
||||
switch (p.dir) {
|
||||
case pad_direction::left:
|
||||
out << repeat(n, ' ') << s;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue