GNU toolchain for RISC-V, including GCC
This report presents the forensic synthetic code analysis of riscv-collab/riscv-gnu-toolchain, a C project with 4,564 GitHub stars. SynthScan v2.0 examined 214,269 lines of code across 995 source files, recording 1456 pattern matches distributed across 3 syntactic categories. The overall adjusted score of 6.6 places this repository in the Low AI signal 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).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
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 1456 distinct pattern matches across 3 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 | test/benchmarks/dhrystone/dhrystone.h | 361 | #undef HZ | COMMENT |
| LOW | test/benchmarks/dhrystone/dhrystone.h | 381 | COMMENT | |
| LOW | test/benchmarks/dhrystone/dhrystone.h | 401 | #define Stop_Timer() times(&time_info); End_Time = (long)time_info.tms_utime | COMMENT |
| LOW | linux-headers/include/drm/ivpu_accel.h | 1 | /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */ | COMMENT |
| LOW | linux-headers/include/drm/ivpu_accel.h | 21 | #define DRM_IVPU_METRIC_STREAMER_START 0x07 | COMMENT |
| LOW | linux-headers/include/drm/ivpu_accel.h | 81 | #define DRM_IVPU_PARAM_PLATFORM_TYPE 2 | COMMENT |
| LOW | linux-headers/include/drm/vc4_drm.h | 21 | * IN THE SOFTWARE. | COMMENT |
| LOW | linux-headers/include/drm/vc4_drm.h | 41 | #define DRM_VC4_SET_TILING 0x08 | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 41 | COMMENT | |
| LOW | linux-headers/include/drm/radeon_drm.h | 61 | #define RADEON_UPLOAD_TEX1 0x00000400 | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 81 | #define RADEON_EMIT_PP_LUM_MATRIX 5 /* bumpmap/1 */ | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 101 | #define R200_EMIT_PP_TXCBLEND_4 25 /* tex4/4 */ | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 121 | #define R200_EMIT_PP_TXOFFSET_3 45 /* tex3/1 */ | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 141 | #define R200_EMIT_PP_CUBIC_FACES_2 65 | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 161 | #define R200_EMIT_PP_AFS_0 85 | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 281 | } drm_r300_cmd_header_t; | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 321 | #define RADEON_GART_TEX_HEAP 1 | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 481 | #define DRM_RADEON_FULLSCREEN 0x06 | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 501 | #define DRM_RADEON_SURF_ALLOC 0x1a | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 521 | #define DRM_IOCTL_RADEON_CP_START DRM_IO( DRM_COMMAND_BASE + DRM_RADEON_CP_START) | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 541 | #define DRM_IOCTL_RADEON_IRQ_EMIT DRM_IOWR(DRM_COMMAND_BASE + DRM_RADEON_IRQ_EMIT, drm_radeon_irq_emit_t) | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 701 | /* 1.3: An ioctl to get parameters that aren't available to the 3d | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 841 | #define RADEON_TILING_SWAP_32BIT 0x8 | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 921 | __u32 op; /* RADEON_GEM_OP_* */ | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 1001 | #define RADEON_INFO_WANT_CMASK 0x08 /* get access to CMASK on r300 */ | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 1021 | /* query if a RADEON_CS_RING_* submission is supported */ | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 1061 | #define SI_TILE_MODE_COLOR_2D_16BPP 15 | COMMENT |
| LOW | linux-headers/include/drm/habanalabs_accel.h | 821 | #define HL_INFO_RESET_COUNT 9 | COMMENT |
| LOW | linux-headers/include/drm/habanalabs_accel.h | 841 | #define HL_INFO_UNDEFINED_OPCODE_EVENT 31 | COMMENT |
| LOW | linux-headers/include/drm/i915_drm.h | 401 | } drm_i915_sarea_t; | COMMENT |
| LOW | linux-headers/include/drm/i915_drm.h | 421 | /* | COMMENT |
| LOW | linux-headers/include/drm/i915_drm.h | 441 | #define DRM_I915_SET_VBLANK_PIPE 0x0d | COMMENT |
| LOW | linux-headers/include/drm/i915_drm.h | 461 | #define DRM_I915_GEM_GET_APERTURE 0x23 | COMMENT |
| LOW | linux-headers/include/drm/i915_drm.h | 481 | #define DRM_I915_PERF_OPEN 0x36 | COMMENT |
| LOW | linux-headers/include/drm/i915_drm.h | 501 | #define DRM_IOCTL_I915_CMDBUFFER DRM_IOW( DRM_COMMAND_BASE + DRM_I915_CMDBUFFER, drm_i915_cmdbuffer_t) | COMMENT |
| LOW | linux-headers/include/drm/i915_drm.h | 521 | #define DRM_IOCTL_I915_GEM_PREAD DRM_IOW (DRM_COMMAND_BASE + DRM_I915_GEM_PREAD, struct drm_i915_gem_pread) | COMMENT |
| LOW | linux-headers/include/drm/i915_drm.h | 541 | #define DRM_IOCTL_I915_REG_READ DRM_IOWR (DRM_COMMAND_BASE + DRM_I915_REG_READ, struct drm_i915_reg_read) | COMMENT |
| LOW | linux-headers/include/drm/i915_drm.h | 601 | #define I915_PARAM_HAS_GEM 5 | COMMENT |
| LOW | linux-headers/include/drm/i915_drm.h | 621 | #define I915_PARAM_HAS_EXEC_NO_RELOC 25 | COMMENT |
| LOW | linux-headers/include/drm/i915_drm.h | 1721 | #define I915_TILING_X 1 | COMMENT |
| LOW | linux-headers/include/drm/i915_drm.h | 1841 | #define I915_OVERLAY_RGB15 0x3000 | COMMENT |
| LOW | linux-headers/include/drm/tegra_drm.h | 621 | /** | COMMENT |
| LOW | linux-headers/include/drm/tegra_drm.h | 641 | #define DRM_TEGRA_GEM_GET_TILING 0x0b | COMMENT |
| LOW | linux-headers/include/drm/tegra_drm.h | 1041 | __u32 value; | COMMENT |
| LOW | linux-headers/include/drm/drm_fourcc.h | 161 | #define DRM_FORMAT_RGB332 fourcc_code('R', 'G', 'B', '8') /* [7:0] R:G:B 3:3:2 */ | COMMENT |
| LOW | linux-headers/include/drm/drm_fourcc.h | 181 | #define DRM_FORMAT_ABGR1555 fourcc_code('A', 'B', '1', '5') /* [15:0] A:B:G:R 1:5:5:5 little endian */ | COMMENT |
| LOW | linux-headers/include/drm/drm_fourcc.h | 201 | #define DRM_FORMAT_BGRA8888 fourcc_code('B', 'A', '2', '4') /* [31:0] B:G:R:A 8:8:8:8 little endian */ | COMMENT |
| LOW | linux-headers/include/drm/drm_fourcc.h | 301 | #define DRM_FORMAT_BGRX8888_A8 fourcc_code('B', 'X', 'A', '8') | COMMENT |
| LOW | linux-headers/include/drm/drm_fourcc.h | 1621 | #define AMD_FMT_MOD_TILE_GFX12_256B_2D 1 | COMMENT |
| LOW | linux-headers/include/drm/drm_fourcc.h | 1681 | #define AMD_FMT_MOD_BANK_XOR_BITS_SHIFT 24 | COMMENT |
| LOW | linux-headers/include/drm/lima_drm.h | 161 | #define DRM_LIMA_CTX_CREATE 0x05 | COMMENT |
| LOW | linux-headers/include/drm/qaic_accel.h | 21 | #define QAIC_SEM_OUTSYNCFENCE 1 | COMMENT |
| LOW | linux-headers/include/drm/qaic_accel.h | 41 | #define QAIC_TRANS_ACTIVATE_TO_DEV 9 | COMMENT |
| LOW | linux-headers/include/drm/qaic_accel.h | 381 | #define DRM_QAIC_WAIT_BO 0x06 | COMMENT |
| LOW | linux-headers/include/drm/panthor_drm.h | 241 | __u32 gpu_id; | COMMENT |
| LOW | linux-headers/include/drm/drm_sarea.h | 41 | /* SAREA area needs to be at least a page */ | COMMENT |
| LOW | linux-headers/include/drm/drm.h | 61 | COMMENT | |
| LOW | linux-headers/include/drm/drm.h | 1041 | COMMENT | |
| LOW | linux-headers/include/drm/drm.h | 1081 | #define DRM_IOCTL_ADD_MAP DRM_IOWR(0x15, struct drm_map) | COMMENT |
| LOW | linux-headers/include/drm/drm.h | 1141 | #define DRM_IOCTL_PRIME_FD_TO_HANDLE DRM_IOWR(0x2e, struct drm_prime_handle) | COMMENT |
| 1391 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | linux-headers/include/linux/netlink.h | 67 | #define NLM_F_DUMP_FILTERED 0x20 /* Dump was filtered as requested */ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | linux-headers/include/drm/drm_mode.h | 86 | * When adding a new stereo mode don't forget to adjust DRM_MODE_FLAGS_3D_MAX | COMMENT |
| LOW | linux-headers/include/sound/asound.h | 101 | /* Don't forget to change the following: */ | COMMENT |
| LOW | linux-headers/include/sound/asound.h | 153 | /* Don't forget to change the following: */ | COMMENT |
| LOW | linux-headers/include/sound/asound.h | 160 | /* Don't forget to change the following: */ | COMMENT |