Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-bridge/blob/main/tests/native/x86/floorcheck.c # omega-bridge Omega-first language interoperability: checked conversion backends and native language bindings Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-bridge / tests / native / x86 / floorcheck.c` 19 lines ยท 594 bytes Raw Blame History 1 /* Test-only inclusion gives the oracle access to the actual TLS stack top. 2 * The framed six-byte payload returns R15 without modifying the owned stack. */ 3 #include "omega_native.h" 4 #include "omega_native.c" 5 #include 6 7 int main(void) 8 { 9 uint64_t result = 0; 10 uint8_t out[64]; 11 if (omega2_floor(&result, out) != OMEGA_OK) 12 return 2; 13 if (result != (uintptr_t)(ombr_stk - OMBR_STACK)) { 14 puts("FAIL stack floor follows carved out-buffer top"); 15 return 1; 16 } 17 puts("PASS R15 equals actual usable mapping floor with an out buffer"); 18 return 0; 19 }