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 / gpu / nvidia / om / codegen / regalloc_live.om

26 lines · 437 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note Replay exact-liveness wire validation. Zero override means absent; values are instruction indices.
3fn ra_live kind ulong a ulong b long c long d ulong e ulong to long
4if eq kind 0
5if gt a 1
6ret 9
7end
8if and eq a 1 gt b 160
9ret 10
10end
11ret 0
12end
13if eq a 0
14ret 0
15end
16if or ge e 160 lt b 0
17ret 10
18end
19if or lt a ulong b lt a ulong c
20ret 10
21end
22if ge a d
23ret 10
24end
25ret 0
26end