feat: move corpus to library
Test / test (push) Failing after 1m38s

This commit is contained in:
alexm committed 2026-10-06 10:27:46 -04:00
1 parent 5b8b079165
commit cae5cff55a
1350 files changed
+197 -941995

No files matched your search

+3 -3
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env node
/**
* The assembly census: every function in every compiled listing the Mojo
* corpus holds (mojo/golden, the answers godbolt gave with `asm`), sent to
* corpus holds (library/mojo/golden, the answers godbolt gave with `asm`), sent to
* the model machine the way "Send to x86-64 pane" sends it, and what the
* assembler said. Run after `pixi run build`:
*
@@ -24,9 +24,9 @@ export function census() {
const reasons = new Map(); // normalised assembler message -> count
let user = 0, userOk = 0, lib = 0, libOk = 0;
const userFailures = [];
for (const f of fs.readdirSync(R + 'mojo/golden')) {
for (const f of fs.readdirSync(R + 'library/mojo/golden')) {
if (!f.endsWith('.json')) continue;
const d = JSON.parse(fs.readFileSync(R + 'mojo/golden/' + f, 'utf8'));
const d = JSON.parse(fs.readFileSync(R + 'library/mojo/golden/' + f, 'utf8'));
if (!d.result?.asm) continue;
const fns = listingFunctions(d.result.asm);
for (const fn of fns) {