1350 files changed
+197
-941995
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user