Skip to content

Commit

Permalink
one other warning (from Michael)
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Suda committed Nov 30, 2021
1 parent 3be9154 commit 1bec8ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SAT/Z3Interfacing.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class Z3Interfacing : public PrimitiveProofRecordingSATSolver
return true;

// compare sort arguments
for(int i = 0; i < l.forSorts->numTypeArguments(); i++)
for(unsigned i = 0; i < l.forSorts->numTypeArguments(); i++)
// sorts are perfectly shared
if(!l.forSorts->nthArgument(i)->sameContent(r.forSorts->nthArgument(i)))
return false;
Expand All @@ -185,7 +185,7 @@ class Z3Interfacing : public PrimitiveProofRecordingSATSolver
: env.signature->getFunction(self.id)->name()
);
if(self.forSorts)
for(int i = 0; i < self.forSorts->numTypeArguments(); i++)
for(unsigned i = 0; i < self.forSorts->numTypeArguments(); i++)
out << " " << self.forSorts->nthArgument(i)->toString();
return out;
}
Expand Down Expand Up @@ -281,7 +281,7 @@ namespace std {
size_t operator()(SAT::Z3Interfacing::FuncOrPredId const& self) {
unsigned hash = Lib::HashUtils::combine(self.id, self.isPredicate);
if(self.forSorts)
for(int i = 0; i < self.forSorts->numTypeArguments(); i++)
for(unsigned i = 0; i < self.forSorts->numTypeArguments(); i++)
hash = Lib::HashUtils::combine(hash, self.forSorts->nthArgument(i)->content());
return hash;
}
Expand Down

0 comments on commit 1bec8ad

Please sign in to comment.