Skip to content

Commit

Permalink
improve error message for #555
Browse files Browse the repository at this point in the history
  • Loading branch information
Heizmann committed May 4, 2021
1 parent 6ef3b7e commit 2d46233
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,10 @@ private Term buildDualFiniteJunction(final Script script, final int quantifier,
return null;
}
}
if ( ((long) lowerBounds.size()) * ((long) upperBounds.size()) >= Integer.MAX_VALUE) {
throw new UnsupportedOperationException(String.format("Size of result too large: %s xjuncts",
((long) lowerBounds.size()) * ((long) upperBounds.size())));
}
final Term[] allCombinations = new Term[lowerBounds.size() * upperBounds.size()];

int i = 0;
Expand Down

0 comments on commit 2d46233

Please sign in to comment.