utils/top_diagonal_clipper library