OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.
This report presents the forensic synthetic code analysis of OpenMathLib/OpenBLAS, a C project with 7,564 GitHub stars. SynthScan v2.0 examined 3,090,361 lines of code across 7035 source files, recording 13352 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 4.3 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 13352 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | common_b.h | 41 | #if BGEMM_DEFAULT_UNROLL_M == BGEMM_DEFAULT_UNROLL_N | COMMENT |
| LOW | common_b.h | 61 | #define BGEMM_ITCOPY gotoblas->bgemm_itcopy | COMMENT |
| LOW | common_b.h | 81 | #define BGEMM_RC bgemm_nt | COMMENT |
| LOW | common_x86.h | 41 | COMMENT | |
| LOW | common_x86.h | 201 | COMMENT | |
| LOW | common_x86.h | 221 | #define BARCELONA_OPTIMIZATION | COMMENT |
| LOW | common_x86.h | 241 | #define HALT hlt | COMMENT |
| LOW | common_x86.h | 281 | #define STACK_TOUCHING | COMMENT |
| LOW | common_x86.h | 301 | #ifdef OS_DARWIN | COMMENT |
| LOW | common_x86.h | 381 | COMMENT | |
| LOW | common_x86.h | 401 | #define FSTU fsts | COMMENT |
| LOW | common_x86.h | 421 | #ifndef ALIGN_2 | COMMENT |
| LOW | common_x86.h | 441 | // Because Clang didn't support ffreep, we directly use the opcode. | COMMENT |
| LOW | common_z.h | 1 | #ifndef COMMON_Z_H | COMMENT |
| LOW | common_z.h | 21 | #define ZSCAL_K zscal_k | COMMENT |
| LOW | common_z.h | 41 | #define ZSYMV_L zsymv_L | COMMENT |
| LOW | common_z.h | 61 | #define ZGEMM_INCOPY zgemm_incopy | COMMENT |
| LOW | common_z.h | 81 | #define ZTRSM_OLTNCOPY ztrsm_oltncopy | COMMENT |
| LOW | common_z.h | 101 | #else | COMMENT |
| LOW | common_z.h | 121 | #define ZGEMM_BETA zgemm_beta | COMMENT |
| LOW | common_z.h | 141 | #define ZTRSM_KERNEL_LC ztrsm_kernel_LC | COMMENT |
| LOW | common_z.h | 161 | #define ZHEMM_ILTCOPY zhemm_oltcopy | COMMENT |
| LOW | common_z.h | 181 | #define ZSYMM3M_ILCOPYB zsymm3m_ilcopyb | COMMENT |
| LOW | common_z.h | 201 | COMMENT | |
| LOW | common_z.h | 221 | #define ZOMATCOPY_K_RNC zomatcopy_k_rnc | COMMENT |
| LOW | common_z.h | 241 | #define ZAMIN_K gotoblas -> zamin_k | COMMENT |
| LOW | common_z.h | 261 | #define ZGEMV_T gotoblas -> zgemv_t | COMMENT |
| LOW | common_z.h | 281 | #define ZSYMV_THREAD_U zsymv_thread_U | COMMENT |
| LOW | common_z.h | 301 | COMMENT | |
| LOW | common_z.h | 321 | #define ZTRMM_IUTNCOPY gotoblas -> ztrmm_iutncopy | COMMENT |
| LOW | common_z.h | 341 | #define ZTRMM_KERNEL_RT gotoblas -> ztrmm_kernel_RT | COMMENT |
| LOW | common_z.h | 361 | #define ZHEMM_IUTCOPY gotoblas -> zhemm_iutcopy | COMMENT |
| LOW | common_z.h | 381 | #define ZSYMM3M_IUCOPYR gotoblas -> zsymm3m_iucopyr | COMMENT |
| LOW | common_z.h | 401 | #define ZHEMM3M_OLCOPYR gotoblas -> zhemm3m_olcopyr | COMMENT |
| LOW | common_z.h | 421 | COMMENT | |
| LOW | common_z.h | 441 | COMMENT | |
| LOW | common_z.h | 461 | COMMENT | |
| LOW | common_z.h | 481 | #define ZGEMM_NC zgemm_nc | COMMENT |
| LOW | common_z.h | 501 | #define ZHEMM_LL zhemm_LL | COMMENT |
| LOW | common_z.h | 521 | COMMENT | |
| LOW | common_z.h | 541 | #define ZTRMM_LNLU ztrmm_LNLU | COMMENT |
| LOW | common_z.h | 561 | #define ZTRMM_RTLU ztrmm_RTLU | COMMENT |
| LOW | common_z.h | 581 | #define ZTRSM_LRUN ztrsm_LRUN | COMMENT |
| LOW | common_z.h | 601 | #define ZTRSM_RCUN ztrsm_RCUN | COMMENT |
| LOW | common_z.h | 621 | COMMENT | |
| LOW | common_z.h | 641 | #define ZHERK_THREAD_UN zherk_thread_UN | COMMENT |
| LOW | common_z.h | 661 | #define ZGEMM3M_CR zgemm3m_cr | COMMENT |
| LOW | common_z.h | 681 | #define ZGEMM3M_THREAD_RC zgemm3m_thread_rc | COMMENT |
| LOW | common_z.h | 701 | #define ZHEMM3M_THREAD_RU zhemm3m_thread_RU | COMMENT |
| LOW | CMakeLists.txt | 241 | foreach(TARGET_CORE ${DYNAMIC_CORE}) | COMMENT |
| LOW | cpuid_x86.c | 41 | #include <string.h> | COMMENT |
| LOW | common_sparc.h | 81 | #endif | COMMENT |
| LOW | common_sparc.h | 101 | #endif | COMMENT |
| LOW | common_sparc.h | 121 | #define FMUL fmuld | COMMENT |
| LOW | common_sparc.h | 181 | .word ((2 << 30) | ((rd) << 25) | ( 0x36 << 19) | ( 0x7e << 5)) | COMMENT |
| LOW | common_sparc.h | 221 | COMMENT | |
| LOW | common_sparc.h | 241 | COMMENT | |
| LOW | common_power.h | 41 | COMMENT | |
| LOW | common_power.h | 61 | #define XVMOVDP(T,A) xvmovdp T, A | COMMENT |
| LOW | common_power.h | 181 | #define LFDX lfdx | COMMENT |
| 13230 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | lapack-netlib/CMakeLists.txt | 157 | # -------------------------------------------------- | COMMENT |
| MEDIUM | lapack-netlib/CMakeLists.txt | 171 | # -------------------------------------------------- | COMMENT |
| MEDIUM | lapack-netlib/CMakeLists.txt | 190 | # -------------------------------------------------- | COMMENT |
| MEDIUM | lapack-netlib/CMakeLists.txt | 201 | # -------------------------------------------------- | COMMENT |
| MEDIUM | lapack-netlib/CMakeLists.txt | 220 | # -------------------------------------------------- | COMMENT |
| MEDIUM⚡ | lapack-netlib/CMakeLists.txt | 262 | # -------------------------------------------------- | COMMENT |
| MEDIUM⚡ | lapack-netlib/CMakeLists.txt | 270 | # -------------------------------------------------- | COMMENT |
| MEDIUM⚡ | lapack-netlib/CMakeLists.txt | 280 | # -------------------------------------------------- | COMMENT |
| MEDIUM | lapack-netlib/CMakeLists.txt | 355 | # -------------------------------------------------- | COMMENT |
| MEDIUM | lapack-netlib/CMakeLists.txt | 390 | #------------------------------------- | COMMENT |
| MEDIUM | lapack-netlib/CMakeLists.txt | 400 | #------------------------------------- | COMMENT |
| MEDIUM | lapack-netlib/CMakeLists.txt | 449 | # -------------------------------------------------- | COMMENT |
| MEDIUM | lapack-netlib/CMakeLists.txt | 479 | # -------------------------------------------------- | COMMENT |
| MEDIUM | lapack-netlib/CMakeLists.txt | 600 | # -------------------------------------------------- | COMMENT |
| MEDIUM | lapack-netlib/BLAS/SRC/CMakeLists.txt | 28 | #--------------------------------------------------------- | COMMENT |
| MEDIUM | lapack-netlib/BLAS/SRC/CMakeLists.txt | 30 | #--------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | lapack-netlib/BLAS/SRC/CMakeLists.txt | 47 | #--------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | lapack-netlib/BLAS/SRC/CMakeLists.txt | 49 | #--------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | lapack-netlib/BLAS/SRC/CMakeLists.txt | 52 | #--------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | lapack-netlib/BLAS/SRC/CMakeLists.txt | 54 | #--------------------------------------------------------- | COMMENT |
| MEDIUM | lapack-netlib/BLAS/SRC/CMakeLists.txt | 71 | #--------------------------------------------------------- | COMMENT |
| MEDIUM | lapack-netlib/BLAS/SRC/CMakeLists.txt | 73 | #--------------------------------------------------------- | COMMENT |
| MEDIUM | lapack-netlib/TESTING/CMakeLists.txt | 176 | # ============================================================================== | COMMENT |
| MEDIUM | lapack-netlib/CBLAS/CMakeLists.txt | 38 | # -------------------------------------------------- | COMMENT |
| MEDIUM | kernel/riscv64/generate_kernel.py | 6 | #----------------------------------------------------------------------- | COMMENT |
| MEDIUM | kernel/riscv64/generate_kernel.py | 48 | #----------------------------------------------------------------------- | COMMENT |
| MEDIUM | kernel/riscv64/generate_kernel.py | 75 | #----------------------------------------------------------------------- | COMMENT |
| MEDIUM | kernel/riscv64/generate_kernel.py | 170 | #----------------------------------------------------------------------- | COMMENT |
| MEDIUM | kernel/riscv64/generate_kernel.py | 329 | #----------------------------------------------------------------------- | COMMENT |
| MEDIUM | kernel/riscv64/generate_kernel.py | 449 | #----------------------------------------------------------------------- | STRING |
| MEDIUM | kernel/riscv64/generate_kernel.py | 537 | #----------------------------------------------------------------------- | STRING |
| MEDIUM | kernel/riscv64/generate_kernel.py | 568 | #----------------------------------------------------------------------- | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmark/pybench/benchmarks/bench_blas.py | 22 | CODE | |
| LOW | benchmark/pybench/benchmarks/bench_blas.py | 42 | CODE | |
| LOW | benchmark/pybench/benchmarks/bench_blas.py | 61 | CODE | |
| LOW | benchmark/pybench/benchmarks/bench_blas.py | 82 | CODE | |
| LOW | benchmark/pybench/benchmarks/bench_blas.py | 110 | CODE | |
| LOW | benchmark/pybench/benchmarks/bench_blas.py | 143 | CODE | |
| LOW | benchmark/pybench/benchmarks/bench_blas.py | 166 | CODE | |
| LOW | benchmark/pybench/benchmarks/bench_blas.py | 190 | CODE | |
| LOW | benchmark/pybench/benchmarks/bench_blas.py | 216 | CODE | |
| LOW | benchmark/pybench/benchmarks/bench_blas.py | 250 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmark/pybench/openblas_wrap/generate_f2pymod.py | 69 | CODE | |
| LOW | benchmark/pybench/openblas_wrap/generate_f2pymod.py | 141 | CODE | |
| LOW | benchmark/pybench/openblas_wrap/generate_f2pymod.py | 225 | CODE | |
| LOW | lapack-netlib/lapack_testing.py | 101 | CODE | |
| LOW | kernel/riscv64/generate_kernel.py | 76 | CODE | |
| LOW | kernel/riscv64/generate_kernel.py | 171 | CODE | |
| LOW | kernel/riscv64/generate_kernel.py | 330 | CODE | |
| LOW | kernel/riscv64/generate_kernel.py | 450 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmark/scripts/NUMPY/dgesv.py | 6 | CODE | |
| LOW | benchmark/scripts/NUMPY/daxpy.py | 6 | CODE | |
| LOW | benchmark/scripts/SCIPY/dsyrk.py | 6 | CODE | |
| LOW | benchmark/scripts/SCIPY/ssyrk.py | 6 | CODE | |
| LOW | lapack-netlib/lapack_testing.py | 8 | CODE | |
| LOW | lapack-netlib/lapack_testing.py | 8 | CODE | |
| LOW | lapack-netlib/lapack_testing.py | 9 | CODE | |
| LOW | kernel/riscv64/generate_kernel.py | 3 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmark/pybench/openblas_wrap/generate_f2pymod.py | 110 | def find_and_remove_repl_patterns(astr): | CODE |
| LOW | kernel/riscv64/generate_kernel.py | 76 | def generate_gemm_kernel_inner_real( settings, dest, M, N, vlen, a_regs ): | CODE |
| LOW | kernel/riscv64/generate_kernel.py | 171 | def generate_gemm_kernel_inner_complex( settings, dest, M, N, vlen, a_regs ): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | lapack-netlib/lapack_testing.py | 100 | # Define a function to open the executable (different filenames on unix and Windows) | COMMENT |