Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/seed/ng/bench/hand/isort-L.spec # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / seed / ng / bench / hand / isort-L.spec` 42 lines ยท 2106 bytes Raw Blame History 1 @ng a64-enc 2 ; isort ngL: the leaf function isort (omc 0x400278..0x40033c, global a at 0x10800020) with 20000, 3 ; `1000000` and the array base hoisted into x7, x8, x9 (LICM), both loops tested at the bottom (rotation; 4 ; the inner loop keeps a CBZ guard), the eager `and moving gt k 0` lowered to branches (the flag is gone: 5 ; p <= v leaves the loop directly; both operands are side-effect free, so eager and short-circuit agree). 6 ; Every bounds check (trap 3, 0x40034c) and the while bound counter x4 (trap 4, 0x400354) are kept. 7 ; @old 0x400278 0xd2800000 0xd289c401 0xeb01001f 0x540005c2 0xd289c402 0xeb02001f 0x540005e2 0xd2800403 0xf2a21003 0xf8607861 0xaa0003e2 0xd2800023 0xd2800004 0xf100005f 0x9a9f97e5 0x8a050066 0xb4000326 0xd2884808 0xf2a001e8 0xeb08009f 0x54000462 0x91000484 0xd1000446 0xd289c408 0xeb0800df 0x54000382 0xd2800409 0xf2a21009 0xf8667925 0xeb0100bf 0x54000129 0xd289c406 0xeb06005f 0x54000282 0xd2800408 0xf2a21008 0xf8227905 0xd1000442 0x14000002 0xd2800003 0x17ffffe5 0xd289c404 0xeb04005f 0x54000142 0xd2800405 0xf2a21005 0xf82278a1 0x91000400 0x17ffffd1 0xd65f03c0 8 ; @at 0x400278 9 movzx 0 0 0 | mov x0, #0x0 10 movzx 7 0x4e20 0 | mov x7, #0x4e20 11 movzx 8 0x4240 0 | mov x8, #0x4240 12 movkx 8 0xf 1 | movk x8, #0xf, lsl #16 13 movzx 9 0x20 0 | mov x9, #0x20 14 movkx 9 0x1080 1 | movk x9, #0x1080, lsl #16 15 subsx 31 0 7 | cmp x0, x7 16 bcond 2 46 | b.cs @+184 17 ldrxr 1 9 0 1 | ldr x1, [x9, x0, lsl #3] 18 addxi 2 0 0 0 | add x2, x0, #0x0 19 movzx 4 0 0 | mov x4, #0x0 20 cbzx 2 15 | cbz x2, @+60 21 subsx 31 4 8 | cmp x4, x8 22 bcond 2 42 | b.cs @+168 23 addxi 4 4 1 0 | add x4, x4, #0x1 24 subxi 6 2 1 0 | sub x6, x2, #0x1 25 subsx 31 6 7 | cmp x6, x7 26 bcond 2 36 | b.cs @+144 27 ldrxr 5 9 6 1 | ldr x5, [x9, x6, lsl #3] 28 subsx 31 5 1 | cmp x5, x1 29 bcond 9 6 | b.ls @+24 30 subsx 31 2 7 | cmp x2, x7 31 bcond 2 31 | b.cs @+124 32 strxr 5 9 2 1 | str x5, [x9, x2, lsl #3] 33 addxi 2 6 0 0 | add x2, x6, #0x0 34 cbnzx 2 -13 | cbnz x2, @-52 35 subsx 31 2 7 | cmp x2, x7 36 bcond 2 26 | b.cs @+104 37 strxr 1 9 2 1 | str x1, [x9, x2, lsl #3] 38 addxi 0 0 1 0 | add x0, x0, #0x1 39 subsx 31 0 7 | cmp x0, x7 40 bcond 3 -25 | b.cc @-100 41 ret 30 | ret 42 ; @nop 0x400340