grammar-inference-engine/experiments/round14/zod_full.txt
tobjend 2da3a7161f docs: achievement summary and experiment outputs (Round 14-15)
- ACHIEVEMENT_SUMMARY.md: what we built and learned
- Round 14: Full pipeline run on 4 codebases (clean symbols)
- Round 15: kORE/iDRegEx vs CRX comparison

Next: Crucio-inspired clustering for better grouping
2026-07-12 17:25:15 +02:00

140 lines
8.4 KiB
Text

[ 0.0s] Scanning /home/tobi/Desktop/dervish/external_refs/zod/packages/zod ...
[ 12.1s] Preprocess: 5970 methods from 287 .ts files (12.1s)
[ 12.2s] Groups: 12 named, 0 ungrouped methods
[ 12.2s] ├ src/v3 (383 methods)
[ 12.2s] ├ src/v3/benchmarks (91 methods)
[ 12.2s] ├ src/v3/helpers (31 methods)
[ 12.2s] ├ src/v3/tests (985 methods)
[ 12.2s] ├ src/v4/classic (409 methods)
[ 12.2s] ├ src/v4/classic/tests (2342 methods)
[ 12.2s] ├ src/v4/core (704 methods)
[ 12.2s] ├ src/v4/core/tests (43 methods)
[ 12.2s] ├ src/v4/core/tests/locales (85 methods)
[ 12.2s] ├ src/v4/locales (214 methods)
[ 12.2s] ├ src/v4/mini (199 methods)
[ 12.2s] ├ src/v4/mini/tests (484 methods)
[ 12.2s] Inferring 12 groups across 12 workers ...
[ 14.5s] Infer src/v3/helpers (31 methods) done
[ 15.0s] Infer src/v4/mini [def] (191 methods) done
[ 15.8s] Infer src/v4/core/tests [stringSchema] (39 methods) done
[ 17.8s] Infer src/v3/benchmarks [console] (84 methods) done
[ 19.2s] Infer src/v4/classic [processors] (403 methods) done
[ 20.2s] Infer src/v3 [ch] (374 methods) done
[ 21.4s] Infer src/v4/mini/tests [return] (481 methods) done
[ 26.6s] Infer src/v4/core [Object] (698 methods) done
[ 39.5s] Infer src/v4/locales (214 methods) done
[ 41.1s] Infer src/v3/tests [safeParse] (980 methods) done
[ 59.7s] Infer src/v4/core/tests/locales [error] (83 methods) done
[ 92.6s] Infer src/v4/classic/tests [typeof] (2340 methods) done
.ts:
╰─ src/v3 [ch] (374 methods)
Algorithm: CRX
Grammar: (ch+util)+
Score: 48
Imports: import type { Primitive } from "./helpers/typeAliases.js"; | import { util, type ZodParsedType } from "./helpers/util.js"; | import type { TypeOf, ZodType } from "./index.js"; | import type { ZodErrorMap } from "./ZodError.js"; | import defaultErrorMap from "./locales/en.js"; | import { type ZodErrorMap, ZodIssueCode } from "../ZodError.js";
... and 8 more
Args(addIssueToContext): n=2 [2:var,other; 2:var,var]
Args(new): n=1 [1:other; 1:template]
Args(processCreateParams): n=1 [1:var; 1:other]
Args(Error): n=1 [1:template; 1:lit]
╰─ src/v3/benchmarks [console] (84 methods)
Algorithm: CRX
Grammar: console.log.as+?.any?.e?
Score: 63
Imports: import Benchmark from "benchmark"; | import { z } from "zod/v3"; | import type Benchmark from "benchmark"; | import datetimeBenchmarks from "./datetime.js"; | import discriminatedUnionBenchmarks from "./discriminatedUnion.js"; | import ipv4Benchmarks from "./ipv4.js";
... and 6 more
Args(new): n=1 [1:lit; 0:]
Args(Date): n=1 [1:lit; 0:]
Args(str): n=0 [0:]
Args(Set): n=1 [1:other]
╰─ src/v3/helpers (31 methods) — no grammar — too_diverse
Imports: import type { IssueData, ZodErrorMap, ZodIssue } from "../ZodError.js"; | import { getErrorMap } from "../errors.js"; | import defaultErrorMap from "../locales/en.js"; | import type { ZodParsedType } from "./util.js";
Args(objectKeys): n=1 [1:var]
Args(Error): n=0 [0:]
Args(objectValues): n=1 [1:var]
Args(checker): n=1 [1:var]
╰─ src/v3/tests [safeParse] (980 methods)
Algorithm: CRX
Grammar: safeParse.(expect+toEqual)+?.as+?.z?
Score: 429
Imports: import { expect, test } from "vitest"; | import * as z from "zod/v3"; | import { util } from "../helpers/util.js"; | import { test } from "vitest"; | import { z } from "zod/v3"; | import { ZodError, ZodIssueCode } from "../ZodError.js";
... and 10 more
Args(expect): n=1 [1:other; 1:call]
Args(test): n=2 [2:lit,other; 2:template,other]
Args(BigInt): n=1 [1:lit; 1:expr]
Args(new): n=1 [1:other; 1:lit]
╰─ src/v4/classic [processors] (403 methods)
Algorithm: CRX
Grammar: processors.inst.ctx.json.params
Score: 41
Imports: import * as core from "../core/index.js"; | import * as schemas from "./schemas.js"; | import type { ZodType } from "./schemas.js"; | import { $ZodError } from "../core/index.js"; | import * as util from "../core/util.js"; | import type * as JSONSchema from "../core/json-schema.js";
... and 12 more
Args(new): n=1 [1:other; 1:lit]
Args(Error): n=1 [1:lit; 1:template]
Args(convertSchema): n=2 [2:other,var; 2:var,var]
Args(Set): n=1 [0:; 1:other]
╰─ src/v4/classic/tests [typeof] (2340 methods)
Algorithm: CRX
Grammar: typeof.val?.expectTypeOf+?.toEqualTypeOf?.(number+string)+?
Score: 1306
Imports: import { expect, expectTypeOf, test } from "vitest"; | import * as z from "zod/v4"; | import { expectTypeOf, test } from "vitest"; | import { expect, test } from "vitest"; | import { z } from "zod/v4"; | import { describe, expect, expectTypeOf, test } from "vitest";
... and 18 more
Args(expect): n=1 [1:other; 1:call]
Args(test): n=2 [2:lit,other; 2:template,other]
Args(expectTypeOf): n=0 [0:; 1:var]
Args(new): n=1 [1:other; 0:]
╰─ src/v4/core [Object] (698 methods)
Algorithm: CRX
Grammar: (Object+typeof)+.map?.(Error+Promise+Set+any+as+def+for+if+key+new+of+return+then+throw+util)+?
Score: 2762520975830338701947245056
Imports: import * as checks from "./checks.js"; | import type * as core from "./core.js"; | import type * as errors from "./errors.js"; | import * as registries from "./registries.js"; | import * as schemas from "./schemas.js"; | import * as util from "./util.js";
... and 25 more
Args(new): n=1 [1:other; 1:lit]
Args(Error): n=1 [1:lit; 1:template]
Args(Class): n=1 [1:other; 1:var]
Args(Set): n=1 [0:; 1:other]
╰─ src/v4/core/tests [stringSchema] (39 methods)
Algorithm: CRX
Grammar: (expect+parse+record+string+stringSchema+toThrow+z)+
Score: 232630513987305
Imports: import { expect, test } from "vitest"; | import * as z from "zod/v4"; | import { expect, expectTypeOf, test } from "vitest"; | import * as z from "zod/v3"; | import { describe, expect, it } from "vitest";
Args(expect): n=1 [1:other; 1:var]
Args(test): n=2 [2:lit,other]
Args(it): n=2 [2:lit,other]
Args(describe): n=2 [2:lit,other]
╰─ src/v4/core/tests/locales [error] (83 methods)
Algorithm: CRX
Grammar: (BigInt+count+error+expect+localeError+type)+.toContain.expected?
Score: 282393216
Imports: import { describe, expect, it } from "vitest"; | import be from "../../../locales/be.js"; | import { expect, test } from "vitest"; | import { z } from "../../../../index.js"; | import el from "../../../locales/el.js"; | import { parsedType } from "../../util.js";
... and 8 more
Args(expect): n=1 [1:other; 1:call]
Args(test): n=2 [2:lit,other]
Args(parsedType): n=1 [1:other; 1:lit]
Args(describe): n=2 [2:lit,other; 2:template,other]
╰─ src/v4/locales (214 methods) — no grammar — malformed_grammar
Imports: import type { $ZodStringFormats } from "../core/checks.js"; | import type * as errors from "../core/errors.js"; | import * as util from "../core/util.js"; | import km from "./km.js"; | import uk from "./uk.js";
Args(getSizing): n=1 [1:other; 4:other,call,expr,lit]
Args(error): n=0 [0:]
Args(Number): n=1 [1:other]
Args(withDefiniteArticle): n=1 [1:other; 1:expr]
╰─ src/v4/mini [def] (191 methods)
Algorithm: CRX
Grammar: (any+as+core+def+new+normalizeParams+params+return+util)+
Score: 984770902214992292499
Imports: import * as core from "../core/index.js"; | import * as schemas from "./schemas.js"; | import * as util from "../core/util.js"; | import * as parse from "./parse.js";
Args(new): n=1 [1:other; 1:template]
Args(ZodMiniRecord): n=1 [1:other]
Args(Error): n=1 [1:lit; 1:template]
Args(unknown): n=0 [0:]
╰─ src/v4/mini/tests [return] (481 methods)
Algorithm: CRX
Grammar: return.typeof?.schema?.val?.check?.z+?.string?
Score: 281
Imports: import { expect, expectTypeOf, test } from "vitest"; | import * as z from "../index.js"; | import { test } from "vitest"; | import * as z from "zod/mini"; | import { expectTypeOf, test } from "vitest"; | import { expect, test } from "vitest";
... and 5 more
Args(expect): n=1 [1:other; 1:call]
Args(test): n=2 [2:lit,other]
Args(expectTypeOf): n=0 [0:; 1:other]
Args(Date): n=1 [0:; 1:var]