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 / seed / helix / ollm_factory / frontier-check.om
| 1 | note Link after om_synth.om up to its main. Exercise the actual pool expansion in isolation. |
| 2 | note The early synthetic vectors are zero so that only the distant operand can match. |
| 3 | fn probeInit target ulong to void |
| 4 | syReset |
| 5 | put sySt 0 1 |
| 6 | put sySt 7 1 |
| 7 | put sySt 3 4101 |
| 8 | put syTgt 0 target |
| 9 | for i ulong 4101 |
| 10 | put syVec mul i 8 0 |
| 11 | end |
| 12 | end |
| 13 | |
| 14 | fn main to int |
| 15 | note The constant/combinator frontier can itself exceed the old inner limit of 64. |
| 16 | probeInit 22 |
| 17 | put syLvlS 0 0 |
| 18 | put syLvlE 0 4101 |
| 19 | put syVec 0 3 |
| 20 | put syVec mul ulong 4100 8 19 |
| 21 | if not syExpandLevel 1 |
| 22 | ret 1 |
| 23 | end |
| 24 | |
| 25 | note A late left operand in phase A must still reach the first seed node. |
| 26 | probeInit 22 |
| 27 | put syLvlE 0 1 |
| 28 | put syLvlS 1 1 |
| 29 | put syLvlE 1 4101 |
| 30 | put syVec 0 3 |
| 31 | put syVec mul ulong 4100 8 19 |
| 32 | if not syExpandLevel 2 |
| 33 | ret 2 |
| 34 | end |
| 35 | |
| 36 | note In phase B the only additive solution pairs the last two nodes. |
| 37 | probeInit 41 |
| 38 | put syLvlE 0 1 |
| 39 | put syLvlE 1 4100 |
| 40 | put syLvlS 2 4100 |
| 41 | put syLvlE 2 4101 |
| 42 | put syVec mul ulong 4099 8 22 |
| 43 | put syVec mul ulong 4100 8 19 |
| 44 | if not syExpandLevel 3 |
| 45 | ret 3 |
| 46 | end |
| 47 | |
| 48 | note A full pool closes the level without attempting any inadmissible pairs. |
| 49 | put sySt 3 SY_MAX_NODES |
| 50 | put sySt 4 SY_MAX_NODES |
| 51 | put sySt 5 0 |
| 52 | put sySt 8 999999 |
| 53 | if syExpandLevel 3 |
| 54 | ret 4 |
| 55 | end |
| 56 | if or ne get syLvlE 3 SY_MAX_NODES ne get sySt 5 0 |
| 57 | ret 5 |
| 58 | end |
| 59 | ret 0 |
| 60 | end |