BEGIN
  DELETE_DUPLICATES();
  
  PARSE_STATEMENT();

  MARK_STATEMENTS();

  PROCEDURE_UPDATE_STAT();
 
  CALCULATE_FREQUENCY();
  
  UPDATE_VIEW_SERIES();

  REPAIRE_ANTIPATTERNS();

  commit;
end;