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 / oracle / s5s7 / abi / v1link.c
| 1 | /* SPDX-License-Identifier: Apache-2.0 |
| 2 | * OM-2 qualification, lane s5s7: v1 link refusal ORACLE (contract 6 lines 182-184, erratum E1). |
| 3 | * abiv is an OM-2 unit, so the binding emits omega2_vsum and NO omega_vsum: linking this file |
| 4 | * against the library MUST fail with an undefined reference to omega_vsum. A successful link is |
| 5 | * a FAIL (the v1 symbol leaked). */ |
| 6 | #include <stdint.h> |
| 7 | uint32_t omega_vsum(uint64_t *result, const void *v, uint64_t v_len); |
| 8 | int main(void) |
| 9 | { |
| 10 | uint64_t r = 0, w[1] = {1}; |
| 11 | return (int)omega_vsum(&r, w, 1); |
| 12 | } |