MicroZig is a toolbox for building embedded applications in Zig.
This report presents the forensic synthetic code analysis of ZigEmbeddedGroup/microzig, a Zig project with 2,248 GitHub stars. SynthScan v2.0 examined 14,812 lines of code across 166 source files, recording 198 pattern matches distributed across 5 syntactic categories. The overall adjusted score of 12.4 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 198 distinct pattern matches across 5 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 | tools/sorcerer/README.md | 81 | # STM32F103C8 stmicro/stm32 - | COMMENT |
| LOW | drivers/README.md | 681 | COMMENT | |
| LOW | examples/espressif/esp/src/lwip/include/lwipopts.h | 1 | #ifndef LWIP_LWIPOPTS_H | COMMENT |
| LOW | examples/espressif/esp/src/lwip/include/lwipopts.h | 21 | #define MEMP_MEM_MALLOC 1 | COMMENT |
| LOW | examples/espressif/esp/src/lwip/include/arch/cc.h | 21 | } while (0) | COMMENT |
| LOW | examples/espressif/esp/src/lwip/include/arch/cc.h | 41 | #define SYS_ARCH_PROTECT(lev) lwip_lock_core_mutex() | COMMENT |
| LOW | …errypi/rp2xxx/src/hal/pio/assembler/comparison_tests.h | 1 | #ifndef _RP2XXX_COMPARISON_TESTS_H_ | COMMENT |
| LOW | …errypi/rp2xxx/src/hal/pio/assembler/comparison_tests.h | 21 | #include "comparison_tests/quadrature_encoder.pio.h" | COMMENT |
| LOW | …/hal/pio/assembler/comparison_tests/resistor_dac.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …xxx/src/hal/pio/assembler/comparison_tests/hub75.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …l/pio/assembler/comparison_tests/squarewave_fast.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …l/pio/assembler/comparison_tests/squarewave_wrap.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …rc/hal/pio/assembler/comparison_tests/squarewave.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …o/assembler/comparison_tests/nec_carrier_control.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …pio/assembler/comparison_tests/nec_carrier_burst.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …pio/assembler/comparison_tests/nec_carrier_burst.pio.h | 41 | } | COMMENT |
| LOW | …o/assembler/comparison_tests/manchester_encoding.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …p2xxx/src/hal/pio/assembler/comparison_tests/pwm.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …al/pio/assembler/comparison_tests/pio_serialiser.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …io/assembler/comparison_tests/quadrature_encoder.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …sembler/comparison_tests/differential_manchester.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …x/src/hal/pio/assembler/comparison_tests/uart_rx.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …hal/pio/assembler/comparison_tests/clocked_input.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …/src/hal/pio/assembler/comparison_tests/addition.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …xx/src/hal/pio/assembler/comparison_tests/ws2812.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …xx/src/hal/pio/assembler/comparison_tests/apa102.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …c/hal/pio/assembler/comparison_tests/nec_receive.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …c/hal/pio/assembler/comparison_tests/nec_receive.pio.h | 61 | // join the FIFOs to make a single large receive FIFO | COMMENT |
| LOW | …rc/hal/pio/assembler/comparison_tests/st7789_lcd.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …xxx/src/hal/pio/assembler/comparison_tests/blink.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …x/src/hal/pio/assembler/comparison_tests/uart_tx.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …xxx/src/hal/pio/assembler/comparison_tests/hello.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …p2xxx/src/hal/pio/assembler/comparison_tests/i2c.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …p2xxx/src/hal/pio/assembler/comparison_tests/spi.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 1 | /** | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 21 | // ----------------------------------------------------------------------------- | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 41 | #define M0PLUS_SYST_CSR_CLKSOURCE_ACCESS "RW" | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 61 | #define M0PLUS_SYST_CSR_ENABLE_MSB _u(0) | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 81 | // Description : Value to load into the SysTick Current Value Register when the | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 101 | // COUNTFLAG bit of the SysTick Control and Status Register. | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 121 | #define M0PLUS_SYST_CALIB_NOREF_MSB _u(31) | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 141 | #define M0PLUS_SYST_CALIB_TENMS_LSB _u(0) | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 161 | // Read: | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 181 | // 1 = Disable interrupt. | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 201 | // 0 = No effect. | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 221 | #define M0PLUS_NVIC_ICPR_BITS _u(0xffffffff) | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 241 | // priority, and 3 is the lowest. | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 261 | #define M0PLUS_NVIC_IPR0_IP_2_MSB _u(23) | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 281 | // Register : M0PLUS_NVIC_IPR1 | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 301 | #define M0PLUS_NVIC_IPR1_IP_6_MSB _u(23) | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 321 | // Register : M0PLUS_NVIC_IPR2 | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 341 | #define M0PLUS_NVIC_IPR2_IP_10_MSB _u(23) | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 361 | // Register : M0PLUS_NVIC_IPR3 | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 381 | #define M0PLUS_NVIC_IPR3_IP_14_MSB _u(23) | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 401 | // Register : M0PLUS_NVIC_IPR4 | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 421 | #define M0PLUS_NVIC_IPR4_IP_18_MSB _u(23) | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 441 | // Register : M0PLUS_NVIC_IPR5 | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 461 | #define M0PLUS_NVIC_IPR5_IP_22_MSB _u(23) | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 481 | // Register : M0PLUS_NVIC_IPR6 | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 501 | #define M0PLUS_NVIC_IPR6_IP_26_MSB _u(23) | COMMENT |
| 130 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | modules/freertos/src/picosdk_stubs.c | 12 | // ── IRQ / Panic ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | modules/freertos/src/picosdk_stubs.c | 27 | // ── Multicore (no-ops for single-core FreeRTOS) ───────────────────────── | COMMENT |
| MEDIUM | modules/freertos/src/picosdk_stubs.c | 48 | // ── Clocks ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | modules/freertos/src/picosdk_stubs.c | 63 | // ── Spinlocks ─────────────────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | .github/workflows/publish-github-pages.yml | 36 | # Create an array to store releases with the artifact | COMMENT |
| MEDIUM⚡ | .github/workflows/publish-github-pages.yml | 45 | # Create the target directory if it doesn't exist | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | .github/workflows/publish-github-pages.yml | 51 | # Check if the tarball was downloaded and unpack it | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | modules/foundation-libc/include/foundation/libc.h | 30 | /// NOTE: This function must never return, because otherwise, the undefined | COMMENT |