added check to do nothing if empty inverted
This commit is contained in:
@@ -768,9 +768,11 @@ static std::string prices_getreducedexpr(const std::string &expr)
|
|||||||
if (prices_isopcode(vexpr[i], need)) {
|
if (prices_isopcode(vexpr[i], need)) {
|
||||||
std::vector<std::string> voperation;
|
std::vector<std::string> voperation;
|
||||||
prices_invertoperation(vexpr, i, voperation);
|
prices_invertoperation(vexpr, i, voperation);
|
||||||
int reducedneed = prices_reduceoperands(voperation);
|
if (voperation.size() > 0) {
|
||||||
if (reducedneed < need) {
|
int reducedneed = prices_reduceoperands(voperation);
|
||||||
prices_substitutereduced(vexpr, i, voperation);
|
if (reducedneed < need) {
|
||||||
|
prices_substitutereduced(vexpr, i, voperation);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user