interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / tests / one_layer / generalization / dev / tasks / cases / devgen05 / prompt

4 lines · 393 bytes Raw Blame History
1Write a function grow_or_poly that takes a signed 16-bit number x and an unsigned 8-bit number k and
2returns a signed 64-bit number. If x is at least 0: start with t = x and repeat k times: t becomes
32*t + 1; return t. Use signed 64-bit arithmetic; when a value does not fit in a signed 64-bit number the
4function traps (overflow). If x is negative: return 3*x*x + 5*x - 2 (this always fits).