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 / qualification / om2 / leak / fixtures / flags.om
| 1 | note leak fixture (flags rule, README.txt; contract spec/omegese-om2.md section 8 lines 234-236): a |
| 2 | note comparison of a loaded byte is materialized with CSET into b, then a comparison of the public n |
| 3 | note sets the flags again. The second compare replaces the flags' taint (last flag-setting op), so the |
| 4 | note branch on c is len, while the branch on b (CSET of data flags) is data MANUAL under E12. |
| 5 | note Expected: TRACE-EQUIV-STATIC NOT_RUN with exactly one data branch. |
| 6 | fn f a view uchar 16 n ulong to ulong |
| 7 | b = lt ulong get a 0 5 |
| 8 | c = lt n 9 |
| 9 | if c |
| 10 | ret 1 |
| 11 | end |
| 12 | if b |
| 13 | ret 2 |
| 14 | end |
| 15 | ret 0 |
| 16 | end |