WasmEdge is a lightweight, high-performance, and extensible WebAssembly runtime for cloud native, edge, and decentralized applications. It powers serverless apps, embedded functions, microservices, smart contracts, and IoT devices.
This report presents the forensic synthetic code analysis of WasmEdge/WasmEdge, a C++ project with 10,712 GitHub stars. SynthScan v2.0 examined 256,269 lines of code across 1075 source files, recording 886 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 3.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 886 distinct pattern matches across 11 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 | .gitvote.yml | 1 | # GitVote configuration file | COMMENT |
| LOW | .gitvote.yml | 21 | # | COMMENT |
| LOW | .gitvote.yml | 41 | # permissions, and organization owners. | COMMENT |
| LOW | .gitvote.yml | 61 | teams: [] | COMMENT |
| LOW | .gitvote.yml | 81 | # has been called manually the automatic periodic run may be delayed. | COMMENT |
| LOW | .gitvote.yml | 101 | # specially on votes that stay open for a long time, it may be preferable | COMMENT |
| LOW | tools/fuzz/component.cpp | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | test/validator/ValidatorRegressionTest.cpp | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | test/validator/ValidatorRegressionTest.cpp | 201 | EXPECT_FALSE(ValidationResult); | COMMENT |
| LOW | test/validator/ValidatorRegressionTest.cpp | 281 | auto Result = LoadEngine->parseModule(Wasm); | COMMENT |
| LOW | test/validator/ValidatorRegressionTest.cpp | 361 | } | COMMENT |
| LOW | test/validator/ValidatorRegressionTest.cpp | 421 | // Test that ref.cast after unreachable passes validation. | COMMENT |
| LOW | test/host/mock/mockTest.cpp | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | test/host/wasi/wasi.cpp | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | test/host/socket/wasi_socket.cpp | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | test/expected/catch.hpp | 21 | # pragma clang system_header | COMMENT |
| LOW | test/expected/catch.hpp | 41 | // Wparentheses have to be suppressed globally. | COMMENT |
| LOW | test/expected/catch.hpp | 61 | # if !defined(CATCH_CONFIG_ENABLE_CHRONO_STRINGMAKER) | COMMENT |
| LOW | test/expected/catch.hpp | 81 | # define CATCH_PLATFORM_WINDOWS | COMMENT |
| LOW | test/expected/catch.hpp | 101 | COMMENT | |
| LOW | test/expected/catch.hpp | 121 | // can be combined, en-mass, with the _NO_ forms later. | COMMENT |
| LOW | test/expected/catch.hpp | 161 | # define CATCH_INTERNAL_SUPPRESS_ZERO_VARIADIC_WARNINGS \ | COMMENT |
| LOW | test/expected/catch.hpp | 181 | #ifdef __OS400__ | COMMENT |
| LOW | test/expected/catch.hpp | 201 | #if defined(__ORBIS__) | COMMENT |
| LOW | test/expected/catch.hpp | 221 | COMMENT | |
| LOW | test/expected/catch.hpp | 241 | // MSVC traditional preprocessor needs some workaround for __VA_ARGS__ | COMMENT |
| LOW | test/expected/catch.hpp | 261 | #endif | COMMENT |
| LOW | test/expected/catch.hpp | 281 | // but user still might want to turn it off | COMMENT |
| LOW | test/expected/catch.hpp | 301 | // Various stdlib support checks that require __has_include | COMMENT |
| LOW | test/expected/catch.hpp | 321 | // work around clang bug with libstdc++ https://bugs.llvm.org/show_bug.cgi?id=31852 | COMMENT |
| LOW | test/expected/catch.hpp | 341 | // This is set by default, because we assume that unix compilers are posix-signal-compatible by default. | COMMENT |
| LOW | test/expected/catch.hpp | 361 | COMMENT | |
| LOW | test/expected/catch.hpp | 381 | COMMENT | |
| LOW | test/expected/catch.hpp | 401 | COMMENT | |
| LOW | test/expected/catch.hpp | 421 | #endif | COMMENT |
| LOW | test/expected/catch.hpp | 441 | #endif | COMMENT |
| LOW | test/expected/catch.hpp | 681 | #define INTERNAL_CATCH_EXPAND_VARGS(...) __VA_ARGS__ | COMMENT |
| LOW | test/expected/catch.hpp | 701 | COMMENT | |
| LOW | test/expected/catch.hpp | 721 | #define INTERNAL_CATCH_STRINGIZE(...) INTERNAL_CATCH_STRINGIZE2(__VA_ARGS__) | COMMENT |
| LOW | test/expected/catch.hpp | 741 | #define INTERNAL_CATCH_MAKE_TYPE_LIST2(...) INTERNAL_CATCH_EXPAND_VARGS(decltype(get_wrapper<INTERNAL_CATCH_REMOVE_PAREN | COMMENT |
| LOW | test/expected/catch.hpp | 881 | #define INTERNAL_CATCH_NTTP_REG_GEN(TestFunc, ...) INTERNAL_CATCH_VA_NARGS_IMPL( "dummy", __VA_ARGS__, INTERNAL_CATCH_NT | COMMENT |
| LOW | test/expected/catch.hpp | 1001 | #ifndef CATCH_CONFIG_TRADITIONAL_MSVC_PREPROCESSOR | COMMENT |
| LOW | test/expected/catch.hpp | 1381 | ResultDisposition::Flags resultDisposition; | COMMENT |
| LOW | test/expected/catch.hpp | 1501 | return nil; | COMMENT |
| LOW | test/expected/catch.hpp | 1841 | } | COMMENT |
| LOW | test/expected/catch.hpp | 2641 | #define CATCH_INTERNAL_STRINGIFY(...) #__VA_ARGS__ | COMMENT |
| LOW | test/expected/catch.hpp | 5001 | // start catch_interfaces_reporter.h | COMMENT |
| LOW | test/expected/catch.hpp | 6361 | COMMENT | |
| LOW | test/expected/catch.hpp | 7381 | template <typename T> | COMMENT |
| LOW | test/expected/catch.hpp | 7861 | COMMENT | |
| LOW | test/expected/catch.hpp | 7881 | #else // Fall back to the generic way. | COMMENT |
| LOW | test/expected/catch.hpp | 7901 | COMMENT | |
| LOW | test/expected/catch.hpp | 7921 | #include <windows.h> | COMMENT |
| LOW | test/expected/catch.hpp | 8341 | // start catch_clara.h | COMMENT |
| LOW | test/expected/catch.hpp | 8361 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | COMMENT |
| LOW | test/expected/catch.hpp | 8381 | #endif | COMMENT |
| LOW | test/expected/catch.hpp | 8721 | } | COMMENT |
| LOW | test/expected/catch.hpp | 9601 | // Convenience wrapper for option parser that specifies the help option | COMMENT |
| LOW | test/expected/catch.hpp | 10281 | namespace Catch { | COMMENT |
| LOW | test/expected/catch.hpp | 10301 | #ifdef __apple_build_version__ | COMMENT |
| 787 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | .github/scripts/run-riscv64-quick-tests.sh | 40 | # ============================================================= | COMMENT |
| MEDIUM⚡ | .github/scripts/run-riscv64-quick-tests.sh | 42 | # ============================================================= | COMMENT |
| MEDIUM⚡ | .github/scripts/run-riscv64-quick-tests.sh | 52 | # ============================================================= | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/host/wasi/wasi.cpp | 3670 | // TODO: implement | COMMENT |
| LOW | test/host/wasi/wasi.cpp | 3698 | // TODO: implement | COMMENT |
| LOW | test/host/wasi/wasi.cpp | 3726 | // TODO: implement | COMMENT |
| LOW | plugins/wasi_nn/wasinnfunc.cpp | 86 | // TODO: implement RPC for Load | COMMENT |
| LOW | plugins/wasi_nn/wasinnfunc.cpp | 693 | // TODO: implement RPC for unload | COMMENT |
| LOW | plugins/wasi_nn/wasinnfunc.cpp | 712 | // TODO: implement RPC for finalize_execution_context | COMMENT |
| LOW | lib/validator/component_validator.cpp | 1203 | // TODO: implement wasm-tools' full free-variable rule — reject an outer | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | examples/js/repl.js | 1240 | print(result); | CODE |
| HIGH | examples/js/hello.js | 2 | print("Hello",...args) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | utils/install.py | 134 | CODE | |
| LOW | utils/install.py | 524 | CODE | |
| LOW | utils/install.py | 589 | CODE | |
| LOW | utils/install.py | 700 | CODE | |
| LOW | utils/install.py | 926 | CODE | |
| LOW | utils/install.py | 1125 | CODE | |
| LOW | utils/install.py | 1339 | CODE | |
| LOW | utils/install.py | 1175 | CODE | |
| LOW | utils/ohos/configuration/build_thirdparty.py | 19 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | utils/install.py | 1427 | # Check if the old structure exists (pre-0.15.0 with versioned directory) | COMMENT |
| LOW | utils/install.py | 1465 | # Check if wasmedge binary works | COMMENT |
| LOW | utils/install.py | 655 | if "12" in output: # Check if CUDA 12.x is installed | STRING |
| LOW | …ithub/workflows/reusable-build-extensions-on-macos.yml | 39 | # Set value to `matrix.target` if `input.release` is `true`, or | COMMENT |
| LOW | …ithub/workflows/reusable-build-extensions-on-linux.yml | 47 | # Set value to `matrix.target` if `input.release` is `true`, or | COMMENT |
| LOW | .github/workflows/docker.yml | 74 | outputs: # Set outputs to true if not pull_request | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | utils/install.py | 4 | CODE | |
| LOW | utils/install.py | 4 | CODE | |
| LOW | utils/install.py | 4 | CODE | |
| LOW | utils/install.py | 4 | CODE | |
| LOW | utils/install.py | 4 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/workflows/test-installers.yml | 411 | # Test install.py with comprehensive features | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | utils/install.py | 1160 | def get_remote_version_availability(repo, version): | CODE |
| LOW | utils/install.py | 700 | def install_tensorflow_extension( | STRING |
| LOW | utils/install.py | 1147 | def get_latest_github_release(repo): | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/scripts/run-riscv64-quick-tests.sh | 9 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | utils/install.py | 835 | except Exception as e: | STRING |
| LOW | utils/install.py | 860 | except Exception as e: | STRING |