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 / seed / qualification / om2 / oracle / s5s7 / abi / v1link.c

12 lines · 544 bytes Raw Blame History
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>
7uint32_t omega_vsum(uint64_t *result, const void *v, uint64_t v_len);
8int main(void)
9{
10 uint64_t r = 0, w[1] = {1};
11 return (int)omega_vsum(&r, w, 1);
12}