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,507 GitHub stars. SynthScan v2.0 examined 3,072,403 lines of code across 6999 source files, recording 13298 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 13298 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 | 321 | COMMENT | |
| LOW | common_x86.h | 361 | #define FLD fldt | COMMENT |
| LOW | common_x86.h | 381 | #define FADD fadds | COMMENT |
| LOW | common_x86.h | 401 | #endif | COMMENT |
| LOW | common_x86.h | 421 | #ifndef ffreep | 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_RN ztrsm_kernel_RN | COMMENT |
| LOW | common_z.h | 161 | #else | COMMENT |
| LOW | common_z.h | 181 | #define ZSYMM3M_IUCOPYB zsymm3m_iucopyb | COMMENT |
| LOW | common_z.h | 201 | #define ZHEMM3M_OLCOPYB zhemm3m_olcopyb | COMMENT |
| LOW | common_z.h | 221 | #define ZOMATCOPY_K_CTC zomatcopy_k_ctc | COMMENT |
| LOW | common_z.h | 241 | #define ZMAX_K gotoblas -> zmax_k | COMMENT |
| LOW | common_z.h | 261 | #define ZGEMV_R gotoblas -> zgemv_r | COMMENT |
| LOW | common_z.h | 281 | #define ZSYMV_THREAD_L zsymv_thread_L | COMMENT |
| LOW | common_z.h | 301 | #define ZTRMM_IUNUCOPY gotoblas -> ztrmm_iunucopy | COMMENT |
| LOW | common_z.h | 321 | #define ZTRMM_ILNNCOPY gotoblas -> ztrmm_ilnncopy | COMMENT |
| LOW | common_z.h | 341 | #define ZTRMM_KERNEL_RC gotoblas -> ztrmm_kernel_RC | COMMENT |
| LOW | common_z.h | 361 | COMMENT | |
| LOW | common_z.h | 381 | #define ZSYMM3M_IUCOPYI gotoblas -> zsymm3m_iucopyi | COMMENT |
| LOW | common_z.h | 401 | #define ZHEMM3M_OLCOPYI gotoblas -> zhemm3m_olcopyi | COMMENT |
| LOW | common_z.h | 421 | #define ZIMATCOPY_K_RN gotoblas -> zimatcopy_k_rn | COMMENT |
| LOW | common_z.h | 441 | #define ZGEMM_SMALL_KERNEL_TT FUNC_OFFSET(zgemm_small_kernel_tt) | COMMENT |
| LOW | common_z.h | 461 | #define ZGEMM_SMALL_KERNEL_B0_TT FUNC_OFFSET(zgemm_small_kernel_b0_tt) | COMMENT |
| LOW | common_z.h | 481 | #define ZGEMM_CC zgemm_cc | COMMENT |
| LOW | common_z.h | 501 | #define ZHEMM_RL zhemm_RL | COMMENT |
| LOW | common_z.h | 521 | #define ZHER2K_LN zher2k_LN | COMMENT |
| LOW | common_z.h | 541 | #define ZTRMM_LTUU ztrmm_LTUU | COMMENT |
| LOW | common_z.h | 561 | #define ZTRMM_RRUU ztrmm_RRUU | COMMENT |
| LOW | common_z.h | 581 | #define ZTRSM_LRLN ztrsm_LRLN | COMMENT |
| LOW | common_z.h | 601 | #define ZTRSM_RCLN ztrsm_RCLN | COMMENT |
| LOW | common_z.h | 621 | #define ZSYMM_THREAD_LL zsymm_thread_LL | COMMENT |
| LOW | common_z.h | 641 | #define ZHERK_THREAD_LN zherk_thread_LN | COMMENT |
| LOW | common_z.h | 661 | #define ZGEMM3M_RT zgemm3m_rt | COMMENT |
| LOW | common_z.h | 681 | 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 | 201 | #else | COMMENT |
| LOW | common_sparc.h | 221 | .size REALNAME, .-REALNAME; \ | COMMENT |
| LOW | common_sparc.h | 241 | #ifndef MAP_ANONYMOUS | COMMENT |
| LOW | common_power.h | 41 | COMMENT | |
| LOW | common_power.h | 61 | #define XVMOVDP(T,A) xvmovdp T, A | COMMENT |
| 13176 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 |