Running the attached script on the alibaba/tsar repo generates very many spurious matches (around 160,000) for some files, e.g., devel/mod_test.c
This problem occurs when running either a variant analysis or locally (running v1.17.7).
Subset of output: funcdef-subset.csv
CodeQL script: func-def.txt