docs: def main(arguments):
      """
      Main function of smatch score calculation
      """
      global verbose
      global veryVerbose
      global iteration_num
      global single_score
      global pr_flag
      global match_triple_dict
      # set the iteration number
      # total iteration number = restart number + 1
      iteration_num = arguments.r + 1
      if arguments.ms:
          single_score = False
      if arguments.v:
          verbose = True
      if arguments.vv:
          veryVerbose = True
      if arguments.pr:
          pr_flag = True
      # significant digits to print out
      floatdisplay = "%%.%df" % arguments.significant
      for (precision, recall, best_f_score) in score_amr_pairs(args.f[0], args.f[1],
                                                               justinstance=arguments.justinstance,
                                                               justattribute=arguments.justattribute,
                                                               justrelation=arguments.justrelation):
          # print("Sentence", sent_num)
          if pr_flag:
              print("Precision: " + floatdisplay % precision)
              print("Recall: " + floatdisplay % recall)
          print("F-score: " + floatdisplay % best_f_score)
      args.f[0].close()
      args.f[1].close()