Box64 - Linux Userspace x86_64 Emulator with a twist, targeted at ARM64, RV64 and LoongArch Linux devices
This report presents the forensic synthetic code analysis of ptitSeb/box64, a C project with 5,552 GitHub stars. SynthScan v2.0 examined 537,282 lines of code across 1377 source files, recording 2806 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 4.6 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 2806 distinct pattern matches across 10 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 | rebuild_wrappers.py | 1001 | // E = current x86emu struct | COMMENT |
| LOW | rebuild_wrappers.py | 1041 | #ifndef __{filename}UNDEFS_H_ | COMMENT |
| LOW | rebuild_wrappers_32.py | 1221 | files_header = { | COMMENT |
| LOW | rebuild_wrappers_32.py | 1321 | typedef struct x64emu_s x64emu_t; | COMMENT |
| LOW | rebuild_wrappers_32.py | 1341 | // O = libc O_ flags bitfield | COMMENT |
| LOW | rebuild_wrappers_32.py | 1361 | """, | COMMENT |
| LOW | rebuild_wrappers_32.py | 1481 | #if any(c in 'PG' for c in args): | COMMENT |
| LOW | CMakeLists.txt | 221 | add_definitions(-DSD8EG5) | COMMENT |
| LOW | tests32/test28.c | 21 | #define I8_MAX 0x7F | COMMENT |
| LOW | tests32/test17.c | 1 | // build with gcc -O0 -g -msse -msse2 -mssse3 -msse4.1 test17.c -o test17 | COMMENT |
| LOW | tests32/test25.c | 1 | // build with gcc -O0 -g -msse -msse2 -mssse3 -msse4.1 -msse4.2 -m32 test25.c -o test25 | COMMENT |
| LOW | tests32/benchfloat.c | 21 | ** | COMMENT |
| LOW | tests/test28.c | 1 | // build with gcc -O0 -g -msha -msse4.2 test28.c -o test28 | COMMENT |
| LOW | tests/test17.c | 1 | // build with gcc -O0 -g -msse -msse2 -mssse3 -msse4.1 test17.c -o test17 | COMMENT |
| LOW | tests/benchfloat.c | 21 | ** | COMMENT |
| LOW | tests/test34.c | 21 | #define I8_MAX 0x7F | COMMENT |
| LOW | tests/test30.c | 1 | // build with gcc -O0 -g -msse -msse2 -mssse3 -msse4.1 -mavx test30.c -o test30 -march=native | COMMENT |
| LOW | tests/test27.c | 1 | // build with gcc -O0 -g -msse -msse2 -mssse3 -msse4.1 -msse4.2 test27.c -o test27 | COMMENT |
| LOW | wine/wow64/wowbox64.c | 1 | /* | COMMENT |
| LOW | system/kde/box64_profile_propertiesplugin.cpp | 1 | #include <KPropertiesDialogPlugin> | COMMENT |
| LOW | wrapperhelper/example-libc.h | 1 | #define _GNU_SOURCE 1 | COMMENT |
| LOW | wrapperhelper/example-libc.h | 21 | #include <fcntl.h> | COMMENT |
| LOW | wrapperhelper/example-libc.h | 41 | #include <math.h> | COMMENT |
| LOW | wrapperhelper/example-libc.h | 61 | #include <sched.h> | COMMENT |
| LOW | wrapperhelper/example-libc.h | 81 | #include <sys/mount.h> | COMMENT |
| LOW | wrapperhelper/example-libc.h | 101 | #include <sys/syscall.h> | COMMENT |
| LOW | wrapperhelper/example-libc.h | 121 | #include <ulimit.h> | COMMENT |
| LOW | wrapperhelper/include-override/common/stdc-predef.h | 1 | // Ignore all attributes | COMMENT |
| LOW | wrapperhelper/include-override/common/stdint.h | 81 | # define __INT64_C(c) c ## LL | COMMENT |
| LOW | wrapperhelper/include-override/common/stdint.h | 101 | # define UINT32_MAX (4294967295U) | COMMENT |
| LOW | wrapperhelper/include-override/common/stdint.h | 121 | COMMENT | |
| LOW | wrapperhelper/include-override/common/stdint.h | 161 | # define SIG_ATOMIC_MIN (-__SIG_ATOMIC_MAX__-1) | COMMENT |
| LOW | wrapperhelper/include-override/common/stdint.h | 181 | # define INT32_C(c) __INT32_C(c) | COMMENT |
| LOW | wrapperhelper/include-override/common/stdint.h | 201 | # define UINT32_WIDTH 32 | COMMENT |
| LOW | wrapperhelper/include-override/common/stdint.h | 221 | # define UINT_FAST64_WIDTH 64 | COMMENT |
| LOW | wrapperhelper/include-override/common/bits/types.h | 81 | we used `long' when it's 64 bits where `long long' is expected, then the | COMMENT |
| LOW | wrapperhelper/include-override/common/bits/floatn.h | 61 | # else | COMMENT |
| LOW | wrapperhelper/include-override/x86/stdc-predef.h | 1 | // C standard | COMMENT |
| LOW | wrapperhelper/include-override/x86/stdc-predef.h | 21 | #define linux 1 | COMMENT |
| LOW | wrapperhelper/include-override/x86/stdc-predef.h | 41 | //#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 1 | COMMENT |
| LOW | wrapperhelper/include-override/x86/stdc-predef.h | 61 | #define __REGISTER_PREFIX__ | COMMENT |
| LOW | wrapperhelper/include-override/x86/stdc-predef.h | 81 | #define __ATOMIC_ACQ_REL 4 | COMMENT |
| LOW | wrapperhelper/include-override/x86/stdc-predef.h | 101 | #define __SIZEOF_LONG_DOUBLE__ 12 | COMMENT |
| LOW | wrapperhelper/include-override/x86/stdc-predef.h | 121 | //#define __INT_FAST8_TYPE__ signed char | COMMENT |
| LOW | wrapperhelper/include-override/x86/stdc-predef.h | 141 | #define __INT_LEAST64_MAX__ 0x7fffffffffffffffLL | COMMENT |
| LOW | wrapperhelper/include-override/x86/stdc-predef.h | 161 | #define __SCHAR_WIDTH__ 8 | COMMENT |
| LOW | wrapperhelper/include-override/x86/stdc-predef.h | 181 | #define __UINT64_MAX__ 0xffffffffffffffffULL | COMMENT |
| LOW | wrapperhelper/include-override/x86/stdc-predef.h | 201 | //#define __UINTMAX_TYPE__ long long unsigned int | COMMENT |
| LOW | wrapperhelper/include-override/x86/stdc-predef.h | 221 | //#define __BFLT16_MANT_DIG__ 8 | COMMENT |
| LOW | wrapperhelper/include-override/x86/stdc-predef.h | 241 | #define __DBL_MIN_10_EXP__ (-307) | COMMENT |
| LOW | wrapperhelper/include-override/x86/stdc-predef.h | 261 | //#define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL | COMMENT |
| LOW | wrapperhelper/include-override/x86/stdc-predef.h | 281 | //#define __FLT16_MIN_10_EXP__ (-4) | COMMENT |
| LOW | wrapperhelper/include-override/x86/stdc-predef.h | 301 | //#define __FLT32X_DECIMAL_DIG__ 17 | COMMENT |
| LOW | wrapperhelper/include-override/x86/stdc-predef.h | 321 | //#define __FLT64_HAS_DENORM__ 1 | COMMENT |
| LOW | wrapperhelper/include-override/x86/stdc-predef.h | 341 | //#define __FLT64X_MANT_DIG__ 64 | COMMENT |
| LOW | wrapperhelper/include-override/x86/stdc-predef.h | 361 | //#define __FLT128_MIN_10_EXP__ (-4931) | COMMENT |
| LOW | wrapperhelper/include-override/x86/stdc-predef.h | 381 | #define __FLT_MIN_EXP__ (-125) | COMMENT |
| LOW | …erhelper/include-override/x86/bits/pthreadtypes-arch.h | 21 | #include <bits/wordsize.h> | COMMENT |
| LOW | …erhelper/include-override/x86/bits/pthreadtypes-arch.h | 41 | #define __SIZEOF_PTHREAD_MUTEXATTR_T 4 | COMMENT |
| LOW | wrapperhelper/include-override/aarch64/stdc-predef.h | 1 | // C standard | COMMENT |
| 2696 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | rebuild_wrappers.py | 354 | CODE | |
| LOW | rebuild_wrappers.py | 633 | CODE | |
| LOW | rebuild_wrappers.py | 804 | CODE | |
| LOW | rebuild_wrappers.py | 879 | CODE | |
| LOW | rebuild_wrappers.py | 381 | CODE | |
| LOW | rebuild_wrappers.py | 1453 | CODE | |
| LOW | rebuild_wrappers.py | 1497 | CODE | |
| LOW | rebuild_wrappers_32.py | 810 | CODE | |
| LOW | rebuild_wrappers_32.py | 1077 | CODE | |
| LOW | rebuild_wrappers_32.py | 1118 | CODE | |
| LOW | rebuild_wrappers_32.py | 348 | CODE | |
| LOW | rebuild_wrappers_32.py | 471 | CODE | |
| LOW | rebuild_wrappers_32.py | 500 | CODE | |
| LOW | rebuild_wrappers_32.py | 538 | CODE | |
| LOW | rebuild_wrappers_32.py | 831 | CODE | |
| LOW | docs/gen/gen.py | 141 | CODE | |
| LOW | configurator/configurator.py | 208 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | wine/override_wine_builtin.py | 3 | CODE | |
| LOW | configurator/box64rc.py | 1 | CODE | |
| LOW | configurator/model.py | 1 | CODE | |
| LOW | configurator/configurator.py | 2 | CODE | |
| LOW | configurator/usage.py | 1 | CODE | |
| LOW | configurator/build_standalone.py | 2 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | configurator/model.py | 347 | def _apply_matching_wildcards(self, states: Dict[str, ValueState], entry: EntryRecord) -> None: | CODE |
| LOW | configurator/configurator.py | 208 | def detect_supported_executable(path: Path) -> Optional[str]: | STRING |
| LOW⚡ | configurator/configurator.py | 662 | def _on_entry_list_button_press(self, _listbox: Gtk.ListBox, event) -> bool: | STRING |
| LOW | configurator/configurator.py | 999 | def _remove_selected_option_editor(self) -> None: | STRING |
| LOW | configurator/configurator.py | 1009 | def _insert_option_editor_after( | STRING |
| LOW | configurator/configurator.py | 1073 | def _on_editor_choice_changed( | STRING |
| LOW | configurator/usage.py | 94 | def load_default_usage_catalog() -> UsageCatalog: | CODE |
| LOW | configurator/usage.py | 110 | def load_usage_catalog_from_data( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | rebuild_wrappers_32.py | 993 | except Exception as e: | CODE |
| LOW | configurator/configurator.py | 630 | except Exception as error: | STRING |
| LOW⚡ | configurator/configurator.py | 646 | except Exception as error: | STRING |
| LOW⚡ | configurator/configurator.py | 652 | except Exception as error: | STRING |
| LOW | configurator/configurator.py | 1029 | except Exception as error: | STRING |
| LOW | configurator/configurator.py | 1043 | except Exception as error: | STRING |
| LOW | configurator/configurator.py | 1173 | except Exception as error: | STRING |
| LOW | configurator/configurator.py | 1185 | except Exception as error: | STRING |
| LOW | configurator/configurator.py | 1223 | except Exception as error: | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | CONTRIBUTING.md | 8 | Code that is initially generated by AI and subsequently edited will still be considered AI-generated. AI assistance is p | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | rebuild_wrappers.py | 768 | # Check if there was any new functions compared to last run | COMMENT |
| LOW | rebuild_wrappers_32.py | 1078 | # Check if there was any new functions compared to last run | COMMENT |
| LOW | rebuild_wrappers_32.py | 1635 | # Check if there was any new functions | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | configurator/configurator.py | 1266 | self.status.push(self.status_context, text) | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | configurator/configurator.py | 172 | def set_style(widget: Gtk.Widget, css_class: str, active: bool) -> None: | STRING |
| LOW | configurator/configurator.py | 297 | def set_profile_from_menu(store: ConfigStore, executable: Path, profile: str) -> None: | STRING |
| LOW | configurator/configurator.py | 445 | def set_selected(self, selected: bool) -> None: | STRING |
| LOW | configurator/configurator.py | 1261 | def _update_actions(self) -> None: | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/emu/x64syscall.c | 375 | // TODO: implement fallback if __NR_statx is not defined | COMMENT |