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 / tests / compiler / neg / cv_constant_false_clause.osc
| 1 | // expect: CONTRACT_VIOLATION object=f line=4 |
| 2 | // transition: requires is constant false |
| 3 | // a clause that folds to false on its own can never hold |
| 4 | fn f(x: u8) -> u8 requires false && x > 0 { |
| 5 | return x; |
| 6 | } |