wuica-cli 0.1.7 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/README.md +140 -30
  2. package/dist/data/arch/ADL-P.bin.br +0 -0
  3. package/dist/data/arch/BDW.bin.br +0 -0
  4. package/dist/data/arch/CFL.bin.br +0 -0
  5. package/dist/data/arch/CLX.bin.br +0 -0
  6. package/dist/data/arch/HSW.bin.br +0 -0
  7. package/dist/data/arch/ICL.bin.br +0 -0
  8. package/dist/data/arch/ICX.bin.br +0 -0
  9. package/dist/data/arch/IVB.bin.br +0 -0
  10. package/dist/data/arch/KBL.bin.br +0 -0
  11. package/dist/data/arch/RKL.bin.br +0 -0
  12. package/dist/data/arch/SKL.bin.br +0 -0
  13. package/dist/data/arch/SKX.bin.br +0 -0
  14. package/dist/data/arch/SNB.bin.br +0 -0
  15. package/dist/data/arch/TGL.bin.br +0 -0
  16. package/dist/data/arch/ZEN3.bin.br +0 -0
  17. package/dist/manifest.json +140 -61
  18. package/dist/wuica_wasm.wasm.br +0 -0
  19. package/index.d.ts +41 -3
  20. package/lib/cli.js +280 -17
  21. package/lib/examples.js +26 -0
  22. package/lib/files.js +25 -3
  23. package/lib/index.js +131 -28
  24. package/lib/objfile.js +216 -0
  25. package/lib/thread-worker.js +8 -5
  26. package/lib/threads.js +32 -21
  27. package/lib/wasm.js +30 -5
  28. package/lib/web/caveats.js +8 -0
  29. package/lib/web/examples.js +99 -0
  30. package/lib/web/showcase.js +368 -0
  31. package/package.json +1 -1
  32. package/dist/data/arch/ADL-P.json.br +0 -0
  33. package/dist/data/arch/BDW.json.br +0 -0
  34. package/dist/data/arch/CFL.json.br +0 -0
  35. package/dist/data/arch/CLX.json.br +0 -0
  36. package/dist/data/arch/HSW.json.br +0 -0
  37. package/dist/data/arch/ICL.json.br +0 -0
  38. package/dist/data/arch/ICX.json.br +0 -0
  39. package/dist/data/arch/IVB.json.br +0 -0
  40. package/dist/data/arch/KBL.json.br +0 -0
  41. package/dist/data/arch/RKL.json.br +0 -0
  42. package/dist/data/arch/SKL.json.br +0 -0
  43. package/dist/data/arch/SKX.json.br +0 -0
  44. package/dist/data/arch/SNB.json.br +0 -0
  45. package/dist/data/arch/TGL.json.br +0 -0
  46. package/dist/data/arch/ZEN3.json.br +0 -0
package/lib/wasm.js CHANGED
@@ -12,7 +12,8 @@ export class Analyzer {
12
12
  #module;
13
13
  #x = null;
14
14
  #uarch = null; // bytes of uarch.json, kept to reload after a trap
15
- #tables = new Map(); // table name -> bytes of data/arch/<name>.json
15
+ #tables = new Map(); // table name -> its bytes, or a function that reads them again (for a reload after a trap)
16
+ #binary = false; // the module reads binary tables (wuica_load_arch_bin)
16
17
  restarts = 0;
17
18
 
18
19
  constructor(module) {
@@ -21,6 +22,7 @@ export class Analyzer {
21
22
  for (const n of ['memory', 'wuica_alloc', 'wuica_free', 'wuica_result_ptr', 'wuica_load_uarch', 'wuica_load_arch', 'wuica_analyze']) {
22
23
  if (!this.#x[n]) throw new Error(`not a wuica analyzer module: export "${n}" is missing`);
23
24
  }
25
+ this.#binary = typeof this.#x.wuica_load_arch_bin === 'function';
24
26
  }
25
27
 
26
28
  // Arguments are byte arrays passed as (pointer, length); the result is the text at wuica_result_ptr(). Views of the
@@ -50,7 +52,7 @@ export class Analyzer {
50
52
  if (this.#uarch) this.restarts++;
51
53
  this.#x = new WebAssembly.Instance(this.#module, {}).exports;
52
54
  if (this.#uarch) this.#load('wuica_load_uarch', [this.#uarch], 'uarch.json');
53
- for (const [name, bytes] of this.#tables) this.#load('wuica_load_arch', [enc.encode(name), bytes], `instruction table ${name}`);
55
+ for (const [name, t] of this.#tables) this.#loadTable(name, typeof t === 'function' ? t() : t);
54
56
  }
55
57
 
56
58
  #load(fn, inputs, what) {
@@ -64,14 +66,31 @@ export class Analyzer {
64
66
  this.#uarch = bytes;
65
67
  }
66
68
 
67
- loadArch(name, bytes) {
69
+ // bytes: the binary form of the table (data/arch/<name>.bin, see crates/wuica-core/src/table_bin.rs) or its JSON.
70
+ // reload: a function that returns the bytes again (then they are not kept: they are only needed after a trap)
71
+ loadArch(name, bytes, reload = null) {
68
72
  this.#live();
69
- this.#load('wuica_load_arch', [enc.encode(name), bytes], `instruction table ${name}`);
70
- this.#tables.set(name, bytes);
73
+ this.#loadTable(name, bytes);
74
+ this.#tables.set(name, reload ?? bytes);
75
+ }
76
+
77
+ #loadTable(name, bytes) {
78
+ if (!isBinaryTable(bytes)) return this.#load('wuica_load_arch', [enc.encode(name), bytes], `instruction table ${name}`);
79
+ if (!this.#binary) throw new Error(`instruction table ${name}: a binary table, and this analyzer module reads only JSON tables`);
80
+ this.#load('wuica_load_arch_bin', [enc.encode(name), bytes], `instruction table ${name}`);
71
81
  }
72
82
 
73
83
  hasArch(name) { return this.#tables.has(name); }
74
84
 
85
+ // The decoder alone (wuica_decode): the instructions of `bytes` for an XED chip ("ALL": every instruction XED knows),
86
+ // [{addr, opcode, asm, category, ...}], or throws.
87
+ decode(bytes, chip = 'ALL') {
88
+ this.#live();
89
+ const r = this.#call('wuica_decode', [bytes, enc.encode(chip)]);
90
+ if (!Array.isArray(r)) throw new Error(r?.error ?? 'the decoder failed');
91
+ return r;
92
+ }
93
+
75
94
  // The size of the instance's memory in bytes (0 after a trap, until the next call).
76
95
  get memoryBytes() { return this.#x?.memory.buffer.byteLength ?? 0; }
77
96
 
@@ -98,6 +117,12 @@ export class Analyzer {
98
117
  }
99
118
  }
100
119
 
120
+ // Whether bytes are the binary form of an instruction table (they start with the magic WUICATBL).
121
+ const MAGIC = [0x57, 0x55, 0x49, 0x43, 0x41, 0x54, 0x42, 0x4c];
122
+ export function isBinaryTable(bytes) {
123
+ return bytes?.length >= 8 && MAGIC.every((b, i) => bytes[i] === b);
124
+ }
125
+
101
126
  // The module bytes with the maximum of every (32-bit, unshared) memory set to at most `maxPages` (64 KiB each): an
102
127
  // instance of it traps where an allocation would grow the memory beyond that.
103
128
  export function capMemory(bytes, maxPages) {
@@ -11,6 +11,8 @@
11
11
  // exit a loop with an exit before its branch (a search; a forward branch within the loop, an if, is not an
12
12
  // exit): the exit's mispredict, once per call, is not modelled;
13
13
  // with short trip counts it can cost more than the loop.
14
+ // call a call in the block (a loop that calls a function): the call instruction is simulated, the function it
15
+ // calls is not.
14
16
  // paths a conditional branch before the last instruction whose target is inside the block (an if/else, or a
15
17
  // second back edge: clang's remainder loop of sum_mod, `jne .LBB0_9` back to the top and the latch to the
16
18
  // middle): uiCA runs the block straight through, so both sides of the branch are simulated one after the
@@ -166,6 +168,12 @@ export function caveats(response, config = null) {
166
168
  out.push({ id: 'rmw-index', text: 'store forwarding', rows: r,
167
169
  title: `a read-modify-write to an indexed address (${some(rows, r)}): when iterations hit the same address (repeated data), each waits for the previous store; not modelled` });
168
170
  }
171
+ // a call: the function it calls is not part of the block
172
+ const calls = rows.flatMap((x, row) => (x?.kind === 'instr' && /^call/i.test(String(x.label).trim()) ? [row] : []));
173
+ if (calls.length) {
174
+ out.push({ id: 'call', text: 'calls', rows: calls,
175
+ title: `the block calls a function (${some(rows, calls)}): the call instruction is simulated, the function it calls is not; a real iteration also runs that function` });
176
+ }
169
177
  // a branch within the block: both sides are simulated
170
178
  if (inside.length) {
171
179
  const instrRows = rows.flatMap((x, row) => (x?.kind === 'instr' ? [row] : []));
@@ -0,0 +1,99 @@
1
+ // Built-in examples. Each has the code in both assembly syntaxes and as machine code (a listing that the hex
2
+ // parser reads, so the examples also show that disassembly output can be pasted). The four blocks are in the
3
+ // corpus of the Python reference, so the mock engine has the reference's result for them
4
+ // (see mock-data.js; `arch` is the microarchitecture that result was recorded for). Menu group "basics".
5
+
6
+ import { SHA256_BLOCK_HEX } from './showcase.js';
7
+
8
+ function ex(id, title, arch, intel, att, listing) {
9
+ const hex = listing.map((l) => l[0].replace(/ /g, '')).join('');
10
+ let addr = 0;
11
+ const width = Math.max(...listing.map((l) => l[0].length));
12
+ const lines = listing.map(([bytes, text]) => {
13
+ const line = `${addr.toString(16).padStart(4)}: ${bytes.padEnd(width)} ${text}`;
14
+ addr += (bytes.length + 1) / 3;
15
+ return line;
16
+ });
17
+ return { id, title, arch, hex, text: { intel: intel.join('\n') + '\n', att: att.join('\n') + '\n', hex: lines.join('\n') + '\n' } };
18
+ }
19
+
20
+ export const EXAMPLES = [
21
+ ex('chain', 'Dependency chain: two dependent adds', 'SKL',
22
+ ['loop:', ' add rax, 1', ' add rax, 1', ' dec r15', ' jnz loop'],
23
+ ['loop:', ' addq $1, %rax', ' addq $1, %rax', ' decq %r15', ' jnz loop'],
24
+ [['48 83 c0 01', 'add rax, 0x1'], ['48 83 c0 01', 'add rax, 0x1'], ['49 ff cf', 'dec r15'], ['75 f3', 'jnz 0x0']]),
25
+ ex('loadstore', 'Load/store: store, then reload', 'ZEN3',
26
+ ['loop:', ' mov qword ptr [rsi], rax', ' mov eax, dword ptr [rsi]', ' add rax, 1', ' dec r15', ' jnz loop'],
27
+ ['loop:', ' movq %rax, (%rsi)', ' movl (%rsi), %eax', ' addq $1, %rax', ' decq %r15', ' jnz loop'],
28
+ [['48 89 06', 'mov qword ptr [rsi], rax'], ['8b 06', 'mov eax, dword ptr [rsi]'], ['48 83 c0 01', 'add rax, 0x1'],
29
+ ['49 ff cf', 'dec r15'], ['75 f2', 'jnz 0x0']]),
30
+ ex('avx', 'AVX: FMA, add and multiply', 'ADL-P',
31
+ ['loop:', ' vfmsub213pd ymm6, ymm5, ymm4', ' add r10, rcx', ' imul r8, r8', ' dec r15', ' jnz loop'],
32
+ ['loop:', ' vfmsub213pd %ymm4, %ymm5, %ymm6', ' addq %rcx, %r10', ' imulq %r8, %r8', ' decq %r15', ' jnz loop'],
33
+ [['c4 e2 d5 aa f4', 'vfmsub213pd ymm6, ymm5, ymm4'], ['4c 03 d1', 'add r10, rcx'], ['4d 0f af c0', 'imul r8, r8'],
34
+ ['49 ff cf', 'dec r15'], ['75 ef', 'jnz 0x0']]),
35
+ ex('stack', 'Stack: pops after an add to rsp', 'SKL',
36
+ ['loop:', ' add rsp, 8', ' mov rsi, rbx', ' mov rdx, rbp', ' pop rbx', ' pop rbp', ' mov edi, eax', ' dec r15', ' jnz loop'],
37
+ ['loop:', ' addq $8, %rsp', ' movq %rbx, %rsi', ' movq %rbp, %rdx', ' popq %rbx', ' popq %rbp', ' movl %eax, %edi', ' decq %r15', ' jnz loop'],
38
+ [['48 83 c4 08', 'add rsp, 0x8'], ['48 89 de', 'mov rsi, rbx'], ['48 89 ea', 'mov rdx, rbp'], ['5b', 'pop rbx'], ['5d', 'pop rbp'],
39
+ ['89 c7', 'mov edi, eax'], ['49 ff cf', 'dec r15'], ['75 ed', 'jnz 0x0']]),
40
+ ];
41
+
42
+ // Well-known loops (menu group "classic loops"). Not in the reference's corpus: the mock has no result for them.
43
+ // dot1/dot4 are the default A–B demo (the same work, one accumulator vs four).
44
+ export const CLASSIC_EXAMPLES = [
45
+ ex('saxpy', 'saxpy (AVX2 FMA)', 'SKL',
46
+ ['loop:', ' vmovups ymm1, ymmword ptr [rdi + rax*4]', ' vfmadd213ps ymm1, ymm0, ymmword ptr [rsi + rax*4]', ' vmovups ymmword ptr [rsi + rax*4], ymm1', ' add rax, 8', ' cmp rax, rdx', ' jb loop'],
47
+ ['loop:', ' vmovups (%rdi,%rax,4), %ymm1', ' vfmadd213ps (%rsi,%rax,4), %ymm0, %ymm1', ' vmovups %ymm1, (%rsi,%rax,4)', ' addq $8, %rax', ' cmpq %rdx, %rax', ' jb loop'],
48
+ [['c5 fc 10 0c 87', 'vmovups ymm1, ymmword ptr [rdi+rax*4]'], ['c4 e2 7d a8 0c 86', 'vfmadd213ps ymm1, ymm0, ymmword ptr [rsi+rax*4]'], ['c5 fc 11 0c 86', 'vmovups ymmword ptr [rsi+rax*4], ymm1'], ['48 83 c0 08', 'add rax, 0x8'], ['48 39 d0', 'cmp rax, rdx'], ['72 e7', 'jb 0x0']]),
49
+ ex('dot1', 'dot product, 1 accumulator', 'SKL',
50
+ ['loop:', ' vmovups ymm4, ymmword ptr [rdi + rax*4]', ' vmovups ymm5, ymmword ptr [rdi + rax*4 + 32]', ' vmovups ymm6, ymmword ptr [rdi + rax*4 + 64]', ' vmovups ymm7, ymmword ptr [rdi + rax*4 + 96]', ' vfmadd231ps ymm0, ymm4, ymmword ptr [rsi + rax*4]', ' vfmadd231ps ymm0, ymm5, ymmword ptr [rsi + rax*4 + 32]', ' vfmadd231ps ymm0, ymm6, ymmword ptr [rsi + rax*4 + 64]', ' vfmadd231ps ymm0, ymm7, ymmword ptr [rsi + rax*4 + 96]', ' add rax, 32', ' cmp rax, rdx', ' jb loop'],
51
+ ['loop:', ' vmovups (%rdi,%rax,4), %ymm4', ' vmovups 32(%rdi,%rax,4), %ymm5', ' vmovups 64(%rdi,%rax,4), %ymm6', ' vmovups 96(%rdi,%rax,4), %ymm7', ' vfmadd231ps (%rsi,%rax,4), %ymm4, %ymm0', ' vfmadd231ps 32(%rsi,%rax,4), %ymm5, %ymm0', ' vfmadd231ps 64(%rsi,%rax,4), %ymm6, %ymm0', ' vfmadd231ps 96(%rsi,%rax,4), %ymm7, %ymm0', ' addq $32, %rax', ' cmpq %rdx, %rax', ' jb loop'],
52
+ [['c5 fc 10 24 87', 'vmovups ymm4, ymmword ptr [rdi+rax*4]'], ['c5 fc 10 6c 87 20', 'vmovups ymm5, ymmword ptr [rdi+rax*4+0x20]'], ['c5 fc 10 74 87 40', 'vmovups ymm6, ymmword ptr [rdi+rax*4+0x40]'], ['c5 fc 10 7c 87 60', 'vmovups ymm7, ymmword ptr [rdi+rax*4+0x60]'], ['c4 e2 5d b8 04 86', 'vfmadd231ps ymm0, ymm4, ymmword ptr [rsi+rax*4]'], ['c4 e2 55 b8 44 86 20', 'vfmadd231ps ymm0, ymm5, ymmword ptr [rsi+rax*4+0x20]'], ['c4 e2 4d b8 44 86 40', 'vfmadd231ps ymm0, ymm6, ymmword ptr [rsi+rax*4+0x40]'], ['c4 e2 45 b8 44 86 60', 'vfmadd231ps ymm0, ymm7, ymmword ptr [rsi+rax*4+0x60]'], ['48 83 c0 20', 'add rax, 0x20'], ['48 39 d0', 'cmp rax, rdx'], ['72 c5', 'jb 0x0']]),
53
+ ex('dot4', 'dot product, 4 accumulators', 'SKL',
54
+ ['loop:', ' vmovups ymm4, ymmword ptr [rdi + rax*4]', ' vmovups ymm5, ymmword ptr [rdi + rax*4 + 32]', ' vmovups ymm6, ymmword ptr [rdi + rax*4 + 64]', ' vmovups ymm7, ymmword ptr [rdi + rax*4 + 96]', ' vfmadd231ps ymm0, ymm4, ymmword ptr [rsi + rax*4]', ' vfmadd231ps ymm1, ymm5, ymmword ptr [rsi + rax*4 + 32]', ' vfmadd231ps ymm2, ymm6, ymmword ptr [rsi + rax*4 + 64]', ' vfmadd231ps ymm3, ymm7, ymmword ptr [rsi + rax*4 + 96]', ' add rax, 32', ' cmp rax, rdx', ' jb loop'],
55
+ ['loop:', ' vmovups (%rdi,%rax,4), %ymm4', ' vmovups 32(%rdi,%rax,4), %ymm5', ' vmovups 64(%rdi,%rax,4), %ymm6', ' vmovups 96(%rdi,%rax,4), %ymm7', ' vfmadd231ps (%rsi,%rax,4), %ymm4, %ymm0', ' vfmadd231ps 32(%rsi,%rax,4), %ymm5, %ymm1', ' vfmadd231ps 64(%rsi,%rax,4), %ymm6, %ymm2', ' vfmadd231ps 96(%rsi,%rax,4), %ymm7, %ymm3', ' addq $32, %rax', ' cmpq %rdx, %rax', ' jb loop'],
56
+ [['c5 fc 10 24 87', 'vmovups ymm4, ymmword ptr [rdi+rax*4]'], ['c5 fc 10 6c 87 20', 'vmovups ymm5, ymmword ptr [rdi+rax*4+0x20]'], ['c5 fc 10 74 87 40', 'vmovups ymm6, ymmword ptr [rdi+rax*4+0x40]'], ['c5 fc 10 7c 87 60', 'vmovups ymm7, ymmword ptr [rdi+rax*4+0x60]'], ['c4 e2 5d b8 04 86', 'vfmadd231ps ymm0, ymm4, ymmword ptr [rsi+rax*4]'], ['c4 e2 55 b8 4c 86 20', 'vfmadd231ps ymm1, ymm5, ymmword ptr [rsi+rax*4+0x20]'], ['c4 e2 4d b8 54 86 40', 'vfmadd231ps ymm2, ymm6, ymmword ptr [rsi+rax*4+0x40]'], ['c4 e2 45 b8 5c 86 60', 'vfmadd231ps ymm3, ymm7, ymmword ptr [rsi+rax*4+0x60]'], ['48 83 c0 20', 'add rax, 0x20'], ['48 39 d0', 'cmp rax, rdx'], ['72 c5', 'jb 0x0']]),
57
+ ex('popcnt', 'popcount (false dependency)', 'SKL',
58
+ ['loop:', ' popcnt rcx, qword ptr [rdi + rax*8]', ' add rdx, rcx', ' inc rax', ' cmp rax, rsi', ' jb loop'],
59
+ ['loop:', ' popcntq (%rdi,%rax,8), %rcx', ' addq %rcx, %rdx', ' incq %rax', ' cmpq %rsi, %rax', ' jb loop'],
60
+ [['f3 48 0f b8 0c c7', 'popcnt rcx, qword ptr [rdi+rax*8]'], ['48 01 ca', 'add rdx, rcx'], ['48 ff c0', 'inc rax'], ['48 39 f0', 'cmp rax, rsi'], ['72 ef', 'jb 0x0']]),
61
+ ex('ptrchase', 'pointer chasing', 'SKL',
62
+ ['loop:', ' mov rax, qword ptr [rax]', ' dec rcx', ' jnz loop'],
63
+ ['loop:', ' movq (%rax), %rax', ' decq %rcx', ' jne loop'],
64
+ [['48 8b 00', 'mov rax, qword ptr [rax]'], ['48 ff c9', 'dec rcx'], ['75 f8', 'jnz 0x0']]),
65
+ ex('strlen', 'strlen (SSE2)', 'SKL',
66
+ ['loop:', ' movdqa xmm1, xmmword ptr [rdi]', ' pcmpeqb xmm1, xmm0', ' pmovmskb eax, xmm1', ' add rdi, 16', ' test eax, eax', ' jz loop'],
67
+ ['loop:', ' movdqa (%rdi), %xmm1', ' pcmpeqb %xmm0, %xmm1', ' pmovmskb %xmm1, %eax', ' addq $16, %rdi', ' testl %eax, %eax', ' je loop'],
68
+ [['66 0f 6f 0f', 'movdqa xmm1, xmmword ptr [rdi]'], ['66 0f 74 c8', 'pcmpeqb xmm1, xmm0'], ['66 0f d7 c1', 'pmovmskb eax, xmm1'], ['48 83 c7 10', 'add rdi, 0x10'], ['85 c0', 'test eax, eax'], ['74 ec', 'jz 0x0']]),
69
+ ex('crc32', 'CRC32', 'SKL',
70
+ ['loop:', ' crc32 rax, qword ptr [rdi + rcx*8]', ' inc rcx', ' cmp rcx, rsi', ' jb loop'],
71
+ ['loop:', ' crc32q (%rdi,%rcx,8), %rax', ' incq %rcx', ' cmpq %rsi, %rcx', ' jb loop'],
72
+ [['f2 48 0f 38 f1 04 cf', 'crc32 rax, qword ptr [rdi+rcx*8]'], ['48 ff c1', 'inc rcx'], ['48 39 f1', 'cmp rcx, rsi'], ['72 f1', 'jb 0x0']]),
73
+ ex('memcpy', 'memcpy (AVX)', 'SKL',
74
+ ['loop:', ' vmovdqu ymm0, ymmword ptr [rsi + rax]', ' vmovdqu ymm1, ymmword ptr [rsi + rax + 32]', ' vmovdqu ymmword ptr [rdi + rax], ymm0', ' vmovdqu ymmword ptr [rdi + rax + 32], ymm1', ' add rax, 64', ' cmp rax, rdx', ' jb loop'],
75
+ ['loop:', ' vmovdqu (%rsi,%rax), %ymm0', ' vmovdqu 32(%rsi,%rax), %ymm1', ' vmovdqu %ymm0, (%rdi,%rax)', ' vmovdqu %ymm1, 32(%rdi,%rax)', ' addq $64, %rax', ' cmpq %rdx, %rax', ' jb loop'],
76
+ [['c5 fe 6f 04 06', 'vmovdqu ymm0, ymmword ptr [rsi+rax*1]'], ['c5 fe 6f 4c 06 20', 'vmovdqu ymm1, ymmword ptr [rsi+rax*1+0x20]'], ['c5 fe 7f 04 07', 'vmovdqu ymmword ptr [rdi+rax*1], ymm0'], ['c5 fe 7f 4c 07 20', 'vmovdqu ymmword ptr [rdi+rax*1+0x20], ymm1'], ['48 83 c0 40', 'add rax, 0x40'], ['48 39 d0', 'cmp rax, rdx'], ['72 e1', 'jb 0x0']]),
77
+ ex('gemm', 'GEMM microkernel (4×8 FMA)', 'SKL',
78
+ ['loop:', ' vmovaps ymm0, ymmword ptr [rsi]', ' vmovaps ymm1, ymmword ptr [rsi + 32]', ' vbroadcastss ymm2, dword ptr [rdi]', ' vfmadd231ps ymm8, ymm2, ymm0', ' vfmadd231ps ymm9, ymm2, ymm1', ' vbroadcastss ymm3, dword ptr [rdi + 4]', ' vfmadd231ps ymm10, ymm3, ymm0', ' vfmadd231ps ymm11, ymm3, ymm1', ' vbroadcastss ymm2, dword ptr [rdi + 8]', ' vfmadd231ps ymm12, ymm2, ymm0', ' vfmadd231ps ymm13, ymm2, ymm1', ' vbroadcastss ymm3, dword ptr [rdi + 12]', ' vfmadd231ps ymm14, ymm3, ymm0', ' vfmadd231ps ymm15, ymm3, ymm1', ' add rdi, 16', ' add rsi, 64', ' dec rcx', ' jnz loop'],
79
+ ['loop:', ' vmovaps (%rsi), %ymm0', ' vmovaps 32(%rsi), %ymm1', ' vbroadcastss (%rdi), %ymm2', ' vfmadd231ps %ymm0, %ymm2, %ymm8', ' vfmadd231ps %ymm1, %ymm2, %ymm9', ' vbroadcastss 4(%rdi), %ymm3', ' vfmadd231ps %ymm0, %ymm3, %ymm10', ' vfmadd231ps %ymm1, %ymm3, %ymm11', ' vbroadcastss 8(%rdi), %ymm2', ' vfmadd231ps %ymm0, %ymm2, %ymm12', ' vfmadd231ps %ymm1, %ymm2, %ymm13', ' vbroadcastss 12(%rdi), %ymm3', ' vfmadd231ps %ymm0, %ymm3, %ymm14', ' vfmadd231ps %ymm1, %ymm3, %ymm15', ' addq $16, %rdi', ' addq $64, %rsi', ' decq %rcx', ' jne loop'],
80
+ [['c5 fc 28 06', 'vmovaps ymm0, ymmword ptr [rsi]'], ['c5 fc 28 4e 20', 'vmovaps ymm1, ymmword ptr [rsi+0x20]'], ['c4 e2 7d 18 17', 'vbroadcastss ymm2, dword ptr [rdi]'], ['c4 62 6d b8 c0', 'vfmadd231ps ymm8, ymm2, ymm0'], ['c4 62 6d b8 c9', 'vfmadd231ps ymm9, ymm2, ymm1'], ['c4 e2 7d 18 5f 04', 'vbroadcastss ymm3, dword ptr [rdi+0x4]'], ['c4 62 65 b8 d0', 'vfmadd231ps ymm10, ymm3, ymm0'], ['c4 62 65 b8 d9', 'vfmadd231ps ymm11, ymm3, ymm1'], ['c4 e2 7d 18 57 08', 'vbroadcastss ymm2, dword ptr [rdi+0x8]'], ['c4 62 6d b8 e0', 'vfmadd231ps ymm12, ymm2, ymm0'], ['c4 62 6d b8 e9', 'vfmadd231ps ymm13, ymm2, ymm1'], ['c4 e2 7d 18 5f 0c', 'vbroadcastss ymm3, dword ptr [rdi+0xc]'], ['c4 62 65 b8 f0', 'vfmadd231ps ymm14, ymm3, ymm0'], ['c4 62 65 b8 f9', 'vfmadd231ps ymm15, ymm3, ymm1'], ['48 83 c7 10', 'add rdi, 0x10'], ['48 83 c6 40', 'add rsi, 0x40'], ['48 ff c9', 'dec rcx'], ['75 ab', 'jnz 0x0']]),
81
+ ];
82
+
83
+ // A large block that shows the analyzer's speed (menu group "showcase"). Machine code only: `hexOnly` examples switch the
84
+ // input to hex.
85
+ export const SHOWCASE_EXAMPLES = [
86
+ { id: 'sha256', title: 'SHA-256 block (2,949 instr)', arch: 'SKL', hex: SHA256_BLOCK_HEX.replace(/\s+/g, ''), text: { hex: SHA256_BLOCK_HEX },
87
+ // Intel assembly, loaded when picked (showcase-asm.js, about 60 KB); the example opens in asm mode, hex if it cannot load
88
+ asm: () => import('./showcase-asm.js').then((m) => m.SHA256_BLOCK_ASM) },
89
+ ];
90
+
91
+ // Only offered while the mock engine is active: inputs that make it return what the recorded results lack.
92
+ export const MOCK_EXAMPLES = [
93
+ ex('synthetic', 'Mock only: synthetic result (all row kinds and notes)', 'SKL',
94
+ ['div rcx', 'mov ah, bl', 'add rax, rcx', 'push rax', 'ud2', 'cmp rax, rbx', 'jz next', 'next:', '.byte 0x06', 'nop'],
95
+ ['divq %rcx', 'movb %bl, %ah', 'addq %rcx, %rax', 'pushq %rax', 'ud2', 'cmpq %rbx, %rax', 'jz next', 'next:', '.byte 0x06', 'nop'],
96
+ [['48 f7 f1', 'div rcx'], ['88 dc', 'mov ah, bl'], ['48 01 c8', 'add rax, rcx'], ['50', 'push rax'], ['0f 0b', 'ud2'],
97
+ ['48 39 d8', 'cmp rax, rbx'], ['74 00', 'jz 0x2'], ['06', '(bad)'], ['90', 'nop']]),
98
+ ex('error', 'Mock only: analysis error', 'SKL', ['ud2'], ['ud2'], [['0f 0b', 'ud2']]),
99
+ ];
@@ -0,0 +1,368 @@
1
+ // The showcase example (examples.js, menu group "showcase"): SHA-256 compression with all 64 rounds unrolled, as
2
+ // clang -O2 -march=x86-64-v3 compiles the loop over the blocks of a message: 2,949 instructions, 11,602 bytes, one loop
3
+ // (it ends in dec rdx; jne). Machine code only (the assembly is about 3,000 lines), 32 bytes per line.
4
+ export const SHA256_BLOCK_HEX = [
5
+ '4c8984249800000044895c24644c899424a0000000488974240848899424a800',
6
+ '0000440f38f06604440f38f07e080fb64638c1e018440fb6463941c1e010440f',
7
+ 'b64e3a41c1e1080fb6563cc1e218488b742408440fb6563d4109c041c1e21041',
8
+ '09d2488b4424080fb6703e4509c1c1e6084c89642448c4c37bf0c407c4c37bf0',
9
+ 'd4124409d64189f431c2895424f04c897c2450c4c37bf0c707c4c37bf0d71231',
10
+ 'c2895424e8488b4424080f38f0500c4889542458c4e37bf0c207c4e37bf0f212',
11
+ '31c6897424a0488b4424080f38f0701048897424e0c4e37bf0c607c4637bf0c6',
12
+ '124131c044894424a8488b4424080f38f0701448897424d8c4e37bf0c607c463',
13
+ '7bf0c6124131c04489442420488b442408440fb6783b4509cfc4437bf0c711c4',
14
+ 'c37bf0c7134431c0488b7424080f38f0761848897424b8c4637bf0c607c4e37b',
15
+ 'f0ee124431c5896c2484488b7424080f38f0761c4889742418c4637bf0c607c4',
16
+ 'e37bf0ee124431c5896c2480488b7424080f38f076204889742428c4637bf0c6',
17
+ '07c4e37bf0ee124431c5896c24f8488b7424080fb6763f4409e648897424d0c4',
18
+ '637bf0c611c4e37bf0d6134431c2895424b0488b7424080f38f0762448897424',
19
+ 'c0c4637bf0c607c4e37bf0ee124431c5892c24488b7424080f38f05628488954',
20
+ '2498c4637bf0c207c4e37bf0ea124431c5896c249441c1e90a4131c144894c24',
21
+ '3c488b4424080f38f0702c4889742410c4e37bf0c607c4637bf0c6124131c044',
22
+ '89442444488b4424080f38f070304889742488c4e37bf0c607c4637bf0c61241',
23
+ '31c044894424c8488b4424080f38f070344889742468c4e37bf0c607c4637bf0',
24
+ 'c6124131c04489442440c4437bf0c707c4c37bf0c7124c897c24304431c0c443',
25
+ '7bf0c306c4437bf0d30b4531c2c4437bf0c3194531d04589f589cd4589da4521',
26
+ 'f2c4e220f2c989ac24880000004409d141c1ec0a44336424b0448964243889bc',
27
+ '248c00000001f94401c141c1ef034131c74c897c24b04c8b7c2470c4c37bf0c7',
28
+ '02c4c37bf0ff0d31c7c4c37bf0c71631f84c8b4c24784489cf488bb424980000',
29
+ '0031f74589c84121f04421ff4131f84101c0488b4424080f38f03889c801f805',
30
+ '982f8a424101c0488b5c24484189dc41c1ec0344336424f001f9488b8424a000',
31
+ '0000448d34084181c6982f8a42c4c37bf0c606c4c37bf0ce0b31c1c4437bf0d6',
32
+ '194131ca4489f14421d9c4c208f2c54489ea4489ac248400000009c8488b4c24',
33
+ 'c001f94101cc01e84401d0c4c37bf0c802c4c37bf0f80d31cfc4c37bf0c81631',
34
+ 'f94489ff4431cf4421c74589fa4521ca4131fa440364243c4c896424f04101ca',
35
+ 'c4c37bf0cc11c4c37bf0fc1331cf897c243c89c14889df01d981c19144377141',
36
+ '01ca4c8b6c24504489e9c1e903334c24e84889cb01f84989fb8d0c0681c19144',
37
+ '3771c4e37bf0c106c4e37bf0f10b31c6c4e37bf0c11931f089cf4421f78b6c24',
38
+ '64c4e270f2f509fe488b7c24984401df01fb01d601c6c4c37bf0c202c4c37bf0',
39
+ 'fa0d31c7c4437bf0da164131fb4489c74431ff4421d74489c04421f831f8035c',
40
+ '24384401d889f24401ea81c2cffbc0b501d04401ee418d143181c2cffbc0b5c4',
41
+ 'e37bf0f206c4e37bf0fa0b31f7c4637bf0da194131fb89d721cfc4c268f2f609',
42
+ 'fe48895c24e8c4e37bf0fb11c4e37bf0db1331fb895c244801ee4401de4c8b64',
43
+ '24584489e7c1ef03337c24a0c4637bf0c802c4637bf0d80d4531cbc4e37bf0d8',
44
+ '164431db4589d34531c34489d54421c54121c34431dd01dd4c8b4c24104501e9',
45
+ '4401cf48897c24a04189f14501e14181c1a5dbb5e94401cd4401e6458d0c3741',
46
+ '81c1a5dbb5e9c4c37bf0f106c4437bf0d90b4131f34489cb21d3c4e230f2f109',
47
+ 'dec4c37bf0d9194431db4401f601de4c8b7c24e04589fb41c1eb0344335c24a8',
48
+ '4c89dfc4637bf0dd02c4e37bf0dd0d4431dbc4637bf0dd164131db89c34431d3',
49
+ '4189c64521d621eb4131de4501de4c8b5c24884501e34401df48897c24a84401',
50
+ 'fe81c65bc256394101f04101f6c4c37bf0f006c4437bf0d80b4131f3c4c37bf0',
51
+ 'f0194431de4589c34521cbc4e238f2da4409db01cbc4c37bf0ce02c4437bf0de',
52
+ '0d4131cb01f3c4c37bf0ce164431d989ee31c64421f64189ec4121c44131f441',
53
+ '01cc488b4c24d801d981c1f111f1594101ca4101ccc4c37bf0ca06c4c37bf0f2',
54
+ '0b31cec4c37bf0ca1931f14489d64421c6c44228f2d94109f34101d34101cbc4',
55
+ 'c37bf0cc02c4c37bf0d40d31cac4c37bf0f41631d64489f231ea4589f54121ed',
56
+ '4421e24131d54101f5488b5424b84401da81c2a4823f9201d04101d5c4e37bf0',
57
+ 'd006c4e37bf0f00b31d6c4e37bf0d01931f289c64421d6c44278f2d84109f345',
58
+ '01cbc4c37bf0f502c4437bf0cd0d4131f1c4c37bf0f5164431ce4489e34431f3',
59
+ '4421eb4489e14421f131d94101d301f1488b5424184401da81c2d55e1cab01d5',
60
+ '01d1c4e37bf0d506c4e37bf0f50b31d689ea21c2c44250f2da4109d3c4e37bf0',
61
+ 'd51931f24501c34101d3c4e37bf0d102c4e37bf0f10d31d6c4637bf0c1164131',
62
+ 'f04489ee4431e621ce4489ea4421e231f24401c2488b7424284401de81c698aa',
63
+ '07d84101f601f2c4c37bf0f606c4437bf0c60b4131f0c4c37bf0f6194431c645',
64
+ '89f04121e8c46208f2d84509c34501d3c4637bf0c202c4637bf0d20d4531c241',
65
+ '01f3c4e37bf0f2164431d64189ca4531ea4121d289cb4421eb4431d301f3488b',
66
+ '7424c04401de81c6015b83124101f401f3c4c37bf0f406c4437bf0d40b4131f2',
67
+ 'c4c37bf0f4194431d64589e24521f2c46218f2dd4509d34101c34101f3488b44',
68
+ '2498428d341881c6be853124897424584101f5c4c37bf0c506c4c37bf0f50b31',
69
+ 'c6c4c37bf0c51931f04489ee4421e6c44210f2de4109f34101eb4101c389d531',
70
+ 'cd4189d24121ca4c8b442410438d041805c37d0c558944243801c1c4e37bf0f1',
71
+ '06c4e37bf0f90b31f789ce4421eec44270f2dc4109f3c4e37bf0f119894c2450',
72
+ '31fe4501f34101f34189de4131d64189d94121d1488b742488428d041e05745d',
73
+ 'be728984248000000001c2c4637bf0da06c4637bf0fa0b4531dfc4637bf0da19',
74
+ '4531fb4189d74121cfc4c268f2c54409f84401e04401d84c8b642468488b4c24',
75
+ 'e0468d1c21488b7c24b04401e748897c24b0458d3c044181c7feb1de8041c1ec',
76
+ '0344336424404101f44c896424e0c1ee03337424c84401c648897424c841c1e8',
77
+ '034433442444488b4424984101c04c8944248889c1c1e903334c2494488b7424',
78
+ 'd0c4e37bf0c607c4637bf0c6124131c04489442494488b4424c001c148894c24',
79
+ '1089c1c1e903330c24488b7424f0c4e37bf0c607c4e37bf0fe124989f031c789',
80
+ '7c2444488b7424e8c4e37bf0c607c4e37bf0fe1231c7897c2440c4e37bf0c302',
81
+ 'c4637bf0e30d4131c4c4e37bf0c3164431e021dd89de4131ea488b7c242801f9',
82
+ '48890c24c1ef03337c24f84889f94101c24403542458c4c37bf0c202c4c37bf0',
83
+ 'da0d31c3c4c37bf0c21631d84521d64531f1488b7c241801f948894c24f8c1ef',
84
+ '03337c24804101c1488b5c24b801df48897c24c0c1eb03335c248444034c2438',
85
+ '488b4424d801c348895c241889c1c1e903334c2420c4c37bf0c102c4c37bf0e9',
86
+ '0d31c54401d948894c2498c4c37bf0c11631e84489d589f331f54421cd4589d3',
87
+ '4121f34131eb4489c5c1ed0a336c243c4101c344039c2480000000c4c37bf0c3',
88
+ '02c4c37bf0f30d31c6c4c37bf0c31631f04489ce4431d64421de4489cf4421d7',
89
+ '31f74c8b7424a04101ee01c7c4c37bf0c611c4c37bf0f61331c64401fb4401ff',
90
+ 'c4e37bf0c306c4e37bf0eb0b31c5c4c37bf0c607c4c37bf0ce124c897424a031',
91
+ 'c1894c24d8c4e37bf0c31931e8488b4c24e84189cf41c1ef0a44337c24484189',
92
+ 'd84121d08b4c2450c4e260f2e94409c54c8b6424a84501fc4401ed01c5c4e37b',
93
+ 'f0c702c4637bf0c70d4131c0c4c37bf0c411c4437bf0fc134131c744897c2428',
94
+ 'c4e37bf0c7164431c04589d84531c84121f84589df4521cf4531c74101c7488b',
95
+ '44243001e805a706dc9b4101c24101c7c4c37bf0c206c4437bf0c20b4131c0c4',
96
+ 'c37bf0c407c4c37bf0ec124c896424a831c5896c24b8c4c37bf0c2194431c045',
97
+ '89f041c1e80a4131f04489d621dec4e228f2ea09f54c8b7424984501c601cd01',
98
+ 'c5c4c37bf0c702c4c37bf0f70d31c6c4c37bf0c611c4c37bf0ce1331c1894c24',
99
+ '84c4c37bf0c71631f04189f84531d84521f889fe4421de4431c601c6488b4424',
100
+ 'd001e80574f19bc14101c101c6c4c37bf0c106c4437bf0c10b4131c0c4c37bf0',
101
+ 'c607c4c37bf0ee124c8974249831c5896c2420c4c37bf0c1194431c04589c845',
102
+ '21d0c46230f2eb4509c54101d54101c5c4e37bf0c602c4637bf0c60d4131c044',
103
+ '89e2c1ea0a33542428c4e37bf0c6164431c04589f84131f84121f04489f921f9',
104
+ '4431c101c1488b4424f04401e805c1699be44101c301c1c4c37bf0c306c4437b',
105
+ 'f0c30b4131c0c4437bf0eb194531c54489d84421c8c4c220f2ea09c54c8b6424',
106
+ '1844036424304101d401ddc4c37bf0d411c4c37bf0c41331d04401edc4c37bf0',
107
+ 'd407c4437bf0c4124c89e34131d04489442428c4e37bf0d102c4637bf0c10d41',
108
+ '31d0c4637bf0e9164531c54189f04531f889f24421fa4121c84431c24401ea45',
109
+ '89f041c1e80a44334424844c8b7424e84401f581c58647beef01ef01eac4e37b',
110
+ 'f0ef06c4637bf0ef0b4131ed4c8b7424c044037424d04501c6c4e37bf0ef1944',
111
+ '31ed4189fd4521ddc44240f2c14509e8c4437bf0ee11c4437bf0e6134531ec44',
112
+ '896424184501d04101e8c4637bf0d202c4e37bf0ea0d4431d54c897424c0c443',
113
+ '7bf0d607c4437bf0f6124531d64489742458c4637bf0ea164131ed89cd31f521',
114
+ 'd54189ca4121f24131ea4501ea4c8b7424a04501f04181c0c69dc10f4501c745',
115
+ '01c2c4437bf0c706c4c37bf0ef0b4431c5c4437bf0c7194131e84489fd21fdc4',
116
+ '4200f2eb4109ed89ddc1ed0a31c54501cd4501c54c8b7424f844037424f04101',
117
+ 'ee488b4424a84401e805cca10c248944244801c6c4e37bf0c606c4637bf0c60b',
118
+ '4131c0c4c37bf0c611c4437bf0ce134131c144894c2484c4637bf0ce194531c1',
119
+ '89f04421f8c46248f2c74109c0c4c37bf0ee07c4c37bf0c6124d89f44c897424',
120
+ 'f831e84501d84501c84189d14131c944894c24384c8b4c24984501c84181c06f',
121
+ '2ce92d44894424684189d64121ce4401c1c4637bf0d906c4e37bf0e90b4431dd',
122
+ 'c4637bf0d9194131eb89cd21f5c44270f2ef4109ed4589e141c1e9034131c141',
123
+ '01fd4501dd4489d031d08944243c428d042b05aa84744a894424804589d44121',
124
+ 'd401c2c4e37bf0c206c4e37bf0ea0b31c5c4637bf0ea194131ed89d021c8c4e2',
125
+ '68f2ee09c5488b7c24c089f8c1e80a334424184401fd4401ed4c8b4424b04101',
126
+ 'f84c894424b04101f94c894c2418448d3c2f4181c7dca9b05c44897c24504189',
127
+ 'f841c1e80344334424584c8b4c24e04101d94c894c24e04101d84c894424c0c1',
128
+ 'eb03335c24284c8b4424c84c8b4c24984501c84c894424c84401cb48895c2428',
129
+ '41c1e90344334c24204c8b4424a84c8b5c24884501c34c895c24884501c14c89',
130
+ '4c249841c1e80344334424b84c8b5c24104c8b4c24a04501cb4501c84c894424',
131
+ 'a841c1e90344334c24d84c8b4424e8488b3c244401c74501c14c894c24d841c1',
132
+ 'e803443344244001c74989f9488b4424f04101c04c894424a0c1e80333442444',
133
+ '488b7c24d001f848894424b889f8c1e803334424940344243048894424204c89',
134
+ 'cfc4e37bf0c707c4e37bf0df1231c3c4c37bf0c202c4c37bf0ea0d31c5c4c37b',
135
+ 'f0c21631e8448b4424384521d04531c64101c644037424484489f04431d08944',
136
+ '24e84489f54421d54501fac4c37bf0c206c4437bf0ca0b4131c1c4c37bf0c219',
137
+ '4431c84589d14121d1c46228f2e94509cd4189f841c1e8034131d84101f54101',
138
+ 'c5488b4424f8488b74242001c648897424204101c04c894424d0428d1c2881c3',
139
+ 'da88f976895c2494c1e80a334424844101c348893c24c4e37bf0c711c4637bf0',
140
+ 'ff134131c7c4437bf0cb07c4c37bf0f3124431cec4437bf0ce02c4437bf0ee0d',
141
+ '4531cdc4437bf0ce164531e98b44243c4421f04131c44501cc44036424684589',
142
+ 'e54531f54489e74421f74101dec4437bf0ce06c4c37bf0c60b4431c8c4437bf0',
143
+ 'ce194131c14589f04521d0c4e208f2c24409c04589d841c1e8034131f001c844',
144
+ '01c8488b0c24488b7424b801ce48897424b84101c84c894424f0448d04084181',
145
+ 'c052513e9844894424f889c8c1e80a4431f8488b4c248801c148894c24884c89',
146
+ '5c2410c4c37bf0c311c4437bf0cb134131c1c4e37bf0c107c4e37bf0f11231c6',
147
+ 'c4c37bf0c402c4c37bf0cc0d31c1c4c37bf0c41631c88b4c24e84421e131cd01',
148
+ 'c5036c248089e84431e08904244189eb4521e34501c4c4437bf0c406c4c37bf0',
149
+ 'dc0b4431c3c4437bf0c4194131d84489e34421f3c44218f2fa4109df488b4c24',
150
+ '8889c8c1e80331f04101d74501c7488b542410488b7424a001d648897424a001',
151
+ 'd04889442430418d1c1781c36dc631a8895c2484c1ea0a4431ca488b4424c801',
152
+ 'd0c4e37bf0d111c4637bf0c9134131d1c4e37bf0d007c4e37bf0f0124889c131',
153
+ 'd6c4e37bf0d502c4637bf0c50d4131d0c4e37bf0d5164431c24121ed4431ef01',
154
+ 'd7037c24504189fd4131ed89fa21ea01ddc4637bf0c506c4e37bf0dd0b4431c3',
155
+ 'c4637bf0c5194131d889eb4421e3c44250f2fe4109dfc1e80331f04501d74501',
156
+ 'c7488b7424884c8b4424d84101f04c894424d801f048894424e8418d1c3781c3',
157
+ 'c82703b0895c2480c1ee0a4431ce488b4424e001f048894c24c8c4e37bf0f111',
158
+ 'c4637bf0d1134131f2c4e37bf0f007c4637bf0c8124131f1c4e37bf0f702c463',
159
+ '7bf0c70d4131f0c4e37bf0f7164431c68b0c2421f94131cb4101f344035c2494',
160
+ '4489d931f94489de21fe01dfc4637bf0c706c4e37bf0df0b4431c3c4637bf0c7',
161
+ '194131d889fb21ebc44240f2fc4109df4889c3c1e8034431c84501f74501c74c',
162
+ '8b4424c84c8b4c24a84501c14c894c24a84401c048894424104501c74181c7c7',
163
+ '7f59bf44897c249441c1e80a4531d0488b4424b04401c048894424b04989d948',
164
+ '895c24e0c4437bf0c111c4c37bf0d9134431c3c4637bf0c007c4637bf0c81245',
165
+ '31c1c4437bf0c302c4437bf0d30d4531c2c4437bf0c3164531d04521dd4431ea',
166
+ '4401c2035424f84189d64531de4189d04521d84501fbc4437bf0d306c4437bf0',
167
+ 'fb0b4531d7c4437bf0d3194531fa4589df4121ffc4e220f2c54409f84c8b6c24',
168
+ 'b04589ef41c1ef034531cf4401e04401d04c8b4c24e04c8b5424984501ca4c89',
169
+ '5424984501cf4c893c24468d3c084181c7f30be0c644897c24f84489c8c1e80a',
170
+ '31d84c8b4c24204101c14d89eac4c37bf0c211c4c37bf0da1331c3c4c37bf0c1',
171
+ '07c4437bf0d1124d89cd4131c2c4e37bf0c202c4637bf0ca0d4131c1c4e37bf0',
172
+ 'c2164431c821d131ce01c60374248489f031d0894424c84189f14121d14401fa',
173
+ 'c4e37bf0ca06c4637bf0fa0b4131cfc4e37bf0ca194431f94189d74521dfc462',
174
+ '68f2e74509fc4c89e84189c741c1ef034531d74101ec4101cc488b4c24b04c8b',
175
+ '5424284101ca4c895424284101cf4c897c24e0458d3c0c4181c74791a7d54489',
176
+ '7c2420c1e90a31d94c8b6c24b84101cdc4e37bf0c811c4e37bf0d81331cbc4c3',
177
+ '7bf0cd07c4437bf0d5124131cac4e37bf0ce02c4e37bf0ee0d31cdc4e37bf0ce',
178
+ '1631e94121f64531f04101c844034424804489c531f54489c121f1894c248844',
179
+ '01fec4637bf0f606c4637bf0fe0b4531f7c4637bf0f6194531fe4189f74121d7',
180
+ 'c44248f2e34509fc4489e9c1e9034431d14101fc4501f4488b7c24c001c74889',
181
+ '7c24c001c148894c24b0458d34044181c65163ca06448974248489c7c1ef0a31',
182
+ 'df488b4c24a001f94c896c24b8c4c37bf0fd11c4437bf0d5134131fac4e37bf0',
183
+ 'f907c4637bf0f9124989cd4131ffc4c37bf0f802c4c37bf0d80d31fbc4c37bf0',
184
+ 'f81631df8b4424c84421c04131c14101f944034c24944489cb4431c34489cf44',
185
+ '21c74501f0c4c37bf0c006c4437bf0f00b4131c6c4c37bf0c0194431f04589c6',
186
+ '4121f6c46238f2e24509f4c1e9034431f94501dc4101c4488b4424184c8b5c24',
187
+ 'b84401d848894424184401d948894c24c8478d341c4181c66729291444897424',
188
+ '804489d8c1e80a4431d0488b4c24d801c14c896c24a0c4437bf0d511c4c37bf0',
189
+ 'c5134431d0c4637bf0d107c4637bf0f9124531d7c4437bf0d102c4437bf0d90d',
190
+ '4531d3c4437bf0d1164531da4421cd448b5c24884131eb4501d344035c24f844',
191
+ '895c24884589dd4531cd4521cb4501f1c4c37bf0e906c4437bf0f10b4131eec4',
192
+ 'c37bf0e9194431f54589ce4521c6c46230f2e64509f44989cec1e9034431f941',
193
+ '01d44101ec488b5424d04c8b5424a04401d248895424d04401d148894c24b847',
194
+ '8d3c144181c7850ab72744897c24f84489d2c1ea0a31c2488b4424a801d04889',
195
+ '4424a84c89f14c897424d8c4e37bf0d111c4637bf0d1134131d2c4e37bf0d007',
196
+ 'c4e37bf0e81231d58b442488c4e37bf0d002c4637bf0f00d4131d6c4e37bf0d0',
197
+ '164431f221c331df01d7037c242089fb31c389f921c1894c24944401f8894424',
198
+ '88c4637bf0f006c4637bf0e00b4531f4c4637bf0f0194531e64189c44521ccc4',
199
+ 'c278f2c04409e0488b5424a889d1c1e90331e901f04401f0488b7424f04c8b74',
200
+ '24d84401f648897424f04401f148894c24a0428d0c3081c138211b2e894c2420',
201
+ '4489f0c1e80a4431d04c8b7c24984101c7c4e37bf0c211c4e37bf0f21331c6c4',
202
+ 'c37bf0c707c4c37bf0ef124c89fa31c5c4e37bf0c702c4637bf0d70d4131c2c4',
203
+ 'e37bf0c7164431d04121fd4531eb4101c344035c24844589df4131ff4589da41',
204
+ '21fa01cfc4e37bf0c706c4637bf0ef0b4131c5c4e37bf0cf194431e94189fd44',
205
+ '8b7424884521f5c4c240f2c14409e84189d441c1ec034131ec4401c001c8488b',
206
+ '4c24304c8b4424a84401c148894c24304501c44c896424d8468d2c004181c5fc',
207
+ '6d2c4d44896c24844489c0c1e80a31f04c8b6424284101c44889542498c4e37b',
208
+ 'f0c211c4e37bf0ea1331c5c4c37bf0cc07c4c37bf0c41231c8c4c37bf0cb02c4',
209
+ 'c37bf0f30d31cec4c37bf0cb1631f14421db8b54249431da01ca035424804189',
210
+ 'd04531d889d64421de4501ebc4c37bf0cb06c4c37bf0db0b31cbc4c37bf0cb19',
211
+ '31d94489db21fbc44220f2ee4109dd4489e3c1eb0331c34501cd4101cd488b44',
212
+ '24e8488b4c249801c848894424e801cb48895c2428468d34294181c6130d3853',
213
+ '448974248089c8c1e80a31e84c8b4c24c04101c1c4c37bf0c411c4c37bf0ec13',
214
+ '31c5c4c37bf0c907c4c37bf0c11231c8c4e37bf0ca02c4e37bf0da0d31cbc4e3',
215
+ '7bf0ca1631d94121d74531fa4101ca44035424f84489d131d1894c24944489d3',
216
+ '21d34401f2c4e37bf0ca06c4637bf0f20b4131cec4e37bf0ca194431f14189d6',
217
+ '4521dec46268f2ef4509f54d89ce4c894c24c041c1e9034131c144036c248841',
218
+ '01cd488b4c24104401e148894c24104501e14c894c24984501e54181c554730a',
219
+ '6544896c24884489e0c1e80a31e84c8b4c24184101c1c4c37bf0c611c4c37bf0',
220
+ 'ce1331c1c4c37bf0c107c4c37bf0e91231c5c4c37bf0c202c4437bf0f20d4131',
221
+ 'c6c4c37bf0c2164431f04521d04431c601c6037424204189f44531d44189f745',
222
+ '21d74501eac4437bf0c206c4437bf0f20b4531c6c4437bf0c2194531f04589d6',
223
+ '4121d6c44228f2eb4509f54589ce41c1ee034131ee4101fd4501c5488b7c24c0',
224
+ '4c8b04244101f84c8904244101fe4c897424a84101fd4181c5bb0a6a7644896c',
225
+ '24f8c1ef0a31cf488b4424d001f848894424d0c4c37bf0c911c4c37bf0f91331',
226
+ 'cfc4e37bf0c807c4637bf0c0124131c8c4e37bf0ce02c4e37bf0ee0d31cdc4e3',
227
+ '7bf0ce1631e98b44249421f031c301cb035c248489d831f08944241889d921f1',
228
+ '4401eec4e37bf0ee06c4637bf0f60b4131eec4e37bf0ee194431f54189f64521',
229
+ 'd6c46248f2ea4509f5488b4424d04189c641c1ee034531c64501dd4101ed4d89',
230
+ 'c84c8b4c24e04501c14c894c24e04501c64c897424c0478d34284181c62ec9c2',
231
+ '81448974248441c1e80a4131f84c8b4c24f04501c1c4e37bf0f811c4637bf0d8',
232
+ '134131fbc4c37bf0f907c4c37bf0e9124c89c831fdc4e37bf0fb02c4637bf0c3',
233
+ '0d4131f8c4e37bf0fb164431c74121dc4531e74101ff44037c24804589f84131',
234
+ 'd84489ff21df4401f3c4637bf0cb06c4637bf0f30b4531cec4637bf0cb194531',
235
+ 'f14189de4121f6c44260f2ea4509f54189c641c1ee034131ee4101d54501cd48',
236
+ '8b5424d04c8b4c24b04101d14c894c24b04101d64c89742420468d342a4181c6',
237
+ '852c72924489742480c1ea0a4431da4c8b6424304101d448894424f0c4637bf0',
238
+ 'c811c4e37bf0d0134431cac4437bf0cc07c4437bf0dc124531cbc4437bf0cf02',
239
+ 'c4c37bf0ef0d4431cdc4437bf0cf164131e98b4424184421f831c14401c9034c',
240
+ '248889c84431f8894424d04189c94521f94501f7c4c37bf0ef06c4437bf0f70b',
241
+ '4131eec4c37bf0ef194431f54589fe4121dec46200f2ee4509f54589e641c1ee',
242
+ '034531de4501d54101ed4c8b5424f04c8b5c24c84501d34c895c24c84501d64c',
243
+ '897424184501d54181c5a1e8bfa244896c243041c1ea0a4131d24c8b5c24e845',
244
+ '01d3c4c37bf0d411c4c37bf0c41331d0c4c37bf0d307c4c37bf0eb1231d5c4e3',
245
+ '7bf0d102c4637bf0d10d4131d2c4e37bf0d1164431d24121c84431c701d7037c',
246
+ '24f889fa31ca4189fa4121ca4401e9c4637bf0c106c4637bf0f10b4531c6c463',
247
+ '7bf0c1194531f04189ce4521fec46270f2eb4509f54589de41c1ee034131ee41',
248
+ '01f54501c54c89e64c8b4424b84101f04c894424b84101f64c89742488478d34',
249
+ '2c4181c64b661aa844897424f8c1ee0a31c64c8b6424104101f44c895c24e8c4',
250
+ '437bf0c311c4c37bf0f3134431c6c4437bf0c407c4437bf0dc124531c3c4637b',
251
+ 'f0c702c4e37bf0ef0d4431c5c4637bf0c7164131e88b4424d021f84131c14501',
252
+ 'c144034c24844489c831f8894424f04589c84121f84401f7c4e37bf0ef06c463',
253
+ '7bf0f70b4131eec4e37bf0ef194431f54189fe4121cec44240f2ef4509f54589',
254
+ 'e641c1ee034531de4101dd4101ed4c8b5c24e8488b5c24a04401db48895c24a0',
255
+ '4501de4c897424d0478d342b4181c6708b4bc2448974241041c1eb0a4131f348',
256
+ '8b1c244401dbc4c37bf0f411c4437bf0dc134131f3c4e37bf0f307c4e37bf0eb',
257
+ '124889d831f5c4c37bf0f102c4c37bf0d90d31f3c4c37bf0f11631de4421ca41',
258
+ '31d24101f244035424804489d24431ca895424804489d34421cb4501f1c4c37b',
259
+ 'f0d106c4437bf0f10b4131d6c4c37bf0d1194431f24589ce4121fec46230f2e9',
260
+ '4509f54889c64189f641c1ee034131ee4501fd4101d54c89e0488b5424d801c2',
261
+ '48895424d84101c64c897424e8478d342c4181c6a3516cc744893424c1e80a44',
262
+ '31d84c8b6424e04101c44889f0c4e37bf0d011c4e37bf0f01331d6c4c37bf0d4',
263
+ '07c4437bf0dc124d89e74131d3c4c37bf0d202c4c37bf0ea0d31d5c4c37bf0d2',
264
+ '1631ea8b6c24f04421d54131e84101d044034424304589c44531d44489c24421',
265
+ 'd24501f2c4c37bf0ea06c4437bf0f20b4131eec4c37bf0ea194431f54589d645',
266
+ '21cec46228f2ef4509f54589fe41c1ee034531de4101cd4101ed4889c14c8b5c',
267
+ '24284101cb4c895c24284101ce4c897424f04401e80519e892d189442484c1e9',
268
+ '0a31f1488b7424b001ce48897424b04c897c24e0c4c37bf0cf11c4437bf0ff13',
269
+ '4131cfc4e37bf0ce07c4637bf0de124131cbc4c37bf0c802c4c37bf0e80d31cd',
270
+ 'c4c37bf0c81631e98b7424804421c631f301cb035c24f84189dd4531c589d944',
271
+ '21c14101c0c4c37bf0f006c4c37bf0e80b31f5c4c37bf0f01931ee4489c54421',
272
+ 'd5c44238f2f14109ee488b4424b089c5c1ed034431dd4101fe4101f6488b7424',
273
+ 'e0488b7c249801f748897c249801f548896c2430418d2c3681c5240699d6896c',
274
+ '24f8c1ee0a4431fe488b7c24c801f748897c24c84889c6c4e37bf0c611c4e37b',
275
+ 'f0f61331c6c4e37bf0c707c4637bf0df124131c3c4e37bf0c302c4e37bf0fb0d',
276
+ '31c7c4e37bf0c31631f84121dc4431e201c20354241089d031d88944248089d7',
277
+ '21df01ebc4e37bf0eb06c4637bf0f30b4131eec4e37bf0eb194431f54189de45',
278
+ '21c6c44260f2fa4509f7488b4424c84189c641c1ee034531de4501cf4101ef4c',
279
+ '8b4c24b04c8b5c24a84501cb4c895c24a84501ce4c897424e0478d340f4181c6',
280
+ '85350ef4448974241041c1e90a4131f14c8b6424b84501ccc4637bf0c811c4e3',
281
+ '7bf0f0134431cec4437bf0cc07c4437bf0dc124531cbc4637bf0ca02c4e37bf0',
282
+ 'ea0d4431cdc4637bf0ca164131e94121d54431e94401c9030c244189cd4131d5',
283
+ '4189c94121d14401f2c4e37bf0ea06c4637bf0f20b4131eec4e37bf0ea194431',
284
+ 'f54189d64121dec44268f2f84509f74589e641c1ee034531de4501d74101ef4c',
285
+ '8b5c24c04101c34c895c24c04101c64c897424b0458d34074181c670a06a1044',
286
+ '897424b84189c241c1ea0a4131f24c8b7c24a04501d74c897c24a0c4c37bf0f4',
287
+ '11c4437bf0dc134131f3c4437bf0d711c4c37bf0f7134431d6893424c4637bf0',
288
+ 'd102c4e37bf0e90d4431d5c4637bf0d1164131ea8b44248021c831c74401d703',
289
+ '7c24844189ff4131cf4189fa4121ca4401f1c4e37bf0e906c4637bf0f10b4131',
290
+ 'eec4e37bf0e9194431f54189ce4121d6c4e270f2c34409f04401c001e84c8b44',
291
+ '24204501e04c89442420428d342081c616c1a419897424c84489e0c1e80a4431',
292
+ 'd8c4637bf0c702c4637bf0df0d4531c3c4637bf0c7164531d84121fd4531e948',
293
+ '8b6c24d801c54501c144034c24f84589c84131f84589ce4121fe01f7c4e37bf0',
294
+ 'c706c4637bf0df0b4131c3c4e37bf0c7194431d84189fb4121cbc46240f2ea45',
295
+ '09dd4101dd4101c5488b4424184c8b5c24a04401d84889442418438d342b81c6',
296
+ '086c371e897424d84489d8c1e80a3304244c8b6424284101c4c4e37bf0c511c4',
297
+ '637bf0dd134131c3c4c37bf0c411c4c37bf0dc1331c3891c24c4c37bf0c102c4',
298
+ 'c37bf0d90d31c3c4c37bf0c11631d84521cf4531fa4101c244035424104489d0',
299
+ '4431c8894424104489d34421cb4101f1c4c37bf0f106c4437bf0f90b4131f7c4',
300
+ 'c37bf0f1194431fe4589cf4121ffc46230f2e94509fd4101d54101f5488b5424',
301
+ '8801ea4889542488418d842d4c774827894424a089eac1ea0a4431dac4c37bf0',
302
+ 'f202c4437bf0da0d4131f3c4c37bf0f2164431de4521d04531c64c8b6c249841',
303
+ '01d54101f644037424b84489f54431d54589f04521d04101c2c4c37bf0f206c4',
304
+ '437bf0da0b4131f3c4c37bf0f2194431de4589d34521cbc46228f2ff4509df41',
305
+ '01cf4101f7488b4c24d04401e148894c24d0438d042705b5bcb0348944249844',
306
+ '89e1c1e90a330c24488b5424a801ca48895424a84d89ebc4c37bf0cb11c4437b',
307
+ 'f0eb134131cdc4e37bf0ca11c4e37bf0d21331ca895424b8c4c37bf0ce02c4c3',
308
+ '7bf0f60d31cec4c37bf0ce1631f18b5424104421f231d301cb035c24c84189dc',
309
+ '4531f489da4421f24101c6c4c37bf0c606c4c37bf0f60b31c6c4c37bf0ce1931',
310
+ 'f14489f64421d6c4c208f2c109f001f801c8488b4c24e84401d948894c24e842',
311
+ '8d3c1881c7b30c1c39897c24c84489d8c1e80a4431e8c4e37bf0cb02c4e37bf0',
312
+ 'f30d31cec4e37bf0cb1631f121dd4131e8488b7424c001c64101c844034424d8',
313
+ '4589c74131df4589c54121dd01fbc4e37bf0c306c4e37bf0cb0b31c1c4e37bf0',
314
+ 'c31931c889d94421f1c4c260f2fa09cf4401cf01c7488b4424f0488b4c24a801',
315
+ 'c848894424f0448d1c0f4181c34aaad84e44895c24c089c8c1e80a334424b848',
316
+ '8b6c242001c54889f1c4e37bf0f911c4e37bf0f11331fec4e37bf0fd11c4e37b',
317
+ 'f0c51331f8894424d8c4c37bf0f802c4437bf0c80d4131f9c4c37bf0f8164431',
318
+ 'cf4521c44431e201fa035424a089d04431c0894424a04189d14521c14501d8c4',
319
+ 'c37bf0f806c4437bf0e00b4131fcc4c37bf0f8194431e74589c44121dcc4c238',
320
+ 'f2c64409e04401d001f8488b7c243001cf48897c2430448d24084181c44fca9c',
321
+ '5b44896424a889c8c1e80a31f0c4e37bf0ca02c4637bf0d20d4131cac4e37bf0',
322
+ 'ca164431d14121d74531fd4c8b5c24184101c34101cd44036c24984489e831d0',
323
+ '894424984589ea4121d24401e2c4e37bf0ca06c4e37bf0f20b31cec4e37bf0ca',
324
+ '1931f189d64421c6c46268f2fb4109f74501f74101cf488b4424e001e8488944',
325
+ '24e0418d3c2f81c7f36f2e68897c24b889e9c1e90a334c24d8488b44248801c8',
326
+ '48894424884d89dec4c37bf0ce11c4c37bf0ee1331cdc4e37bf0c811c4637bf0',
327
+ 'f8134131cfc4c37bf0cd02c4c37bf0f50d31cec4c37bf0cd1631f18b4424a044',
328
+ '21e84131c14101c944034c24c84589cb4531eb4589cc4521ec4101fdc4c37bf0',
329
+ 'cd06c4c37bf0f50b31cec4c37bf0cd1931f14489ee21d6c4c210f2c009f001d8',
330
+ '01c8488b4c24b04401f148894c24b0428d343081c6ee828f744489f0c1e80a31',
331
+ 'e8c4c37bf0c902c4c37bf0d90d31cbc4c37bf0c91631d98b7c24984421cf4131',
332
+ 'fa488b7c24d001c74101ca44035424c0c4c37bf0c202c4c37bf0ca0d31c1c4c3',
333
+ '7bf0ea1631cd4521d34531dc4889f948897c24d0c4e37bf0c111c4e37bf0d913',
334
+ '31c34489d04431c84589d34521cb4101f1c4c37bf0c906c4c37bf0f90b31cfc4',
335
+ 'c37bf0c91931f94489cf4421efc46230f2f24109fe4501c64101ce488b4c2488',
336
+ '458d040e4181c06f63a578c1e90a4431f94101ec44036424a8c4c37bf0fc02c4',
337
+ 'c37bf0ec0d31fdc4c37bf0fc1631ef4421e04131c34101fb44035c24b84c8b7c',
338
+ '24e84101cfc4c37bf0c302c4c37bf0cb0d31c1c4c37bf0eb1631cd4489e04431',
339
+ 'd04489e74421d74421d831c7c4c37bf0cf11c4c37bf0c71331c801ef01f74501',
340
+ 'c2c4c37bf0ca06c4c37bf0f20b31cec4c37bf0ca1931f14489d64421cec44228',
341
+ 'f2f54109f64101d64101ce488b4c24d0418d340e81c61478c88489cac1ea0a31',
342
+ 'dac4e37bf0cf02c4e37bf0df0d31cbc4e37bf0ef1631dd4489db4431e34489d9',
343
+ '4421e121fb31d901e94401c1488b6c24f001d5c4e37bf0d102c4637bf0c10d41',
344
+ '31d0c4e37bf0d1164431c24189f84531d84189fe4521de4121c84531c6c4e37b',
345
+ 'f0dd11c4637bf0c5134131d84101d64101f44101f6c4c37bf0d406c4c37bf0f4',
346
+ '0b31d6c4c37bf0d41931f24489e64421d6c4c218f2d909f34401eb01d3428d34',
347
+ '3b81c60802c78c4489fac1ea0a31c2c4c37bf0c602c4c37bf0de0d31c34c8b6c',
348
+ '24304101d5c4c37bf0c61631d889cb31fb4421f389ca21fa31da01c24101f301',
349
+ 'f2c4c37bf0c511c4c37bf0f51331c6c4c37bf0c306c4c37bf0db0b31c34489d8',
350
+ '4421e0c44220f2fa4109c7c4c37bf0c31931d84501cf4101c7c4e37bf0c202c4',
351
+ '637bf0ca0d4131c1418d1c2f81c3faffbe90c1ed0a4431c5c4637bf0c2164531',
352
+ 'c84589f14131c94121d14489f021c84431c84401c04c8b7c24e04101ef01df01',
353
+ 'd8c4637bf0c706c4637bf0cf0b4531c1c4637bf0c7194531c84189f94521d9c4',
354
+ 'c240f2dc4409cb4401d34401c3c4637bf0c002c4637bf0c80d4531c1c4637bf0',
355
+ 'd0164531ca4189d14531f14189d04521f04121c14531c8468d0c2b4181c1eb6c',
356
+ '50a44489ebc1eb0a31f34501d04401c94501c84c8b6c24b04101ddc4e37bf0f1',
357
+ '06c4637bf0c90b4131f189ce21fec44270f2d34109f2c4e37bf0f1194431ce45',
358
+ '01e24101f2c4c37bf0f002c4437bf0c80d4131f1c4c37bf0d8164431cb4189c1',
359
+ '4131d14521c189c521d54431cd478d0c3a4181c1f7a3f9be01dd4501ce4401cd',
360
+ 'c4437bf0ce06c4437bf0d60b4531cac4437bf0ce194531d14589f24121cac4e2',
361
+ '08f2df4409d34401dbc4637bf0d502c4637bf0dd0d4531d34401cbc4637bf0d5',
362
+ '164531da4589c34131c34121eb4589c14121c14531d94501d1468d142b4181c2',
363
+ 'f27871c6036c24784403842498000000038424a000000044034c247003542464',
364
+ '4403b424840000004501d14401d2488b742408038c248800000003bc248c0000',
365
+ '004883c6404c8b94249000000045890a41896a04458942084189420c41895210',
366
+ '4589721441894a1841897a1c4189d3488b9424a80000004189c289e848894424',
367
+ '784489c8488944247048ffca0f85aed2ffff',
368
+ ].join('\n') + '\n';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wuica-cli",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "x86-64 basic-block throughput prediction in WebAssembly: a bit-exact Rust/WebAssembly port of uiCA, as a library, a CLI and an MCP server",
5
5
  "license": "AGPL-3.0-only",
6
6
  "type": "module",
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file