Terra is a low-level system programming language that is embedded in and meta-programmed by the Lua programming language.
This report summarizes scanner evidence for terralang/terra, a C++ project with 2,925 GitHub stars. SynthScan examined 41,963 lines of code across 120 source files, recording 126 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 3.0 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 126 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 6 finding(s).
Which changes need focused human review? 126 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 126 distinct pattern matches across 3 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | appveyor.yml | 41 | artifacts: | COMMENT |
| LOW | msvc/ext/inttypes.h | 1 | // ISO C9x compliant inttypes.h for Microsoft Visual Studio | COMMENT |
| LOW | msvc/ext/inttypes.h | 21 | // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | COMMENT |
| LOW | msvc/ext/inttypes.h | 61 | #define PRIdFAST8 "d" | COMMENT |
| LOW | msvc/ext/inttypes.h | 81 | #define PRIiLEAST64 "I64i" | COMMENT |
| LOW | msvc/ext/inttypes.h | 101 | #define PRIuFAST8 "u" | COMMENT |
| LOW | msvc/ext/inttypes.h | 121 | #define PRIX32 "I32X" | COMMENT |
| LOW | msvc/ext/inttypes.h | 141 | #define PRIxFAST64 "I64x" | COMMENT |
| LOW | msvc/ext/inttypes.h | 161 | COMMENT | |
| LOW | msvc/ext/inttypes.h | 181 | #define SCNiFAST64 "I64i" | COMMENT |
| LOW | msvc/ext/inttypes.h | 201 | #define SCNxLEAST8 "x" | COMMENT |
| LOW | msvc/ext/inttypes.h | 221 | #define SCNo32 "lo" | COMMENT |
| LOW | msvc/ext/inttypes.h | 241 | #define SCNXLEAST64 "I64X" | COMMENT |
| LOW | msvc/ext/inttypes.h | 261 | # define SCNXPTR "lX" | COMMENT |
| LOW | msvc/ext/setjmp.h | 1 | #include <setjmp.h> | COMMENT |
| LOW | tests/reference/matmuls.cpp | 1 | //#include<Accelerate/Accelerate.h> | COMMENT |
| LOW | docs/_terraforcpp.txt | 821 | // class T { // A new type | COMMENT |
| LOW | docs/_terraforcpp.txt | 841 | // T& operator=(const T& t) {x=t.x; return *this; } // Assignment operator | COMMENT |
| LOW | docs/_terraforcpp.txt | 861 | // class | COMMENT |
| LOW | docs/_terraforcpp.txt | 941 | using namespace N; | COMMENT |
| LOW | docs/javascripts/codemirror.js | 1001 | function measureLineInner(cm, line) { | COMMENT |
| LOW | docs/javascripts/codemirror.js | 5421 | // that this (partially) implements. | COMMENT |
| LOW | .github/workflows/main.yml | 321 | # multiarch: | COMMENT |
| LOW | .github/workflows/main.yml | 341 | # DOCKER_DISTRO: ${{ matrix.distro }} | COMMENT |
| LOW | src/lparser.cpp | 1 | /* | COMMENT |
| LOW | src/lparser.cpp | 21 | // #include "lmem.h" | COMMENT |
| LOW | src/tcompilerstate.h | 1 | #ifndef _tcompilerstate_h | COMMENT |
| LOW | src/tdebug.cpp | 1 | #include "llvmheaders.h" | COMMENT |
| LOW | src/tdebug.cpp | 101 | #ifdef _WIN32 | COMMENT |
| LOW | src/tcompiler.cpp | 1 | /* See Copyright Notice in ../LICENSE.txt */ | COMMENT |
| LOW | src/tcompiler.cpp | 21 | #include "tobj.h" | COMMENT |
| LOW | src/tcompiler.cpp | 441 | #endif | COMMENT |
| LOW | src/tcompiler.cpp | 1401 | // so a later, smaller argument can still be passed in registers. Return | COMMENT |
| LOW | src/tcompiler.cpp | 2761 | COMMENT | |
| LOW | src/llvmheaders_200.h | 1 | #include "llvm/IR/CallingConv.h" | COMMENT |
| LOW | src/llvmheaders_200.h | 21 | COMMENT | |
| LOW | src/tcwrapper.cpp | 1 | /* See Copyright Notice in ../LICENSE.txt */ | COMMENT |
| LOW | src/tcwrapper.cpp | 761 | return std::error_code(); | COMMENT |
| LOW | src/tcwrapper.cpp | 781 | // Clang in some scenarios with (2) alone. Of course, because we're | COMMENT |
| LOW | src/tcwrapper.cpp | 861 | const std::vector<const char *> &args, | COMMENT |
| LOW | src/llvmheaders_140.h | 1 | #include "llvm/IR/CallingConv.h" | COMMENT |
| LOW | src/llvmheaders_140.h | 21 | COMMENT | |
| LOW | src/llvmheaders_210.h | 1 | #include "llvm/IR/CallingConv.h" | COMMENT |
| LOW | src/llvmheaders_210.h | 21 | COMMENT | |
| LOW | src/llvmheaders_150.h | 1 | #include "llvm/IR/CallingConv.h" | COMMENT |
| LOW | src/llvmheaders_150.h | 21 | COMMENT | |
| LOW | src/llvmheaders_110.h | 1 | #include "llvm/IR/CallingConv.h" | COMMENT |
| LOW | src/llvmheaders_110.h | 21 | COMMENT | |
| LOW | src/tcuda.cpp | 1 | /* See Copyright Notice in ../LICENSE.txt */ | COMMENT |
| LOW | src/tcuda.cpp | 21 | #include "tobj.h" | COMMENT |
| LOW | src/tcuda.cpp | 181 | #endif | COMMENT |
| LOW | src/llvmheaders.h | 1 | #ifndef _llvmheaders_h | COMMENT |
| LOW | src/llvmheaders.h | 21 | COMMENT | |
| LOW | src/llvmheaders.h | 41 | #endif | COMMENT |
| LOW | src/llvmheaders.h | 61 | #elif LLVM_VERSION < 140 | COMMENT |
| LOW | src/llvmheaders.h | 81 | #else | COMMENT |
| LOW | src/lj_strscan.c | 21 | #define LJ_LIKELY(cond) (cond) | COMMENT |
| LOW | src/lj_strscan.c | 521 | #undef DNEXT | COMMENT |
| LOW | src/tinline.cpp | 61 | // add invalid callsites as inlining candidates | COMMENT |
| LOW | src/tinline.cpp | 81 | #include "llvm/Analysis/InlineAdvisor.h" | COMMENT |
| 58 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/javascripts/codemirror.js | 372 | function maybeUpdateLineNumberWidth(cm) { | CODE |
| LOW | docs/javascripts/codemirror.js | 2311 | function makeChangeSingleDocInEditor(cm, change, spans, selAfter) { | CODE |
| LOW | src/terralib.lua | 779 | local function createoptimizationprofile(profile) | CODE |
| LOW | src/terralib.lua | 3673 | local function createfenceattributetable(q) | CODE |
| LOW | src/terralib.lua | 3699 | local function createcmpxchgattributetable(q) | CODE |
| LOW | src/terralib.lua | 3738 | local function createatomicattributetable(q) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/workflows/main.yml | 188 | # Assign variants to the basic configurations: | COMMENT |
| LOW | .github/workflows/main.yml | 307 | # Assign variants to the basic configurations: | COMMENT |