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 / tools / gen / abstract / fixtures / raw-fixture.rec

27 lines · 608 bytes Raw Blame History
1gen-record 1
2id raw-fx_clamp
3kind raw
4split probe
5family gs1-2ea72f444887b374
6entry fx_clamp
7params u32
8ret u32
9signature fn fx_clamp a uint to uint
10desc Clamp a into 3..9.
11receipt 729b7b7cebe9f99b3bb3df3b0590264fc23184d857d0a3f1edde2937f1e8e306
12validity unverified
13ancestry fx_clamp ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb
14source tools/gen/abstract/fixtures/source.txt bac2644401bdcf656e47f30de59c684ff80d9fde59a6248da97fb448d5ce8776
15body
16fn clampv x uint lo uint hi uint to uint
17if lt x lo
18ret lo
19end
20if gt x hi
21ret hi
22end
23ret x
24end
25fn fx_clamp a uint to uint
26ret clampv a 3 9
27end