mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 20:18:18 +00:00
Fixed signed/unsigned comparison warnings
This commit is contained in:
parent
a7d5bb7b36
commit
4f0a87299c
|
@ -5563,7 +5563,7 @@ namespace smt {
|
||||||
if (arg0VecSize > 0 && arg1VecSize > 0 && u.str.is_string(arg0_grdItor->first[arg0VecSize - 1]) && u.str.is_string(arg1_grdItor->first[0])) {
|
if (arg0VecSize > 0 && arg1VecSize > 0 && u.str.is_string(arg0_grdItor->first[arg0VecSize - 1]) && u.str.is_string(arg1_grdItor->first[0])) {
|
||||||
ndVec.pop_back();
|
ndVec.pop_back();
|
||||||
ndVec.push_back(mk_concat(arg0_grdItor->first[arg0VecSize - 1], arg1_grdItor->first[0]));
|
ndVec.push_back(mk_concat(arg0_grdItor->first[arg0VecSize - 1], arg1_grdItor->first[0]));
|
||||||
for (int i = 1; i < arg1VecSize; i++) {
|
for (size_t i = 1; i < arg1VecSize; i++) {
|
||||||
ndVec.push_back(arg1_grdItor->first[i]);
|
ndVec.push_back(arg1_grdItor->first[i]);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -5666,7 +5666,7 @@ namespace smt {
|
||||||
if (subStrCnt == 1) {
|
if (subStrCnt == 1) {
|
||||||
zstring subStrVal;
|
zstring subStrVal;
|
||||||
if (u.str.is_string(subStrVec[0], subStrVal)) {
|
if (u.str.is_string(subStrVec[0], subStrVal)) {
|
||||||
for (int i = 0; i < strCnt; i++) {
|
for (size_t i = 0; i < strCnt; i++) {
|
||||||
zstring strVal;
|
zstring strVal;
|
||||||
if (u.str.is_string(strVec[i], strVal)) {
|
if (u.str.is_string(strVec[i], strVal)) {
|
||||||
if (strVal.contains(subStrVal)) {
|
if (strVal.contains(subStrVal)) {
|
||||||
|
@ -5675,7 +5675,7 @@ namespace smt {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (int i = 0; i < strCnt; i++) {
|
for (size_t i = 0; i < strCnt; i++) {
|
||||||
if (strVec[i] == subStrVec[0]) {
|
if (strVec[i] == subStrVec[0]) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -5683,7 +5683,7 @@ namespace smt {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
for (int i = 0; i <= (strCnt - subStrCnt); i++) {
|
for (size_t i = 0; i <= (strCnt - subStrCnt); i++) {
|
||||||
// The first node in subStrVect should be
|
// The first node in subStrVect should be
|
||||||
// * constant: a suffix of a note in strVec[i]
|
// * constant: a suffix of a note in strVec[i]
|
||||||
// * variable:
|
// * variable:
|
||||||
|
@ -5712,7 +5712,7 @@ namespace smt {
|
||||||
|
|
||||||
// middle nodes
|
// middle nodes
|
||||||
bool midNodesOK = true;
|
bool midNodesOK = true;
|
||||||
for (int j = 1; j < subStrCnt - 1; j++) {
|
for (size_t j = 1; j < subStrCnt - 1; j++) {
|
||||||
if (subStrVec[j] != strVec[i + j]) {
|
if (subStrVec[j] != strVec[i + j]) {
|
||||||
midNodesOK = false;
|
midNodesOK = false;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue