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 / stablehlo / refuse.unit.om
| 1 | note Functions irstablehlo must refuse with an empty stdout. |
| 2 | fn divi32 a int b int to int |
| 3 | ret div a b |
| 4 | end |
| 5 | fn shlu32 a uint b uint to uint |
| 6 | ret shl a b |
| 7 | end |
| 8 | fn maxi32 a int b int to int |
| 9 | if gt a b |
| 10 | ret a |
| 11 | end |
| 12 | ret b |
| 13 | end |
| 14 | fn widen a uint to ulong |
| 15 | ret ulong a |
| 16 | end |
| 17 | fn isodd a int to bool |
| 18 | ret ne and a 1 0 |
| 19 | end |