}else if(t.isVar()){
return rewriteVariable(t);
}else{
- switch(t.getKind()){
+ switch(Kind k = t.getKind()){
case kind::MINUS:
return rewriteMinus(t, true);
case kind::UMINUS:
case kind::INTS_MODULUS_TOTAL:
return rewriteIntsDivModTotal(t,true);
default:
- Unreachable();
+ Unhandled(k);
}
}
}
bool Variable::isDivMember(Node n){
switch(n.getKind()){
case kind::DIVISION:
- //case kind::INTS_DIVISION:
- //case kind::INTS_MODULUS:
+ case kind::INTS_DIVISION:
+ case kind::INTS_MODULUS:
case kind::DIVISION_TOTAL:
case kind::INTS_DIVISION_TOTAL:
case kind::INTS_MODULUS_TOTAL: