Program: 169138
Project: 169138
Buggy source:
public final void aggCallSite(AggItem aggItem) throws RecognitionException {
  Token x=null;
  String p=null;
  try {
    int alt111=2;
    int LA111_0=input.LA(1);
    if ((LA111_0 == DOUBLE_SUM || LA111_0 == JAVASCRIPT || LA111_0 == LONG_SUM || (LA111_0 >= MAX && LA111_0 <= MIN) || LA111_0 == UNIQUE)) {
      alt111=1;
    }
 else     if ((LA111_0 == COUNT)) {
      alt111=2;
    }
 else {
      NoViableAltException nvae=new NoViableAltException("String_Node_Str",111,0,input);
      throw nvae;
    }
switch (alt111) {
case 1:
{
        pushFollow(FOLLOW_aggFunc_in_aggCallSite1894);
        p=aggFunc();
        state._fsp--;
        aggItem.setAggType(p);
{
          int alt108=2;
          int LA108_0=input.LA(1);
          if ((LA108_0 == WS)) {
            alt108=1;
          }
switch (alt108) {
case 1:
{
              match(input,WS,FOLLOW_WS_in_aggCallSite1899);
            }
          break;
      }
      match(input,LPARAN,FOLLOW_LPARAN_in_aggCallSite1902);
      int alt109=2;
      int LA109_0=input.LA(1);
      if ((LA109_0 == WS)) {
        alt109=1;
      }
switch (alt109) {
case 1:
{
          match(input,WS,FOLLOW_WS_in_aggCallSite1904);
        }
      break;
  }
{
    x=(Token)match(input,ID,FOLLOW_ID_in_aggCallSite1911);
    aggItem.setFieldName((x != null ? x.getText() : null));
  }
  int alt110=2;
  int LA110_0=input.LA(1);
  if ((LA110_0 == WS)) {
    alt110=1;
  }
switch (alt110) {
case 1:
{
      match(input,WS,FOLLOW_WS_in_aggCallSite1916);
    }
  break;
}
match(input,RPARAN,FOLLOW_RPARAN_in_aggCallSite1919);
}
}
break;
case 2:
{
match(input,COUNT,FOLLOW_COUNT_in_aggCallSite1926);
aggItem.setAggType("String_Node_Str");
{
match(input,70,FOLLOW_70_in_aggCallSite1931);
}
}
break;
}
}
 catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
 finally {
}
}

Fixed version (ground truth):
public final void aggCallSite(AggItem aggItem) throws RecognitionException {
  Token x=null;
  String p=null;
  try {
    int alt112=2;
    int LA112_0=input.LA(1);
    if ((LA112_0 == DOUBLE_SUM || LA112_0 == JAVASCRIPT || LA112_0 == LONG_SUM || (LA112_0 >= MAX && LA112_0 <= MIN) || LA112_0 == UNIQUE)) {
      alt112=1;
    }
 else     if ((LA112_0 == COUNT)) {
      alt112=2;
    }
 else {
      NoViableAltException nvae=new NoViableAltException("String_Node_Str",112,0,input);
      throw nvae;
    }
switch (alt112) {
case 1:
{
        pushFollow(FOLLOW_aggFunc_in_aggCallSite1925);
        p=aggFunc();
        state._fsp--;
        aggItem.setAggType(p);
{
          int alt109=2;
          int LA109_0=input.LA(1);
          if ((LA109_0 == WS)) {
            alt109=1;
          }
switch (alt109) {
case 1:
{
              match(input,WS,FOLLOW_WS_in_aggCallSite1930);
            }
          break;
      }
      match(input,LPARAN,FOLLOW_LPARAN_in_aggCallSite1933);
      int alt110=2;
      int LA110_0=input.LA(1);
      if ((LA110_0 == WS)) {
        alt110=1;
      }
switch (alt110) {
case 1:
{
          match(input,WS,FOLLOW_WS_in_aggCallSite1935);
        }
      break;
  }
{
    x=(Token)match(input,ID,FOLLOW_ID_in_aggCallSite1942);
    aggItem.setFieldName((x != null ? x.getText() : null));
  }
  int alt111=2;
  int LA111_0=input.LA(1);
  if ((LA111_0 == WS)) {
    alt111=1;
  }
switch (alt111) {
case 1:
{
      match(input,WS,FOLLOW_WS_in_aggCallSite1947);
    }
  break;
}
match(input,RPARAN,FOLLOW_RPARAN_in_aggCallSite1950);
}
}
break;
case 2:
{
match(input,COUNT,FOLLOW_COUNT_in_aggCallSite1957);
aggItem.setAggType("String_Node_Str");
{
match(input,70,FOLLOW_70_in_aggCallSite1962);
}
}
break;
}
}
 catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
 finally {
}
}