omega-bridge
Omega-first language interoperability: checked conversion backends and native language bindings
Brought by drakestapleton
omega-bridge / evidence / om3-fnmode-run / mainpin-scratch.diff
| 1 | diff --git a/src/native.om b/src/native.om |
| 2 | index 9606306..a2624af 100644 |
| 3 | --- a/src/native.om |
| 4 | +++ b/src/native.om |
| 5 | @@ -39,7 +39,7 @@ global fok ulong 1 |
| 6 | global hm uchar 84 |
| 7 | global mdev ulong 1 |
| 8 | global munit ulong 1 |
| 9 | -text mappin "b8f8f1371bc0303f8da02db8b754e085d5dd852620c8d8d676c5769c233d9195" |
| 10 | +text mappin "6d1b1cf5a44803389a831b67f750ea4cd1c9f53edfde9d6d9241d7352887f1f8" |
| 11 | text xmappin "c5ac9979232afd0d750e1d5088af69692032997136f761e585a25aa9a1cfc87e" |
| 12 | text ctxparts "ctx_~(omega_native_context *context, uint64_t *result~ if (ombr2_overlap(sp, ns))\n return OMEGA_BAD_ARG;\n return ombr2_run(context, ombr2_entry_~#ifndef OMEGA_NATIVE_CONTEXT_DECL\n#define OMEGA_NATIVE_CONTEXT_DECL\n#define OMEGA_CONTEXT_BUSY 36u\ntypedef struct omega_native_context omega_native_context;\nuint32_t omega_native_context_create(uint64_t capacity, omega_native_context **out);\nuint32_t omega_native_context_destroy(omega_native_context *context);\n#endif\n" |
| 13 | text hname "host" |
| 14 | diff --git a/tests/native/v2/run.sh b/tests/native/v2/run.sh |
| 15 | index 201e524..4e3f461 100755 |
| 16 | --- a/tests/native/v2/run.sh |
| 17 | +++ b/tests/native/v2/run.sh |
| 18 | @@ -16,7 +16,7 @@ HOST_OMC2=${OMEGA_NATIVE_HOST_OMC2:?set OMEGA_NATIVE_HOST_OMC2 to omega-mv #1008 |
| 19 | OMC2_PIN=078200466af2dc0452da7793b186d91bc9539f0cf5fafa15bcdb2a48e3bedef7 |
| 20 | HOST_OMC2_PIN=c000ec029fb85847084a82e345cb7b384cc678a735ed37e9fcbc0f557534b911 |
| 21 | DEVICE_OMC2=${OMEGA_NATIVE_DEVICE_OMC2:?set OMEGA_NATIVE_DEVICE_OMC2 to the context-format device compiler} |
| 22 | -DEVICE_OMC2_PIN=b8f8f1371bc0303f8da02db8b754e085d5dd852620c8d8d676c5769c233d9195 |
| 23 | +DEVICE_OMC2_PIN=6d1b1cf5a44803389a831b67f750ea4cd1c9f53edfde9d6d9241d7352887f1f8 |
| 24 | export OMEGA_NATIVE_OMC OMEGA_NATIVE_OMC2="$OMC2" |
| 25 | got=$(sha256sum < "$OMC" | cut -d' ' -f1) |
| 26 | [ "$got" = "$PIN" ] || { echo "FAIL omc sha256 $got, pinned $PIN"; exit 1; } |