int defaultIndex = -1;
int trueCount = 0;
// Need to determine if there is a default case and how many true and false cases.
for (int i = 0; i < alts.length; ++i) {
Expression altExpr = alts[i].getAltExpr();
Expression.Literal lit = altExpr.asLiteral();
Expression.Var var = altExpr.asVar();
boolean isTrue = false;
if (lit != null && lit.getLiteral() instanceof Boolean && ((Boolean)lit.getLiteral()).booleanValue()) {
isTrue = true;
trueCount++;