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
omega-mv / tests / one_layer / generalization / records / raw / raw-hamming.rec
| 1 | gen-record 1 |
| 2 | id raw-hamming |
| 3 | kind raw |
| 4 | split probe |
| 5 | family gs1-0f1c0e4d3df8946d |
| 6 | entry hamming |
| 7 | params u32 u32 |
| 8 | ret u32 |
| 9 | signature fn hamming x uint y uint to uint |
| 10 | desc number of differing bits of x and y, with a popcnt helper |
| 11 | receipt ea243a01fbf4dcaf1aeb7dbe6efc3e01b82f393e33f71503057ac7f2f0b2d240 |
| 12 | validity verified |
| 13 | ancestry hamming ce769d385d785a4bd1f853fb5a552e23f3a42959e778fc6d46d03ad2e65c9af8 |
| 14 | source tests/one_layer/generalization/corpus/META 179c34c50f6d843d41b10aabdbd69c425248a3107e107c64630836199e15ab0b |
| 15 | source tests/one_layer/generalization/corpus/PROBES 26e6c6269103dfb9a6b12a99c0702896291211b850993e75a7d4ac90965b2f96 |
| 16 | source tests/one_layer/generalization/corpus/tasks/hamming/desc 58a7d87fd99d086854d0c42186bd9bd695fc713a93a1eb38dc93668a4a4bdec1 |
| 17 | source tests/one_layer/generalization/corpus/tasks/hamming/expected 209fa5980bd869963a3396321f31b8b363b97a91b51fb73462934c61fabf8629 |
| 18 | source tests/one_layer/generalization/corpus/tasks/hamming/inputs 780a8034605abc7c2a56496622ddad126da2828c5ee686345a0aef2050d6db10 |
| 19 | source tests/one_layer/generalization/corpus/tasks/hamming/requirement dc468d7c1d6b8469e3db508573ff97e5e8978dcd96e0c0fa45e626d1a04db0e5 |
| 20 | source tests/one_layer/generalization/corpus/tasks/hamming/solution.omegese ce769d385d785a4bd1f853fb5a552e23f3a42959e778fc6d46d03ad2e65c9af8 |
| 21 | body |
| 22 | fn popcnt x uint to uint |
| 23 | c = uint 0 |
| 24 | for i uint 32 |
| 25 | c = add c and shr x i 1 |
| 26 | end |
| 27 | ret c |
| 28 | end |
| 29 | fn hamming x uint y uint to uint |
| 30 | ret popcnt xor x y |
| 31 | end |