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/sieve-B.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 / sieve-B.spec` 49 lines ยท 2669 bytes Raw Blame History 1 @ng a64-enc 2 ; sieve ngB: ngL plus range-analysis eliminations: every index is below `2000001` (zero loop by its test; 3 ; i*i <= `2000000` gives i <= 1414; j <= `2000000` by the inner test; k + 2 <= `2000000`), so the bounds checks 4 ; go; the outer while runs at most 1413 times and the inner at most floor((`2000000` - i^2)/i) + 1 <= 999999 5 ; times for i >= 2 (Wolfram receipt in PAYOFF.md), below the bound `1000000`, so both counters go; the inner 6 ; entry guard goes because the outer test already gave i*i <= `2000000`. 7 ; @old 0x4001fc 0xd2800000 0xd2909021 0xf2a003c1 0xeb01001f 0x54000162 0xd2800001 0xd2909022 0xf2a003c2 0xeb02001f 0x54000942 0xd2800403 0xf2a21003 0x38206861 0x91000400 0x17fffff3 0xd2800040 0xd2800001 0x9b007c02 0xd2909003 0xf2a003c3 0xeb03005f 0x540004c8 0xd2884804 0xf2a001e4 0xeb04003f 0x54000782 0x91000421 0xd2909022 0xf2a003c2 0xeb02001f 0x540006a2 0xd2800403 0xf2a21003 0x38606864 0xf100009f 0x540002c1 0x9b007c02 0xd2800003 0xd2909004 0xf2a003c4 0xeb04005f 0x54000208 0xd2884805 0xf2a001e5 0xeb05007f 0x54000502 0x91000463 0xd2800024 0xd2909025 0xf2a003c5 0xeb05005f 0x54000402 0xd2800406 0xf2a21006 0x382268c4 0x8b000042 0x17ffffee 0x91000400 0x17ffffd7 0xd2800001 0xd2800002 0xd2908fe3 0xf2a003c3 0xeb03005f 0x540001c2 0x91000843 0xd2909024 0xf2a003c4 0xeb04007f 0x540001c2 0xd2800405 0xf2a21005 0x386368a6 0xf10000df 0x54000041 0x91000421 0x91000442 0x17fffff0 0xaa0103e0 0xd65f03c0 8 ; @at 0x4001fc 9 movzx 10 0x8481 0 | mov x10, #0x8481 10 movkx 10 0x1e 1 | movk x10, #0x1e, lsl #16 11 movzx 11 0x8480 0 | mov x11, #0x8480 12 movkx 11 0x1e 1 | movk x11, #0x1e, lsl #16 13 movzx 13 0x20 0 | mov x13, #0x20 14 movkx 13 0x1080 1 | movk x13, #0x1080, lsl #16 15 movzx 14 0x847f 0 | mov x14, #0x847f 16 movkx 14 0x1e 1 | movk x14, #0x1e, lsl #16 17 movzx 15 1 0 | mov x15, #0x1 18 movzx 0 0 0 | mov x0, #0x0 19 strbr 31 13 0 0 | strb wzr, [x13, x0] 20 addxi 0 0 1 0 | add x0, x0, #0x1 21 subsx 31 0 10 | cmp x0, x10 22 bcond 3 -3 | b.cc @-12 23 movzx 0 2 0 | mov x0, #0x2 24 mulx 2 0 0 | mul x2, x0, x0 25 subsx 31 2 11 | cmp x2, x11 26 bcond 8 12 | b.hi @+48 27 ldrbr 4 13 0 0 | ldrb w4, [x13, x0] 28 cbnzw 4 6 | cbnz w4, @+24 29 mulx 2 0 0 | mul x2, x0, x0 30 strbr 15 13 2 0 | strb w15, [x13, x2] 31 addx 2 2 0 | add x2, x2, x0 32 subsx 31 2 11 | cmp x2, x11 33 bcond 9 -3 | b.ls @-12 34 addxi 0 0 1 0 | add x0, x0, #0x1 35 mulx 2 0 0 | mul x2, x0, x0 36 subsx 31 2 11 | cmp x2, x11 37 bcond 9 -10 | b.ls @-40 38 movzx 1 0 0 | mov x1, #0x0 39 movzx 2 0 0 | mov x2, #0x0 40 addxi 3 2 2 0 | add x3, x2, #0x2 41 ldrbr 6 13 3 0 | ldrb w6, [x13, x3] 42 cbnzw 6 2 | cbnz w6, @+8 43 addxi 1 1 1 0 | add x1, x1, #0x1 44 addxi 2 2 1 0 | add x2, x2, #0x1 45 subsx 31 2 14 | cmp x2, x14 46 bcond 3 -6 | b.cc @-24 47 addxi 0 1 0 0 | add x0, x1, #0x0 48 ret 30 | ret 49 ; @nop 0x40033c