We give practical, efficient algorithms that automatically determine the distributed round complexity of a given locally checkable graph problem, in two settings. We present one algorithm for unrooted regular trees and another algorithm for rooted regular trees.The algorithms take the description of a locally checkable labeling problem as input, and the running time is polynomial in the size of the problem description. The algorithms decide if the problem is solvable in 𝑂 (log 𝑛) rounds. If not, it is known that the complexity has to be Θ(𝑛 1/𝑘 ) for some 𝑘 = 1, 2, . . . , and in this case the algorithms also output the right value of the exponent 𝑘.In rooted trees in the 𝑂 (log 𝑛) case we can then further determine the exact complexity class by using algorithms from prior work; for unrooted trees the more fine-grained classification in the 𝑂 (log 𝑛) region remains an open question.