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 / gpu / nvidia / om / codegen / regalloc_live.om
| 1 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | note Replay exact-liveness wire validation. Zero override means absent; values are instruction indices. |
| 3 | fn ra_live kind ulong a ulong b long c long d ulong e ulong to long |
| 4 | if eq kind 0 |
| 5 | if gt a 1 |
| 6 | ret 9 |
| 7 | end |
| 8 | if and eq a 1 gt b 160 |
| 9 | ret 10 |
| 10 | end |
| 11 | ret 0 |
| 12 | end |
| 13 | if eq a 0 |
| 14 | ret 0 |
| 15 | end |
| 16 | if or ge e 160 lt b 0 |
| 17 | ret 10 |
| 18 | end |
| 19 | if or lt a ulong b lt a ulong c |
| 20 | ret 10 |
| 21 | end |
| 22 | if ge a d |
| 23 | ret 10 |
| 24 | end |
| 25 | ret 0 |
| 26 | end |