LARA

Translate manually into bytecodes using the techniques in Compilation as Tree Transformation

int activityLevel
boolean action(int signals, boolean objects, int smart, int pretty) {
  if ((signals > 5 || !objects) && smart + 2*pretty > 10) {
    activityLevel++;
    return true;
  } else {
    activityLevel--;
    return false;
  }
}

Solution