minimal cross-platform standalone C headers
This report presents the forensic synthetic code analysis of floooh/sokol, a C project with 10,165 GitHub stars. SynthScan v2.0 examined 87,693 lines of code across 115 source files, recording 266 pattern matches distributed across 8 syntactic categories. The overall adjusted score of 4.4 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).
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 266 distinct pattern matches across 8 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 | sokol_args.h | 361 | #ifdef __cplusplus | COMMENT |
| LOW | sokol_args.h | 381 | #if defined(__EMSCRIPTEN__) | COMMENT |
| LOW | sokol_args.h | 401 | #else | COMMENT |
| LOW | sokol_audio.h | 541 | COMMENT | |
| LOW | sokol_audio.h | 721 | #ifdef SOKOL_AUDIO_IMPL | COMMENT |
| LOW | sokol_audio.h | 741 | #include <assert.h> | COMMENT |
| LOW | sokol_audio.h | 761 | #define _SAUDIO_APPLE (1) | COMMENT |
| LOW | sokol_audio.h | 781 | #define _SAUDIO_VITA (1) | COMMENT |
| LOW | sokol_audio.h | 801 | #endif | COMMENT |
| LOW | sokol_audio.h | 821 | static const IID _saudio_IID_IMMDeviceEnumerator = { 0xa95664d2, 0x9614, 0x4f35, {0xa7, 0x46, | COMMENT |
| LOW | sokol_audio.h | 841 | #pragma warning(disable:4505) /* unreferenced local function has been removed */ | COMMENT |
| LOW | sokol_audio.h | 861 | #define _SAUDIO_PTHREADS (1) | COMMENT |
| LOW | sokol_audio.h | 881 | COMMENT | |
| LOW | sokol_audio.h | 1081 | } | COMMENT |
| LOW | sokol_audio.h | 2041 | _saudio_aaudio_backend_shutdown(); | COMMENT |
| LOW | sokol_audio.h | 2441 | #if defined(SOKOL_DUMMY_BACKEND) | COMMENT |
| LOW | sokol_audio.h | 2581 | } | COMMENT |
| LOW | sokol_log.h | 101 | 3. This notice may not be removed or altered from any source | COMMENT |
| LOW | sokol_log.h | 141 | // ██ ███ ███ ██████ ██ ███████ ███ ███ ███████ ███ ██ ████████ █████ ████████ ██ ██████ ███ ██ | COMMENT |
| LOW | sokol_log.h | 161 | #define SOKOL_ASSERT(c) assert(c) | COMMENT |
| LOW | sokol_log.h | 181 | #elif defined(_WIN32) | COMMENT |
| LOW | sokol_log.h | 201 | #ifndef NOMINMAX | COMMENT |
| LOW | sokol_app.h | 1341 | 3. This notice may not be removed or altered from any source | COMMENT |
| LOW | sokol_app.h | 2301 | inline void sapp_run(const sapp_desc& desc) { return sapp_run(&desc); } | COMMENT |
| LOW | sokol_app.h | 2321 | #include <stdlib.h> // malloc, free | COMMENT |
| LOW | sokol_app.h | 2341 | #if defined(__APPLE__) | COMMENT |
| LOW | sokol_app.h | 2361 | #endif | COMMENT |
| LOW | sokol_app.h | 2381 | #endif | COMMENT |
| LOW | sokol_app.h | 2401 | #define _SAPP_GLX (1) | COMMENT |
| LOW | sokol_app.h | 2421 | #ifndef SOKOL_API_IMPL | COMMENT |
| LOW | sokol_app.h | 2441 | #define _SOKOL_PRIVATE static | COMMENT |
| LOW | sokol_app.h | 2461 | #if defined(SOKOL_METAL) | COMMENT |
| LOW | sokol_app.h | 2481 | #endif | COMMENT |
| LOW | sokol_app.h | 2501 | #define WIN32_LEAN_AND_MEAN | COMMENT |
| LOW | sokol_app.h | 2521 | #else | COMMENT |
| LOW | sokol_app.h | 2541 | #if defined(SOKOL_D3D11) | COMMENT |
| LOW | sokol_app.h | 2561 | #include <android/looper.h> | COMMENT |
| LOW | sokol_app.h | 2581 | #endif | COMMENT |
| LOW | sokol_app.h | 2981 | COMMENT | |
| LOW | sokol_app.h | 3101 | COMMENT | |
| LOW | sokol_app.h | 3321 | #if defined(_SAPP_MACOS) | COMMENT |
| LOW | sokol_app.h | 3361 | // >>logging | COMMENT |
| LOW | sokol_app.h | 4361 | // ██ ██ ██ ██ ██ █████ ███████ ██ ██ ██ | COMMENT |
| LOW | sokol_app.h | 5181 | #endif // SOKOL_VULKAN | COMMENT |
| LOW | sokol_app.h | 8261 | COMMENT | |
| LOW | sokol_app.h | 14221 | // | COMMENT |
| LOW | sokol_time.h | 101 | COMMENT | |
| LOW | sokol_time.h | 141 | #endif | COMMENT |
| LOW | sokol_fetch.h | 921 | 3. This notice may not be removed or altered from any source | COMMENT |
| LOW | sokol_fetch.h | 1121 | inline sfetch_handle_t sfetch_send(const sfetch_request_t& request) { return sfetch_send(&request); } | COMMENT |
| LOW | sokol_fetch.h | 1141 | #include <string.h> /* memset, memcpy */ | COMMENT |
| LOW | sokol_fetch.h | 1161 | #ifndef SOKOL_ASSERT | COMMENT |
| LOW | sokol_fetch.h | 1181 | #define _SFETCH_PLATFORM_WINDOWS (0) | COMMENT |
| LOW | sokol_fetch.h | 1201 | #define _SFETCH_PLATFORM_WINDOWS (0) | COMMENT |
| LOW | sokol_fetch.h | 1361 | sfetch_desc_t desc; | COMMENT |
| LOW | sokol_fetch.h | 1381 | // | COMMENT |
| LOW | sokol_glue.h | 81 | distribution. | COMMENT |
| LOW | sokol_glue.h | 121 | #endif | COMMENT |
| LOW | util/sokol_gfx_imgui.h | 181 | #include <stdbool.h> | COMMENT |
| LOW | util/sokol_gfx_imgui.h | 281 | #if !defined(IMGUI_VERSION) | COMMENT |
| 132 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | bindgen/gen_odin.py | 373 | l(f' when USE_GL && ODIN_ARCH == .arm64 && DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dy | CODE |
| HIGH⚡ | bindgen/gen_odin.py | 374 | l(f' else when USE_GL && ODIN_ARCH == .arm64 && !DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dy | CODE |
| HIGH⚡ | bindgen/gen_odin.py | 375 | l(f' else when USE_GL && ODIN_ARCH == .amd64 && DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dy | CODE |
| HIGH⚡ | bindgen/gen_odin.py | 376 | l(f' else when USE_GL && ODIN_ARCH == .amd64 && !DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dy | CODE |
| HIGH⚡ | bindgen/gen_odin.py | 377 | l(f' else when !USE_GL && ODIN_ARCH == .arm64 && DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dy | CODE |
| HIGH⚡ | bindgen/gen_odin.py | 378 | l(f' else when !USE_GL && ODIN_ARCH == .arm64 && !DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dy | CODE |
| HIGH⚡ | bindgen/gen_odin.py | 379 | l(f' else when !USE_GL && ODIN_ARCH == .amd64 && DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dy | CODE |
| HIGH⚡ | bindgen/gen_odin.py | 380 | l(f' else when !USE_GL && ODIN_ARCH == .amd64 && !DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dy | CODE |
| HIGH | bindgen/gen_odin.py | 408 | l( '} else when ODIN_ARCH == .wasm32 || ODIN_ARCH == .wasm64p32 {') | CODE |
| HIGH⚡ | bindgen/gen_zig.py | 329 | l(f" {field_name}: [*c]const u8 = null,") | CODE |
| HIGH⚡ | bindgen/gen_zig.py | 331 | l(f" {field_name}: ?*const anyopaque = null,") | CODE |
| HIGH⚡ | bindgen/gen_zig.py | 333 | l(f" {field_name}: ?*anyopaque = null,") | CODE |
| HIGH⚡ | bindgen/gen_zig.py | 335 | l(f" {field_name}: ?[*]const {as_zig_prim_type(util.extract_ptr_type(field_type))} = null,") | CODE |
| HIGH⚡ | bindgen/gen_zig.py | 337 | l(f" {field_name}: ?*const fn ({funcptr_args_c(field_type, prefix)}) callconv(.c) {funcptr_result_c(field | CODE |
| HIGH | bindgen/gen_zig.py | 357 | l(f" {field_name}: [{array_sizes[0]}]?*const anyopaque = @splat(null),") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | util/gen_sokol_color.py | 1 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | util/gen_sokol_color.py | 3 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_odin.py | 1 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_odin.py | 5 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_d.py | 1 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_d.py | 9 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_c3.py | 1 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_c3.py | 5 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_zig.py | 1 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_zig.py | 8 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_jai.py | 1 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_jai.py | 5 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_rust.py | 1 | # ------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_rust.py | 7 | # ------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_ir.py | 1 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_ir.py | 3 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_nim.py | 1 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_nim.py | 7 | #------------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bindgen/gen_odin.py | 230 | CODE | |
| LOW | bindgen/gen_odin.py | 323 | CODE | |
| LOW | bindgen/gen_odin.py | 487 | CODE | |
| LOW | bindgen/gen_odin.py | 510 | CODE | |
| LOW | bindgen/gen_d.py | 288 | CODE | |
| LOW | bindgen/gen_d.py | 417 | CODE | |
| LOW | bindgen/gen_c3.py | 245 | CODE | |
| LOW | bindgen/gen_c3.py | 372 | CODE | |
| LOW | bindgen/gen_c3.py | 393 | CODE | |
| LOW | bindgen/gen_zig.py | 189 | CODE | |
| LOW | bindgen/gen_zig.py | 215 | CODE | |
| LOW | bindgen/gen_zig.py | 266 | CODE | |
| LOW | bindgen/gen_zig.py | 314 | CODE | |
| LOW | bindgen/gen_zig.py | 405 | CODE | |
| LOW | bindgen/gen_zig.py | 444 | CODE | |
| LOW | bindgen/gen_zig.py | 507 | CODE | |
| LOW | bindgen/gen_jai.py | 216 | CODE | |
| LOW | bindgen/gen_jai.py | 293 | CODE | |
| LOW | bindgen/gen_jai.py | 447 | CODE | |
| LOW | bindgen/gen_jai.py | 468 | CODE | |
| LOW | bindgen/gen_rust.py | 243 | CODE | |
| LOW | bindgen/gen_rust.py | 273 | CODE | |
| LOW | bindgen/gen_rust.py | 324 | CODE | |
| LOW | bindgen/gen_rust.py | 397 | CODE | |
| LOW | bindgen/gen_rust.py | 705 | CODE | |
| LOW | bindgen/gen_rust.py | 788 | CODE | |
| LOW | bindgen/gen_ir.py | 58 | CODE | |
| LOW | bindgen/gen_ir.py | 129 | CODE | |
| LOW | bindgen/gen_nim.py | 284 | CODE | |
| LOW | bindgen/gen_nim.py | 437 | CODE | |
| LOW | bindgen/gen_nim.py | 579 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bindgen/gen_odin.py | 159 | def make_odin_module_directory(mod_name): | CODE |
| LOW | bindgen/gen_c3.py | 170 | def as_module_name_for_enum_type(enum_name, prefix): | CODE |
| LOW | bindgen/gen_c3.py | 180 | def as_parent_module_name_for_enum_type(enum_name, prefix): | CODE |
| LOW | bindgen/gen_c3.py | 366 | def gen_function_pointer_aliases(): | CODE |
| LOW | bindgen/gen_jai.py | 154 | def make_jai_module_directory(mod_name): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | sokol_fetch.h | 754 | Here's a simple example of sending 4 requests without upfront buffer | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | util/sokol_gl.h | 2922 | sg_pipeline dummy_id = { SG_INVALID_ID }; | CODE |
| LOW | util/sokol_gl.h | 2923 | return dummy_id; | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bindgen/gen_zig.py | 9 | CODE | |
| LOW | bindgen/gen_rust.py | 8 | CODE |