diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index cc208d9b38957113a60b6045b15b12a2b996d1c2..0b87422a805b16863d94ac752e58abf5d115d96d 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -373,3 +373,4 @@ Update this table in the same commit as the work it credits. | Codex (under Drake Stapleton's direction) | Moved OSC AArch64 instruction round-trip verification into the seeded encoder and combined field validation with packing. Reduced checker initialization and literal-classification work. | | Codex (under Drake Stapleton's direction) | Converted OSC ownership, arena, handle and branch trace serialization, model ID limits and overflow tracking to seeded Omega. | | Codex (under Drake Stapleton's direction) | Rewrote lexical scope destruction in Omega, including nested borrow closure, conditional owner release, arena escape and pool teardown. | +| Codex (under Drake Stapleton's direction) | Converted OSC handle provenance, stale read/write/free decisions, branch snapshots and loop settlement to seeded Omega. | diff --git a/om/compiler/osc_pool.om b/om/compiler/osc_pool.om index 6c6413e15197f99091952bc2b4551cc01a79e1c8..c5b4f78604cc0986403352b2898f119921af66ae 100644 --- a/om/compiler/osc_pool.om +++ b/om/compiler/osc_pool.om @@ -4,8 +4,23 @@ note free invalidates the live-slot bound. The generation budget still applies. note bridge c-type poolstat OscCheckedPool note bridge c-define OSC_POOL_FULL 1 note bridge c-define OSC_POOL_RETIRED 2 +note bridge c-type handles OscHandleState +note bridge c-define OSC_HANDLE_UNKNOWN 0 +note bridge c-define OSC_HANDLE_LIVE 1 +note bridge c-define OSC_HANDLE_STALE 2 +note bridge c-define OSC_HANDLE_STALE_COPY 3 om2 +note Each allocation creates exactly one provenance, one model slot and one +note model handle. Model IDs are one-based. Bindings have their own monotonically +note assigned indices so a branch snapshot visits only actual handle bindings. +layout handles 2952 +field count uint at 0 little +field nbind uint at 4 little +field freed uchar 1024 at 8 little +field binding int 480 at 1032 little +end + layout poolstat 32 field gbase ulong at 0 little field dallocs ulong at 8 little @@ -61,3 +76,88 @@ export fn osc_pool_free p edit poolstat loop_depth long cond_depth long to void end end end + +export fn osc_handle_allocate h edit handles to long + p = ulong get h count + if ge p 1024 + ret -1 + end + put h count uint add p 1 + put h freed p 0 + ret long p +end + +export fn osc_handle_bind h edit handles provenance long to ulong +requires lt get h nbind 480 + b = ulong get h nbind + put h nbind uint add b 1 + put h binding b int provenance + ret b +end + +note An unknown provenance produces no model event. A refused free retains +note the first free site, including when the second access is through a copy. +export fn osc_handle_visit h edit handles sites edit ulong 1024 b ulong freeing ulong symbol long line ulong to ulong +requires lt b ulong get h nbind + provenance = get h binding b + if lt provenance 0 + ret 0 + end + p = ulong provenance + if ne get h freed p 0 + if ne shr get sites p 32 ulong symbol + ret 3 + end + ret 2 + end + if ne freeing 0 + put h freed p 1 + put sites p or shl ulong symbol 32 ulong uint line + end + ret 1 +end + +export fn osc_handles_save h view handles s edit handles to void + put s count get h count + put s nbind get h nbind + for p ulong ulong get h count + put s freed p get h freed p + end + for b ulong ulong get h nbind + put s binding b get h binding b + end +end + +note Restoring a branch retains fresh allocation and binding IDs. A loop +note restores definite frees only, then settles possible binding assignments. +export fn osc_handles_restore h edit handles s view handles bindings ulong to void + for p ulong ulong get s count + put h freed p get s freed p + end + if ne bindings 0 + for b ulong ulong get s nbind + put h binding b get s binding b + end + end +end + +export fn osc_handles_settle h edit handles before view handles other view handles to void + for b ulong ulong get before nbind + initial = get before binding b + if or ne get h binding b initial ne get other binding b initial + put h binding b -1 + end + end +end + +note Return newly definite frees in original model-event order. +export fn osc_handle_frees h view handles before view handles ids edit uint 1024 to ulong + count = ulong 0 + for p ulong ulong get before count + if and ne get h freed p 0 eq get before freed p 0 + put ids count uint add p 1 + count = add count 1 + end + end + ret count +end diff --git a/src/compiler/osc_check.c b/src/compiler/osc_check.c index ea1bba5bf90ddb31e268ad682bffbb1eaa7f9202..e8bccdc4035f12f61a9e41177e809568d69bf2ba 100644 --- a/src/compiler/osc_check.c +++ b/src/compiler/osc_check.c @@ -51,17 +51,15 @@ typedef struct { uint16_t cap, used; int cond_depth; OscCheckedPool slots; /* SK_POOL: definite capacity and generation accounting */ - /* SK_HANDLE: pool symbol and static allocation provenance (-1 unknown). */ - int pool, prov; + /* SK_HANDLE: declaring pool and index into the handle binding table. */ + int pool, handle; int decl; /* OSC-3 item 3: declaring AST node (owners: carries the drop-flag mark) */ } Sym; /* OSC-3 item 2: handle state saved around branches and loop bodies */ -typedef struct { - uint8_t pfreed[MAX_PROV]; - int hprov[OSC_CHECK_MAX_SYMS]; - int nprov, nsym; -} HSave; +typedef OscHandleState HSave; +_Static_assert(sizeof(((HSave *)0)->freed) == MAX_PROV && + sizeof(((HSave *)0)->binding) / sizeof(int32_t) == OSC_CHECK_MAX_SYMS, "OSC handle capacities"); /* Obj.moved. OSC-3 item 3 (drop flags) adds OM_MAYBE: moved on some but not * all paths that reach the current point. Such an owner cannot be used, @@ -102,19 +100,15 @@ typedef struct { int contract; /* 0 body; 1 checking a requires clause; 2 an ensures clause (OSC-2) */ int cond_depth; /* OSC-2 arenas: nesting of if/else branches */ uint32_t nregion; /* OSC-2 arenas: model region ids handed out in this function */ - /* OSC-3 item 2: provenances of this function. pfreed = freed on every path - * reaching the current point; pmslot / pmhnd = model slot and handle ids - * (fresh per provenance); pfree_sym = handle symbol named by the free. */ - int nprov; - uint32_t nmslot, nmhnd; /* Each table entry is initialized when its ID is allocated. */ Sym sym[OSC_CHECK_MAX_SYMS]; Obj obj[OSC_CHECK_MAX_OBJS]; Bor bor[OSC_CHECK_MAX_BORS]; OscCheckedScope names; - uint8_t pfreed[MAX_PROV]; - uint32_t pfree_line[MAX_PROV], pmslot[MAX_PROV], pmhnd[MAX_PROV]; - int pfree_sym[MAX_PROV]; + OscHandleState handles; + /* The first free site is consulted only for a definitely freed provenance. + * Source line occupies the low word, freeing symbol the high word. */ + uint64_t free_site[MAX_PROV]; } C; #define NODE(i) (&c->ast->nodes[(i)]) @@ -507,32 +501,20 @@ static HSave *hs_take(C *c) { HSave *s = c->a->alloc(c->a->ctx, sizeof *s); if (!s) return NULL; - memcpy(s->pfreed, c->pfreed, (size_t)c->nprov); - for (int i = 0; i < c->nsym; i++) s->hprov[i] = c->sym[i].prov; - s->nprov = c->nprov; - s->nsym = c->nsym; + osc_handles_save(&c->handles, s); return s; } static void hs_free(C *c, HSave *s) { c->a->free(c->a->ctx, s, sizeof *s); } -static void hs_restore(C *c, const HSave *s) -{ - memcpy(c->pfreed, s->pfreed, (size_t)s->nprov); - for (int i = 0; i < s->nsym; i++) c->sym[i].prov = s->hprov[i]; -} -/* after a branch or loop: a handle whose provenance differs from the one it - * had before (assigned on some path) becomes unknown; the model trace was - * restored at OSC_TR_RESTORE, so provenances freed on every surviving path - * since `before` are re-emitted as SLOT_FREE */ +/* Re-emit newly definite frees in model ID order after trace restore. */ static void hs_settle(C *c, const HSave *before, const HSave *other, uint32_t line) { - for (int i = 0; i < before->nsym; i++) { - if (c->sym[i].kind != SK_HANDLE) continue; - int initial = before->hprov[i]; - c->sym[i].prov = (int)osc_join_handle(initial, c->sym[i].prov, other ? other->hprov[i] : initial); + if (before->nbind) + osc_handles_settle(&c->handles, before, other ? other : before); + if (c->tr && before->count) { + uint32_t ids[MAX_PROV]; + size_t n = osc_handle_frees(&c->handles, before, ids); + for (size_t i = 0; i < n; i++) tr_slot(c, OSC_EV_SLOT_FREE, 0, ids[i], 0, line, 0); } - for (int p = 0; p < before->nprov; p++) - if (c->pfreed[p] && !before->pfreed[p] && c->pmhnd[p]) - tr_slot(c, OSC_EV_SLOT_FREE, 0, c->pmhnd[p], 0, line, 0); } /* restore state of the entities that existed at the snapshot; later ones stay @@ -784,27 +766,32 @@ static int handle_operand(C *c, const OscNode *hn, int ps, const char *what) return s; } -/* use of handle hs (read wr = 0 / write wr = 1): refused when its provenance - * was freed on every path here. The refused event is the model's HANDLE_USE - * (stale-generation). */ -static int handle_use(C *c, const OscNode *at, int hs, int wr) +/* Omega decides if the binding is known, live or already freed and records + * successful frees. Model IDs start at one, checker provenances at zero. */ +static int handle_event(C *c, const OscNode *at, int hs, uint32_t kind, uint64_t rights) { Sym *h = &c->sym[hs]; - int pv = h->prov; - if (pv < 0) return 0; - if (c->pfreed[pv]) { - int copy = c->pfree_sym[pv] != hs; - char tr[64]; - snprintf(tr, sizeof tr, "%s after free%s", wr ? "write" : "read", copy ? " via a copy" : ""); - tr_slot(c, OSC_EV_HANDLE_USE, 0, c->pmhnd[pv], wr ? 2 : 1, at->line, 1); - osc_diag_set(c->d, OSC_DIAG_STALE_HANDLE, at->line, at->col, h->name, c->pfree_line[pv], - copy ? c->sym[c->pfree_sym[pv]].name : NULL, tr, - "'%s' is stale: its slot was freed at line %u%s%s (generation mismatch)", h->name, - c->pfree_line[pv], copy ? " through " : "", copy ? c->sym[c->pfree_sym[pv]].name : ""); - return -1; - } - tr_slot(c, OSC_EV_HANDLE_USE, 0, c->pmhnd[pv], wr ? 2 : 1, at->line, 0); - return 0; + int freeing = kind == OSC_EV_SLOT_FREE; + uint64_t state = osc_handle_visit(&c->handles, c->free_site, h->handle, freeing, hs, at->line); + if (state == OSC_HANDLE_UNKNOWN) return 0; + int pv = c->handles.binding[h->handle]; + tr_slot(c, kind, 0, (uint32_t)pv + 1, rights, at->line, state != OSC_HANDLE_LIVE); + if (state == OSC_HANDLE_LIVE) return 0; + + uint64_t site = c->free_site[pv]; + uint32_t first_line = (uint32_t)site; + const char *copy = state == OSC_HANDLE_STALE_COPY ? c->sym[site >> 32].name : NULL; + const char *action = freeing ? "free" : rights == 2 ? "write" : "read"; + char transition[64]; + snprintf(transition, sizeof transition, "%s after free%s", action, copy ? " via a copy" : ""); + if (freeing) + osc_diag_set(c->d, OSC_DIAG_STALE_HANDLE, at->line, at->col, h->name, first_line, copy, transition, + "'%s' is stale: its slot was already freed at line %u (double free)", h->name, first_line); + else + osc_diag_set(c->d, OSC_DIAG_STALE_HANDLE, at->line, at->col, h->name, first_line, copy, transition, + "'%s' is stale: its slot was freed at line %u%s%s (generation mismatch)", h->name, first_line, + copy ? " through " : "", copy ? copy : ""); + return -1; } /* `P.alloc(e)` (ON_PALLOC an) for a handle of pool ps: returns the new @@ -840,14 +827,10 @@ static int handle_alloc(C *c, OscNode *an, int ps) (unsigned long long)generations, (unsigned long long)p->slots.gbase); return -1; } - if (c->nprov >= MAX_PROV) return cap_fail(c, an->line, "handle provenance capacity"); - int pv = c->nprov++; - c->pfreed[pv] = 0; - c->pfree_line[pv] = 0; - c->pfree_sym[pv] = -1; - c->pmslot[pv] = ++c->nmslot; - c->pmhnd[pv] = ++c->nmhnd; - tr_slot(c, OSC_EV_SLOT_ALLOC, c->pmslot[pv], c->pmhnd[pv], 3, an->line, 0); + int pv = (int)osc_handle_allocate(&c->handles); + if (pv < 0) return cap_fail(c, an->line, "handle provenance capacity"); + uint32_t id = (uint32_t)pv + 1; + tr_slot(c, OSC_EV_SLOT_ALLOC, id, id, 3, an->line, 0); return pv; } @@ -863,7 +846,7 @@ static int handle_value(C *c, OscNode *v, int ps, const char *target) int s = handle_operand(c, v, ps, "a handle binding"); if (s < 0) return -2; v->sym = s; - return c->sym[s].prov; + return c->handles.binding[c->sym[s].handle]; } char msg[200]; snprintf(msg, sizeof msg, "handle '%s' takes '%s.alloc(e)' or another handle of pool '%s'", target, @@ -1054,7 +1037,7 @@ static int chk(C *c, int i, OscScalar want) n->sym = ps; n->sym2 = hs; NODE(n->a)->sym = hs; - if (handle_use(c, n, hs, 0)) return -1; + if (handle_event(c, n, hs, OSC_EV_HANDLE_USE, 1)) return -1; t = c->sym[ps].ty.s; break; } @@ -1492,7 +1475,7 @@ static int chk_if(C *c, int i) if (!s1 || !h1) { cap_fail(c, n->line, "checker memory"); goto out; } tr_control(c, OSC_TR_RESTORE, n->line); snap_restore(c, s0); - hs_restore(c, h0); + osc_handles_restore(&c->handles, h0, 1); c->term = 0; int t2 = 0; if (n->c >= 0) { @@ -1510,10 +1493,10 @@ static int chk_if(C *c, int i) } if (t2) { snap_restore(c, s1); - hs_restore(c, h1); + osc_handles_restore(&c->handles, h1, 1); } else if (!t1) { /* OSC-3 item 2: freed only if freed on both paths */ - osc_join_frees(h1->pfreed, h0->nprov, c->pfreed, h0->nprov); + if (h0->count) osc_join_frees(h1->freed, h0->count, c->handles.freed, h0->count); /* OSC-3 item 3 (drop flags): an owner moved on one path and not (or * only maybe) on the other is maybe-moved after the `if`. Its * declaration gets a drop flag: set at the declaration, cleared at @@ -1572,7 +1555,7 @@ static int chk_loop_body(C *c, OscNode *n, int is_for) snap_restore(c, s0); /* A loop can run zero times. Restore the definite frees from before * entry, then settle handle assignments against the body that ran. */ - memcpy(c->pfreed, h0->pfreed, (size_t)h0->nprov); + osc_handles_restore(&c->handles, h0, 0); hs_settle(c, h0, NULL, n->line); c->term = 0; rc = 0; @@ -1723,7 +1706,7 @@ static int chk_stmt(C *c, int i) int pv = handle_value(c, NODE(n->a), y->pool, y->name); if (pv == -2) return -1; n->sym = hs; - y->prov = pv; + c->handles.binding[y->handle] = pv; return 0; } } @@ -1788,7 +1771,7 @@ static int chk_stmt(C *c, int i) n->sym2 = hs; NODE(n->a)->sym = hs; if (slice_noescape(c, n->b) || chk(c, n->b, c->sym[ps].ty.s) < 0) return -1; - return handle_use(c, n, hs, 1); + return handle_event(c, n, hs, OSC_EV_HANDLE_USE, 2); } int s = resolve(c, n); if (s < 0) return -1; @@ -1909,7 +1892,7 @@ static int chk_stmt(C *c, int i) int s = declare(c, n, SK_HANDLE, &th, n->mut); if (s < 0) return -1; c->sym[s].pool = ps; - c->sym[s].prov = pv; + c->sym[s].handle = (int)osc_handle_bind(&c->handles, pv); n->sym = s; n->sym2 = ps; return 0; @@ -1923,23 +1906,8 @@ static int chk_stmt(C *c, int i) n->sym = ps; n->sym2 = hs; NODE(n->a)->sym = hs; - Sym *p = &c->sym[ps], *h = &c->sym[hs]; - osc_pool_free(&p->slots, c->loop_depth, c->cond_depth); - int pv = h->prov; - if (pv < 0) return 0; - if (c->pfreed[pv]) { - int copy = c->pfree_sym[pv] != hs; - tr_slot(c, OSC_EV_SLOT_FREE, 0, c->pmhnd[pv], 0, n->line, 1); - osc_diag_set(c->d, OSC_DIAG_STALE_HANDLE, n->line, n->col, h->name, c->pfree_line[pv], - copy ? c->sym[c->pfree_sym[pv]].name : NULL, copy ? "free after free via a copy" : "free after free", - "'%s' is stale: its slot was already freed at line %u (double free)", h->name, c->pfree_line[pv]); - return -1; - } - tr_slot(c, OSC_EV_SLOT_FREE, 0, c->pmhnd[pv], 0, n->line, 0); - c->pfreed[pv] = 1; - c->pfree_line[pv] = n->line; - c->pfree_sym[pv] = hs; - return 0; + osc_pool_free(&c->sym[ps].slots, c->loop_depth, c->cond_depth); + return handle_event(c, n, hs, OSC_EV_SLOT_FREE, 0); } case ON_CALLSTMT: set_sobj_tok(c, NODE(n->a)); @@ -1981,8 +1949,7 @@ static int chk_fn(C *c, int fi) c->nsym = c->nobj = c->nbor = c->loop_depth = c->term = 0; c->cond_depth = 0; c->nregion = 0; - c->nprov = 0; /* OSC-3 item 2 */ - c->nmslot = c->nmhnd = 0; + c->handles.count = c->handles.nbind = 0; char fname[64]; osc_node_name(a, fn, fname, sizeof fname); snprintf(c->sobj, sizeof c->sobj, "%s", fname); diff --git a/src/omega_api_decl.h b/src/omega_api_decl.h index 309b1385115d1f5df921a5f8d41f6ed741927f61..c8b55434e27fa9e76c851175aaafa85c9fda2bec 100644 --- a/src/omega_api_decl.h +++ b/src/omega_api_decl.h @@ -577,6 +577,21 @@ uint64_t osc_scope_push(OscCheckedScope *o_table); void osc_scope_pop(OscCheckedScope *o_table); #define OSC_POOL_FULL 1 #define OSC_POOL_RETIRED 2 +#define OSC_HANDLE_UNKNOWN 0 +#define OSC_HANDLE_LIVE 1 +#define OSC_HANDLE_STALE 2 +#define OSC_HANDLE_STALE_COPY 3 +typedef struct { + uint32_t count; + uint32_t nbind; + uint8_t freed[1024]; + int32_t binding[480]; +} OscHandleState; +OMBR_ASSERT(sizeof(OscHandleState) == 2952, "layout handles size"); +OMBR_ASSERT(offsetof(OscHandleState, count) == 0, "layout handles field count"); +OMBR_ASSERT(offsetof(OscHandleState, nbind) == 4, "layout handles field nbind"); +OMBR_ASSERT(offsetof(OscHandleState, freed) == 8, "layout handles field freed"); +OMBR_ASSERT(offsetof(OscHandleState, binding) == 1032, "layout handles field binding"); typedef struct { uint64_t gbase; uint64_t dallocs; @@ -601,6 +616,20 @@ void osc_pool_init(OscCheckedPool *o_p, uint64_t o_cap, uint64_t o_base, int64_t uint64_t osc_pool_alloc(OscCheckedPool *o_p, int64_t o_loop_depth, int64_t o_cond_depth); /* export fn osc_pool_free p edit poolstat loop_depth long cond_depth long to void */ void osc_pool_free(OscCheckedPool *o_p, int64_t o_loop_depth, int64_t o_cond_depth); +/* export fn osc_handle_allocate h edit handles to long */ +int64_t osc_handle_allocate(OscHandleState *o_h); +/* export fn osc_handle_bind h edit handles provenance long to ulong */ +uint64_t osc_handle_bind(OscHandleState *o_h, int64_t o_provenance); +/* export fn osc_handle_visit h edit handles sites edit ulong 1024 b ulong freeing ulong symbol long line ulong to ulong */ +uint64_t osc_handle_visit(OscHandleState *o_h, uint64_t o_sites[1024], uint64_t o_b, uint64_t o_freeing, int64_t o_symbol, uint64_t o_line); +/* export fn osc_handles_save h view handles s edit handles to void */ +void osc_handles_save(const OscHandleState *o_h, OscHandleState *o_s); +/* export fn osc_handles_restore h edit handles s view handles bindings ulong to void */ +void osc_handles_restore(OscHandleState *o_h, const OscHandleState *o_s, uint64_t o_bindings); +/* export fn osc_handles_settle h edit handles before view handles other view handles to void */ +void osc_handles_settle(OscHandleState *o_h, const OscHandleState *o_before, const OscHandleState *o_other); +/* export fn osc_handle_frees h view handles before view handles ids edit uint 1024 to ulong */ +uint64_t osc_handle_frees(const OscHandleState *o_h, const OscHandleState *o_before, uint32_t o_ids[1024]); typedef struct { uint8_t op; uint8_t refused; diff --git a/src/omega_native.h b/src/omega_native.h index e7ba50d4362eb051471e90c821f16d415008a353..bf34c7363e0400910bd8a438d2662475a6898bc1 100644 --- a/src/omega_native.h +++ b/src/omega_native.h @@ -315,7 +315,7 @@ uint32_t omega2_osc_scope_bind(uint64_t *result, uint8_t *o_table, uint64_t o_id uint32_t omega2_osc_scope_push(uint64_t *result, uint8_t *o_table); /* export fn osc_scope_pop table edit scopetab to void */ uint32_t omega2_osc_scope_pop(uint64_t *result, uint8_t *o_table); -#define OMEGA2_IDENT_osc_pool "omega-ident 1 unit=osc_pool abi=2 profile=OM-2 src=739af9855c5a25c5c3322dade4200fec3d7ee380ddc97de7afa7875618888711 omc=b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2" +#define OMEGA2_IDENT_osc_pool "omega-ident 1 unit=osc_pool abi=2 profile=OM-2 src=e4198750f150c94c266f9e64627ec9ad1ecbd3f6dd462814038991ab0916b968 omc=b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2" const char *omega2_ident_osc_pool(void); /* export fn osc_pool_init p edit poolstat cap ulong base ulong loop_depth long cond_depth long to void */ uint32_t omega2_osc_pool_init(uint64_t *result, uint8_t *o_p, uint64_t o_cap, uint64_t o_base, uint64_t o_loop_depth, uint64_t o_cond_depth); @@ -323,6 +323,20 @@ uint32_t omega2_osc_pool_init(uint64_t *result, uint8_t *o_p, uint64_t o_cap, ui uint32_t omega2_osc_pool_alloc(uint64_t *result, uint8_t *o_p, uint64_t o_loop_depth, uint64_t o_cond_depth); /* export fn osc_pool_free p edit poolstat loop_depth long cond_depth long to void */ uint32_t omega2_osc_pool_free(uint64_t *result, uint8_t *o_p, uint64_t o_loop_depth, uint64_t o_cond_depth); +/* export fn osc_handle_allocate h edit handles to long */ +uint32_t omega2_osc_handle_allocate(uint64_t *result, uint8_t *o_h); +/* export fn osc_handle_bind h edit handles provenance long to ulong */ +uint32_t omega2_osc_handle_bind(uint64_t *result, uint8_t *o_h, uint64_t o_provenance); +/* export fn osc_handle_visit h edit handles sites edit ulong 1024 b ulong freeing ulong symbol long line ulong to ulong */ +uint32_t omega2_osc_handle_visit(uint64_t *result, uint8_t *o_h, uint64_t *o_sites, uint64_t o_sites_len, uint64_t o_b, uint64_t o_freeing, uint64_t o_symbol, uint64_t o_line); +/* export fn osc_handles_save h view handles s edit handles to void */ +uint32_t omega2_osc_handles_save(uint64_t *result, const uint8_t *o_h, uint8_t *o_s); +/* export fn osc_handles_restore h edit handles s view handles bindings ulong to void */ +uint32_t omega2_osc_handles_restore(uint64_t *result, uint8_t *o_h, const uint8_t *o_s, uint64_t o_bindings); +/* export fn osc_handles_settle h edit handles before view handles other view handles to void */ +uint32_t omega2_osc_handles_settle(uint64_t *result, uint8_t *o_h, const uint8_t *o_before, const uint8_t *o_other); +/* export fn osc_handle_frees h view handles before view handles ids edit uint 1024 to ulong */ +uint32_t omega2_osc_handle_frees(uint64_t *result, const uint8_t *o_h, const uint8_t *o_before, uint32_t *o_ids, uint64_t o_ids_len); #define OMEGA2_IDENT_osc_trace "omega-ident 1 unit=osc_trace abi=2 profile=OM-2 src=9db7adbb499a43db3ccff00093c4601eebc89450ea9f35e5d0a23ad9c014389a omc=b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2" const char *omega2_ident_osc_trace(void); /* export fn osc_trace_record trace edit uchar * event view trinput to void */ diff --git a/src/omega_om_units.c b/src/omega_om_units.c index ecb0b40f8b8999c4e332206f2bc95a3a5d62e1ed..24a475c0504bf87658dbd235223c2ff6a0c4e1dd 100644 --- a/src/omega_om_units.c +++ b/src/omega_om_units.c @@ -3048,8 +3048,8 @@ __attribute__((visibility("default"))) uint32_t omega2_osc_scope_pop(uint64_t *r return OMEGA_BAD_ARG; return ombr2_run(ombr2_entry_osc_scope_pop, a, result, 0, ou, no); } -__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_code_osc_pool\n.hidden ombr2_code_osc_pool\nombr2_code_osc_pool:\n.byte 0x03,0x00,0x00,0x14,0x2b,0x00,0x00,0x14,0x71,0x00,0x00,0x14,0x05,0x00,0x80,0xd2,0x02,0x68,0x25,0xf8,0x05,0x00,0x80,0xd2,0x06,0x01,0x80,0xd2,0x05,0x68,0x26,0xf8,0x7f,0xc0,0x23,0xeb,0xa1,0x02,0x00,0x54,0x05,0x02,0x80,0xd2,0x03,0x68,0x25,0xb8,0x9f,0xc0,0x24,0xeb,0x21,0x02,0x00,0x54,0x85,0x02,0x80,0xd2,0x04,0x68,0x25,0xb8,0x25,0xfc,0x50,0xd3,0xa5,0x01,0x00,0xb5,0x06,0x03,0x80,0xd2,0x01,0x68,0x26,0x78,0x05,0x00,0x80,0xd2,0x46,0x03,0x80,0xd2,0x05,0x68,0x26,0x78,0x05,0x00,0x80,0xd2,0x86,0x03,0x80,0xd2,0x05,0x68,0x26,0x38,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0xa1,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x03,0x02,0x80,0xd2,0x04,0x68,0x63,0xb8,0x84,0x7c,0x40,0x93,0x9f,0x00,0x01,0xeb,0xe5,0x17,0x9f,0x9a,0x86,0x02,0x80,0xd2,0x08,0x68,0x66,0xb8,0x08,0x7d,0x40,0x93,0x1f,0x01,0x02,0xeb,0xe9,0x17,0x9f,0x9a,0xa0,0x00,0x09,0x8a,0xc0,0x03,0x5f,0xd6,0xff,0x83,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xfe,0x0f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xec,0xff,0xff,0x97,0xe3,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xfe,0x0f,0x40,0xf9,0xff,0x83,0x00,0x91,0x64,0x00,0x40,0xd2,0x64,0x00,0x00,0xb4,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x44,0x03,0x80,0xd2,0x05,0x68,0x64,0x78,0xe3,0x03,0x05,0xaa,0x05,0x03,0x80,0xd2,0x06,0x68,0x65,0x78,0xe4,0x03,0x06,0xaa,0x85,0x03,0x80,0xd2,0x06,0x68,0x65,0x38,0xdf,0x00,0x00,0xf1,0xe8,0x17,0x9f,0x9a,0x7f,0x00,0x04,0xeb,0xe9,0x37,0x9f,0x9a,0x0a,0x01,0x09,0x8a,0x6a,0x00,0x00,0xb4,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x06,0x00,0x80,0xd2,0x08,0x68,0x66,0xf8,0x09,0x00,0x80,0x92,0x25,0x01,0x08,0xcb,0x08,0x01,0x80,0xd2,0x09,0x68,0x68,0xf8,0x26,0x05,0x00,0x91,0x28,0x00,0xc0,0xd2,0xbf,0x00,0x08,0xeb,0xe9,0x27,0x9f,0x9a,0xaa,0x04,0x00,0x91,0x8b,0x7c,0x0a,0x9b,0xdf,0x00,0x0b,0xeb,0xec,0x97,0x9f,0x9a,0x2d,0x01,0x0c,0x8a,0x6d,0x00,0x00,0xb4,0x40,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x08,0x01,0x80,0xd2,0x06,0x68,0x28,0xf8,0x88,0x03,0x80,0xd2,0x09,0x68,0x68,0x38,0x3f,0x01,0x00,0xf1,0xc1,0x00,0x00,0x54,0x68,0x04,0x00,0x91,0x09,0xfd,0x50,0xd3,0x09,0x01,0x00,0xb5,0x4a,0x03,0x80,0xd2,0x08,0x68,0x2a,0x78,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0xa1,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xff,0x83,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xfe,0x0f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xa5,0xff,0xff,0x97,0xe3,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xfe,0x0f,0x40,0xf9,0xff,0x83,0x00,0x91,0x64,0x00,0x40,0xd2,0xa4,0x00,0x00,0xb4,0x23,0x00,0x80,0xd2,0x84,0x03,0x80,0xd2,0x03,0x68,0x24,0x38,0x09,0x00,0x00,0x14,0x44,0x03,0x80,0xd2,0x03,0x68,0x64,0x78,0x7f,0x00,0x00,0xf1,0xa0,0x00,0x00,0x54,0x64,0x04,0x00,0xd1,0x84,0x3c,0x40,0xd3,0x45,0x03,0x80,0xd2,0x04,0x68,0x25,0x78,0xc0,0x03,0x5f,0xd6\n.previous\n"); -static const char ombr2_ident_osc_pool[] = "omega-ident 1 unit=osc_pool abi=2 profile=OM-2 src=739af9855c5a25c5c3322dade4200fec3d7ee380ddc97de7afa7875618888711 omc=b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2"; +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_code_osc_pool\n.hidden ombr2_code_osc_pool\nombr2_code_osc_pool:\n.byte 0x0a,0x00,0x00,0x14,0x32,0x00,0x00,0x14,0x78,0x00,0x00,0x14,0x95,0x00,0x00,0x14,0xb1,0x00,0x00,0x14,0xce,0x00,0x00,0x14,0x0d,0x01,0x00,0x14,0x4d,0x01,0x00,0x14,0x87,0x01,0x00,0x14,0xba,0x01,0x00,0x14,0x05,0x00,0x80,0xd2,0x02,0x68,0x25,0xf8,0x05,0x00,0x80,0xd2,0x06,0x01,0x80,0xd2,0x05,0x68,0x26,0xf8,0x7f,0xc0,0x23,0xeb,0xa1,0x02,0x00,0x54,0x05,0x02,0x80,0xd2,0x03,0x68,0x25,0xb8,0x9f,0xc0,0x24,0xeb,0x21,0x02,0x00,0x54,0x85,0x02,0x80,0xd2,0x04,0x68,0x25,0xb8,0x25,0xfc,0x50,0xd3,0xa5,0x01,0x00,0xb5,0x06,0x03,0x80,0xd2,0x01,0x68,0x26,0x78,0x05,0x00,0x80,0xd2,0x46,0x03,0x80,0xd2,0x05,0x68,0x26,0x78,0x05,0x00,0x80,0xd2,0x86,0x03,0x80,0xd2,0x05,0x68,0x26,0x38,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0xa1,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x03,0x02,0x80,0xd2,0x04,0x68,0x63,0xb8,0x84,0x7c,0x40,0x93,0x9f,0x00,0x01,0xeb,0xe5,0x17,0x9f,0x9a,0x86,0x02,0x80,0xd2,0x08,0x68,0x66,0xb8,0x08,0x7d,0x40,0x93,0x1f,0x01,0x02,0xeb,0xe9,0x17,0x9f,0x9a,0xa0,0x00,0x09,0x8a,0xc0,0x03,0x5f,0xd6,0xff,0x83,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xfe,0x0f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xec,0xff,0xff,0x97,0xe3,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xfe,0x0f,0x40,0xf9,0xff,0x83,0x00,0x91,0x64,0x00,0x40,0xd2,0x64,0x00,0x00,0xb4,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x44,0x03,0x80,0xd2,0x05,0x68,0x64,0x78,0xe3,0x03,0x05,0xaa,0x05,0x03,0x80,0xd2,0x06,0x68,0x65,0x78,0xe4,0x03,0x06,0xaa,0x85,0x03,0x80,0xd2,0x06,0x68,0x65,0x38,0xdf,0x00,0x00,0xf1,0xe8,0x17,0x9f,0x9a,0x7f,0x00,0x04,0xeb,0xe9,0x37,0x9f,0x9a,0x0a,0x01,0x09,0x8a,0x6a,0x00,0x00,0xb4,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x06,0x00,0x80,0xd2,0x08,0x68,0x66,0xf8,0x09,0x00,0x80,0x92,0x25,0x01,0x08,0xcb,0x08,0x01,0x80,0xd2,0x09,0x68,0x68,0xf8,0x26,0x05,0x00,0x91,0x28,0x00,0xc0,0xd2,0xbf,0x00,0x08,0xeb,0xe9,0x27,0x9f,0x9a,0xaa,0x04,0x00,0x91,0x8b,0x7c,0x0a,0x9b,0xdf,0x00,0x0b,0xeb,0xec,0x97,0x9f,0x9a,0x2d,0x01,0x0c,0x8a,0x6d,0x00,0x00,0xb4,0x40,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x08,0x01,0x80,0xd2,0x06,0x68,0x28,0xf8,0x88,0x03,0x80,0xd2,0x09,0x68,0x68,0x38,0x3f,0x01,0x00,0xf1,0xc1,0x00,0x00,0x54,0x68,0x04,0x00,0x91,0x09,0xfd,0x50,0xd3,0x09,0x01,0x00,0xb5,0x4a,0x03,0x80,0xd2,0x08,0x68,0x2a,0x78,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0xa1,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xff,0x83,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xfe,0x0f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xa5,0xff,0xff,0x97,0xe3,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xfe,0x0f,0x40,0xf9,0xff,0x83,0x00,0x91,0x64,0x00,0x40,0xd2,0xa4,0x00,0x00,0xb4,0x23,0x00,0x80,0xd2,0x84,0x03,0x80,0xd2,0x03,0x68,0x24,0x38,0x09,0x00,0x00,0x14,0x44,0x03,0x80,0xd2,0x03,0x68,0x64,0x78,0x7f,0x00,0x00,0xf1,0xa0,0x00,0x00,0x54,0x64,0x04,0x00,0xd1,0x84,0x3c,0x40,0xd3,0x45,0x03,0x80,0xd2,0x04,0x68,0x25,0x78,0xc0,0x03,0x5f,0xd6,0x02,0x00,0x80,0xd2,0x03,0x68,0x62,0xb8,0xe1,0x03,0x03,0xaa,0x3f,0x00,0x10,0xf1,0x63,0x00,0x00,0x54,0x00,0x00,0x80,0x92,0xc0,0x03,0x5f,0xd6,0x22,0x04,0x00,0x91,0x43,0xfc,0x60,0xd3,0x43,0x02,0x00,0xb5,0x04,0x00,0x80,0xd2,0x02,0x68,0x24,0xb8,0x02,0x00,0x80,0xd2,0x3f,0x00,0x10,0xf1,0x62,0x01,0x00,0x54,0x03,0x01,0x80,0xd2,0x63,0x00,0x01,0x8b,0x02,0x68,0x23,0x38,0x22,0xfc,0x7f,0xd3,0x02,0x01,0x00,0xb5,0xe0,0x03,0x01,0xaa,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xa1,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x82,0x00,0x80,0xd2,0x03,0x68,0x62,0xb8,0x7f,0x80,0x07,0xf1,0x22,0x03,0x00,0x54,0x83,0x00,0x80,0xd2,0x04,0x68,0x63,0xb8,0xe2,0x03,0x04,0xaa,0x43,0x04,0x00,0x91,0x64,0xfc,0x60,0xd3,0x24,0x02,0x00,0xb5,0x85,0x00,0x80,0xd2,0x03,0x68,0x25,0xb8,0x3f,0xc0,0x21,0xeb,0xa1,0x01,0x00,0x54,0x5f,0x80,0x07,0xf1,0x22,0x01,0x00,0x54,0x03,0x81,0x80,0xd2,0x63,0x08,0x02,0x8b,0x01,0x68,0x23,0xb8,0xe0,0x03,0x02,0xaa,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xa1,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x21,0x01,0x80,0xd2,0xf8,0xff,0xff,0x17,0x86,0x00,0x80,0xd2,0x08,0x68,0x66,0xb8,0x5f,0x00,0x08,0xeb,0x62,0x07,0x00,0x54,0x5f,0x80,0x07,0xf1,0xa2,0x06,0x00,0x54,0x08,0x81,0x80,0xd2,0x08,0x09,0x02,0x8b,0x06,0x68,0x68,0xb8,0xc6,0x7c,0x40,0x93,0xdf,0x00,0x00,0xf1,0x6a,0x00,0x00,0x54,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xc9,0xfc,0x7f,0xd3,0xa9,0x05,0x00,0xb5,0xe8,0x03,0x06,0xaa,0x1f,0x01,0x10,0xf1,0x02,0x05,0x00,0x54,0x09,0x01,0x80,0xd2,0x29,0x01,0x08,0x8b,0x0a,0x68,0x69,0x38,0x5f,0x01,0x00,0xf1,0xa0,0x01,0x00,0x54,0x1f,0x01,0x10,0xf1,0x22,0x04,0x00,0x54,0x29,0x78,0x68,0xf8,0x2a,0xfd,0x60,0xd3,0x8b,0xfc,0x7f,0xd3,0xeb,0x03,0x00,0xb5,0x5f,0x01,0x04,0xeb,0x60,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x40,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x7f,0x00,0x00,0xf1,0x00,0x02,0x00,0x54,0x29,0x00,0x80,0xd2,0x1f,0x01,0x10,0xf1,0x42,0x02,0x00,0x54,0x0a,0x01,0x80,0xd2,0x4a,0x01,0x08,0x8b,0x09,0x68,0x2a,0x38,0x89,0xfc,0x7f,0xd3,0xe9,0x01,0x00,0xb5,0x8a,0x7c,0x60,0xd3,0xab,0xfc,0x60,0xd3,0x8b,0x01,0x00,0xb5,0x4c,0x01,0x05,0xaa,0x1f,0x01,0x10,0xf1,0xe2,0x00,0x00,0x54,0x2c,0x78,0x28,0xf8,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xa1,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x21,0x01,0x80,0xd2,0xf8,0xff,0xff,0x17,0x02,0x00,0x80,0xd2,0x03,0x68,0x62,0xb8,0x04,0x00,0x80,0xd2,0x23,0x68,0x24,0xb8,0x82,0x00,0x80,0xd2,0x03,0x68,0x62,0xb8,0x84,0x00,0x80,0xd2,0x23,0x68,0x24,0xb8,0x02,0x00,0x80,0xd2,0x03,0x68,0x62,0xb8,0x04,0x00,0x80,0xd2,0x05,0x00,0x80,0xd2,0x9f,0x00,0x03,0xeb,0x62,0x02,0x00,0x54,0x06,0x48,0x88,0xd2,0xe6,0x01,0xa0,0xf2,0xbf,0x00,0x06,0xeb,0xc2,0x05,0x00,0x54,0xa5,0x04,0x00,0x91,0x9f,0x00,0x10,0xf1,0x22,0x05,0x00,0x54,0x06,0x01,0x80,0xd2,0xc6,0x00,0x04,0x8b,0x08,0x68,0x66,0x38,0x9f,0x00,0x10,0xf1,0x82,0x04,0x00,0x54,0x09,0x01,0x80,0xd2,0x29,0x01,0x04,0x8b,0x28,0x68,0x29,0x38,0x84,0x04,0x00,0x91,0x9f,0x00,0x03,0xeb,0xe3,0xfd,0xff,0x54,0x82,0x00,0x80,0xd2,0x03,0x68,0x62,0xb8,0x04,0x00,0x80,0xd2,0x05,0x00,0x80,0xd2,0x9f,0x00,0x03,0xeb,0x82,0x02,0x00,0x54,0x06,0x48,0x88,0xd2,0xe6,0x01,0xa0,0xf2,0xbf,0x00,0x06,0xeb,0xc2,0x02,0x00,0x54,0xa5,0x04,0x00,0x91,0x9f,0x80,0x07,0xf1,0x22,0x02,0x00,0x54,0x06,0x81,0x80,0xd2,0xc6,0x08,0x04,0x8b,0x08,0x68,0x66,0xb8,0x08,0x7d,0x40,0x93,0x9f,0x80,0x07,0xf1,0x62,0x01,0x00,0x54,0x09,0x81,0x80,0xd2,0x29,0x09,0x04,0x8b,0x28,0x68,0x29,0xb8,0x84,0x04,0x00,0x91,0x9f,0x00,0x03,0xeb,0xc3,0xfd,0xff,0x54,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x81,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x03,0x00,0x80,0xd2,0x24,0x68,0x63,0xb8,0x05,0x00,0x80,0xd2,0x06,0x00,0x80,0xd2,0xbf,0x00,0x04,0xeb,0x62,0x02,0x00,0x54,0x08,0x48,0x88,0xd2,0xe8,0x01,0xa0,0xf2,0xdf,0x00,0x08,0xeb,0x02,0x06,0x00,0x54,0xc6,0x04,0x00,0x91,0xbf,0x00,0x10,0xf1,0x62,0x05,0x00,0x54,0x08,0x01,0x80,0xd2,0x08,0x01,0x05,0x8b,0x29,0x68,0x68,0x38,0xbf,0x00,0x10,0xf1,0xc2,0x04,0x00,0x54,0x0a,0x01,0x80,0xd2,0x4a,0x01,0x05,0x8b,0x09,0x68,0x2a,0x38,0xa5,0x04,0x00,0x91,0xbf,0x00,0x04,0xeb,0xe3,0xfd,0xff,0x54,0x5f,0x00,0x00,0xf1,0x40,0x03,0x00,0x54,0x83,0x00,0x80,0xd2,0x24,0x68,0x63,0xb8,0x05,0x00,0x80,0xd2,0x06,0x00,0x80,0xd2,0xbf,0x00,0x04,0xeb,0x82,0x02,0x00,0x54,0x08,0x48,0x88,0xd2,0xe8,0x01,0xa0,0xf2,0xdf,0x00,0x08,0xeb,0xc2,0x02,0x00,0x54,0xc6,0x04,0x00,0x91,0xbf,0x80,0x07,0xf1,0x22,0x02,0x00,0x54,0x08,0x81,0x80,0xd2,0x08,0x09,0x05,0x8b,0x29,0x68,0x68,0xb8,0x29,0x7d,0x40,0x93,0xbf,0x80,0x07,0xf1,0x62,0x01,0x00,0x54,0x0a,0x81,0x80,0xd2,0x4a,0x09,0x05,0x8b,0x09,0x68,0x2a,0xb8,0xa5,0x04,0x00,0x91,0xbf,0x00,0x04,0xeb,0xc3,0xfd,0xff,0x54,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x81,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x83,0x00,0x80,0xd2,0x24,0x68,0x63,0xb8,0x05,0x00,0x80,0xd2,0x06,0x00,0x80,0xd2,0xbf,0x00,0x04,0xeb,0xe2,0x04,0x00,0x54,0x08,0x48,0x88,0xd2,0xe8,0x01,0xa0,0xf2,0xdf,0x00,0x08,0xeb,0x22,0x05,0x00,0x54,0xc6,0x04,0x00,0x91,0xbf,0x80,0x07,0xf1,0x82,0x04,0x00,0x54,0x09,0x81,0x80,0xd2,0x29,0x09,0x05,0x8b,0x28,0x68,0x69,0xb8,0x08,0x7d,0x40,0x93,0xbf,0x80,0x07,0xf1,0xc2,0x03,0x00,0x54,0x09,0x81,0x80,0xd2,0x29,0x09,0x05,0x8b,0x0a,0x68,0x69,0xb8,0x4a,0x7d,0x40,0x93,0x5f,0x01,0x08,0xeb,0xeb,0x07,0x9f,0x9a,0xbf,0x80,0x07,0xf1,0xc2,0x02,0x00,0x54,0x0c,0x81,0x80,0xd2,0x8c,0x09,0x05,0x8b,0x4d,0x68,0x6c,0xb8,0xad,0x7d,0x40,0x93,0xbf,0x01,0x08,0xeb,0xee,0x07,0x9f,0x9a,0x6f,0x01,0x0e,0xaa,0xef,0x00,0x00,0xb4,0x09,0x00,0x80,0x92,0xbf,0x80,0x07,0xf1,0x62,0x01,0x00,0x54,0x0a,0x81,0x80,0xd2,0x4a,0x09,0x05,0x8b,0x09,0x68,0x2a,0xb8,0xa5,0x04,0x00,0x91,0xbf,0x00,0x04,0xeb,0x63,0xfb,0xff,0x54,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x81,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x03,0x00,0x80,0xd2,0x04,0x00,0x80,0xd2,0x25,0x68,0x64,0xb8,0x06,0x00,0x80,0xd2,0x08,0x00,0x80,0xd2,0xdf,0x00,0x05,0xeb,0x02,0x04,0x00,0x54,0x09,0x48,0x88,0xd2,0xe9,0x01,0xa0,0xf2,0x1f,0x01,0x09,0xeb,0x62,0x04,0x00,0x54,0x08,0x05,0x00,0x91,0xdf,0x00,0x10,0xf1,0xc2,0x03,0x00,0x54,0x09,0x01,0x80,0xd2,0x29,0x01,0x06,0x8b,0x0a,0x68,0x69,0x38,0x5f,0x01,0x00,0xf1,0xeb,0x07,0x9f,0x9a,0xdf,0x00,0x10,0xf1,0xe2,0x02,0x00,0x54,0x0c,0x01,0x80,0xd2,0x8c,0x01,0x06,0x8b,0x2d,0x68,0x6c,0x38,0xbf,0x01,0x00,0xf1,0xee,0x17,0x9f,0x9a,0x6f,0x01,0x0e,0x8a,0x0f,0x01,0x00,0xb4,0xc9,0x04,0x00,0x91,0x2a,0xfd,0x60,0xd3,0x2a,0x02,0x00,0xb5,0x7f,0x00,0x10,0xf1,0x62,0x01,0x00,0x54,0x49,0x78,0x23,0xb8,0x63,0x04,0x00,0x91,0xc6,0x04,0x00,0x91,0xdf,0x00,0x05,0xeb,0x43,0xfc,0xff,0x54,0xe0,0x03,0x03,0xaa,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x81,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0xa1,0x00,0x80,0xd2,0xf8,0xff,0xff,0x17\n.previous\n"); +static const char ombr2_ident_osc_pool[] = "omega-ident 1 unit=osc_pool abi=2 profile=OM-2 src=e4198750f150c94c266f9e64627ec9ad1ecbd3f6dd462814038991ab0916b968 omc=b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2"; __attribute__((visibility("default"))) const char *omega2_ident_osc_pool(void) { return ombr2_ident_osc_pool; @@ -3119,6 +3119,166 @@ __attribute__((visibility("default"))) uint32_t omega2_osc_pool_free(uint64_t *r return OMEGA_BAD_ARG; return ombr2_run(ombr2_entry_osc_pool_free, a, result, 0, ou, no); } +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_handle_allocate\n.hidden ombr2_entry_osc_handle_allocate\nombr2_entry_osc_handle_allocate:\nhint #34\nb ombr2_code_osc_pool+12\n.previous\n"); +extern const unsigned char ombr2_entry_osc_handle_allocate[] __attribute__((visibility("hidden"))); +/* export fn osc_handle_allocate h edit handles to long */ +__attribute__((visibility("default"))) uint32_t omega2_osc_handle_allocate(uint64_t *result, uint8_t *o_h) +{ + ombr_span sp[7]; + unsigned ns = 0; + uint64_t a[6] = {0}; + ombr2_out ou[6] = {{0, 0, 0}}; + unsigned no = 0; + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) + return OMEGA_BAD_ARG; + if (ombr2_fixed(sp, &ns, o_h, 2952u, 1u, 1)) + return OMEGA_BAD_ARG; + a[0] = (uint64_t)(uintptr_t)o_h; + if (ombr2_overlap(sp, ns)) + return OMEGA_BAD_ARG; + return ombr2_run(ombr2_entry_osc_handle_allocate, a, result, 1, ou, no); +} +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_handle_bind\n.hidden ombr2_entry_osc_handle_bind\nombr2_entry_osc_handle_bind:\nhint #34\nb ombr2_code_osc_pool+16\n.previous\n"); +extern const unsigned char ombr2_entry_osc_handle_bind[] __attribute__((visibility("hidden"))); +/* export fn osc_handle_bind h edit handles provenance long to ulong */ +__attribute__((visibility("default"))) uint32_t omega2_osc_handle_bind(uint64_t *result, uint8_t *o_h, uint64_t o_provenance) +{ + ombr_span sp[7]; + unsigned ns = 0; + uint64_t a[6] = {0}; + ombr2_out ou[6] = {{0, 0, 0}}; + unsigned no = 0; + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) + return OMEGA_BAD_ARG; + if (ombr2_fixed(sp, &ns, o_h, 2952u, 1u, 1)) + return OMEGA_BAD_ARG; + a[0] = (uint64_t)(uintptr_t)o_h; + a[1] = o_provenance; + if (ombr2_overlap(sp, ns)) + return OMEGA_BAD_ARG; + return ombr2_run(ombr2_entry_osc_handle_bind, a, result, 1, ou, no); +} +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_handle_visit\n.hidden ombr2_entry_osc_handle_visit\nombr2_entry_osc_handle_visit:\nhint #34\nb ombr2_code_osc_pool+20\n.previous\n"); +extern const unsigned char ombr2_entry_osc_handle_visit[] __attribute__((visibility("hidden"))); +/* export fn osc_handle_visit h edit handles sites edit ulong 1024 b ulong freeing ulong symbol long line ulong to ulong */ +__attribute__((visibility("default"))) uint32_t omega2_osc_handle_visit(uint64_t *result, uint8_t *o_h, uint64_t *o_sites, uint64_t o_sites_len, uint64_t o_b, uint64_t o_freeing, uint64_t o_symbol, uint64_t o_line) +{ + ombr_span sp[7]; + unsigned ns = 0; + uint64_t a[6] = {0}; + ombr2_out ou[6] = {{0, 0, 0}}; + unsigned no = 0; + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) + return OMEGA_BAD_ARG; + if (ombr2_fixed(sp, &ns, o_h, 2952u, 1u, 1)) + return OMEGA_BAD_ARG; + a[0] = (uint64_t)(uintptr_t)o_h; + if (ombr_span_add(sp, &ns, o_sites, o_sites_len, 1024u, 8u, 1)) + return OMEGA_BAD_ARG; + a[1] = (uint64_t)(uintptr_t)o_sites; + a[2] = o_b; + a[3] = o_freeing; + a[4] = o_symbol; + a[5] = o_line; + if (ombr2_overlap(sp, ns)) + return OMEGA_BAD_ARG; + return ombr2_run(ombr2_entry_osc_handle_visit, a, result, 1, ou, no); +} +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_handles_save\n.hidden ombr2_entry_osc_handles_save\nombr2_entry_osc_handles_save:\nhint #34\nb ombr2_code_osc_pool+24\n.previous\n"); +extern const unsigned char ombr2_entry_osc_handles_save[] __attribute__((visibility("hidden"))); +/* export fn osc_handles_save h view handles s edit handles to void */ +__attribute__((visibility("default"))) uint32_t omega2_osc_handles_save(uint64_t *result, const uint8_t *o_h, uint8_t *o_s) +{ + ombr_span sp[7]; + unsigned ns = 0; + uint64_t a[6] = {0}; + ombr2_out ou[6] = {{0, 0, 0}}; + unsigned no = 0; + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) + return OMEGA_BAD_ARG; + if (ombr2_fixed(sp, &ns, o_h, 2952u, 1u, 0)) + return OMEGA_BAD_ARG; + a[0] = (uint64_t)(uintptr_t)o_h; + if (ombr2_fixed(sp, &ns, o_s, 2952u, 1u, 1)) + return OMEGA_BAD_ARG; + a[1] = (uint64_t)(uintptr_t)o_s; + if (ombr2_overlap(sp, ns)) + return OMEGA_BAD_ARG; + return ombr2_run(ombr2_entry_osc_handles_save, a, result, 0, ou, no); +} +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_handles_restore\n.hidden ombr2_entry_osc_handles_restore\nombr2_entry_osc_handles_restore:\nhint #34\nb ombr2_code_osc_pool+28\n.previous\n"); +extern const unsigned char ombr2_entry_osc_handles_restore[] __attribute__((visibility("hidden"))); +/* export fn osc_handles_restore h edit handles s view handles bindings ulong to void */ +__attribute__((visibility("default"))) uint32_t omega2_osc_handles_restore(uint64_t *result, uint8_t *o_h, const uint8_t *o_s, uint64_t o_bindings) +{ + ombr_span sp[7]; + unsigned ns = 0; + uint64_t a[6] = {0}; + ombr2_out ou[6] = {{0, 0, 0}}; + unsigned no = 0; + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) + return OMEGA_BAD_ARG; + if (ombr2_fixed(sp, &ns, o_h, 2952u, 1u, 1)) + return OMEGA_BAD_ARG; + a[0] = (uint64_t)(uintptr_t)o_h; + if (ombr2_fixed(sp, &ns, o_s, 2952u, 1u, 0)) + return OMEGA_BAD_ARG; + a[1] = (uint64_t)(uintptr_t)o_s; + a[2] = o_bindings; + if (ombr2_overlap(sp, ns)) + return OMEGA_BAD_ARG; + return ombr2_run(ombr2_entry_osc_handles_restore, a, result, 0, ou, no); +} +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_handles_settle\n.hidden ombr2_entry_osc_handles_settle\nombr2_entry_osc_handles_settle:\nhint #34\nb ombr2_code_osc_pool+32\n.previous\n"); +extern const unsigned char ombr2_entry_osc_handles_settle[] __attribute__((visibility("hidden"))); +/* export fn osc_handles_settle h edit handles before view handles other view handles to void */ +__attribute__((visibility("default"))) uint32_t omega2_osc_handles_settle(uint64_t *result, uint8_t *o_h, const uint8_t *o_before, const uint8_t *o_other) +{ + ombr_span sp[7]; + unsigned ns = 0; + uint64_t a[6] = {0}; + ombr2_out ou[6] = {{0, 0, 0}}; + unsigned no = 0; + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) + return OMEGA_BAD_ARG; + if (ombr2_fixed(sp, &ns, o_h, 2952u, 1u, 1)) + return OMEGA_BAD_ARG; + a[0] = (uint64_t)(uintptr_t)o_h; + if (ombr2_fixed(sp, &ns, o_before, 2952u, 1u, 0)) + return OMEGA_BAD_ARG; + a[1] = (uint64_t)(uintptr_t)o_before; + if (ombr2_fixed(sp, &ns, o_other, 2952u, 1u, 0)) + return OMEGA_BAD_ARG; + a[2] = (uint64_t)(uintptr_t)o_other; + if (ombr2_overlap(sp, ns)) + return OMEGA_BAD_ARG; + return ombr2_run(ombr2_entry_osc_handles_settle, a, result, 0, ou, no); +} +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_handle_frees\n.hidden ombr2_entry_osc_handle_frees\nombr2_entry_osc_handle_frees:\nhint #34\nb ombr2_code_osc_pool+36\n.previous\n"); +extern const unsigned char ombr2_entry_osc_handle_frees[] __attribute__((visibility("hidden"))); +/* export fn osc_handle_frees h view handles before view handles ids edit uint 1024 to ulong */ +__attribute__((visibility("default"))) uint32_t omega2_osc_handle_frees(uint64_t *result, const uint8_t *o_h, const uint8_t *o_before, uint32_t *o_ids, uint64_t o_ids_len) +{ + ombr_span sp[7]; + unsigned ns = 0; + uint64_t a[6] = {0}; + ombr2_out ou[6] = {{0, 0, 0}}; + unsigned no = 0; + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) + return OMEGA_BAD_ARG; + if (ombr2_fixed(sp, &ns, o_h, 2952u, 1u, 0)) + return OMEGA_BAD_ARG; + a[0] = (uint64_t)(uintptr_t)o_h; + if (ombr2_fixed(sp, &ns, o_before, 2952u, 1u, 0)) + return OMEGA_BAD_ARG; + a[1] = (uint64_t)(uintptr_t)o_before; + if (ombr_span_add(sp, &ns, o_ids, o_ids_len, 1024u, 4u, 1)) + return OMEGA_BAD_ARG; + a[2] = (uint64_t)(uintptr_t)o_ids; + if (ombr2_overlap(sp, ns)) + return OMEGA_BAD_ARG; + return ombr2_run(ombr2_entry_osc_handle_frees, a, result, 1, ou, no); +} __asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_code_osc_trace\n.hidden ombr2_code_osc_trace\nombr2_code_osc_trace:\n.byte 0x60,0x00,0x00,0x14,0x05,0x00,0x80,0xd2,0x06,0x00,0x80,0xd2,0xbf,0x00,0x03,0xeb,0xc2,0x02,0x00,0x54,0x08,0x48,0x88,0xd2,0xe8,0x01,0xa0,0xf2,0xdf,0x00,0x08,0xeb,0x02,0x03,0x00,0x54,0xc6,0x04,0x00,0x91,0x48,0x00,0x05,0x8b,0x09,0x01,0x80,0xd2,0xaa,0x7c,0x09,0x9b,0x5f,0x01,0x01,0xf1,0xc2,0x02,0x00,0x54,0x8b,0x24,0xca,0x9a,0xec,0x1f,0x80,0xd2,0x6d,0x01,0x0c,0x8a,0xae,0xfd,0x48,0xd3,0xee,0x01,0x00,0xb5,0x1f,0x01,0x01,0xeb,0x22,0x01,0x00,0x54,0x0d,0x68,0x28,0x38,0xa5,0x04,0x00,0x91,0xbf,0x00,0x03,0xeb,0x83,0xfd,0xff,0x54,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x81,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0xa1,0x00,0x80,0xd2,0xf8,0xff,0xff,0x17,0xe1,0x00,0x80,0xd2,0xf6,0xff,0xff,0x17,0x1f,0x00,0x00,0xf1,0x6a,0x00,0x00,0x54,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x01,0xfc,0x7f,0xd3,0xc1,0x00,0x00,0xb5,0x00,0x04,0x00,0x91,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0xa1,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x81,0x01,0x80,0xd2,0x02,0x68,0x61,0xb8,0x42,0x7c,0x40,0x93,0x5f,0x00,0x01,0xf1,0xe3,0xb7,0x9f,0x9a,0x04,0x02,0x80,0xd2,0x05,0x68,0x64,0xb8,0xa5,0x7c,0x40,0x93,0xbf,0x00,0x01,0xf1,0xe6,0xb7,0x9f,0x9a,0x68,0x00,0x06,0xaa,0x68,0x00,0x00,0xb4,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x81,0x02,0x80,0xd2,0x02,0x68,0x61,0xb8,0x42,0x7c,0x40,0x93,0x5f,0x00,0x01,0xf1,0xe3,0xb7,0x9f,0x9a,0x04,0x03,0x80,0xd2,0x05,0x68,0x64,0xb8,0xa5,0x7c,0x40,0x93,0xbf,0x00,0x01,0xf1,0xe6,0xb7,0x9f,0x9a,0x68,0x00,0x06,0xaa,0x68,0x00,0x00,0xb4,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x81,0x03,0x80,0xd2,0x02,0x68,0x61,0xb8,0x5f,0x40,0x00,0xf1,0xe3,0x97,0x9f,0x9a,0x04,0x04,0x80,0xd2,0x05,0x68,0x64,0xb8,0xbf,0x40,0x00,0xf1,0xe6,0x97,0x9f,0x9a,0x68,0x00,0x06,0xaa,0x68,0x00,0x00,0xb4,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x81,0x04,0x80,0xd2,0x02,0x68,0x61,0xb8,0x5f,0x00,0x01,0xf1,0xe0,0x97,0x9f,0x9a,0xc0,0x03,0x5f,0xd6,0x03,0x01,0x80,0xd2,0xc3,0x02,0xa0,0xf2,0x3f,0x00,0x03,0xeb,0xa1,0x3c,0x00,0x54,0x03,0x00,0x80,0xd2,0x04,0x00,0x80,0xd2,0x9f,0x10,0x00,0xf1,0xa2,0x01,0x00,0x54,0x9f,0x00,0x01,0xeb,0x62,0x3b,0x00,0x54,0x05,0x68,0x64,0x38,0x06,0x01,0x80,0xd2,0x88,0x7c,0x06,0x9b,0x1f,0x01,0x01,0xf1,0x02,0x3b,0x00,0x54,0xa9,0x20,0xc8,0x9a,0x63,0x00,0x09,0xaa,0x84,0x04,0x00,0x91,0x9f,0x10,0x00,0xf1,0xa3,0xfe,0xff,0x54,0x04,0x00,0x88,0xd2,0x7f,0x00,0x04,0xeb,0xe3,0x00,0x00,0x54,0x24,0x00,0x80,0xd2,0x85,0x00,0x80,0xd2,0xbf,0x00,0x01,0xeb,0x42,0x39,0x00,0x54,0x04,0x68,0x25,0x38,0xc0,0x03,0x5f,0xd6,0x05,0x0b,0x80,0xd2,0x66,0x7c,0x05,0x9b,0x08,0x01,0x80,0xd2,0x04,0x01,0x06,0x8b,0x65,0x04,0x00,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0x02,0x00,0x80,0xd2,0x83,0x00,0x80,0xd2,0xe4,0x17,0x40,0xf9,0x72,0xff,0xff,0x97,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0x05,0x00,0x80,0xd2,0x46,0x68,0x65,0x38,0x9f,0x00,0x01,0xeb,0x42,0x35,0x00,0x54,0x06,0x68,0x24,0x38,0x85,0x04,0x00,0x91,0x26,0x00,0x80,0xd2,0x48,0x68,0x66,0x38,0xbf,0x00,0x01,0xeb,0x82,0x34,0x00,0x54,0x08,0x68,0x25,0x38,0x85,0x08,0x00,0x91,0x46,0x00,0x80,0xd2,0x48,0x68,0x66,0x78,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x17,0x40,0xf9,0x43,0x00,0x80,0xd2,0xe4,0x1f,0x40,0xf9,0x4d,0xff,0xff,0x97,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0x85,0x10,0x00,0x91,0x86,0x00,0x80,0xd2,0x48,0x68,0x66,0xb8,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x17,0x40,0xf9,0x83,0x00,0x80,0xd2,0xe4,0x1f,0x40,0xf9,0x33,0xff,0xff,0x97,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0x85,0x20,0x00,0x91,0x06,0x01,0x80,0xd2,0x48,0x68,0x66,0xb8,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x17,0x40,0xf9,0x83,0x00,0x80,0xd2,0xe4,0x1f,0x40,0xf9,0x19,0xff,0xff,0x97,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0x85,0x30,0x00,0x91,0x86,0x01,0x80,0xd2,0x48,0x68,0x66,0xb8,0x08,0x7d,0x40,0x93,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x1f,0x40,0xf9,0x27,0xff,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x17,0x40,0xf9,0x83,0x00,0x80,0xd2,0xe4,0x1b,0x40,0xf9,0xea,0xfe,0xff,0x97,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0x85,0x40,0x00,0x91,0x06,0x02,0x80,0xd2,0x48,0x68,0x66,0xb8,0x08,0x7d,0x40,0x93,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x1f,0x40,0xf9,0xf8,0xfe,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x17,0x40,0xf9,0x83,0x00,0x80,0xd2,0xe4,0x1b,0x40,0xf9,0xbb,0xfe,0xff,0x97,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0x85,0x50,0x00,0x91,0x86,0x02,0x80,0xd2,0x48,0x68,0x66,0xb8,0x08,0x7d,0x40,0x93,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x1f,0x40,0xf9,0xc9,0xfe,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x17,0x40,0xf9,0x83,0x00,0x80,0xd2,0xe4,0x1b,0x40,0xf9,0x8c,0xfe,0xff,0x97,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0x85,0x60,0x00,0x91,0x06,0x03,0x80,0xd2,0x48,0x68,0x66,0xb8,0x08,0x7d,0x40,0x93,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x1f,0x40,0xf9,0x9a,0xfe,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x17,0x40,0xf9,0x83,0x00,0x80,0xd2,0xe4,0x1b,0x40,0xf9,0x5d,0xfe,0xff,0x97,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0x85,0x70,0x00,0x91,0x86,0x03,0x80,0xd2,0x48,0x68,0x66,0xb8,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x17,0x40,0xf9,0x83,0x00,0x80,0xd2,0xe4,0x1f,0x40,0xf9,0x43,0xfe,0xff,0x97,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0x85,0x80,0x00,0x91,0x06,0x04,0x80,0xd2,0x48,0x68,0x66,0xb8,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x17,0x40,0xf9,0x83,0x00,0x80,0xd2,0xe4,0x1f,0x40,0xf9,0x29,0xfe,0xff,0x97,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0x85,0x90,0x00,0x91,0x86,0x04,0x80,0xd2,0x48,0x68,0x66,0xb8,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x17,0x40,0xf9,0x83,0x00,0x80,0xd2,0xe4,0x1f,0x40,0xf9,0x0f,0xfe,0xff,0x97,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0x05,0x00,0x80,0xd2,0xbf,0xa0,0x00,0xf1,0x42,0x01,0x00,0x54,0x86,0xa0,0x00,0x91,0xc8,0x00,0x05,0x8b,0x09,0x00,0x80,0xd2,0x1f,0x01,0x01,0xeb,0x62,0x08,0x00,0x54,0x09,0x68,0x28,0x38,0xa5,0x04,0x00,0x91,0xbf,0xa0,0x00,0xf1,0x03,0xff,0xff,0x54,0x85,0x40,0x01,0x91,0x06,0x05,0x80,0xd2,0x48,0x68,0x66,0xf8,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x17,0x40,0xf9,0x03,0x01,0x80,0xd2,0xe4,0x1f,0x40,0xf9,0xe9,0xfd,0xff,0x97,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xfe,0x17,0x00,0xf9,0xe0,0x0b,0x40,0xf9,0x0b,0xfe,0xff,0x97,0xe5,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x17,0x40,0xf9,0xff,0xc3,0x00,0x91,0xc5,0x00,0x00,0xb4,0x25,0x00,0x80,0xd2,0x86,0x00,0x80,0xd2,0xdf,0x00,0x01,0xeb,0xe2,0x01,0x00,0x54,0x05,0x68,0x26,0x38,0x25,0x00,0x80,0xd2,0x46,0x68,0x65,0x38,0xdf,0x00,0x00,0xf1,0xc0,0x00,0x00,0x54,0x25,0x00,0x80,0xd2,0xa6,0x00,0x80,0xd2,0xdf,0x00,0x01,0xeb,0xc2,0x00,0x00,0x54,0x05,0x68,0x26,0x38,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xe1,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x21,0x01,0x80,0xd2,0xf8,0xff,0xff,0x17\n.previous\n"); static const char ombr2_ident_osc_trace[] = "omega-ident 1 unit=osc_trace abi=2 profile=OM-2 src=9db7adbb499a43db3ccff00093c4601eebc89450ea9f35e5d0a23ad9c014389a omc=b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2"; __attribute__((visibility("default"))) const char *omega2_ident_osc_trace(void) @@ -4150,6 +4310,62 @@ void osc_pool_free(OscCheckedPool *o_p, int64_t o_loop_depth, int64_t o_cond_dep abort(); (void)r; } +/* export fn osc_handle_allocate h edit handles to long */ +int64_t osc_handle_allocate(OscHandleState *o_h) +{ + uint64_t r = 0; + if (omega2_osc_handle_allocate(&r, (uint8_t *)o_h) != OMEGA_OK) + abort(); + return (int64_t)r; +} +/* export fn osc_handle_bind h edit handles provenance long to ulong */ +uint64_t osc_handle_bind(OscHandleState *o_h, int64_t o_provenance) +{ + uint64_t r = 0; + if (omega2_osc_handle_bind(&r, (uint8_t *)o_h, (uint64_t)o_provenance) != OMEGA_OK) + abort(); + return r; +} +/* export fn osc_handle_visit h edit handles sites edit ulong 1024 b ulong freeing ulong symbol long line ulong to ulong */ +uint64_t osc_handle_visit(OscHandleState *o_h, uint64_t o_sites[1024], uint64_t o_b, uint64_t o_freeing, int64_t o_symbol, uint64_t o_line) +{ + uint64_t r = 0; + if (omega2_osc_handle_visit(&r, (uint8_t *)o_h, o_sites, 1024, (uint64_t)o_b, (uint64_t)o_freeing, (uint64_t)o_symbol, (uint64_t)o_line) != OMEGA_OK) + abort(); + return r; +} +/* export fn osc_handles_save h view handles s edit handles to void */ +void osc_handles_save(const OscHandleState *o_h, OscHandleState *o_s) +{ + uint64_t r = 0; + if (omega2_osc_handles_save(&r, (const uint8_t *)o_h, (uint8_t *)o_s) != OMEGA_OK) + abort(); + (void)r; +} +/* export fn osc_handles_restore h edit handles s view handles bindings ulong to void */ +void osc_handles_restore(OscHandleState *o_h, const OscHandleState *o_s, uint64_t o_bindings) +{ + uint64_t r = 0; + if (omega2_osc_handles_restore(&r, (uint8_t *)o_h, (const uint8_t *)o_s, (uint64_t)o_bindings) != OMEGA_OK) + abort(); + (void)r; +} +/* export fn osc_handles_settle h edit handles before view handles other view handles to void */ +void osc_handles_settle(OscHandleState *o_h, const OscHandleState *o_before, const OscHandleState *o_other) +{ + uint64_t r = 0; + if (omega2_osc_handles_settle(&r, (uint8_t *)o_h, (const uint8_t *)o_before, (const uint8_t *)o_other) != OMEGA_OK) + abort(); + (void)r; +} +/* export fn osc_handle_frees h view handles before view handles ids edit uint 1024 to ulong */ +uint64_t osc_handle_frees(const OscHandleState *o_h, const OscHandleState *o_before, uint32_t o_ids[1024]) +{ + uint64_t r = 0; + if (omega2_osc_handle_frees(&r, (const uint8_t *)o_h, (const uint8_t *)o_before, o_ids, 1024) != OMEGA_OK) + abort(); + return r; +} /* export fn osc_trace_record trace edit uchar * event view trinput to void */ void osc_trace_record(uint8_t *o_trace, size_t o_trace_len, const OscTraceInput *o_event) { diff --git a/src/omega_om_units.ident b/src/omega_om_units.ident index 32720468cdfd7bedbb98ccb931ef651bf2b4a268..9ffd77e20db96e65d9d8152d6ebca4fb977f2ee7 100644 --- a/src/omega_om_units.ident +++ b/src/omega_om_units.ident @@ -31,6 +31,6 @@ omega-ident 1 unit=osc_a64_fields abi=2 profile=OM-2 src=6b0d855c4b12c67d8413d18 omega-ident 1 unit=osc_statement abi=2 profile=OM-2 src=a7b0105f7f6556f4b78142c36b3208d8d5072df232898491f5fc010a7903c914 omc=b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2 path=om/compiler/osc_statement.om omega-ident 1 unit=osc_ownership abi=2 profile=OM-2 src=b89c54bb7edd8e242def52f184a2df63754b02bf921b39839344f1d5d7f6fdec omc=b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2 path=om/compiler/osc_ownership.om omega-ident 1 unit=osc_scope abi=2 profile=OM-2 src=04d9c3dead3cabf5dbfa96da36fe4c58c64aa20ea36494bbfa92d1d0d3a17c4e omc=b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2 path=om/compiler/osc_scope.om -omega-ident 1 unit=osc_pool abi=2 profile=OM-2 src=739af9855c5a25c5c3322dade4200fec3d7ee380ddc97de7afa7875618888711 omc=b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2 path=om/compiler/osc_pool.om +omega-ident 1 unit=osc_pool abi=2 profile=OM-2 src=e4198750f150c94c266f9e64627ec9ad1ecbd3f6dd462814038991ab0916b968 omc=b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2 path=om/compiler/osc_pool.om omega-ident 1 unit=osc_trace abi=2 profile=OM-2 src=9db7adbb499a43db3ccff00093c4601eebc89450ea9f35e5d0a23ad9c014389a omc=b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2 path=om/compiler/osc_trace.om omega-ident 1 unit=osc_lifetimes abi=2 profile=OM-2 src=18c938959aaaa0a67d15a5cd71bbfa191c8b46e687ae78054e1a47035ab61352 omc=b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2 path=om/compiler/osc_lifetimes.om