omega-harness
Agent skills for operating, encoding and communicating in Omega (.om) and the AIEN repositories
Brought by drakestapleton
omega-harness / examples / contract_invariant.om
| 1 | note contract_invariant: a false loop invariant traps 10, exit 110, at the top of the failing pass |
| 2 | om2 |
| 3 | text before "before\n" |
| 4 | fn main to int |
| 5 | k = write 1 before 0 len before |
| 6 | i = uint 0 |
| 7 | while lt i 10 |
| 8 | invariant lt i 5 |
| 9 | i = add i 1 |
| 10 | end |
| 11 | ret 0 |
| 12 | end |